-->
Page 1 of 1

Weird UART Problem

PostPosted: Sat Aug 13, 2016 7:21 am
by Phil colbert
Hi

I have a GPS that I am feeding into the ESP.

If I attach a FDTI connector to the RX input it works fine, the GPS wont.

However if I set up Softserial on another Pin, then softserial works with the FTDI AND the GPS, apart from it has data corruption.

So the hardware UART doesnt work and the soft UART has corruption, so I am kind of stuck

Totally baffled me.... any ideas out there ?

Thanks

Re: Weird UART Problem

PostPosted: Sat Aug 13, 2016 8:03 am
by mrburnette
Here is working code to read the GPS on the ESP8266 based on my project:
http://www.hackster.io/rayburne/tardis-time-esp8266-ap-webserver-gps-6b5d2a

20150915_GPS_Portal.zip


Ray

Re: Weird UART Problem

PostPosted: Sat Aug 13, 2016 11:12 am
by Phil colbert
Thanks for reply, found the solution however strange and bizarre, but might help someone sometime!

The code is about 25,000 lines long, so difficult to find the problem.

However the solution was just to remove this line :-

free_mem = system_get_free_heap_size();

All corruption to the data was gone.

Weird but that worked for me ! :)