Repository navigation
ThinkNode M8: switch the GPS to the AG3352Q - #12151
Conversation
Later M8 units replace the ATGM336H with an Airoha AG3352Q. Drop the ATGM336H standby pin and wire up idle_int (P1.07) so the existing GPS_SLEEP_INT path stops the engine with $PAIR003 before GPS_EN cuts the 0.8 V core, as on the ThinkNode M9. Default baud is now 115200. Co-Authored-By: Claude Opus 5.5 <[email protected]>
⚡ Try this PR in the Web FlasherNote Building this pull request… the flash button, badges and supported-board |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
$PAIR003 only stops the GNSS engine, so with the 1.8 V rail always on the receiver never reached low power (1.5 mA measured by Elecrow). Add GPS_AIROHA_RESET_WAKE for boards without RTC_INT that have RESETB: sleep sends $PAIR650,0 (with idle_int low) before EN goes low, and wake pulses RESETB once EN is back up. Enable it on the M8. At shutdown, hold idle_int high and RESETB released instead of letting the variant's pin sweep float them through System OFF. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…8-gps-ag3352 # Conflicts: # variants/nrf52840/ELECROW-ThinkNode-M8/variant.cpp
* ThinkNode M8: switch the GPS to the AG3352Q Later M8 units replace the ATGM336H with an Airoha AG3352Q. Drop the ATGM336H standby pin and wire up idle_int (P1.07) so the existing GPS_SLEEP_INT path stops the engine with $PAIR003 before GPS_EN cuts the 0.8 V core, as on the ThinkNode M9. Default baud is now 115200. Co-Authored-By: Claude Opus 5.5 <[email protected]> * ThinkNode M8: put the AG3352 into backup mode for sleep $PAIR003 only stops the GNSS engine, so with the 1.8 V rail always on the receiver never reached low power (1.5 mA measured by Elecrow). Add GPS_AIROHA_RESET_WAKE for boards without RTC_INT that have RESETB: sleep sends $PAIR650,0 (with idle_int low) before EN goes low, and wake pulses RESETB once EN is back up. Enable it on the M8. At shutdown, hold idle_int high and RESETB released instead of letting the variant's pin sweep float them through System OFF. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Later ThinkNode M8 units replace the ATGM336H with an Airoha AG3352Q. There is no RTC_INT, and GPS_EN switches only the 0.8 V core buck; the 1.8 V rail is always on. With
$PAIR003(the M9 approach) the receiver never reached low power: Elecrow measured 1.5 mA.$PAIR382,1then$PAIR650,0(backup mode), each sent while idle_int is held low, then GPS_EN goes low.This adds
GPS_AIROHA_RESET_WAKEtoGPS.h/GPS.cppfor Airoha boards with RESETB but no RTC_INT. Boards with RTC_INT (T1000-E, Wio T1000-S, Mesh Tracker X1) and the M9 build unchanged.Pin map, checked against the ThinkNode M8 V1.0 schematic:
GPS_RESET_MODE HIGHis correctGPS_SLEEP_INT, driven high ininitVariant()PIN_GPS_ENPIN_GPS_STANDBY(P0.15). It was the ATGM336H standby pin, and with it defineddown()picks soft sleep, which does nothing for an Airoha receiver.GPS_BAUDRATEfrom 9600 to 115200. The probe's baud scan is unchanged.🤝 Attestations
AG3352 detected; over six fix/sleep/wake cycles$PAIR650was acked five times (oneno ackafter the 1.5 s budget), and NMEA resumed after every RESETB pulse. Fix after wake took 36–84 s.🤖 Generated with Claude Code
Summary by CodeRabbit