A place users can post their projects. If you have a small project and would like your own dedicated place to post and have others chat about it then this is your spot.

User avatar
By ankurjadon
#61303 hello all,
i have downloaded the esp-8266 and tried that.
with very much reading and searching i am able to run the code successfully up to the point where i get dhcp ip and data, cats and links are also visible at browser, but still it i don't understand how can i send and receive data to a static ip server ex 117.218.36.237 is the ip and port is 587 i wan to send data to this one how to proceed ????

i have following: in the com port and it then keeps on showing heap:........


Code: Select allInitialise ENC stack, dhcp if requested

Init ENC
SPI - Using HSPI

"18:fe:34:d3:b6:bb"

UDP Application is registered in List: Entry 0
Httpd init, conn=0x3fff054c
HttpdWired init, conn=0x3fff0530
TCP application is entered in list: Entry 0, port = 80

Ready
mode : sta(18:fe:34:d3:b6:bb)
add if0
DISCOVER sent

ARP entry is not found*
enc_wbuf:590
Heap: 34440
DISCOVER sent

ARP entry is not found*
enc_wbuf:590
Calling UDP app
In DHCP get

** DHCP OFFER RECVD! **

REQUEST sent

ARP entry is not found*
enc_wbuf:590
Calling UDP app
In DHCP get

** DHCP ACK RECVD! **

LEASE  0 3f480

FROM DHCP:

My IP: 10.10.10.179

MASK 255.255.255.0

Router IP: 10.10.10.26

DNS IP: 8.8.8.8

Heap: 34440
Heap: 34440
Heap: 34440
Heap:




thanks in advance.
User avatar
By Cicero
#61413
ankurjadon wrote:hello all,
i have downloaded the esp-8266 and tried that.
with very much reading and searching i am able to run the code successfully up to the point where i get dhcp ip and data, cats and links are also visible at browser, but still it i don't understand how can i send and receive data to a static ip server ex 117.218.36.237 is the ip and port is 587 i wan to send data to this one how to proceed ????

i have following: in the com port and it then keeps on showing heap:........


Code: Select allInitialise ENC stack, dhcp if requested

Init ENC
SPI - Using HSPI

"18:fe:34:d3:b6:bb"

UDP Application is registered in List: Entry 0
Httpd init, conn=0x3fff054c
HttpdWired init, conn=0x3fff0530
TCP application is entered in list: Entry 0, port = 80

Ready
mode : sta(18:fe:34:d3:b6:bb)
add if0
DISCOVER sent

ARP entry is not found*
enc_wbuf:590
Heap: 34440
DISCOVER sent

ARP entry is not found*
enc_wbuf:590
Calling UDP app
In DHCP get

** DHCP OFFER RECVD! **

REQUEST sent

ARP entry is not found*
enc_wbuf:590
Calling UDP app
In DHCP get

** DHCP ACK RECVD! **

LEASE  0 3f480

FROM DHCP:

My IP: 10.10.10.179

MASK 255.255.255.0

Router IP: 10.10.10.26

DNS IP: 8.8.8.8

Heap: 34440
Heap: 34440
Heap: 34440
Heap:




thanks in advance.

Hi ankurjadon,

This project doesnt make external connections, it just serves Sprites esphttpd over wired and wifi - which you have now got working. I haven't had time to add extra functionality as yet.

It'll be a bit of work to figure it out from your side, but to make connections, you'll need to create a TCP 'application' in stack.c, and then handle all further packets from there. Remember if you're initiating a connection then you need to start the connection with a SYN packet, wait for the SYN ACK etc etc.
User avatar
By neznaika
#61553
cassyarduino wrote:Hi All!

UIPEthernet arduino library ported to ESP8266.
This library have compatible API with Wiznet W5100 Ethernet library.

I uploaded modified UIPEthernet library to https://github.com/UIPEthernet/UIPEthernet
I modified the following:
- Set the version to 1.1.0
(This version tested on ESP8266 too. Working properly. Without watchdog resets.)
- Correct ESP8266 exception(28).
- Add watchdog reset calls in functions for stable running on ESP8266.
- Add geterevid function to get ENC28j60 chip erevid (revision information).
- Change linkStatus to static for outside call.
- Add functions bypass, if can't communicate with ethernet device.
- Add SPI bus instabil communication detection.
- Change debuging/logging. Remove individual debuging. Add global and scalable debuging feature.
You can setup debuging/logging level in utility/logging.h
You can use this header file in Your scetch too.
Add "LogObject" define for serial logging/debuging with board specific default setting.

Best Regards


Hello,

I am a bit novice... and I hit a wall of disappointment. If I upload any example from the UIPEthernet library my ESP 12E goes into RST Cause 2. Could you recommend me a solution?

Thanks in advance