sparkfun / SparkFun_u-blox_GNSS_Arduino_Library

An Arduino library which allows you to communicate seamlessly with the full range of u-blox GNSS modules
Other
227 stars 100 forks source link

Controlling power completely with EXTINT #228

Closed gauteh closed 3 months ago

gauteh commented 3 months ago

Hi,

it is currently possible to put the device to sleep with powerOff, this is a bit fragile since the device can easily be woken up again. It should be possible to configure the device to be completely controlled by the EXTINT pin: https://content.u-blox.com/sites/default/files/MAX-M10S_IntegrationManual_UBX-20053088.pdf (3.6.2.5 and 3.6.2.6). As far as I can see this is not currently possible with this driver. Would it be possible to implement this?

Best regards, Gaute

PaulZC commented 3 months ago

Hi Gaute (@gauteh ),

I think you will need to do the following:

The code will look something like:

myGNSS.newCfgValset(); // Defaults to configuring the setting in RAM and BBR
myGNSS.addCfgValset(UBLOX_CFG_PM_EXTINTBACKUP, 1);
myGNSS.sendCfgValset(); // Send the packet using sendCfgValset

Full Example

Best wishes, Paul

gauteh commented 3 months ago

Hi, thank you! I was already using v3 (I got confused between the versions). I will try this, thank you very much!

PaulZC commented 3 months ago

No problem! I am closing this. If you need more help, please open a new issue in v3.

Best, Paul