ESP32 GPS UART not working!

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 615
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

ESP32 GPS UART not working!

Post by jgu1 »

Hi!

I think I have found a bug in the ESP32 :(

In a project I discorverd that the Uart not working. I have connect a GPS but get no data from it.
I create a small testprogram where I try to receive the second´s from GPS time. Not worikng with ESP32.
Then I create the same testprogram with an Arduino, work fine. (but the Arduino is not as fast as ESP with ILI9341 display :| ).

Br Jorgen
Attachments
ESP32 ILI9341 GPS.fcfx
(15.19 KiB) Downloaded 140 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi!

I dare to ask, is it just like that and is the solution to find another device for the purpose, please :roll:

Br jorgen

stefan.erni
Valued Contributor
Posts: 760
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 150 times
Been thanked: 171 times

Re: ESP32 GPS UART not working!

Post by stefan.erni »

Hi Jorgen


Can you check your program if you read sekund and display speed?

And which pin did you use from the ESP32?

regards


Stefan
speed_2021-04-08_8-38-12.png
speed_2021-04-08_8-38-12.png (24.16 KiB) Viewed 4381 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi Stefan!

Thank´s for reply. Yes you have rigth concerning the Speed and second. I have change it so the return now is Second ;)

But it still not work. I have tested all the Uart input.

Channel 1 = RX0 pin A3
Channel 2 = RX1 pin A16

Channel 3 = ?

I try to swap input, use other pin, yes almost everything no luck. As I mentoied, if I test on Arduino I see the second´s. I also test with a Scope and I see data out of the GPS.

The display show 0

Have you any experience with the Uart on ESP32?

Thank´s in advance.

Jorgen
Attachments
ESP32 ILI9341 GPS.fcfx
(15.17 KiB) Downloaded 131 times

medelec35
Matrix Staff
Posts: 1459
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 513 times
Been thanked: 473 times

Re: ESP32 GPS UART not working!

Post by medelec35 »

Hi, Jorgen.
I'm currently using an ESP32 Lolin to receive data from a PZEM-004T via Modbus and I have the ESP32 sending the data via UART to Tera term:
image_2021-04-08_211635.png
image_2021-04-08_211635.png (24 KiB) Viewed 4360 times
I'm assuming as the Modbus is working then I/P and O/P of UART is working.
Plus I have an additional UART output working.
So rather than FC UART component, could be a FC GPS component issue?


Hmm trouble with LED lamps, crap power factor with capacitor droppers lol.
Martin

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: ESP32 GPS UART not working!

Post by LeighM »

could be a FC GPS component issue
Yes, I've confirmed that it is.
Investigating now ...

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi Martin and Leigh!

Thank you.

Ok, and yes, if martin can receive data on Uart, it may work.

But, strange for me. when I use the same GPS on Arduino it work fine. When I test with ociloscoope I see data from the GPS. but nothing on display.

The GPS is : https://www.ebay.com/itm/GY-NEO-6M-V2-m ... Sw6Fteb61w

I supply it with 3,3V from the ESP.

Please advice.

Br Jorgen

LeighM
Valued Contributor
Posts: 401
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 73 times
Been thanked: 218 times

Re: ESP32 GPS UART not working!

Post by LeighM »

I've done some changes to ESP CAL UART code to support the GPS component when used with ESP.
Might be a while before the update is on the auto-update system,
so if you want to try, copy the attached file to
C:\ProgramData\MatrixTSL\FlowcodeV9\CAL\ESP
Attachments
ESP_CAL_UART.c
(19.48 KiB) Downloaded 137 times

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 GPS UART not working!

Post by jgu1 »

Ok Leigh! I try later today or tomorrow. You hear. thank´s

Jorgen

jgu1
Posts: 615
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 507 times
Been thanked: 132 times

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi LEigh!

Sadly, no change. Is there anything I could test/try or do,please?

Jorgen

Post Reply