#include <sms_service.h>
|
| SmsService (int32_t service_id, ChannelMonitor *channel_monitor, ThreadLooper *thread_looper) |
|
| ~SmsService ()=default |
|
| SmsService (const SmsService &)=delete |
|
SmsService & | operator= (const SmsService &)=delete |
|
void | SetupDependency (SimService *sim) |
|
void | HandleSendSMS (const Client &client, std::string &command) |
|
void | HandleSendSMSPDU (const Client &client, std::string &command) |
|
void | HandleSMSAcknowledge (const Client &client, std::string &command) |
|
void | HandleWriteSMSToSim (const Client &client, std::string &command) |
|
void | HandleDeleteSmsOnSim (const Client &client, std::string &command) |
|
void | HandleBroadcastConfig (const Client &client, std::string &command) |
|
void | HandleGetSmscAddress (const Client &client) |
|
void | HandleSetSmscAddress (const Client &client, std::string &command) |
|
void | HandleWriteSMSPduToSim (const Client &client, std::string &command) |
|
void | HandleReceiveRemoteSMS (const Client &client, std::string &command) |
|
bool | IsWaitingSmsPdu () |
|
bool | IsWaitingSmsToSim () |
|
virtual | ~ModemService ()=default |
|
| ModemService (const ModemService &)=delete |
|
ModemService & | operator= (const ModemService &)=delete |
|
bool | HandleModemCommand (const Client &client, std::string command) |
|
void | CloseRemoteConnection (ClientId remote_client) |
|
◆ SmsService() [1/2]
◆ ~SmsService()
cuttlefish::SmsService::~SmsService |
( |
| ) |
|
|
default |
◆ SmsService() [2/2]
cuttlefish::SmsService::SmsService |
( |
const SmsService & |
| ) |
|
|
delete |
◆ HandleBroadcastConfig()
void cuttlefish::SmsService::HandleBroadcastConfig |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
AT+CSCB Set command selects which types of CBMs are to be received by the ME.
Command Possible response(s) +CSCB=[<mode>[,<mids>[,<dcss>]]] OK +CSCB? +CSCB: <mode>,<mids>,<dcss>
<mode>: 0: message types specified in <mids> and <dcss> are accepted 1: message types specified in <mids> and <dcss> are not accepted <mids>: string type; all different possible combinations of CBM message identifiers (refer <mid>). <dcss>: string type; all different possible combinations of CBM data coding schemes.
see RIL_REQUEST_GSM_GET_BROADCAST_SMS_CONFIG & RIL_REQUEST_GSM_SET_BROADCAST_SMS_CONFIG in RIL Notes: This command is allowed in TEXT mode.
◆ HandleDeleteSmsOnSim()
void cuttlefish::SmsService::HandleDeleteSmsOnSim |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
AT+CMGD This command deletes message from preferred message storage <mem1> location <index>.
Command Possible response(s) +CMGD=<index>[, <DelFlag>] OK +CMS ERROR: <err> < index>: index id of <mem2>
see RIL_REQUEST_DELETE_SMS_ON_SIM in RIL
◆ HandleGetSmscAddress()
void cuttlefish::SmsService::HandleGetSmscAddress |
( |
const Client & |
client | ) |
|
AT+CSCA Set command updates the SMSC address, through which mobile originated SMs are transmitted.
Command Possible response(s) +CSCA=<sca>[,<tosca>] OK +CSCA? +CSCA: <sca>,<tosca>
<sca>: service center address, its maximum length is 20. <tosca>: service center address format,protocol uses 8-bit address integer.
see RIL_REQUEST_SET_SMSC_ADDRESS in RIL
◆ HandleReceiveRemoteSMS()
void cuttlefish::SmsService::HandleReceiveRemoteSMS |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
◆ HandleReceiveSMS()
void cuttlefish::SmsService::HandleReceiveSMS |
( |
PDUParser |
sms_pdu | ) |
|
|
private |
◆ HandleSendSMS()
void cuttlefish::SmsService::HandleSendSMS |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
AT+CMGS This command sends message from a TE to the network (SMS-SUBMIT).
Command Possible response(s) +CMGS=<length><CR> "> " PDU is given<ctrl-Z/ESC> +CMGS: <mr>[,<ackpdu>]<CR>OK +CMS ERROR: <err>
<length>:must indicate the number of octets coded in the TP layer data unit to be given.
see RIL_REQUEST_SEND_SMS in RIL
◆ HandleSendSMSPDU()
void cuttlefish::SmsService::HandleSendSMSPDU |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
◆ HandleSetSmscAddress()
void cuttlefish::SmsService::HandleSetSmscAddress |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
◆ HandleSMSAcknowledge()
void cuttlefish::SmsService::HandleSMSAcknowledge |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
AT+CNMA This command confirms reception of a new message (SMS-DELIVER or SMS-STATUS-REPORT) which is routed directly to the TE.
Command Possible response(s) +CNMA [=<n>[, <length> [<CR> OK PDU is given<ctrl-Z/ESC>]]] +CMS ERROR: <err>
<n>: integer type 0: command operates similarly as defined for the text mode 1: send RP-ACK 2: send RP-ERROR <length>: ACKPDU length(octet)
see RIL_REQUEST_SMS_ACKNOWLEDGE in RIL
◆ HandleSMSStatuReport()
void cuttlefish::SmsService::HandleSMSStatuReport |
( |
PDUParser |
sms_pdu, |
|
|
int |
message_reference |
|
) |
| |
|
private |
◆ HandleWriteSMSPduToSim()
void cuttlefish::SmsService::HandleWriteSMSPduToSim |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
◆ HandleWriteSMSToSim()
void cuttlefish::SmsService::HandleWriteSMSToSim |
( |
const Client & |
client, |
|
|
std::string & |
command |
|
) |
| |
◆ InitializeCommandHandlers()
std::vector< CommandHandler > cuttlefish::SmsService::InitializeCommandHandlers |
( |
| ) |
|
|
private |
◆ InitializeServiceState()
void cuttlefish::SmsService::InitializeServiceState |
( |
| ) |
|
|
private |
◆ IsWaitingSmsPdu()
bool cuttlefish::SmsService::IsWaitingSmsPdu |
( |
| ) |
|
|
inline |
◆ IsWaitingSmsToSim()
bool cuttlefish::SmsService::IsWaitingSmsToSim |
( |
| ) |
|
|
inline |
◆ operator=()
◆ SendSmsToRemote()
void cuttlefish::SmsService::SendSmsToRemote |
( |
std::string |
remote_port, |
|
|
PDUParser & |
sms_pdu |
|
) |
| |
|
private |
◆ SetupDependency()
void cuttlefish::SmsService::SetupDependency |
( |
SimService * |
sim | ) |
|
◆ broadcast_config_
◆ is_waiting_sms_pdu_
bool cuttlefish::SmsService::is_waiting_sms_pdu_ |
|
private |
◆ is_waiting_sms_to_sim_
bool cuttlefish::SmsService::is_waiting_sms_to_sim_ |
|
private |
◆ message_id_
int cuttlefish::SmsService::message_id_ |
|
private |
◆ message_reference_
int cuttlefish::SmsService::message_reference_ |
|
private |
◆ messages_on_sim_card_
std::map<int, SmsMessage> cuttlefish::SmsService::messages_on_sim_card_ |
|
private |
◆ sim_service_
◆ sms_service_center_address_
◆ sms_status_on_sim_
The documentation for this class was generated from the following files: