QMI.Codec.NetworkAccess (qmi v0.6.3) View Source

Codec for making network access service requests

Link to this section Summary

Types

Report from requesting the home network

The radio interface that is being reported

Report from requesting the signal strength

Functions

Make the request for getting the home network

Make the QMI.request() for getting signal strength

Parse an indication

Link to this section Types

Specs

attach_state() :: :unknown | :attached | :detached

Specs

home_network_report() :: %{mcc: char(), mnc: char()}

Report from requesting the home network

Specs

network() :: :network_unknown | :network_3gpp2 | :network_3gpp

Specs

radio_interface() ::
  :no_service | :cdma_1x | :cdma_1x_evdo | :amps | :gsm | :umts | :lte

The radio interface that is being reported

Link to this type

serving_system_indication()

View Source

Specs

serving_system_indication() :: %{
  name: :serving_system_indication,
  service_id: 3,
  indication_id: 36,
  serving_system_registration_state: serving_system_registration_state(),
  serving_system_cs_attach_state: attach_state(),
  serving_system_ps_attach_state: attach_state(),
  serving_system_selected_network: network(),
  serving_system_radio_interfaces: [radio_interface()]
}
Link to this type

serving_system_registration_state()

View Source

Specs

serving_system_registration_state() ::
  :not_registered | :registered | :registration_denied | :registration_unknown
Link to this type

signal_strength_report()

View Source

Specs

signal_strength_report() :: %{
  rssi_reports: [%{radio: radio_interface(), rssi: integer()}]
}

Report from requesting the signal strength

Link to this section Functions

Specs

get_home_network() :: QMI.request()

Make the request for getting the home network

Specs

get_signal_strength() :: QMI.request()

Make the QMI.request() for getting signal strength

Specs

parse_indication(binary()) ::
  {:ok, serving_system_indication()} | {:error, :invalid_indication}

Parse an indication