Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For QMI devices, the airplane mode is actually a low-power mode:

No Format
/**

 * QmiDmsOperatingMode:

 * @QMI_DMS_OPERATING_MODE_ONLINE: Device can acquire a system and make calls.

 * @QMI_DMS_OPERATING_MODE_LOW_POWER: Device has temporarily disabled RF.

 * ...

 * Operating mode of the device.

 */

Here we can see how RF can be disabled using QMI. This can be done using CLI with:

...

Firstly, given that the feature should be managed locally, we propose to leverage a recently added Local Profile server. The idea was to essentially allow a locally deployed application to act as a local controller and override a (very small) subset of the device configuration received from the controller. Currently, only the “profile” field can be overridden, hence the name. However, the feature was designed knowing that it could be extended in the future with more device configuration options that need local override. The API of the Local Profile server defines endpoint /api/v1/local_profile from which EVE should periodically obtain a profile name and use it instead of the default profile selected by the controller. The endpoint content is a protobuf-serialized message, which makes it easily extensible and allows to add more fields for local override. Whether the “local profile” would still be a suitable label even if more configuration options are added is up to the discussion. However, for airplane mode functionality we will define a separate POST endpoint, making it easier to remove/disable should the need for this feature go away. For API details see “EVE API Additions” below

For potential future needs we propose to add an airplane mode option into the device config model for the controller to manage (even if it would not be used by this particular customer).

The behaviour (and to some degree the implementation) of this feature would be inherited from the Local Profile Server.

...

The requested airplane mode state would be periodically obtained by zedagent from the Local Profile server and/or from the controller. Handler . The handler of this configuration option would be the wwan service. The file-based communication between the zedagent/nim and wwan service will be used to exchange the intended/actual airplane mode state. This is described in more details below under “EVE API Additions”.

...