Skip to content

21: Session Start ​

Opens a tracking upload session.

Payload ​

FieldNameDescriptionTypeUnit
10Reset CodeType of reset that was performed just prior to this session start.
Possible values:
  • 0: Unknown
  • 1: Low power reset
  • 2: Window watchdog reset
  • 3: Independent watchdog reset
  • 4: Software reset
  • 5: Power on power down reset
  • 6: External reset pin reset
  • 7: Brownout reset
uint8
11Alert Sensor ValueValue of the sensor that triggered an alert, if applicable.uint8
12Last Send ReasonBits 0-3 represent device state when the session start is serialized; bits
4-6 represent movement events since the previous send (position with a send
reason or completed session with a send reason). Repeated events of the
same type collapse into one bit; the bits do not encode event time or order.
Use this reason for server-generated Wi-Fi or GSM positions, not for GPS
positions. A session that fails construction does not consume events.
uint8
13Last ErrorLast error code observed just prior to this session start, if applicable.
Possible values:
  • 0: No error
  • 1: Server
  • 2: Bluetooth
  • 3: Encryption not initialized
  • 4: Corrupt pointers
  • 5: GPS init failed
  • 6: Failed to exit EPO
  • 7: Server error exceed
  • 8: No SIM
  • 9: Generic init failed
  • 10: Out of memory
  • 11: Own watchdog
  • 12: RTC died
  • 13: TX too long ago
  • 14: GSM locked up
  • 15: Jumped to zero
  • 16: Pins bad
  • 17: MPU init failed
  • 18: Encryption failed
  • 19: Sensor too large
  • 20: System
  • 21: EEPROM
  • 22: I2C
  • 23: RF
  • 30: System severe
  • 31: Hard fault
  • 32: GSM no network
  • 33: GSM denied
  • 34: GPS lock failed
  • 35: GPS lock skipped
  • 36: RTCM watchdog
  • 37: LL watchdog
  • 38: Server no response
  • 250: CPU2 request
  • 251: Too much power
  • 252: Button reset
  • 253: Health reset
  • 254: Wake from deep sleep
  • 255: Deliberate reset
uint8
30Encryption Public Key33 bytes sent from device to complete ECDH handshake.
Only present if the device is initiating the handshake.
bytes

Code ​

For convenience, the following constants can be used to reference this message type.