View Source QMI.Codec.DeviceManagement (qmi v0.8.3)

Codec for making device management requests

Link to this section Summary

Functions

Get the device hardware revision

Get the device manufacturer

Get the device model

Get the firmware revision id

Request for the serial numbers of the device

Get the operating mode of a device

Set operating mode of the device

Link to this section Types

Specs

offline_reason() ::
  :host_image_misconfiguration
  | :pri_image_misconfiguration
  | :pri_version_incompatible
  | :device_memory_full

Specs

operating_mode() ::
  :online
  | :low_power
  | :factory_test
  | :offline
  | :resetting
  | :shutting_down
  | :persistent_low_power
  | :mode_only_low_power
  | :network_test_gw
Link to this type

operating_mode_response()

View Source

Specs

operating_mode_response() :: %{
  :operating_mode => operating_mode(),
  optional(:offline_reason) => offline_reason(),
  optional(:hardware_controlled_mode?) => boolean()
}

Specs

serial_numbers() :: %{
  esn: binary() | nil,
  imei: binary() | nil,
  meid: binary() | nil,
  imeisv_svn: binary() | nil
}

The serial numbers assigned to the device

  • esn - for 3GPP2 devices
  • imei - for 3GPP devices
  • meid - for 3GPP and 3GPP2 devices
  • imeisv_svn - for 3GPP devices

Link to this section Functions

Link to this function

get_device_hardware_rev()

View Source

Specs

get_device_hardware_rev() :: QMI.request()

Get the device hardware revision

Specs

get_device_mfr() :: QMI.request()

Get the device manufacturer

Specs

get_device_model_id() :: QMI.request()

Get the device model

Specs

get_device_rev_id() :: QMI.request()

Get the firmware revision id

Link to this function

get_device_serial_numbers()

View Source

Specs

get_device_serial_numbers() :: QMI.request()

Request for the serial numbers of the device

Specs

get_operating_mode() :: QMI.request()

Get the operating mode of a device

Link to this function

set_operating_mode(mode)

View Source

Specs

set_operating_mode(operating_mode()) :: QMI.request()

Set operating mode of the device