ESP8266 tcp client - C# tcp server interrupt problem
Posted: Tue Apr 05, 2016 11:30 am
Hi all, i am working on esp8266 - 01 for remote control application.
my hardware connection:
esp8266 arduino uno
rx ---------> 2
tx ---------> 3
vcc ---------> 3,3v
gnd ---------> gnd
chpd ---------> 3,3v and softwareserial (3,2)
i can either supply arduino with usb to labtop or external 9v battery.
Until now, i managed to establish connection between tcpserver (.net c#) and able to send and receive data very well. But the problem is after a while my connection interrupt and continue spontaneously and after more it goes completely. I dont know why ? Then i called setup() in the void loop function so if connection fail message occured i can reestablish. But its not enough for me because i want to stable connection.
İ changed delay time which at the end of arduino code, also tried to ping esp8266 from computer while communication not live and it can pinged. So i think the problem is not because of software. Maybe sync problem at C# side but im not sure.
The blue led not blinking when no communication. Moreover i reliaze that most of time i changed status of any analog-digital pin (the data packet has value of the pins ) communication stops for a while . İ think arduino cannot handle this instantaneous current changes.
As a code i implemented this sample code in arduino side : https://github.com/itead/ITEADLIB_Ardui ... Single.ino
Anybody has any comment at this issue ? I need to fix this issue for use my application in real project.
my hardware connection:
esp8266 arduino uno
rx ---------> 2
tx ---------> 3
vcc ---------> 3,3v
gnd ---------> gnd
chpd ---------> 3,3v and softwareserial (3,2)
i can either supply arduino with usb to labtop or external 9v battery.
Until now, i managed to establish connection between tcpserver (.net c#) and able to send and receive data very well. But the problem is after a while my connection interrupt and continue spontaneously and after more it goes completely. I dont know why ? Then i called setup() in the void loop function so if connection fail message occured i can reestablish. But its not enough for me because i want to stable connection.
İ changed delay time which at the end of arduino code, also tried to ping esp8266 from computer while communication not live and it can pinged. So i think the problem is not because of software. Maybe sync problem at C# side but im not sure.
The blue led not blinking when no communication. Moreover i reliaze that most of time i changed status of any analog-digital pin (the data packet has value of the pins ) communication stops for a while . İ think arduino cannot handle this instantaneous current changes.
As a code i implemented this sample code in arduino side : https://github.com/itead/ITEADLIB_Ardui ... Single.ino
Anybody has any comment at this issue ? I need to fix this issue for use my application in real project.