Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't receive data from esp8266 #197

Open
marcelwinter04 opened this issue Jun 2, 2020 · 4 comments
Open

Can't receive data from esp8266 #197

marcelwinter04 opened this issue Jun 2, 2020 · 4 comments

Comments

@marcelwinter04
Copy link

Hello,

I have an ATMEGA1024P and an ESP8266, i have a function that sends a tcp string to an server and the server responds with some data. The problem now is that the esp receives this data (i can see it with the debug mode) but there is a problem transfering it to the atmega. The atmega receveivs the first few characters of my string and than after arround 20 chars i always get "ERROR\n\r".
When i print the Serial1.available i´m always getting the right amount of characters, but as mentioned always filled with "ERROR\n\r".

The funny thing is that everything is working with an old compiled version (compile date is around November-Dezember 2019).

Baudrate of serial1 is 115200, but as already said, everything worked fine.

@JAndrassy
Copy link

try 9600 baud

@marcelwinter04
Copy link
Author

marcelwinter04 commented Jun 2, 2020

Hi,

9600 baud works around 8/10 times. I´ve tried changing to 38400, but have not thought about setting it to 9600, thanks for that.

But why is my older compiled version working with 115k? We have around 100 devices that are working fine with this setting.

8/10 is better than 0/10 but still not perfect, do you have another hint which could improve the serial connection?

@JAndrassy
Copy link

@bosen365
Copy link

I have the same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants