ESP32 GPS UART not working!

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

Re: ESP32 GPS UART not working!

Post by jgu1 »

Yes Yes :lol:

After update windows, I could se the yellow triangle with an exclamation mark. Then I google Silicon Laps and found this:

https://www.silabs.com/developers/usb-t ... cp-drivers and run the driver. Now I can see
the USB port in FC9. And hopefully it work, I am sure it do :lol: you hear.

Martin and Leigh thank´s for your help and support. Now I can continue with GPS issue.

Maybe other can use it.

Jorgen

medelec35
Matrix Staff
Posts: 1450
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 509 times
Been thanked: 472 times

Re: ESP32 GPS UART not working!

Post by medelec35 »

Hi, Jorgen.
That's great news.
As least your issue is resolved.
Although the ESP32 Lolin uses CH340 drivers, I have just tested with my ESP32-Wroom, which uses Silicon Lab CP210x drivers.
The important thing to note is ESP32 installation does not include any drivers, so they could be installed first.
Martin

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

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi Martin!

Yes, CH340 was the first I try to install after your advice. And finally it work after install the driver and I have test programming to ESP32 and it work :D :D I though that everything would work after install the ESP32 chain tool, but what a fight ;) so I am glad for your support and help, that guided me in right direction, and maybe this could help other too. :D

But unfortunately, I still have the problem with GPS macro. I think there is an issue with this component. I have now updated my pc in my workshop too and now the GPS is not working with Arduino also :(

I have tested with 3 different GPS device. I have measured with an Ocilloscope, the data out of the GPS look fine.
To be sure the Uart work, I perform a test with 2 RF module (HC12) and it work perfect communication work fine, data in and out. So my conclution is there is someting wrong with GPS component in ESP32 and for the Arduino, aerlier it work with Arduino?
Do you have a GPS to make a test with?

Loong story.

Br jorgen

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

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi !

Hope MM team will have a look at the GPS component :D

Br Jorgen

LeighM
Valued Contributor
Posts: 398
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 211 times

Re: ESP32 GPS UART not working!

Post by LeighM »

Hi Jorgen,
I fixed a couple of issues relating to the UART and interrupt handling,
and have proved that UART received characters are getting into the GPS interrupt handler code OK.
So I don't see any reason why it should not now work, but I don't currently have a GPS module to test.
I'll see what we can do.
Strange that your Arduino has stopped working too.

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

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi Leigh!

Thank you very much. It is not possible for me to make a test before tomorrow afternoon . As soon I have test, you hear.

Yes, concerning GPS on Arduino, strange, very strange, 14 days ago it work?

If the GPS still not work after your update, I send you a GPS module ;)

Br jorgen.

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

Re: ESP32 GPS UART not working!

Post by jgu1 »

Hi Leigh!

Strange, still no satelite over Denmark :(
I have also tryed to change the ESP32 board. I really dont understand.

Will it be ok with you If I send you 2 different GPS module so you can test and troubleshoote. You can keep them, don´t send back.?

Br Jorgen.

LeighM
Valued Contributor
Posts: 398
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 70 times
Been thanked: 211 times

Re: ESP32 GPS UART not working!

Post by LeighM »

Hi Jorgen
Yes, that would help a lot if you could send them.
Thanks!
Leigh

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

Re: ESP32 GPS UART not working!

Post by jgu1 »

hi leigh!

Two different GPS shipped this morning. Please let me know when you receive them. And again Please also perform a test on Arduino also. ;)

Thank´in advance.

Br Jorgen.

BenR
Matrix Staff
Posts: 1733
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 439 times
Been thanked: 602 times

Re: ESP32 GPS UART not working!

Post by BenR »

Hello,

I've fixed a bug today that hopefully should have an impact on the GPS component to work correctly.

The UART interrupt was working but if a lot of bytes were received together then the interrupt would only fire once and all the other bytes would be missed. I've now sorted this so the interrupt fires for every byte that is received and this should hopefully solve any issues.

Fingers crossed :D

Post Reply