-
Notifications
You must be signed in to change notification settings - Fork 95
Data Ready PIN #257
Comments
HI Michael: we added that field for forwards compatibility only, unfortunately there is currently no functionality behind it. This is partly because I wasn't sure of the usage scenario: when Can you see a use-case where Would that make sense? And then if this works I guess we might was well apply it even to the " |
Had a look into the code now and this seems quite do-able: when do you need it by? |
Hey Rob, I think my use case is more of the initial gps fix and whenever I send an initial gps request. It's not urgent but would be nice to have. I can get by with my application using the current methods, but it would be nice to have in maybe a month? And I guess the MAXM10S doesn't have geofences built into the module firmware but if it did we could use that pin for various other Wakeup Sources like that. |
OK, I think it can be done transparently to the application, hope to get it done in a week or two, distractions permitting. Will update this issue when I have something for you to try. |
I now have something which should work for this, tested on ESP32, so you should be able to use it. What GNSS module pin do you intend to use for TX-Ready? I ask because the mapping can be a little complex and I'd like to confirm that what I have will work for you, at least in theory, before I post a preview branch. |
Does it support UART or just SPI and DDC/I2C?
CFG-TXREADY-INTERFACE = 0 // I2C I don't recall the M8's support UART either, then via UBX-CFG-PRT |
Hi @cturvey: all three, and yes, we call the disables for interfaces that would otherwise conflict with the choice of pin. Reason for asking what PIO @michaelboeding has chosen is that I can't test all of them so would like to at least eye-ball-confirm that what I have should work. Thankfully the MAX-M10S data sheet does list the PIOs. EDIT: |
For UARTs one might consider the TIMEPULSE (1PPS), now there's some latency there, but you can control the pulse width such that the falling edge is an approximation. The UART also isn't flow controlled at any level, so the data just comes out, and you can catch the RXNE or FIFO related signals on your MCU |
Indeed, it can be done in other ways for UART. |
Yes, but sending query form commands for solutions can have significant latency, potentially over a second in particularly ill-timed interactions. One might connect the TX pin to the MCU's GPIO/EXTI such that it wakes, and have a short, sacrificial message, that you can lose in the mean time whilst the MCU wakes and comes to it's senses. Some MCU have an LPUART that can be viable independently of the MCU viability. |
Depends how sleepy you want your MCU to be I guess. From a |
@michaelboeding: the preview branch is passing testing on ESP-IDF so I've pushed it out here in case you have chance to try it: https://github.com/u-blox/ubxlib/tree/preview_feature_gnss_data_ready_rmea. All you need to do is connect a pin of your MCU to a PIO of the GNSS device such as TIMEPULSE or EXTINT or one of the unused comms lines and then, in the structure you pass to TX-Ready only works if you are connected to the GNSS device over SPI or I2C (that is a limitation of the GNSS device). I will be away for all of August so any feedback this week is welcomed, otherwise take your time. |
@michaelboeding: turns out I've managed to complete testing on our other platforms also so this is now good to go from our end. I have put it in for review, hope to get it merged before I leave on hols mid next week. Feedback still welcomed until the end of this week probably. |
Hey Rob - sorry for the delay I will test this weekend! |
@michaelboeding: since I have now received the relevant approvals and it has passed testing, the feature is now on |
Is the data ready pin usable? Meaning if I hooked this up in hardware for a MAXM10S would it notify me via an interrupt when new GPS data is available?
The text was updated successfully, but these errors were encountered: