u-blox / ubxlib

Portable C libraries which provide APIs to build applications with u-blox products and services. Delivered as add-on to existing microcontroller and RTOS SDKs.
Apache License 2.0
313 stars 99 forks source link

Support UART Break Condition #47

Closed philwareublox closed 3 weeks ago

philwareublox commented 2 years ago

Many MCU UARTs can detect a 'break condition' where the Rx line is held low for longer than a frame period. https://en.wikipedia.org/wiki/Universal_asynchronous_receiver-transmitter#Break_condition

Our cellular modules will perform this break condition when going into PSM and shutting down.

I believe ESP32, nRF52 and STM32 MCUs support a break interrupt. We should investigate how we could use this break condition to detect PSM and power down states, for when V_INT monitoring is not possible, or +UPSMR: 1 URC is not implemented.

RobMeades commented 2 years ago

Excellent idea: will raise an internal JIRA to track this also.

manemannen commented 3 weeks ago

Project is discontinued