Turning the cellular modem on

You can turn on the cellular modem by sending the power command (with its state parameter set to ON) to the radio control object. Because this is a server object, to observe the response, you must force the shell to keep the file descriptor open. In the following example, we use the exec command to do this, then direct the response messages to stderr:

# (exec 3<> /pps/services/cellular/radioctrl/control && cat >&3
 && sleep 1 && cat <&3)<<END
> msg::power
> id::222
> dat:json:{"state":"ON"}
> END

If the command is successful, the response is:

@control
res::power
id::222

The logging details in slog2info show the following:

Mar 26 17:57:42.594   qwf_cellular_control.5070906            high_rate   3080  QWF_TR
    notify_power_requested_bb10: write to status_persistent: power_requested::ON

Mar 26 17:57:42.594   qwf_cellular_control.5070906            high_rate   3080  QWF_TR
                    do_power_on: Set power state to ON

Mar 26 17:57:42.951          qwf_crm_telit.5111867             low_rate   1009  QWF_TR
 LP_RADIO_POWER ON [2G/3G]

Mar 26 17:57:42.952   qwf_cellular_control.5070906            high_rate   3080  QWF_TR
             handle_radio_power: Current internal power state: 0x3, New power state: 0x1

Mar 26 17:57:43.805          qwf_crm_telit.5111867             low_rate   1010  QWF_TR
 LP_SIM_STATE_READY

Mar 26 17:58:07.651          qwf_crm_telit.7131194            high_rate   1009  QWF_TR
        RadioCacheSetNetService: networkService = 0x2 (VOICE)
Mar 26 17:58:07.651          qwf_crm_telit.7131194             low_rate   1009  QWF_TR
 LP_NETWORK_CS_REGISTERED
Mar 26 17:58:07.653          qwf_crm_telit.7131194            high_rate   1009  QWF_TR
        RadioCacheSetNetService: networkService = 0x200402 (VOICE,VOICE+DATA,LTE)
Mar 26 17:58:07.653          qwf_crm_telit.7131194             low_rate   1009  QWF_TR
 LP_NETWORK_PS_REGISTERED
Mar 26 17:58:07.653          qwf_crm_telit.7131194            high_rate   1009        
             SendTechNtf: NetworkTech 16
Mar 26 17:58:07.653          qwf_crm_telit.7131194             low_rate   1009  QWF_TR
 LP_NETWORK_RAT LTE

Mar 26 17:58:07.655          qwf_crm_telit.7131194             low_rate   1009  QWF_TR
 LP_NETWORK_PLMN 310:410

Mar 26 17:58:16.671   qwf_cellular_control.7090232            high_rate   3080  QWF_TR
  notify_signal_strength_bb10: write to cell_public: signal_strength:json:{"bars":5,"RSSI":-69}