Replies: 10 comments
-
Why are you using |
Beta Was this translation helpful? Give feedback.
-
Also, you need to set the status of your GNSS node and UART node to "okay" :) |
Beta Was this translation helpful? Give feedback.
-
Doesn't status default to okay? 🤔 I agree it can be helpful to be explicit but in this case I don't think it's strictly needed? |
Beta Was this translation helpful? Give feedback.
-
It seems the macros with STATUS_OKAY do treat missing status as okay :) I just looked at the base.yaml binding :) maybe we should set the default there? |
Beta Was this translation helpful? Give feedback.
-
DT spec says that it's perfectly fine to omit the property altogether, in which case it's treated as if the node is |
Beta Was this translation helpful? Give feedback.
-
Depending on which version of T-Beam you have, there is also a power management chip (AXP192 or AXP2101) that you need to instruct to switch on the power supply to the GPS (also LoRa if you're using that). Zephyr appears to have a driver for the AXP192 (drivers/regulator/regulator_axp192.c), but not the AXP2101. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, thanks for responses.
It's my fault, I've tried various combinations, and ended with UART0. But, you are correct. Now, pinctrl.dtsi looks like:
I've added your suggestion and dts looks like:
But i have the same results, compiles, run and no data.
I'm using T-Beam v1.1, and it uses the AXP192. At first, i thinked AXP192 doesn't make difference because the arduino code dosen't manipulate anything from AXP192. And GPS LED (see the schematic image) is blinking with the zephyr code runs. But, after searching a lot i found in the lilygo website, a QRcode to a AXP192 configuration (yes, lilygo dosen't help with clear documentation). And, now, I have a north to follow and configure AXP192. I will try this tomorrow and bring news. Again, thanks for the help @kartben, @bjarki-andreasen and @ASerbinski . |
Beta Was this translation helpful? Give feedback.
-
Great catch, @ASerbinski regarding the AXP192 Btw, converting this to a discussion as there is a very good chance that there is no bug :) |
Beta Was this translation helpful? Give feedback.
-
Another issue I just noticed; On the T-Beam board, the GPS is attached to IO12 and IO34. According to the ESP32 datasheet, these pins are NOT connected to UART peripheral. UART pins are U0: IO1/3 (console), U1: IO9/10 (used by flash/psram), and U2: IO16/17 (used by psram). What that means is that communicating with the GPS will require either software-UART with the pins configured as GPIO, or hardware modification to attach to IO16/17 instead of IO12/34 AND disconnect PSRAM chip (ips6404 -- the smaller of the two 8-pin chips adjacent to the ESP32). I don't think that there is a software UART driver implemented for zephyr. Simple way to check if you need to muck with the AXP: Test for 3.3v at GPS pin 23. |
Beta Was this translation helpful? Give feedback.
-
Hi guys, I got a flu and can't work much on this these days. But I've tried a little.
It compiles and run. I followed the instructions of @ASerbinski and measure 3v3 on the pin 23 of GPS. But, I don't know why, i can't get any signal, with zephyr and arduino codes. I will try again this week in outside and with another board. Thanks for the help guys. |
Beta Was this translation helpful? Give feedback.
-
Hi, I'm trying to port LilyGO TTGO T-Beam to zephyr. I'm using the 3.7.0 release and the process is almost done. But the GPS module, a NEO-6m, isn't working with the gnss sample. My steps until now are:
First, I configured the UART pins to be coincident with T-Beam pinout, with RX on GPIO34 and TX on GPIO12, on pinctrl.dtsi:
Second, I seted UART on dts, defining NEO-6m like a generic module:
And, of course, included gnssdev in aliases:
The main.c code and prj.conf are the same of the sample. It builds and runs with no problems, but it doesn't return any data from GPS.
I know it isn't a hardware problem, because I have a functional arduino code.
Maybe i configured it wrong, or NEO-6m isn't compatible with gnss driver, but i don't know how to check this.
How to proceed?
Beta Was this translation helpful? Give feedback.
All reactions