Commands for the QMI WDA (Wireless Data Administrative) service.
This service configures the data format used between the modem and the host
driver. The key operation is set_data_format/2, which must be called
before starting a data session to ensure the modem and driver agree on
whether the data path uses raw-IP or 802.3 (Ethernet) framing.
Summary
Functions
@spec get_data_format(QMI.name()) :: {:ok, QMI.Codec.WirelessDataAdmin.data_format()} | {:error, atom()}
Query the modem's current data format.
Example
{:ok, %{link_layer_protocol: :raw_ip}} =
QMI.WirelessDataAdmin.get_data_format(MyApp.QMI)
@spec set_data_format(QMI.name(), [QMI.Codec.WirelessDataAdmin.set_data_format_opt()]) :: {:ok, QMI.Codec.WirelessDataAdmin.data_format()} | {:error, atom()}
Set the data format on the modem.
This must be called before QMI.WirelessData.start_network_interface/2
so that the modem sends packets in the format the driver expects.
Options
:link_layer_protocol–:raw_ipor:"802.3"(required):ul_aggregation_protocol– uplink aggregation (default:disabled):dl_aggregation_protocol– downlink aggregation (default:disabled):qos_format– include QoS headers (defaultfalse)
Example
:ok = QMI.WirelessDataAdmin.set_data_format(MyApp.QMI,
link_layer_protocol: :raw_ip,
ul_aggregation_protocol: :disabled,
dl_aggregation_protocol: :disabled
)