L’Internet des Objets
30.2 Les premières commandes
La documentation liste les commandes pouvant être envoyées par le port série. Elles commencent par un point d’interrogation pour lire une valeur et par un point d’exclamation pour écrire une valeur. Les commandes peuvent s’exécuter après un délai de quelques secondes.
30.2.1 Aide
Processing command: ? Terminal HELP: ?fwversion - View fw info ?mcuid - View MCU ID !sysreset - System reset !shutdown - System shutdown ?welcomemsg - Welcome message ?platformstatus - Get the platform settings !defaultsettings - Restore EEPROM default settings !lpsensorevent - Set Low P on sensor event on/off !lpsleeptimer - Set Low P on sleep timer on/off !sendonwake - Send data on sensor wakeup (on/off) !sendonthreshold - Send data on sensor threshold (on/off) !loraadronoff - Set LoRa ADR on/off !loradr - Set LoRa Data Rate !lorainterval - Set LoRa send interval !format - Format EEPROM - Will lose data !pushlog - Push current data to EEPROM ?getsingleitem - Get 1 item from EEPROM ?getlogs - Get all items from EEPROM ?logmanager - Get EEPROM datalog status !logmanager - Set EEPROM datalog ON/OFF ?gnssappconf - GNSS get app config data !gnssappconf - GNSS set app config data !powergnss - GNSS VDD is switched on or off !powereeprom - EEPROM VDD is switched on or off !powertcctrl - Type-C controller VDD is switched on or off !powersens - Sensors VDD is switched on or off ?rtcdate - Get the RTC date !rtcdate - Set the RTC date ?rtctime - Get the RTC time !rtctime - Set the RTC time ?debugmode - Get the debug mode !debugmode - Set the debug mode ?devicejoinstatus - Get the LoRa device join status ?devicejoinparam - Get the LoRa join parameters !deviceeui - Set the LoRa device EUI !joineui - Set the LoRa join EUI !appkey - Set the application key !ntwkkey - Set the network key !eraselorakeys - Erase LoRa keys in EEPROM !triggerlora - Trigger a lora sending ?includeepochtime - Get 'Include Epoch time' variable status !includeepochtime - Set 'Include Epoch time' variable status !sysrun - Set system state to run !gpscoldstart - GPS cold start ?gpsgetposition - Get GPS position !geofence - Config geofence ?geofence - Get geofence status ? - View help Command complete
30.2.2 mcuid
Processing command: ?mcuid MCU ID: 31374708323732382A003B00 Command complete
30.2.3 Status
?platformstatus Processing command: ?platformstatus Get Platform settings EEPROM_DATA_CAN_BE_CHANGED: 0 EEPROM_DATA_INITED: 0 RESTART_PENDING: 0 STARTUP_MODE: 1 STARTUP_AFTER_POWER_ON_RESET SW1_OA: 1 SW1_OB: 1 SW2_OA: 1 SW2_OB: 1 USB_CONNECTED: 1 USB_DBG: 0 USB_TRACE: 1 LP_SLEEP_TIMER: 0 LP_SENSOR_EVENT: 0 SEND_ON_WAKE_EVENT: 0 SEND_ON_SENSOR_EVENT: 0 EEPROM_FORMATTED: 0 LOG_MANAGER: 0 GNSS_SEND_WAIT: 0 GNSS_POLL_WAIT: 0 RTC_UPDATED: 0 GPSTIME_IN_LPP: 0 xPrevState: 14 State_INVALID xCurrentState: 4 State_Run xNextState: 14 State_INVALID GNSS_GEOFENCE_MASK: 0 GNSS_GEOFENCE_RADIUS: 100 LORA_DR: 4 LORA_ADR: 0 SEND_INTERVAL: 30000ms Battery voltage: 4087mV Charger status 4 CHARGING_PHASE REGION: REGION_EU868 Command complete >> accelerometer interrupt Accelerometer wake up interrupt