EVENT Field Reasons

Overview

The device has four power states:

Idx State Processor Registers Co-processor
1 Power Off OFF OFF OFF
2 Shutdown OFF OFF ON
3 Idle OFF ON ON
4 Running ON ON ON

The EVENT field is a helper/debug field for Mobile Devices, that provides various information.
It can for example show the last boot or idle/shutdown reason, or the source for fuel consumption computation on the last trip.

Boot and idle/shutdown related information

Boot Reasons :

When the EVENT field is in the form B:xxx, it gives indications on the last boot reason:
* B:1 : Power ON ( Happens when devices without battery is plugged or when unplugged devices with fully drained battery is plugged)
* B:2 : Ignition signal (only for C4Max)
* B:4 : External power supply plugged waking up the device or wake up on power surge (engine ignition)
* B:8 : Wakeup on Accelerometer movement detection
* B:16 : Modem Ring (SMS or Call)
* B:32 : Digital Inputs
* B:64 : Alarm input
* B:128 : RTC wakeup (Periodic wake. By default after 24 hours of sleep)
* B:256 : Watchdog
* B:512 : Watchdog
* B:4096 : Reboot
* B:65536 : Internal Bat low level
* B:131072 : External power low level

Note: Other reasons can occurs but are reserved for Internal use.

Shutdown Types:

When the EVENT field is in the form S:X-YYY, it gives information related to the last idle/shutdown.
The Xfield can take the values:
* 1 : Reboot
* 2 : Shutdown
* 3 : Idle

The Y field is generally a 200 + mask of reasons that can take the values :
* 1 : Accelerometer movement absence
* 2 : GPS movement absence
* 4 : Ignition (can be absence or pulse)
* 8 : Digital Input 1 absence
* 16 : Digital Input 2 absence
* 32 : External battery absence

Note: Shutdown reasons greater than 1000 can not be issued by Morpheus OS. It comes from a custom app or a StateMachine.
Specific reasons:
*3333 : Device unplugged
*3334 : Reset button pressed
*77777 : Temperature limit reached

Note: Idle can be transformed into a reboot or a shutdown, most of the time after configuration or update.
That gives you:
normalReason + 300 : idle transform into shutdown
normalReason + 600 : idle transform into reboot

Examples

Example 1: S:3-205 means the device goes on Idle mode because of no movement from accelerometer and no ignition (1+4).

Example 2: S:1-801 : equivalent to 201 (no accel movement) but idle transform into reboot (most of the time after configuration or update)

Example 3: S:1-805 : equivalent to 205 (no ignition and no accel movement) but idle transform into reboot (most of the time after configuration or update)

Example 4: S:2-501 : equivalent to 201 (no accel movement) but idle transform into shutdown (most of the time after configuration or update)

Example 5: S:2-205 : equivalent to 205 (no ignition and no accel movement) but idle transform into shutdown (most of the time after configuration or update)

Example 6: S:2-181 : Low internal battery.

Trip related information

At the end of the trip the EVENT field may contain these information:

  • fuel_unknown means that the device is not configured yet for fuel consumption.
  • fuel_gas means gasoline consumption computation.
  • fuel_diesel means diesel consumption computation.
  • odo_gps means odometer computed from GPS.
  • odo_obd_speed means odometer computed from OBD standard PID's.
  • odo_dashboard means odometer computed from true dashboard odometer.

Other information

The reset_cold_boot and reset_batt events can be seen after the device has detected either a cold boot or a plug/unplug event. It shows that the device has resetted vehicle-related information, like VIN, stack, etc.

Other values are intended for debug purposes only and are not documented.
As this field is used primarily for debug, it is subject to changes in the next releases.