bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
12 stars 8 forks source link

add a recurring timer for mfg test #117

Closed russelldeguzman closed 7 months ago

russelldeguzman commented 7 months ago

Add a sys config mfgTxTestModeEnable that can be set (from the Spotter) so that the Aanderaa mote will send a "X\r\n"; every second. If the Aanderaa device is able to receive and respond, it will be captured in the raw log.

Remember to send a commit after settingmfgTxTestModeEnable!

Adding the config from Spotter: bm cfg set 0x2d3fe85f3bfbfe45 s u mfgTxTestModeEnable 1 bm cfg commit 0x2d3fe85f3bfbfe45 s

70781t 2d3fe85f3bfbfe45, [aanderaa] | tick: 38181, rtc: 0, line: *  ERROR   SYNTAX ERROR
71742t 2d3fe85f3bfbfe45, power | tick: 39145, rtc: 0, addr: 67, voltage: 23.945601, current: 0.027500
71763t 2d3fe85f3bfbfe45, power | tick: 39147, rtc: 0, addr: 65, voltage: 23.937599, current: 0.040500
71782t 2d3fe85f3bfbfe45, [aanderaa] | tick: 39181, rtc: 0, line: *  ERROR   SYNTAX ERROR


bm cfg del 0x2d3fe85f3bfbfe45 s mfgTxTestModeEnable bm cfg commit 0x2d3fe85f3bfbfe45 s

[aanderaa] | tick: 38181, rtc: 0, line: * lines stop.

aanderaa_raw.log