1 # IRil 2 3 4 ## 概述 5 6 Ril模块的请求接口。 7 8 请求接口包括打电话、发短信彩信、激活SIM卡、上网等。 9 10 **起始版本:** 3.2 11 12 **相关模块:**[Ril](_ril_v11.md) 13 14 15 ## 汇总 16 17 18 ### Public 成员函数 19 20 | 名称 | 描述 | 21 | -------- | -------- | 22 | [SetCallback](#setcallback) ([in] [IRilCallback](interface_i_ril_callback_v11.md) rilCallback) | 设置IRil回调接口,回调函数参考[IRilCallback](interface_i_ril_callback_v11.md)。 | 23 | [SetEmergencyCallList](#setemergencycalllist) ([in] int slotId, [in] int serialId, [in] struct [EmergencyInfoList](_emergency_info_list_v11.md) emergencyInfoList) | 设置紧急呼叫号码。 | 24 | [GetEmergencyCallList](#getemergencycalllist) ([in] int slotId, [in] int serialId) | 获取紧急号码。 | 25 | [GetCallList](#getcalllist) ([in] int slotId, [in] int serialId) | 获取通话状态列表。 | 26 | [Dial](#dial) ([in] int slotId, [in] int serialId, [in] struct [DialInfo](_dial_info_v11.md) dialInfo) | 拨打电话。 | 27 | [Reject](#reject) ([in] int slotId, [in] int serialId) | 拒接电话。 | 28 | [Hangup](#hangup) ([in] int slotId, [in] int serialId, [in] int callId) | 挂断电话。 | 29 | [Answer](#answer) ([in] int slotId, [in] int serialId) | 接听电话。 | 30 | [HoldCall](#holdcall) ([in] int slotId, [in] int serialId) | 保持通话。 | 31 | [UnHoldCall](#unholdcall) ([in] int slotId, [in] int serialId) | 取消保持通话。 | 32 | [SwitchCall](#switchcall) ([in] int slotId, [in] int serialId) | 切换通话。 | 33 | [CombineConference](#combineconference) ([in] int slotId, [in] int serialId, [in] int callType) | 合并为会议电话。 | 34 | [SeparateConference](#separateconference) ([in] int slotId, [in] int serialId, [in] int callId, [in] int callType) | 与会议电话分离。 | 35 | [GetCallWaiting](#getcallwaiting) ([in] int slotId, [in] int serialId) | 获取呼叫等待。 | 36 | [SetCallWaiting](#setcallwaiting) ([in] int slotId, [in] int serialId, [in] int activate) | 设置呼叫等待。 | 37 | [GetCallTransferInfo](#getcalltransferinfo) ([in] int slotId, [in] int serialId, [in] int reason) | 获取呼叫转移。 | 38 | [SetCallTransferInfo](#setcalltransferinfo) ([in] int slotId, [in] int serialId, [in] struct [CallForwardSetInfo](_call_forward_set_info_v11.md) callForwardSetInfo) | 设置呼叫转移。 | 39 | [GetCallRestriction](#getcallrestriction) ([in] int slotId, [in] int serialId, [in] String fac) | 获取呼叫限制。 | 40 | [SetCallRestriction](#setcallrestriction) ([in] int slotId, [in] int serialId, [in] struct [CallRestrictionInfo](_call_restriction_info_v11.md) callRestrictionInfo) | 设置呼叫限制。 | 41 | [GetClip](#getclip) ([in] int slotId, [in] int serialId) | 获取主叫号码显示(CLIP)。 | 42 | [SetClip](#setclip) ([in] int slotId, [in] int serialId, [in] int action) | 设置主叫号码显示。 | 43 | [GetClir](#getclir) ([in] int slotId, [in] int serialId) | 获取主叫号码显示限制(CLIR)。 | 44 | [SetClir](#setclir) ([in] int slotId, [in] int serialId, [in] int action) | 设置主叫号码显示限制。 | 45 | [SetCallPreferenceMode](#setcallpreferencemode) ([in] int slotId, [in] int serialId, [in] int mode) | 设置通话偏好模式。 | 46 | [GetCallPreferenceMode](#getcallpreferencemode) ([in] int slotId, [in] int serialId) | 获取通话偏好模式。 | 47 | [SetUssd](#setussd) ([in] int slotId, [in] int serialId, [in] String str) | 设置非结构化补充数据业务(USSD)。 | 48 | [GetUssd](#getussd) ([in] int slotId, [in] int serialId) | 获取Ussd业务。 | 49 | [SetMute](#setmute) ([in] int slotId, [in] int serialId, [in] int mute) | 设置静音。 | 50 | [GetMute](#getmute) ([in] int slotId, [in] int serialId) | 获取静音。 | 51 | [GetCallFailReason](#getcallfailreason) ([in] int slotId, [in] int serialId) | 获取通话失败原因。 | 52 | [CallSupplement](#callsupplement) ([in] int slotId, [in] int serialId, [in] int type) | 通话保持和恢复。 | 53 | [SendDtmf](#senddtmf) ([in] int slotId, [in] int serialId, [in] struct [DtmfInfo](_dtmf_info_v11.md) dtmfInfo) | 发送双音多频(DTMF)。 | 54 | [StartDtmf](#startdtmf) ([in] int slotId, [in] int serialId, [in] struct [DtmfInfo](_dtmf_info_v11.md) dtmfInfo) | 开启DTMF。 | 55 | [StopDtmf](#stopdtmf) ([in] int slotId, [in] int serialId, [in] struct [DtmfInfo](_dtmf_info_v11.md) dtmfInfo) | 关闭DTMF。 | 56 | [SetBarringPassword](#setbarringpassword) ([in] int slotId, [in] int serialId, [in] struct [SetBarringInfo](_set_barring_info_v11.md) setBarringInfo) | 设置呼叫限制密码。 | 57 | [SetVonrSwitch](#setvonrswitch) ([in] int slotId, [in] int serialId, [in] int status) | 设置Vonr开关。 | 58 | [ActivatePdpContext](#activatepdpcontext) ([in] int slotId, [in] int serialId, [in] struct [DataCallInfo](_data_call_info_v11.md) dataCallInfo) | 激活数据业务。 | 59 | [DeactivatePdpContext](#deactivatepdpcontext) ([in] int slotId, [in] int serialId, [in] struct [UniInfo](_uni_info_v11.md) uniInfo) | 断开数据业务。 | 60 | [GetPdpContextList](#getpdpcontextlist) ([in] int slotId, [in] int serialId, [in] struct [UniInfo](_uni_info_v11.md) uniInfo) | 获取当前所有数据连接状态。 | 61 | [SetInitApnInfo](#setinitapninfo) ([in] int slotId, [in] int serialId, [in] struct [DataProfileDataInfo](_data_profile_data_info_v11.md) dataProfileDataInfo) | 设置初始化默认网络接入技术(APN)信息。 | 62 | [GetLinkBandwidthInfo](#getlinkbandwidthinfo) ([in] int slotId, [in] int serialId, [in] int cid) | 获取当前链路信息。 | 63 | [GetLinkCapability](#getlinkcapability) ([in] int slotId, [in] int serialId) | 获取链接功能。 | 64 | [SetLinkBandwidthReportingRule](#setlinkbandwidthreportingrule) ([in] int slotId, [in] int serialId, [in] struct [DataLinkBandwidthReportingRule](_data_link_bandwidth_reporting_rule_v11.md) dataLinkBandwidthReportingRule) | 设置当前链路信息的上报规则。 | 65 | [SetDataPermitted](#setdatapermitted) ([in] int slotId, [in] int serialId, [in] int dataPermitted) | 使能SIM卡槽数据业务。 | 66 | [SetDataProfileInfo](#setdataprofileinfo) ([in] int slotId, [in] int serialId, [in] struct [DataProfilesInfo](_data_profiles_info_v11.md) dataProfilesInfo) | 设置数据业务使用的PDP上下文信息。 | 67 | [SendDataPerformanceMode](#senddataperformancemode) ([in] int slotId, [in] int serialId, [in] struct [DataPerformanceInfo](_data_performance_info_v11.md) dataPerformanceInfo) | 发送数据业务性能模式。 | 68 | [SendDataSleepMode](#senddatasleepmode) ([in] int slotId, [in] int serialId, [in] struct [DataSleepInfo](_data_sleep_info_v11.md) dataSleepInfo) | 发送数据业务睡眠模式。 | 69 | [SetRadioState](#setradiostate) ([in] int slotId, [in] int serialId, [in] int fun, [in] int rst) | 设置Modem状态。 | 70 | [GetRadioState](#getradiostate) ([in] int slotId, [in] int serialId) | 获取Modem状态。 | 71 | [GetImei](#getimei) ([in] int slotId, [in] int serialId) | 获取国际移动设备识别码。 | 72 | [GetMeid](#getmeid) ([in] int slotId, [in] int serialId) | 获取移动设备识别码。 | 73 | [GetVoiceRadioTechnology](#getvoiceradiotechnology) ([in] int slotId, [in] int serialId) | 获取电路(CS)域接入技术。 | 74 | [GetBasebandVersion](#getbasebandversion) ([in] int slotId, [in] int serialId) | 获取基带版本。 | 75 | [ShutDown](#shutdown) ([in] int slotId, [in] int serialId) | 发送手机正在关机状态到Modem。 | 76 | [GetSimIO](#getsimio) ([in] int slotId, [in] int serialId, [in] struct [SimIoRequestInfo](_sim_io_request_info_v11.md) simIO) | 获取SIM卡数据。 | 77 | [GetSimStatus](#getsimstatus) ([in] int slotId, [in] int serialId) | 获取SIM卡状态。 | 78 | [GetImsi](#getimsi) ([in] int slotId, [in] int serialId) | 获取SIM卡国际移动用户识别码。 | 79 | [GetSimLockStatus](#getsimlockstatus) ([in] int slotId, [in] int serialId, [in] struct [SimLockInfo](_sim_lock_info_v11.md) simLockInfo) | 获取SIM卡锁状态。 | 80 | [SetSimLock](#setsimlock) ([in] int slotId, [in] int serialId, [in] struct [SimLockInfo](_sim_lock_info_v11.md) simLockInfo) | 设置SIM卡锁。 | 81 | [ChangeSimPassword](#changesimpassword) ([in] int slotId, [in] int serialId, [in] struct [SimPasswordInfo](_sim_password_info_v11.md) simPassword) | 修改SIM卡密码。 | 82 | [UnlockPin](#unlockpin) ([in] int slotId, [in] int serialId, [in] String pin) | PIN解锁。 | 83 | [UnlockPuk](#unlockpuk) ([in] int slotId, [in] int serialId, [in] String puk, [in] String pin) | PUK解锁。 | 84 | [UnlockPin2](#unlockpin2) ([in] int slotId, [in] int serialId, [in] String pin2) | PIN2解锁。 | 85 | [UnlockPuk2](#unlockpuk2) ([in] int slotId, [in] int serialId, [in] String puk2, [in] String pin2) | PUK2解锁。 | 86 | [SetActiveSim](#setactivesim) ([in] int slotId, [in] int serialId, [in] int index, [in] int enable) | 激活去激活SIM卡。 | 87 | [SimStkSendTerminalResponse](#simstksendterminalresponse) ([in] int slotId, [in] int serialId, [in] String strCmd) | 发送SIM卡应用开发工具箱(STK) TerminalResponse指令。 | 88 | [SimStkSendEnvelope](#simstksendenvelope) ([in] int slotId, [in] int serialId, [in] String strCmd) | 发送STK Envelope指令。 | 89 | [SimStkSendCallSetupRequestResult](#simstksendcallsetuprequestresult) ([in] int slotId, [in] int serialId, [in] int accept) | 发送STK CallSetup指令。 | 90 | [SimStkIsReady](#simstkisready) ([in] int slotId, [in] int serialId) | 获取STK是否Ready状态。 | 91 | [GetRadioProtocol](#getradioprotocol) ([in] int slotId,[in] int serialId) | 获取主副卡协议栈。 | 92 | [SetRadioProtocol](#setradioprotocol) ([in] int slotId,[in] int serialId,[in] struct [RadioProtocol](_radio_protocol_v11.md) radioProtocol) | 设置主副卡协议栈。 | 93 | [SimOpenLogicalChannel](#simopenlogicalchannel) ([in] int slotId, [in] int serialId, [in] String appID, [in] int p2) | 打开应用协议数据单元(APDU)逻辑通道。 | 94 | [SimCloseLogicalChannel](#simcloselogicalchannel) ([in] int slotId, [in] int serialId, [in] int channelId) | 关闭应用协议数据单元(APDU)逻辑通道。 | 95 | [SimTransmitApduLogicalChannel](#simtransmitapdulogicalchannel) ([in] int slotId, [in] int serialId, [in] struct [ApduSimIORequestInfo](_apdu_sim_i_o_request_info_v11.md) apduSimIO) | 应用协议数据单元(APDU)逻辑通道数据传输,由应用主动发起连接和关闭。 | 96 | [SimTransmitApduBasicChannel](#simtransmitapdubasicchannel) ([in] int slotId, [in] int serialId, [in] struct [ApduSimIORequestInfo](_apdu_sim_i_o_request_info_v11.md) apduSimIO) | 应用协议数据单元(APDU)基础通道数据传输,默认打开的传输通道。 | 97 | [SimAuthentication](#simauthentication) ([in] int slotId, [in] int serialId, [in] struct [SimAuthenticationRequestInfo](_sim_authentication_request_info_v11.md) simAuthInfo) | SIM卡鉴权。 | 98 | [UnlockSimLock](#unlocksimlock) ([in] int slotId, [in] int serialId, [in] int lockType, [in] String key) | 解锁SIM卡。 | 99 | [GetSignalStrength](#getsignalstrength) ([in] int slotId, [in] int serialId) | 获取信号强度。 | 100 | [GetCsRegStatus](#getcsregstatus) ([in] int slotId, [in] int serialId) | 获取电路(CS)域注册状态。 | 101 | [GetPsRegStatus](#getpsregstatus) ([in] int slotId, [in] int serialId) | 获取分组(PS)域注册状态。 | 102 | [GetOperatorInfo](#getoperatorinfo) ([in] int slotId, [in] int serialId) | 获取运营商名称信息。 | 103 | [GetNetworkSearchInformation](#getnetworksearchinformation) ([in] int slotId, [in] int serialId) | 获取可用网络信息。 | 104 | [GetNetworkSelectionMode](#getnetworkselectionmode) ([in] int slotId, [in] int serialId) | 获取选网模式。 | 105 | [SetNetworkSelectionMode](#setnetworkselectionmode) ([in] int slotId, [in] int serialId, [in] struct [SetNetworkModeInfo](_set_network_mode_info_v11.md) networkModeInfo) | 设置选网模式。 | 106 | [GetNeighboringCellInfoList](#getneighboringcellinfolist) ([in] int slotId, [in] int serialId) | 获取相邻小区信息。 | 107 | [GetCurrentCellInfo](#getcurrentcellinfo) ([in] int slotId, [in] int serialId) | 获取小区信息。 | 108 | [SetPreferredNetwork](#setpreferrednetwork) ([in] int slotId, [in] int serialId, [in] int preferredNetworkType) | 设置首选网络类型。 | 109 | [GetPreferredNetwork](#getpreferrednetwork) ([in] int slotId, [in] int serialId) | 获取首选网络类型。 | 110 | [GetPhysicalChannelConfig](#getphysicalchannelconfig) ([in] int slotId, [in] int serialId) | 获取物理通道配置。 | 111 | [SetLocateUpdates](#setlocateupdates) ([in] int slotId, [in] int serialId, [in] enum [RilRegNotifyMode](_ril_v11.md#rilregnotifymode) mode) | 设置小区位置更新通知模式。 | 112 | [SetNotificationFilter](#setnotificationfilter) ([in] int slotId, [in] int serialId, [in] int newFilter) | 设置Modem主动上报消息过滤器。 | 113 | [SetDeviceState](#setdevicestate) ([in] int slotId, [in] int serialId, [in] int deviceStateType, [in] int deviceStateOn) | 设置设备状态。 | 114 | [SendGsmSms](#sendgsmsms) ([in] int slotId, [in] int serialId, [in] struct [GsmSmsMessageInfo](_gsm_sms_message_info_v11.md) gsmSmsMessageInfo) | 发送全球移动通信系统 (GSM)短信。 | 115 | [SendCdmaSms](#sendcdmasms) ([in] int slotId, [in] int serialId, [in] struct [SendCdmaSmsMessageInfo](_send_cdma_sms_message_info_v11.md) cdmaSmsMessageInfo) | 发送码分多址(CDMA)短信。 | 116 | [AddSimMessage](#addsimmessage) ([in] int slotId, [in] int serialId, [in] struct [SmsMessageIOInfo](_sms_message_i_o_info_v11.md) gsmSmsMessageInfo) | 写入GSM SIM卡短信。 | 117 | [DelSimMessage](#delsimmessage) ([in] int slotId, [in] int serialId, [in] int index) | 删除GSM SIM卡短信。 | 118 | [UpdateSimMessage](#updatesimmessage) ([in] int slotId, [in] int serialId, [in] struct [SmsMessageIOInfo](_sms_message_i_o_info_v11.md) gsmSmsMessageInfo) | 更新GSM SIM卡短信。 | 119 | [AddCdmaSimMessage](#addcdmasimmessage) ([in] int slotId, [in] int serialId, [in] struct [SmsMessageIOInfo](_sms_message_i_o_info_v11.md) cdmaSmsMessageInfo) | 写入CDMA SIM卡短信。 | 120 | [DelCdmaSimMessage](#delcdmasimmessage) ([in] int slotId, [in] int serialId, [in] int index) | 删除CDMA SIM卡短信。 | 121 | [UpdateCdmaSimMessage](#updatecdmasimmessage) ([in] int slotId, [in] int serialId, [in] struct [SmsMessageIOInfo](_sms_message_i_o_info_v11.md) cdmaSmsMessageInfo) | 更新CDMA SIM卡短信。 | 122 | [SetSmscAddr](#setsmscaddr) ([in] int slotId, [in] int serialId, [in] struct [ServiceCenterAddress](_service_center_address_v11.md) serviceCenterAddress) | 设置短信中心地址。 | 123 | [GetSmscAddr](#getsmscaddr) ([in] int slotId, [in] int serialId) | 获取短信中心地址。 | 124 | [SetCBConfig](#setcbconfig) ([in] int slotId, [in] int serialId, [in] struct [CBConfigInfo](_c_b_config_info_v11.md) cellBroadcastInfo) | 激活GSM小区广播。 | 125 | [GetCBConfig](#getcbconfig) ([in] int slotId, [in] int serialId) | 获取GSM小区广播配置。 | 126 | [SetCdmaCBConfig](#setcdmacbconfig) ([in] int slotId, [in] int serialId, [in] struct [CdmaCBConfigInfoList](_cdma_c_b_config_info_list_v11.md) cdmaCBConfigInfoList) | 激活CDMA小区广播。 | 127 | [GetCdmaCBConfig](#getcdmacbconfig) ([in] int slotId, [in] int serialId) | 获取CDMA小区广播配置。 | 128 | [SendSmsMoreMode](#sendsmsmoremode) ([in] int slotId, [in] int serialId, [in] struct [GsmSmsMessageInfo](_gsm_sms_message_info_v11.md) gsmSmsMessageInfo) | 发送GSM长短信。 | 129 | [SendSmsAck](#sendsmsack) ([in] int slotId, [in] int serialId, [in] struct [ModeData](_mode_data_v11.md) modeData) | 确认接收新短信。 | 130 | [SendRilAck](#sendrilack) () | 发送应答给无线接口层(RIL)。 | 131 | [GetRrcConnectionState](#getrrcconnectionstate) ([in] int slotId, [in] int serialId) | 获取RRC连接状态. | 132 | [SetNrOptionMode](#setnroptionmode) ([in] int slotId, [in] int serialId, [in] int mode) | 设置NR选项模式。 | 133 | [GetNrOptionMode](#getnroptionmode) ([in] int slotId, [in] int serialId) | 获取NR选项模式。 | 134 135 136 ## 成员函数说明 137 138 139 ### ActivatePdpContext() 140 141 ``` 142 IRil::ActivatePdpContext ([in] int slotId, [in] int serialId, [in] struct DataCallInfo dataCallInfo ) 143 ``` 144 **描述** 145 146 激活数据业务。 147 148 **起始版本:** 3.2 149 150 **参数:** 151 152 | 名称 | 描述 | 153 | -------- | -------- | 154 | slotId | 表示卡槽ID。 | 155 | serialId | 表示请求的序列化ID。 | 156 | dataCallInfo | 表示数据业务信息,详见[DataCallInfo](_data_call_info_v11.md)。 | 157 158 **返回:** 159 160 0 表示执行成功。 161 162 非零值 表示操作失败。 163 164 165 ### AddCdmaSimMessage() 166 167 ``` 168 IRil::AddCdmaSimMessage ([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo cdmaSmsMessageInfo ) 169 ``` 170 **描述** 171 172 写入CDMA SIM卡短信。 173 174 **起始版本:** 3.2 175 176 **参数:** 177 178 | 名称 | 描述 | 179 | -------- | -------- | 180 | slotId | 表示卡槽ID。 | 181 | serialId | 表示请求的序列化ID。 | 182 | cdmaSmsMessageInfo | 表示SIM卡短信信息,详见[SmsMessageIOInfo](_sms_message_i_o_info_v11.md)。 | 183 184 **返回:** 185 186 0 表示执行成功。 187 188 非零值 表示操作失败。 189 190 191 ### AddSimMessage() 192 193 ``` 194 IRil::AddSimMessage ([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo ) 195 ``` 196 **描述** 197 198 写入GSM SIM卡短信。 199 200 **起始版本:** 3.2 201 202 **参数:** 203 204 | 名称 | 描述 | 205 | -------- | -------- | 206 | slotId | 表示卡槽ID。 | 207 | serialId | 表示请求的序列化ID。 | 208 | gsmSmsMessageInfo | 表示SIM卡短信信息,详见[SmsMessageIOInfo](_sms_message_i_o_info_v11.md)。 | 209 210 **返回:** 211 212 0 表示执行成功。 213 214 非零值 表示操作失败。 215 216 217 ### Answer() 218 219 ``` 220 IRil::Answer ([in] int slotId, [in] int serialId ) 221 ``` 222 **描述** 223 224 接听电话。 225 226 **起始版本:** 3.2 227 228 **参数:** 229 230 | 名称 | 描述 | 231 | -------- | -------- | 232 | slotId | 表示卡槽ID。 | 233 | serialId | 表示请求的序列化ID。 | 234 235 **返回:** 236 237 0 表示执行成功。 238 239 非零值 表示操作失败。 240 241 242 ### CallSupplement() 243 244 ``` 245 IRil::CallSupplement ([in] int slotId, [in] int serialId, [in] int type ) 246 ``` 247 **描述** 248 249 通话保持和恢复。 250 251 **起始版本:** 3.2 252 253 **参数:** 254 255 | 名称 | 描述 | 256 | -------- | -------- | 257 | slotId | 表示卡槽ID。 | 258 | serialId | 表示请求的序列化ID。 | 259 | type | 表示挂断的通话类型,0表示直接挂断,1表示挂断前台和后台,2表示挂断前台、恢复后台,3表示挂断所有通话。 | 260 261 **返回:** 262 263 0 表示执行成功。 264 265 非零值 表示操作失败。 266 267 268 ### ChangeSimPassword() 269 270 ``` 271 IRil::ChangeSimPassword ([in] int slotId, [in] int serialId, [in] struct SimPasswordInfo simPassword ) 272 ``` 273 **描述** 274 275 修改SIM卡密码。 276 277 **起始版本:** 3.2 278 279 **参数:** 280 281 | 名称 | 描述 | 282 | -------- | -------- | 283 | slotId | 表示卡槽ID。 | 284 | serialId | 表示请求的序列化ID。 | 285 | simPassword | 表示SIM卡密码信息,详见[SimPasswordInfo](_sim_password_info_v11.md)。 | 286 287 **返回:** 288 289 0 表示执行成功。 290 291 非零值 表示操作失败。 292 293 294 ### CombineConference() 295 296 ``` 297 IRil::CombineConference ([in] int slotId, [in] int serialId, [in] int callType ) 298 ``` 299 **描述** 300 301 合并为会议电话。 302 303 **起始版本:** 3.2 304 305 **参数:** 306 307 | 名称 | 描述 | 308 | -------- | -------- | 309 | slotId | 表示卡槽ID。 | 310 | serialId | 表示请求的序列化ID。 | 311 | callType | 表示通话类型,当前只能为0(即语音通话)。 | 312 313 **返回:** 314 315 0 表示执行成功。 316 317 非零值 表示操作失败。 318 319 320 ### DeactivatePdpContext() 321 322 ``` 323 IRil::DeactivatePdpContext ([in] int slotId, [in] int serialId, [in] struct UniInfo uniInfo ) 324 ``` 325 **描述** 326 327 断开数据业务。 328 329 **起始版本:** 3.2 330 331 **参数:** 332 333 | 名称 | 描述 | 334 | -------- | -------- | 335 | slotId | 表示卡槽ID。 | 336 | serialId | 表示请求的序列化ID。 | 337 | uniInfo | 表示通用信息,详见[UniInfo](_uni_info_v11.md)。 | 338 339 **返回:** 340 341 0 表示执行成功。 342 343 非零值 表示操作失败。 344 345 346 ### DelCdmaSimMessage() 347 348 ``` 349 IRil::DelCdmaSimMessage ([in] int slotId, [in] int serialId, [in] int index ) 350 ``` 351 **描述** 352 353 删除CDMA SIM卡短信。 354 355 **起始版本:** 3.2 356 357 **参数:** 358 359 | 名称 | 描述 | 360 | -------- | -------- | 361 | slotId | 表示卡槽ID。 | 362 | serialId | 表示请求的序列化ID。 | 363 | index | 表示消息索引。 | 364 365 **返回:** 366 367 0 表示执行成功。 368 369 非零值 表示操作失败。 370 371 372 ### DelSimMessage() 373 374 ``` 375 IRil::DelSimMessage ([in] int slotId, [in] int serialId, [in] int index ) 376 ``` 377 **描述** 378 379 删除GSM SIM卡短信。 380 381 **起始版本:** 3.2 382 383 **参数:** 384 385 | 名称 | 描述 | 386 | -------- | -------- | 387 | slotId | 表示卡槽ID。 | 388 | serialId | 表示请求的序列化ID。 | 389 | index | 表示消息索引。 | 390 391 **返回:** 392 393 0 表示执行成功。 394 395 非零值 表示操作失败。 396 397 398 ### Dial() 399 400 ``` 401 IRil::Dial ([in] int slotId, [in] int serialId, [in] struct DialInfo dialInfo ) 402 ``` 403 **描述** 404 405 拨打电话。 406 407 **起始版本:** 3.2 408 409 **参数:** 410 411 | 名称 | 描述 | 412 | -------- | -------- | 413 | slotId | 表示卡槽ID。 | 414 | serialId | 表示请求的序列化ID。 | 415 | dialInfo | 表示拨号信息,详见[DialInfo](_dial_info_v11.md)。 | 416 417 **返回:** 418 419 0 表示执行成功。 420 421 非零值 表示操作失败。 422 423 424 ### GetBasebandVersion() 425 426 ``` 427 IRil::GetBasebandVersion ([in] int slotId, [in] int serialId ) 428 ``` 429 **描述** 430 431 获取基带版本。 432 433 **起始版本:** 3.2 434 435 **参数:** 436 437 | 名称 | 描述 | 438 | -------- | -------- | 439 | slotId | 表示卡槽ID。 | 440 | serialId | 表示请求的序列化ID。 | 441 442 **返回:** 443 444 0 表示执行成功。 445 446 非零值 表示操作失败。 447 448 449 ### GetCallFailReason() 450 451 ``` 452 IRil::GetCallFailReason ([in] int slotId, [in] int serialId ) 453 ``` 454 **描述** 455 456 获取通话失败原因。 457 458 **起始版本:** 3.2 459 460 **参数:** 461 462 | 名称 | 描述 | 463 | -------- | -------- | 464 | slotId | 表示卡槽ID。 | 465 | serialId | 表示请求的序列化ID。 | 466 467 **返回:** 468 469 0 表示执行成功。 470 471 非零值 表示操作失败。 472 473 474 ### GetCallList() 475 476 ``` 477 IRil::GetCallList ([in] int slotId, [in] int serialId ) 478 ``` 479 **描述** 480 481 获取通话状态列表。 482 483 **起始版本:** 3.2 484 485 **参数:** 486 487 | 名称 | 描述 | 488 | -------- | -------- | 489 | slotId | 表示卡槽ID。 | 490 | serialId | 表示请求的序列化ID。 | 491 492 **返回:** 493 494 0 表示执行成功。 495 496 非零值 表示操作失败。 497 498 499 ### GetCallPreferenceMode() 500 501 ``` 502 IRil::GetCallPreferenceMode ([in] int slotId, [in] int serialId ) 503 ``` 504 **描述** 505 506 获取通话偏好模式。 507 508 **起始版本:** 3.2 509 510 **参数:** 511 512 | 名称 | 描述 | 513 | -------- | -------- | 514 | slotId | 表示卡槽ID。 | 515 | serialId | 表示请求的序列化ID。 | 516 517 **返回:** 518 519 0 表示执行成功。 520 521 非零值 表示操作失败。 522 523 524 ### GetCallRestriction() 525 526 ``` 527 IRil::GetCallRestriction ([in] int slotId, [in] int serialId, [in] String fac ) 528 ``` 529 **描述** 530 531 获取呼叫限制。 532 533 **起始版本:** 3.2 534 535 **参数:** 536 537 | 名称 | 描述 | 538 | -------- | -------- | 539 | slotId | 表示卡槽ID。 | 540 | serialId | 表示请求的序列化ID。 | 541 | fac | 表示呼叫限制操作对象。 | 542 543 **返回:** 544 545 0 表示执行成功。 546 547 非零值 表示操作失败。 548 549 550 ### GetCallTransferInfo() 551 552 ``` 553 IRil::GetCallTransferInfo ([in] int slotId, [in] int serialId, [in] int reason ) 554 ``` 555 **描述** 556 557 获取呼叫转移。 558 559 **起始版本:** 3.2 560 561 **参数:** 562 563 | 名称 | 描述 | 564 | -------- | -------- | 565 | slotId | 表示卡槽ID。 | 566 | serialId | 表示请求的序列化ID。 | 567 | reason | 表示呼叫转移的类型,0表示无条件转移,1表示用户忙时转移,2表示无回复时转移,3表示无法接通时转移。 | 568 569 **返回:** 570 571 0 表示执行成功。 572 573 非零值 表示操作失败。 574 575 576 ### GetCallWaiting() 577 578 ``` 579 IRil::GetCallWaiting ([in] int slotId, [in] int serialId ) 580 ``` 581 **描述** 582 583 获取呼叫等待。 584 585 **起始版本:** 3.2 586 587 **参数:** 588 589 | 名称 | 描述 | 590 | -------- | -------- | 591 | slotId | 表示卡槽ID。 | 592 | serialId | 表示请求的序列化ID。 | 593 594 **返回:** 595 596 0 表示执行成功。 597 598 非零值 表示操作失败。 599 600 601 ### GetCBConfig() 602 603 ``` 604 IRil::GetCBConfig ([in] int slotId, [in] int serialId ) 605 ``` 606 **描述** 607 608 获取GSM小区广播配置。 609 610 **起始版本:** 3.2 611 612 **参数:** 613 614 | 名称 | 描述 | 615 | -------- | -------- | 616 | slotId | 表示卡槽ID。 | 617 | serialId | 表示请求的序列化ID。 | 618 619 **返回:** 620 621 0 表示执行成功。 622 623 非零值 表示操作失败。 624 625 626 ### GetCdmaCBConfig() 627 628 ``` 629 IRil::GetCdmaCBConfig ([in] int slotId, [in] int serialId ) 630 ``` 631 **描述** 632 633 获取CDMA小区广播配置。 634 635 **起始版本:** 3.2 636 637 **参数:** 638 639 | 名称 | 描述 | 640 | -------- | -------- | 641 | slotId | 表示卡槽ID。 | 642 | serialId | 表示请求的序列化ID。 | 643 644 **返回:** 645 646 0 表示执行成功。 647 648 非零值 表示操作失败。 649 650 651 ### GetClip() 652 653 ``` 654 IRil::GetClip ([in] int slotId, [in] int serialId ) 655 ``` 656 **描述** 657 658 获取主叫号码显示(CLIP)。 659 660 **起始版本:** 3.2 661 662 **参数:** 663 664 | 名称 | 描述 | 665 | -------- | -------- | 666 | slotId | 表示卡槽ID。 | 667 | serialId | 表示请求的序列化ID。 | 668 669 **返回:** 670 671 0 表示执行成功。 672 673 非零值 表示操作失败。 674 675 676 ### GetClir() 677 678 ``` 679 IRil::GetClir ([in] int slotId, [in] int serialId ) 680 ``` 681 **描述** 682 683 获取主叫号码显示限制(CLIR)。 684 685 **起始版本:** 3.2 686 687 **参数:** 688 689 | 名称 | 描述 | 690 | -------- | -------- | 691 | slotId | 表示卡槽ID。 | 692 | serialId | 表示请求的序列化ID。 | 693 694 **返回:** 695 696 0 表示执行成功。 697 698 非零值 表示操作失败。 699 700 701 ### GetCsRegStatus() 702 703 ``` 704 IRil::GetCsRegStatus ([in] int slotId, [in] int serialId ) 705 ``` 706 **描述** 707 708 获取电路(CS)域注册状态。 709 710 **起始版本:** 3.2 711 712 **参数:** 713 714 | 名称 | 描述 | 715 | -------- | -------- | 716 | slotId | 表示卡槽ID。 | 717 | serialId | 表示请求的序列化ID。 | 718 719 **返回:** 720 721 0 表示执行成功。 722 723 非零值 表示操作失败。 724 725 726 ### GetCurrentCellInfo() 727 728 ``` 729 IRil::GetCurrentCellInfo ([in] int slotId, [in] int serialId ) 730 ``` 731 **描述** 732 733 获取小区信息。 734 735 **起始版本:** 3.2 736 737 **参数:** 738 739 | 名称 | 描述 | 740 | -------- | -------- | 741 | slotId | 表示卡槽ID。 | 742 | serialId | 表示请求的序列化ID。 | 743 744 **返回:** 745 746 0 表示执行成功。 747 748 非零值 表示操作失败。 749 750 751 ### GetEmergencyCallList() 752 753 ``` 754 IRil::GetEmergencyCallList ([in] int slotId, [in] int serialId ) 755 ``` 756 **描述** 757 758 获取紧急号码。 759 760 **起始版本:** 3.2 761 762 **参数:** 763 764 | 名称 | 描述 | 765 | -------- | -------- | 766 | slotId | 表示卡槽ID。 | 767 | serialId | 表示请求的序列化ID。 | 768 769 **返回:** 770 771 0 表示执行成功。 772 773 非零值 表示操作失败。 774 775 776 ### GetImei() 777 778 ``` 779 IRil::GetImei ([in] int slotId, [in] int serialId ) 780 ``` 781 **描述** 782 783 获取国际移动设备识别码。 784 785 **起始版本:** 3.2 786 787 **参数:** 788 789 | 名称 | 描述 | 790 | -------- | -------- | 791 | slotId | 表示卡槽ID。 | 792 | serialId | 表示请求的序列化ID。 | 793 794 **返回:** 795 796 0 表示执行成功。 797 798 非零值 表示操作失败。 799 800 801 ### GetImsi() 802 803 ``` 804 IRil::GetImsi ([in] int slotId, [in] int serialId ) 805 ``` 806 **描述** 807 808 获取SIM卡国际移动用户识别码。 809 810 **起始版本:** 3.2 811 812 **参数:** 813 814 | 名称 | 描述 | 815 | -------- | -------- | 816 | slotId | 表示卡槽ID。 | 817 | serialId | 表示请求的序列化ID。 | 818 819 **返回:** 820 821 0 表示执行成功。 822 823 非零值 表示操作失败。 824 825 826 ### GetLinkBandwidthInfo() 827 828 ``` 829 IRil::GetLinkBandwidthInfo ([in] int slotId, [in] int serialId, [in] int cid ) 830 ``` 831 **描述** 832 833 获取当前链路信息。 834 835 **起始版本:** 3.2 836 837 **参数:** 838 839 | 名称 | 描述 | 840 | -------- | -------- | 841 | slotId | 表示卡槽ID。 | 842 | serialId | 表示请求的序列化ID。 | 843 | cid | PDP上下文标识符。 | 844 845 **返回:** 846 847 0 表示执行成功。 848 849 非零值 表示操作失败。 850 851 852 ### GetLinkCapability() 853 854 ``` 855 IRil::GetLinkCapability ([in] int slotId, [in] int serialId ) 856 ``` 857 **描述** 858 859 获取链接功能。 860 861 **起始版本:** 4.0 862 863 **参数:** 864 865 | 名称 | 描述 | 866 | -------- | -------- | 867 | slotId | 表示卡槽ID。 | 868 | serialId | 表示请求的序列化ID。 | 869 870 **返回:** 871 872 0 表示执行成功。 873 874 非零值 表示操作失败。 875 876 877 ### GetMeid() 878 879 ``` 880 IRil::GetMeid ([in] int slotId, [in] int serialId ) 881 ``` 882 **描述** 883 884 获取移动设备识别码。 885 886 **起始版本:** 3.2 887 888 **参数:** 889 890 | 名称 | 描述 | 891 | -------- | -------- | 892 | slotId | 表示卡槽ID。 | 893 | serialId | 表示请求的序列化ID。 | 894 895 **返回:** 896 897 0 表示执行成功。 898 899 非零值 表示操作失败。 900 901 902 ### GetMute() 903 904 ``` 905 IRil::GetMute ([in] int slotId, [in] int serialId ) 906 ``` 907 **描述** 908 909 获取静音。 910 911 **起始版本:** 3.2 912 913 **参数:** 914 915 | 名称 | 描述 | 916 | -------- | -------- | 917 | slotId | 表示卡槽ID。 | 918 | serialId | 表示请求的序列化ID。 | 919 920 **返回:** 921 922 0 表示执行成功。 923 924 非零值 表示操作失败。 925 926 927 ### GetNeighboringCellInfoList() 928 929 ``` 930 IRil::GetNeighboringCellInfoList ([in] int slotId, [in] int serialId ) 931 ``` 932 **描述** 933 934 获取相邻小区信息。 935 936 **起始版本:** 3.2 937 938 **参数:** 939 940 | 名称 | 描述 | 941 | -------- | -------- | 942 | slotId | 表示卡槽ID。 | 943 | serialId | 表示请求的序列化ID。 | 944 945 **返回:** 946 947 0 表示执行成功。 948 949 非零值 表示操作失败。 950 951 952 ### GetNetworkSearchInformation() 953 954 ``` 955 IRil::GetNetworkSearchInformation ([in] int slotId, [in] int serialId ) 956 ``` 957 **描述** 958 959 获取可用网络信息。 960 961 **起始版本:** 3.2 962 963 **参数:** 964 965 | 名称 | 描述 | 966 | -------- | -------- | 967 | slotId | 表示卡槽ID。 | 968 | serialId | 表示请求的序列化ID。 | 969 970 **返回:** 971 972 0 表示执行成功。 973 974 非零值 表示操作失败。 975 976 977 ### GetNetworkSelectionMode() 978 979 ``` 980 IRil::GetNetworkSelectionMode ([in] int slotId, [in] int serialId ) 981 ``` 982 **描述** 983 984 获取选网模式。 985 986 **起始版本:** 3.2 987 988 **参数:** 989 990 | 名称 | 描述 | 991 | -------- | -------- | 992 | slotId | 表示卡槽ID。 | 993 | serialId | 表示请求的序列化ID。 | 994 995 **返回:** 996 997 0 表示执行成功。 998 999 非零值 表示操作失败。 1000 1001 1002 ### GetNrOptionMode() 1003 1004 ``` 1005 IRil::GetNrOptionMode ([in] int slotId, [in] int serialId ) 1006 ``` 1007 **描述** 1008 1009 获取NR选项模式。 1010 1011 **起始版本:** 4.0 1012 1013 **参数:** 1014 1015 | 名称 | 描述 | 1016 | -------- | -------- | 1017 | slotId | 表示卡槽ID。 | 1018 | serialId | 表示请求的序列化ID。 | 1019 1020 **返回:** 1021 1022 Returns 0 表示执行成功。 1023 1024 Returns a 非零值 表示操作失败。 1025 1026 1027 ### GetOperatorInfo() 1028 1029 ``` 1030 IRil::GetOperatorInfo ([in] int slotId, [in] int serialId ) 1031 ``` 1032 **描述** 1033 1034 获取运营商名称信息。 1035 1036 **起始版本:** 3.2 1037 1038 **参数:** 1039 1040 | 名称 | 描述 | 1041 | -------- | -------- | 1042 | slotId | 表示卡槽ID。 | 1043 | serialId | 表示请求的序列化ID。 | 1044 1045 **返回:** 1046 1047 0 表示执行成功。 1048 1049 非零值 表示操作失败。 1050 1051 1052 ### GetPdpContextList() 1053 1054 ``` 1055 IRil::GetPdpContextList ([in] int slotId, [in] int serialId, [in] struct UniInfo uniInfo ) 1056 ``` 1057 **描述** 1058 1059 获取当前所有数据连接状态。 1060 1061 **起始版本:** 3.2 1062 1063 **参数:** 1064 1065 | 名称 | 描述 | 1066 | -------- | -------- | 1067 | slotId | 表示卡槽ID。 | 1068 | serialId | 表示请求的序列化ID。 | 1069 | uniInfo | 表示通用信息,详见[UniInfo](_uni_info_v11.md)。 | 1070 1071 **返回:** 1072 1073 0 表示执行成功。 1074 1075 非零值 表示操作失败。 1076 1077 1078 ### GetPhysicalChannelConfig() 1079 1080 ``` 1081 IRil::GetPhysicalChannelConfig ([in] int slotId, [in] int serialId ) 1082 ``` 1083 **描述** 1084 1085 获取物理通道配置。 1086 1087 **起始版本:** 3.2 1088 1089 **参数:** 1090 1091 | 名称 | 描述 | 1092 | -------- | -------- | 1093 | slotId | 表示卡槽ID。 | 1094 | serialId | 表示请求的序列化ID。 | 1095 1096 **返回:** 1097 1098 0 表示执行成功。 1099 1100 非零值 表示操作失败。 1101 1102 1103 ### GetPreferredNetwork() 1104 1105 ``` 1106 IRil::GetPreferredNetwork ([in] int slotId, [in] int serialId ) 1107 ``` 1108 **描述** 1109 1110 获取首选网络类型。 1111 1112 **起始版本:** 3.2 1113 1114 **参数:** 1115 1116 | 名称 | 描述 | 1117 | -------- | -------- | 1118 | slotId | 表示卡槽ID。 | 1119 | serialId | 表示请求的序列化ID。 | 1120 1121 **返回:** 1122 1123 0 表示执行成功。 1124 1125 非零值 表示操作失败。 1126 1127 1128 ### GetPsRegStatus() 1129 1130 ``` 1131 IRil::GetPsRegStatus ([in] int slotId, [in] int serialId ) 1132 ``` 1133 **描述** 1134 1135 获取分组(PS)域注册状态。 1136 1137 **起始版本:** 3.2 1138 1139 **参数:** 1140 1141 | 名称 | 描述 | 1142 | -------- | -------- | 1143 | slotId | 表示卡槽ID。 | 1144 | serialId | 表示请求的序列化ID。 | 1145 1146 **返回:** 1147 1148 0 表示执行成功。 1149 1150 非零值 表示操作失败。 1151 1152 1153 ### GetRadioProtocol() 1154 1155 ``` 1156 IRil::GetRadioProtocol ([in] int slotId, [in] int serialId ) 1157 ``` 1158 **描述** 1159 1160 获取主副卡协议栈。 1161 1162 **起始版本:** 3.2 1163 1164 **参数:** 1165 1166 | 名称 | 描述 | 1167 | -------- | -------- | 1168 | slotId | 表示卡槽ID。 | 1169 | serialId | 表示请求的序列化ID。 | 1170 1171 **返回:** 1172 1173 0 表示执行成功。 1174 1175 非零值 表示操作失败。 1176 1177 1178 ### GetRadioState() 1179 1180 ``` 1181 IRil::GetRadioState ([in] int slotId, [in] int serialId ) 1182 ``` 1183 **描述** 1184 1185 获取Modem状态。 1186 1187 **起始版本:** 3.2 1188 1189 **参数:** 1190 1191 | 名称 | 描述 | 1192 | -------- | -------- | 1193 | slotId | 表示卡槽ID。 | 1194 | serialId | 表示请求的序列化ID。 | 1195 1196 **返回:** 1197 1198 0 表示执行成功。 1199 1200 非零值 表示操作失败。 1201 1202 1203 ### GetRrcConnectionState() 1204 1205 ``` 1206 IRil::GetRrcConnectionState ([in] int slotId, [in] int serialId ) 1207 ``` 1208 **描述** 1209 1210 获取RRC连接状态. 1211 1212 **起始版本:** 4.0 1213 1214 **参数:** 1215 1216 | 名称 | 描述 | 1217 | -------- | -------- | 1218 | slotId | 表示卡槽ID。 | 1219 | serialId | 表示请求的序列化ID。 | 1220 1221 **返回:** 1222 1223 Returns 0 表示执行成功。 1224 1225 Returns 非零值 表示操作失败。 1226 1227 1228 ### GetSignalStrength() 1229 1230 ``` 1231 IRil::GetSignalStrength ([in] int slotId, [in] int serialId ) 1232 ``` 1233 **描述** 1234 1235 获取信号强度。 1236 1237 **起始版本:** 3.2 1238 1239 **参数:** 1240 1241 | 名称 | 描述 | 1242 | -------- | -------- | 1243 | slotId | 表示卡槽ID。 | 1244 | serialId | 表示请求的序列化ID。 | 1245 1246 **返回:** 1247 1248 0 表示执行成功。 1249 1250 非零值 表示操作失败。 1251 1252 1253 ### GetSimIO() 1254 1255 ``` 1256 IRil::GetSimIO ([in] int slotId, [in] int serialId, [in] struct SimIoRequestInfo simIO ) 1257 ``` 1258 **描述** 1259 1260 获取SIM卡数据。 1261 1262 **起始版本:** 3.2 1263 1264 **参数:** 1265 1266 | 名称 | 描述 | 1267 | -------- | -------- | 1268 | slotId | 表示卡槽ID。 | 1269 | serialId | 表示请求的序列化ID。 | 1270 | [SimIoRequestInfo](_sim_io_request_info_v11.md) | 表示SIM卡数据请求信息,详见[SimIoRequestInfo](_sim_io_request_info_v11.md)。 | 1271 1272 **返回:** 1273 1274 0 表示执行成功。 1275 1276 非零值 表示操作失败。 1277 1278 1279 ### GetSimLockStatus() 1280 1281 ``` 1282 IRil::GetSimLockStatus ([in] int slotId, [in] int serialId, [in] struct SimLockInfo simLockInfo ) 1283 ``` 1284 **描述** 1285 1286 获取SIM卡锁状态。 1287 1288 **起始版本:** 3.2 1289 1290 **参数:** 1291 1292 | 名称 | 描述 | 1293 | -------- | -------- | 1294 | slotId | 表示卡槽ID。 | 1295 | serialId | 表示请求的序列化ID。 | 1296 | [SimLockInfo](_sim_lock_info_v11.md) | 表示SIM卡锁信息,详见[SimLockInfo](_sim_lock_info_v11.md)。 | 1297 1298 **返回:** 1299 1300 0 表示执行成功。 1301 1302 非零值 表示操作失败。 1303 1304 1305 ### GetSimStatus() 1306 1307 ``` 1308 IRil::GetSimStatus ([in] int slotId, [in] int serialId ) 1309 ``` 1310 **描述** 1311 1312 获取SIM卡状态。 1313 1314 **起始版本:** 3.2 1315 1316 **参数:** 1317 1318 | 名称 | 描述 | 1319 | -------- | -------- | 1320 | slotId | 表示卡槽ID。 | 1321 | serialId | 表示请求的序列化ID。 | 1322 1323 **返回:** 1324 1325 0 表示执行成功。 1326 1327 非零值 表示操作失败。 1328 1329 1330 ### GetSmscAddr() 1331 1332 ``` 1333 IRil::GetSmscAddr ([in] int slotId, [in] int serialId ) 1334 ``` 1335 **描述** 1336 1337 获取短信中心地址。 1338 1339 **起始版本:** 3.2 1340 1341 **参数:** 1342 1343 | 名称 | 描述 | 1344 | -------- | -------- | 1345 | slotId | 表示卡槽ID。 | 1346 | serialId | 表示请求的序列化ID。 | 1347 1348 **返回:** 1349 1350 0 表示执行成功。 1351 1352 非零值 表示操作失败。 1353 1354 1355 ### GetUssd() 1356 1357 ``` 1358 IRil::GetUssd ([in] int slotId, [in] int serialId ) 1359 ``` 1360 **描述** 1361 1362 获取Ussd业务。 1363 1364 **起始版本:** 3.2 1365 1366 **参数:** 1367 1368 | 名称 | 描述 | 1369 | -------- | -------- | 1370 | slotId | 表示卡槽ID。 | 1371 | serialId | 表示请求的序列化ID。 | 1372 1373 **返回:** 1374 1375 0 表示执行成功。 1376 1377 非零值 表示操作失败。 1378 1379 1380 ### GetVoiceRadioTechnology() 1381 1382 ``` 1383 IRil::GetVoiceRadioTechnology ([in] int slotId, [in] int serialId ) 1384 ``` 1385 **描述** 1386 1387 获取电路(CS)域接入技术。 1388 1389 **起始版本:** 3.2 1390 1391 **参数:** 1392 1393 | 名称 | 描述 | 1394 | -------- | -------- | 1395 | slotId | 表示卡槽ID。 | 1396 | serialId | 表示请求的序列化ID。 | 1397 1398 **返回:** 1399 1400 0 表示执行成功。 1401 1402 非零值 表示操作失败。 1403 1404 1405 ### Hangup() 1406 1407 ``` 1408 IRil::Hangup ([in] int slotId, [in] int serialId, [in] int callId ) 1409 ``` 1410 **描述** 1411 1412 挂断电话。 1413 1414 **起始版本:** 3.2 1415 1416 **参数:** 1417 1418 | 名称 | 描述 | 1419 | -------- | -------- | 1420 | slotId | 表示卡槽ID。 | 1421 | serialId | 表示请求的序列化ID。 | 1422 | callId | 表示通话ID。 | 1423 1424 **返回:** 1425 1426 0 表示执行成功。 1427 1428 非零值 表示操作失败。 1429 1430 1431 ### HoldCall() 1432 1433 ``` 1434 IRil::HoldCall ([in] int slotId, [in] int serialId ) 1435 ``` 1436 **描述** 1437 1438 保持通话。 1439 1440 **起始版本:** 3.2 1441 1442 **参数:** 1443 1444 | 名称 | 描述 | 1445 | -------- | -------- | 1446 | slotId | 表示卡槽ID。 | 1447 | serialId | 表示请求的序列化ID。 | 1448 1449 **返回:** 1450 1451 0 表示执行成功。 1452 1453 非零值 表示操作失败。 1454 1455 1456 ### Reject() 1457 1458 ``` 1459 IRil::Reject ([in] int slotId, [in] int serialId ) 1460 ``` 1461 **描述** 1462 1463 拒接电话。 1464 1465 **起始版本:** 3.2 1466 1467 **参数:** 1468 1469 | 名称 | 描述 | 1470 | -------- | -------- | 1471 | slotId | 表示卡槽ID。 | 1472 | serialId | 表示请求的序列化ID。 | 1473 1474 **返回:** 1475 1476 0 表示执行成功。 1477 1478 非零值 表示操作失败。 1479 1480 1481 ### SendCdmaSms() 1482 1483 ``` 1484 IRil::SendCdmaSms ([in] int slotId, [in] int serialId, [in] struct SendCdmaSmsMessageInfo cdmaSmsMessageInfo ) 1485 ``` 1486 **描述** 1487 1488 发送码分多址(CDMA)短信。 1489 1490 **起始版本:** 3.2 1491 1492 **参数:** 1493 1494 | 名称 | 描述 | 1495 | -------- | -------- | 1496 | slotId | 表示卡槽ID。 | 1497 | serialId | 表示请求的序列化ID。 | 1498 | cdmaSmsMessageInfo | 表示CDMA短信信息,详见[SendCdmaSmsMessageInfo](_send_cdma_sms_message_info_v11.md)。 | 1499 1500 **返回:** 1501 1502 0 表示执行成功。 1503 1504 非零值 表示操作失败。 1505 1506 1507 ### SendDataPerformanceMode() 1508 1509 ``` 1510 IRil::SendDataPerformanceMode ([in] int slotId, [in] int serialId, [in] struct DataPerformanceInfo dataPerformanceInfo ) 1511 ``` 1512 **描述** 1513 1514 发送数据业务性能模式。 1515 1516 **起始版本:** 3.2 1517 1518 **参数:** 1519 1520 | 名称 | 描述 | 1521 | -------- | -------- | 1522 | slotId | 表示卡槽ID。 | 1523 | serialId | 表示请求的序列化ID。 | 1524 | dataPerformanceInfo | 表示数据业务性能模式,详见[DataPerformanceInfo](_data_performance_info_v11.md)。 | 1525 1526 **返回:** 1527 1528 0 表示执行成功。 1529 1530 非零值 表示操作失败。 1531 1532 1533 ### SendDataSleepMode() 1534 1535 ``` 1536 IRil::SendDataSleepMode ([in] int slotId, [in] int serialId, [in] struct DataSleepInfo dataSleepInfo ) 1537 ``` 1538 **描述** 1539 1540 发送数据业务睡眠模式。 1541 1542 **起始版本:** 3.2 1543 1544 **参数:** 1545 1546 | 名称 | 描述 | 1547 | -------- | -------- | 1548 | slotId | 表示卡槽ID。 | 1549 | serialId | 表示请求的序列化ID。 | 1550 | dataSleepInfo | 表示数据业务睡眠模式,详见[DataSleepInfo](_data_sleep_info_v11.md)。 | 1551 1552 **返回:** 1553 1554 0 表示执行成功。 1555 1556 非零值 表示操作失败。 1557 1558 1559 ### SendDtmf() 1560 1561 ``` 1562 IRil::SendDtmf ([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo ) 1563 ``` 1564 **描述** 1565 1566 发送双音多频(DTMF)。 1567 1568 **起始版本:** 3.2 1569 1570 **参数:** 1571 1572 | 名称 | 描述 | 1573 | -------- | -------- | 1574 | slotId | 表示卡槽ID。 | 1575 | serialId | 表示请求的序列化ID。 | 1576 | dtmfInfo | 表示DTMF信息,详见[DtmfInfo](_dtmf_info_v11.md)。 | 1577 1578 **返回:** 1579 1580 0 表示执行成功。 1581 1582 非零值 表示操作失败。 1583 1584 1585 ### SendGsmSms() 1586 1587 ``` 1588 IRil::SendGsmSms ([in] int slotId, [in] int serialId, [in] struct GsmSmsMessageInfo gsmSmsMessageInfo ) 1589 ``` 1590 **描述** 1591 1592 发送全球移动通信系统 (GSM)短信。 1593 1594 **起始版本:** 3.2 1595 1596 **参数:** 1597 1598 | 名称 | 描述 | 1599 | -------- | -------- | 1600 | slotId | 表示卡槽ID。 | 1601 | serialId | 表示请求的序列化ID。 | 1602 | gsmSmsMessageInfo | 表示GSM短信信息,详见[GsmSmsMessageInfo](_gsm_sms_message_info_v11.md)。 | 1603 1604 **返回:** 1605 1606 0 表示执行成功。 1607 1608 非零值 表示操作失败。 1609 1610 1611 ### SendRilAck() 1612 1613 ``` 1614 IRil::SendRilAck () 1615 ``` 1616 **描述** 1617 1618 发送应答给无线接口层(RIL)。 1619 1620 **起始版本:** 3.2 1621 1622 **返回:** 1623 1624 0 表示执行成功。 1625 1626 非零值 表示操作失败。 1627 1628 1629 ### SendSmsAck() 1630 1631 ``` 1632 IRil::SendSmsAck ([in] int slotId, [in] int serialId, [in] struct ModeData modeData ) 1633 ``` 1634 **描述** 1635 1636 确认接收新短信。 1637 1638 **起始版本:** 3.2 1639 1640 **参数:** 1641 1642 | 名称 | 描述 | 1643 | -------- | -------- | 1644 | slotId | 表示卡槽ID。 | 1645 | serialId | 表示请求的序列化ID。 | 1646 | modeData | 表示接收短信处理模式,详见[ModeData](_mode_data_v11.md)。 | 1647 1648 **返回:** 1649 1650 0 表示执行成功。 1651 1652 非零值 表示操作失败。 1653 1654 1655 ### SendSmsMoreMode() 1656 1657 ``` 1658 IRil::SendSmsMoreMode ([in] int slotId, [in] int serialId, [in] struct GsmSmsMessageInfo gsmSmsMessageInfo ) 1659 ``` 1660 **描述** 1661 1662 发送GSM长短信。 1663 1664 **起始版本:** 3.2 1665 1666 **参数:** 1667 1668 | 名称 | 描述 | 1669 | -------- | -------- | 1670 | slotId | 表示卡槽ID。 | 1671 | serialId | 表示请求的序列化ID。 | 1672 | gsmSmsMessageInfo | 表示GSM短信信息,详见[GsmSmsMessageInfo](_gsm_sms_message_info_v11.md)。 | 1673 1674 **返回:** 1675 1676 0 表示执行成功。 1677 1678 非零值 表示操作失败。 1679 1680 1681 ### SeparateConference() 1682 1683 ``` 1684 IRil::SeparateConference ([in] int slotId, [in] int serialId, [in] int callId, [in] int callType ) 1685 ``` 1686 **描述** 1687 1688 与会议电话分离。 1689 1690 **起始版本:** 3.2 1691 1692 **参数:** 1693 1694 | 名称 | 描述 | 1695 | -------- | -------- | 1696 | slotId | 表示卡槽ID。 | 1697 | serialId | 表示请求的序列化ID。 | 1698 | callId | 表示通话ID。 | 1699 | callType | 表示通话类型,当前只能为0(即语音通话)。 | 1700 1701 **返回:** 1702 1703 0 表示执行成功。 1704 1705 非零值 表示操作失败。 1706 1707 1708 ### SetActiveSim() 1709 1710 ``` 1711 IRil::SetActiveSim ([in] int slotId, [in] int serialId, [in] int index, [in] int enable ) 1712 ``` 1713 **描述** 1714 1715 激活去激活SIM卡。 1716 1717 **起始版本:** 3.2 1718 1719 **参数:** 1720 1721 | 名称 | 描述 | 1722 | -------- | -------- | 1723 | slotId | 表示卡槽ID。 | 1724 | serialId | 表示请求的序列化ID。 | 1725 | index | 表示索引值。 | 1726 | enable | 表示激活状态,0为去激活,1为激活。 | 1727 1728 **返回:** 1729 1730 0 表示执行成功。 1731 1732 非零值 表示操作失败。 1733 1734 1735 ### SetBarringPassword() 1736 1737 ``` 1738 IRil::SetBarringPassword ([in] int slotId, [in] int serialId, [in] struct SetBarringInfo setBarringInfo ) 1739 ``` 1740 **描述** 1741 1742 设置呼叫限制密码。 1743 1744 **起始版本:** 3.2 1745 1746 **参数:** 1747 1748 | 名称 | 描述 | 1749 | -------- | -------- | 1750 | slotId | 表示卡槽ID。 | 1751 | serialId | 表示请求的序列化ID。 | 1752 | setBarringInfo | 表示设置呼叫限制密码的信息,详见[SetBarringInfo](_set_barring_info_v11.md)。 | 1753 1754 **返回:** 1755 1756 0 表示执行成功。 1757 1758 非零值 表示操作失败。 1759 1760 1761 ### SetCallback() 1762 1763 ``` 1764 IRil::SetCallback ([in] IRilCallback rilCallback) 1765 ``` 1766 **描述** 1767 1768 设置IRil回调接口,回调函数参考[IRilCallback](interface_i_ril_callback_v11.md)。 1769 1770 **起始版本:** 3.2 1771 1772 **参数:** 1773 1774 | 名称 | 描述 | 1775 | -------- | -------- | 1776 | rilCallback | 要设置的回调函数。 | 1777 1778 **返回:** 1779 1780 0 表示执行成功。 1781 1782 非零值 表示操作失败。 1783 1784 1785 ### SetCallPreferenceMode() 1786 1787 ``` 1788 IRil::SetCallPreferenceMode ([in] int slotId, [in] int serialId, [in] int mode ) 1789 ``` 1790 **描述** 1791 1792 设置通话偏好模式。 1793 1794 **起始版本:** 3.2 1795 1796 **参数:** 1797 1798 | 名称 | 描述 | 1799 | -------- | -------- | 1800 | slotId | 表示卡槽ID。 | 1801 | serialId | 表示请求的序列化ID。 | 1802 | mode | 表示通话偏好模式,1表示仅电路(CS)域通话,2表示电路(CS)域通话优先,3表示IP多媒体系统(IMS)通话优先,4表示仅IP多媒体系统(IMS)通话。 | 1803 1804 **返回:** 1805 1806 0 表示执行成功。 1807 1808 非零值 表示操作失败。 1809 1810 1811 ### SetCallRestriction() 1812 1813 ``` 1814 IRil::SetCallRestriction ([in] int slotId, [in] int serialId, [in] struct CallRestrictionInfo callRestrictionInfo ) 1815 ``` 1816 **描述** 1817 1818 设置呼叫限制。 1819 1820 **起始版本:** 3.2 1821 1822 **参数:** 1823 1824 | 名称 | 描述 | 1825 | -------- | -------- | 1826 | slotId | 表示卡槽ID。 | 1827 | serialId | 表示请求的序列化ID。 | 1828 | callRestrictionInfo | 表示呼叫限制信息,详见[CallRestrictionInfo](_call_restriction_info_v11.md)。 | 1829 1830 **返回:** 1831 1832 0 表示执行成功。 1833 1834 非零值 表示操作失败。 1835 1836 1837 ### SetCallTransferInfo() 1838 1839 ``` 1840 IRil::SetCallTransferInfo ([in] int slotId, [in] int serialId, [in] struct CallForwardSetInfo callForwardSetInfo ) 1841 ``` 1842 **描述** 1843 1844 设置呼叫转移。 1845 1846 **起始版本:** 3.2 1847 1848 **参数:** 1849 1850 | 名称 | 描述 | 1851 | -------- | -------- | 1852 | slotId | 表示卡槽ID。 | 1853 | serialId | 表示请求的序列化ID。 | 1854 | callForwardSetInfo | 表示呼叫转移信息,详见[CallForwardSetInfo](_call_forward_set_info_v11.md)。 | 1855 1856 **返回:** 1857 1858 0 表示执行成功。 1859 1860 非零值 表示操作失败。 1861 1862 1863 ### SetCallWaiting() 1864 1865 ``` 1866 IRil::SetCallWaiting ([in] int slotId, [in] int serialId, [in] int activate ) 1867 ``` 1868 **描述** 1869 1870 设置呼叫等待。 1871 1872 **起始版本:** 3.2 1873 1874 **参数:** 1875 1876 | 名称 | 描述 | 1877 | -------- | -------- | 1878 | slotId | 表示卡槽ID。 | 1879 | serialId | 表示请求的序列化ID。 | 1880 | activate | 表示禁止或使能呼叫等待功能,0表示禁止,1表示使能。 | 1881 1882 **返回:** 1883 1884 0 表示执行成功。 1885 1886 非零值 表示操作失败。 1887 1888 1889 ### SetCBConfig() 1890 1891 ``` 1892 IRil::SetCBConfig ([in] int slotId, [in] int serialId, [in] struct CBConfigInfo cellBroadcastInfo ) 1893 ``` 1894 **描述** 1895 1896 激活GSM小区广播。 1897 1898 **起始版本:** 3.2 1899 1900 **参数:** 1901 1902 | 名称 | 描述 | 1903 | -------- | -------- | 1904 | slotId | 表示卡槽ID。 | 1905 | serialId | 表示请求的序列化ID。 | 1906 | cellBroadcastInfo | 表示GSM小区广播配置信息,详见[CBConfigInfo](_c_b_config_info_v11.md)。 | 1907 1908 **返回:** 1909 1910 0 表示执行成功。 1911 1912 非零值 表示操作失败。 1913 1914 1915 ### SetCdmaCBConfig() 1916 1917 ``` 1918 IRil::SetCdmaCBConfig ([in] int slotId, [in] int serialId, [in] struct CdmaCBConfigInfoList cdmaCBConfigInfoList ) 1919 ``` 1920 **描述** 1921 1922 激活CDMA小区广播。 1923 1924 **起始版本:** 3.2 1925 1926 **参数:** 1927 1928 | 名称 | 描述 | 1929 | -------- | -------- | 1930 | slotId | 表示卡槽ID。 | 1931 | serialId | 表示请求的序列化ID。 | 1932 | cdmaCBConfigInfoList | 表示CDMA小区广播配置信息列表,详见[CdmaCBConfigInfoList](_cdma_c_b_config_info_list_v11.md)。 | 1933 1934 **返回:** 1935 1936 0 表示执行成功。 1937 1938 非零值 表示操作失败。 1939 1940 1941 ### SetClip() 1942 1943 ``` 1944 IRil::SetClip ([in] int slotId, [in] int serialId, [in] int action ) 1945 ``` 1946 **描述** 1947 1948 设置主叫号码显示。 1949 1950 **起始版本:** 3.2 1951 1952 **参数:** 1953 1954 | 名称 | 描述 | 1955 | -------- | -------- | 1956 | slotId | 表示卡槽ID。 | 1957 | serialId | 表示请求的序列化ID。 | 1958 | action | 表示禁止或使能主叫号码显示功能,0表示禁止,1表示使能。 | 1959 1960 **返回:** 1961 1962 0 表示执行成功。 1963 1964 非零值 表示操作失败。 1965 1966 1967 ### SetClir() 1968 1969 ``` 1970 IRil::SetClir ([in] int slotId, [in] int serialId, [in] int action ) 1971 ``` 1972 **描述** 1973 1974 设置主叫号码显示限制。 1975 1976 **起始版本:** 3.2 1977 1978 **参数:** 1979 1980 | 名称 | 描述 | 1981 | -------- | -------- | 1982 | slotId | 表示卡槽ID。 | 1983 | serialId | 表示请求的序列化ID。 | 1984 | action | 表示禁止或使能主叫号码显示限制功能,0表示禁止,1表示使能。 | 1985 1986 **返回:** 1987 1988 0 表示执行成功。 1989 1990 非零值 表示操作失败。 1991 1992 1993 ### SetDataPermitted() 1994 1995 ``` 1996 IRil::SetDataPermitted ([in] int slotId, [in] int serialId, [in] int dataPermitted ) 1997 ``` 1998 **描述** 1999 2000 使能SIM卡槽数据业务。 2001 2002 **起始版本:** 3.2 2003 2004 **参数:** 2005 2006 | 名称 | 描述 | 2007 | -------- | -------- | 2008 | slotId | 表示卡槽ID。 | 2009 | serialId | 表示请求的序列化ID。 | 2010 | dataPermitted | 表示是否使能,0表示不使能,1表示使能。 | 2011 2012 **返回:** 2013 2014 0 表示执行成功。 2015 2016 非零值 表示操作失败。 2017 2018 2019 ### SetDataProfileInfo() 2020 2021 ``` 2022 IRil::SetDataProfileInfo ([in] int slotId, [in] int serialId, [in] struct DataProfilesInfo dataProfilesInfo ) 2023 ``` 2024 **描述** 2025 2026 设置数据业务使用的PDP上下文信息。 2027 2028 **起始版本:** 3.2 2029 2030 **参数:** 2031 2032 | 名称 | 描述 | 2033 | -------- | -------- | 2034 | slotId | 表示卡槽ID。 | 2035 | serialId | 表示请求的序列化ID。 | 2036 | dataProfilesInfo | 表示PDP上下文信息列表,详见[DataProfilesInfo](_data_profiles_info_v11.md)。 | 2037 2038 **返回:** 2039 2040 0 表示执行成功。 2041 2042 非零值 表示操作失败。 2043 2044 2045 ### SetDeviceState() 2046 2047 ``` 2048 IRil::SetDeviceState ([in] int slotId, [in] int serialId, [in] int deviceStateType, [in] int deviceStateOn ) 2049 ``` 2050 **描述** 2051 2052 设置设备状态。 2053 2054 **起始版本:** 3.2 2055 2056 **参数:** 2057 2058 | 名称 | 描述 | 2059 | -------- | -------- | 2060 | slotId | 表示卡槽ID。 | 2061 | serialId | 表示请求的序列化ID。 | 2062 | deviceStateType | 表示设备状态类型,0表示省电模式,1表示充电模式,2表示低数据模式。 | 2063 | deviceStateOn | 表示设备状态开关,0表示关闭,1表示开启。 | 2064 2065 **返回:** 2066 2067 0 表示执行成功。 2068 2069 非零值 表示操作失败。 2070 2071 2072 ### SetEmergencyCallList() 2073 2074 ``` 2075 IRil::SetEmergencyCallList ([in] int slotId, [in] int serialId, [in] struct EmergencyInfoList emergencyInfoList ) 2076 ``` 2077 **描述** 2078 2079 设置紧急呼叫号码。 2080 2081 **起始版本:** 3.2 2082 2083 **参数:** 2084 2085 | 名称 | 描述 | 2086 | -------- | -------- | 2087 | slotId | 表示卡槽ID。 | 2088 | serialId | 表示请求的序列化ID。 | 2089 | emergencyInfoList | 表示紧急号码列表,详见[EmergencyInfoList](_emergency_info_list_v11.md)。 | 2090 2091 **返回:** 2092 2093 0 表示执行成功。 2094 2095 非零值 表示操作失败。 2096 2097 2098 ### SetInitApnInfo() 2099 2100 ``` 2101 IRil::SetInitApnInfo ([in] int slotId, [in] int serialId, [in] struct DataProfileDataInfo dataProfileDataInfo ) 2102 ``` 2103 **描述** 2104 2105 设置初始化默认网络接入技术(APN)信息。 2106 2107 **起始版本:** 3.2 2108 2109 **参数:** 2110 2111 | 名称 | 描述 | 2112 | -------- | -------- | 2113 | slotId | 表示卡槽ID。 | 2114 | serialId | 表示请求的序列化ID。 | 2115 | dataProfileDataInfo | 表示分组报文协议(PDP)上下文信息,详见[DataProfileDataInfo](_data_profile_data_info_v11.md)。 | 2116 2117 **返回:** 2118 2119 0 表示执行成功。 2120 2121 非零值 表示操作失败。 2122 2123 2124 ### SetLinkBandwidthReportingRule() 2125 2126 ``` 2127 IRil::SetLinkBandwidthReportingRule ([in] int slotId, [in] int serialId, [in] struct DataLinkBandwidthReportingRule dataLinkBandwidthReportingRule ) 2128 ``` 2129 **描述** 2130 2131 设置当前链路信息的上报规则。 2132 2133 **起始版本:** 3.2 2134 2135 **参数:** 2136 2137 | 名称 | 描述 | 2138 | -------- | -------- | 2139 | slotId | 表示卡槽ID。 | 2140 | serialId | 表示请求的序列化ID。 | 2141 | dataLinkBandwidthReportingRule | 表示网络频率上报规则,详见[DataLinkBandwidthReportingRule](_data_link_bandwidth_reporting_rule_v11.md)。 | 2142 2143 **返回:** 2144 2145 0 表示执行成功。 2146 2147 非零值 表示操作失败。 2148 2149 2150 ### SetLocateUpdates() 2151 2152 ``` 2153 IRil::SetLocateUpdates ([in] int slotId, [in] int serialId, [in] enum RilRegNotifyMode mode ) 2154 ``` 2155 **描述** 2156 2157 设置小区位置更新通知模式。 2158 2159 **起始版本:** 3.2 2160 2161 **参数:** 2162 2163 | 名称 | 描述 | 2164 | -------- | -------- | 2165 | slotId | 表示卡槽ID。 | 2166 | serialId | 表示请求的序列化ID。 | 2167 | mode | 表示通知模式,详见[RilRegNotifyMode](_ril_v11.md#rilregnotifymode)。 | 2168 2169 **返回:** 2170 2171 0 表示执行成功。 2172 2173 非零值 表示操作失败。 2174 2175 2176 ### SetMute() 2177 2178 ``` 2179 IRil::SetMute ([in] int slotId, [in] int serialId, [in] int mute ) 2180 ``` 2181 **描述** 2182 2183 设置静音。 2184 2185 **起始版本:** 3.2 2186 2187 **参数:** 2188 2189 | 名称 | 描述 | 2190 | -------- | -------- | 2191 | slotId | 表示卡槽ID。 | 2192 | serialId | 表示请求的序列化ID。 | 2193 | mute | 表示禁止或使能静音,0表示禁止,1表示使能。 | 2194 2195 **返回:** 2196 2197 0 表示执行成功。 2198 2199 非零值 表示操作失败。 2200 2201 2202 ### SetNetworkSelectionMode() 2203 2204 ``` 2205 IRil::SetNetworkSelectionMode ([in] int slotId, [in] int serialId, [in] struct SetNetworkModeInfo networkModeInfo ) 2206 ``` 2207 **描述** 2208 2209 设置选网模式。 2210 2211 **起始版本:** 3.2 2212 2213 **参数:** 2214 2215 | 名称 | 描述 | 2216 | -------- | -------- | 2217 | slotId | 表示卡槽ID。 | 2218 | serialId | 表示请求的序列化ID。 | 2219 | networkModeInfo | 表示选网模式信息,详见[SetNetworkModeInfo](_set_network_mode_info_v11.md)。 | 2220 2221 **返回:** 2222 2223 0 表示执行成功。 2224 2225 非零值 表示操作失败。 2226 2227 2228 ### SetNotificationFilter() 2229 2230 ``` 2231 IRil::SetNotificationFilter ([in] int slotId, [in] int serialId, [in] int newFilter ) 2232 ``` 2233 **描述** 2234 2235 设置Modem主动上报消息过滤器。 2236 2237 **起始版本:** 3.2 2238 2239 **参数:** 2240 2241 | 名称 | 描述 | 2242 | -------- | -------- | 2243 | slotId | 表示卡槽ID。 | 2244 | serialId | 表示请求的序列化ID。 | 2245 | newFilter | 表示消息类型过滤器,使用二进制标志位表示不同的消息类型,0表示关闭, 1表示信号强度,2表示网络注册状态,4表示数据连接状态,8表示链路容量,16表示物理通道配置。 | 2246 2247 **返回:** 2248 2249 0 表示执行成功。 2250 2251 非零值 表示操作失败。 2252 2253 2254 ### SetNrOptionMode() 2255 2256 ``` 2257 IRil::SetNrOptionMode ([in] int slotId, [in] int serialId, [in] int mode ) 2258 ``` 2259 **描述** 2260 2261 设置NR选项模式。 2262 2263 **起始版本:** 4.0 2264 2265 **参数:** 2266 2267 | 名称 | 描述 | 2268 | -------- | -------- | 2269 | slotId | 表示卡槽ID。 | 2270 | serialId | 表示请求的序列化ID。 | 2271 | mode | NR的选择模式。 | 2272 2273 **返回:** 2274 2275 Returns 0 表示执行成功。 2276 2277 Returns 非零值 表示操作失败。 2278 2279 2280 ### SetPreferredNetwork() 2281 2282 ``` 2283 IRil::SetPreferredNetwork ([in] int slotId, [in] int serialId, [in] int preferredNetworkType ) 2284 ``` 2285 **描述** 2286 2287 设置首选网络类型。 2288 2289 **起始版本:** 3.2 2290 2291 **参数:** 2292 2293 | 名称 | 描述 | 2294 | -------- | -------- | 2295 | slotId | 表示卡槽ID。 | 2296 | serialId | 表示请求的序列化ID。 | 2297 | preferredNetworkType | 表示首选网络类型,详见[PreferredNetworkTypeInfo](_preferred_network_type_info_v11.md)。 | 2298 2299 **返回:** 2300 2301 0 表示执行成功。 2302 2303 非零值 表示操作失败。 2304 2305 2306 ### SetRadioProtocol() 2307 2308 ``` 2309 IRil::SetRadioProtocol ([in] int slotId, [in] int serialId, [in] struct RadioProtocol radioProtocol ) 2310 ``` 2311 **描述** 2312 2313 设置主副卡协议栈。 2314 2315 **起始版本:** 3.2 2316 2317 **参数:** 2318 2319 | 名称 | 描述 | 2320 | -------- | -------- | 2321 | slotId | 表示卡槽ID。 | 2322 | serialId | 表示请求的序列化ID。 | 2323 | radioProtocol | 表示Radio协议信息,详见[RadioProtocol](_radio_protocol_v11.md)。 | 2324 2325 **返回:** 2326 2327 0 表示执行成功。 2328 2329 非零值 表示操作失败。 2330 2331 2332 ### SetRadioState() 2333 2334 ``` 2335 IRil::SetRadioState ([in] int slotId, [in] int serialId, [in] int fun, [in] int rst ) 2336 ``` 2337 **描述** 2338 2339 设置Modem状态。 2340 2341 **起始版本:** 3.2 2342 2343 **参数:** 2344 2345 | 名称 | 描述 | 2346 | -------- | -------- | 2347 | slotId | 表示卡槽ID。 | 2348 | serialId | 表示请求的序列化ID。 | 2349 | fun | 表示功能模式,0表示最小模式,1表示online模式,4表示offline模式,其他模式由芯片自定义。 | 2350 | rst | 表示Modem是否自动复位,0表示不复位,1表示复位。 | 2351 2352 **返回:** 2353 2354 0 表示执行成功 2355 2356 非零值 表示操作失败。 2357 2358 2359 ### SetSimLock() 2360 2361 ``` 2362 IRil::SetSimLock ([in] int slotId, [in] int serialId, [in] struct SimLockInfo simLockInfo ) 2363 ``` 2364 **描述** 2365 2366 设置SIM卡锁。 2367 2368 **起始版本:** 3.2 2369 2370 **参数:** 2371 2372 | 名称 | 描述 | 2373 | -------- | -------- | 2374 | slotId | 表示卡槽ID。 | 2375 | serialId | 表示请求的序列化ID。 | 2376 | [SimLockInfo](_sim_lock_info_v11.md) | 表示SIM卡锁信息,详见[SimLockInfo](_sim_lock_info_v11.md)。 | 2377 2378 **返回:** 2379 2380 0 表示执行成功。 2381 2382 非零值 表示操作失败。 2383 2384 2385 ### SetSmscAddr() 2386 2387 ``` 2388 IRil::SetSmscAddr ([in] int slotId, [in] int serialId, [in] struct ServiceCenterAddress serviceCenterAddress ) 2389 ``` 2390 **描述** 2391 2392 设置短信中心地址。 2393 2394 **起始版本:** 3.2 2395 2396 **参数:** 2397 2398 | 名称 | 描述 | 2399 | -------- | -------- | 2400 | slotId | 表示卡槽ID。 | 2401 | serialId | 表示请求的序列化ID。 | 2402 | serviceCenterAddress | 表示短信中心地址信息,详见[ServiceCenterAddress](_service_center_address_v11.md)。 | 2403 2404 **返回:** 2405 2406 0 表示执行成功。 2407 2408 非零值 表示操作失败。 2409 2410 2411 ### SetUssd() 2412 2413 ``` 2414 IRil::SetUssd ([in] int slotId, [in] int serialId, [in] String str ) 2415 ``` 2416 **描述** 2417 2418 设置非结构化补充数据业务(USSD)。 2419 2420 **起始版本:** 3.2 2421 2422 **参数:** 2423 2424 | 名称 | 描述 | 2425 | -------- | -------- | 2426 | slotId | 表示卡槽ID。 | 2427 | serialId | 表示请求的序列化ID。 | 2428 | str | 表示USSD信息,最大长度为160个字符。 | 2429 2430 **返回:** 2431 2432 0 表示执行成功。 2433 2434 非零值 表示操作失败。 2435 2436 2437 ### SetVonrSwitch() 2438 2439 ``` 2440 IRil::SetVonrSwitch ([in] int slotId, [in] int serialId, [in] int status ) 2441 ``` 2442 **描述** 2443 2444 设置Vonr开关。 2445 2446 **起始版本:** 4.0 2447 2448 **参数:** 2449 2450 | 名称 | 描述 | 2451 | -------- | -------- | 2452 | slotId | 表示卡槽ID。 | 2453 | serialId | 表示请求的序列化ID。 | 2454 | status | 表示Vonr开关状态,0表示OFF,1表示ON。 | 2455 2456 **返回:** 2457 2458 0 表示执行成功。 2459 2460 非零值 表示操作失败。 2461 2462 2463 ### ShutDown() 2464 2465 ``` 2466 IRil::ShutDown ([in] int slotId, [in] int serialId ) 2467 ``` 2468 **描述** 2469 2470 发送手机正在关机状态到Modem。 2471 2472 **起始版本:** 3.2 2473 2474 **参数:** 2475 2476 | 名称 | 描述 | 2477 | -------- | -------- | 2478 | slotId | 表示卡槽ID。 | 2479 | serialId | 表示请求的序列化ID。 | 2480 2481 **返回:** 2482 2483 0 表示执行成功。 2484 2485 非零值 表示操作失败。 2486 2487 2488 ### SimAuthentication() 2489 2490 ``` 2491 IRil::SimAuthentication ([in] int slotId, [in] int serialId, [in] struct SimAuthenticationRequestInfo simAuthInfo ) 2492 ``` 2493 **描述** 2494 2495 SIM卡鉴权。 2496 2497 **起始版本:** 3.2 2498 2499 **参数:** 2500 2501 | 名称 | 描述 | 2502 | -------- | -------- | 2503 | slotId | 表示卡槽ID。 | 2504 | serialId | 表示请求的序列化ID。 | 2505 | simAuthInfo | 表示SIM卡鉴权请求信息,详见[SimAuthenticationRequestInfo](_sim_authentication_request_info_v11.md)。 | 2506 2507 **返回:** 2508 2509 0 表示执行成功。 2510 2511 非零值 表示操作失败。 2512 2513 2514 ### SimCloseLogicalChannel() 2515 2516 ``` 2517 IRil::SimCloseLogicalChannel ([in] int slotId, [in] int serialId, [in] int channelId ) 2518 ``` 2519 **描述** 2520 2521 关闭应用协议数据单元(APDU)逻辑通道。 2522 2523 **起始版本:** 3.2 2524 2525 **参数:** 2526 2527 | 名称 | 描述 | 2528 | -------- | -------- | 2529 | slotId | 表示卡槽ID。 | 2530 | serialId | 表示请求的序列化ID。 | 2531 | channelId | 表示请求关闭的逻辑通道ID。 | 2532 2533 **返回:** 2534 2535 0 表示执行成功。 2536 2537 非零值 表示操作失败。 2538 2539 2540 ### SimOpenLogicalChannel() 2541 2542 ``` 2543 IRil::SimOpenLogicalChannel ([in] int slotId, [in] int serialId, [in] String appID, [in] int p2 ) 2544 ``` 2545 **描述** 2546 2547 打开应用协议数据单元(APDU)逻辑通道。 2548 2549 **起始版本:** 3.2 2550 2551 **参数:** 2552 2553 | 名称 | 描述 | 2554 | -------- | -------- | 2555 | slotId | 表示卡槽ID。 | 2556 | serialId | 表示请求的序列化ID。 | 2557 | appID | 表示应用标识符。 | 2558 | p2 | 表示AT指令码的参数2。 | 2559 2560 **返回:** 2561 2562 0 表示执行成功。 2563 2564 非零值 表示操作失败。 2565 2566 2567 ### SimStkIsReady() 2568 2569 ``` 2570 IRil::SimStkIsReady ([in] int slotId, [in] int serialId ) 2571 ``` 2572 **描述** 2573 2574 获取STK是否Ready状态。 2575 2576 **起始版本:** 3.2 2577 2578 **参数:** 2579 2580 | 名称 | 描述 | 2581 | -------- | -------- | 2582 | slotId | 表示卡槽ID。 | 2583 | serialId | 表示请求的序列化ID。 | 2584 2585 **返回:** 2586 2587 0 表示执行成功。 2588 2589 非零值 表示操作失败。 2590 2591 2592 ### SimStkSendCallSetupRequestResult() 2593 2594 ``` 2595 IRil::SimStkSendCallSetupRequestResult ([in] int slotId, [in] int serialId, [in] int accept ) 2596 ``` 2597 **描述** 2598 2599 发送STK CallSetup指令。 2600 2601 **起始版本:** 3.2 2602 2603 **参数:** 2604 2605 | 名称 | 描述 | 2606 | -------- | -------- | 2607 | slotId | 表示卡槽ID。 | 2608 | serialId | 表示请求的序列化ID。 | 2609 | accept | 表示是否接受CallSetup请求,0为不接受,1为接受。 | 2610 2611 **返回:** 2612 2613 0 表示执行成功。 2614 2615 非零值 表示操作失败。 2616 2617 2618 ### SimStkSendEnvelope() 2619 2620 ``` 2621 IRil::SimStkSendEnvelope ([in] int slotId, [in] int serialId, [in] String strCmd ) 2622 ``` 2623 **描述** 2624 2625 发送STK Envelope指令。 2626 2627 **起始版本:** 3.2 2628 2629 **参数:** 2630 2631 | 名称 | 描述 | 2632 | -------- | -------- | 2633 | slotId | 表示卡槽ID。 | 2634 | serialId | 表示请求的序列化ID。 | 2635 | strCmd | 表示指令的字串文本。 | 2636 2637 **返回:** 2638 2639 0 表示执行成功。 2640 2641 非零值 表示操作失败。 2642 2643 2644 ### SimStkSendTerminalResponse() 2645 2646 ``` 2647 IRil::SimStkSendTerminalResponse ([in] int slotId, [in] int serialId, [in] String strCmd ) 2648 ``` 2649 **描述** 2650 2651 发送SIM卡应用开发工具箱(STK) TerminalResponse指令。 2652 2653 **起始版本:** 3.2 2654 2655 **参数:** 2656 2657 | 名称 | 描述 | 2658 | -------- | -------- | 2659 | slotId | 表示卡槽ID。 | 2660 | serialId | 表示请求的序列化ID。 | 2661 | strCmd | 表示指令的字串文本。 | 2662 2663 **返回:** 2664 2665 0 表示执行成功。 2666 2667 非零值 表示操作失败。 2668 2669 2670 ### SimTransmitApduBasicChannel() 2671 2672 ``` 2673 IRil::SimTransmitApduBasicChannel ([in] int slotId, [in] int serialId, [in] struct ApduSimIORequestInfo apduSimIO ) 2674 ``` 2675 **描述** 2676 2677 应用协议数据单元(APDU)基础通道数据传输,默认打开的传输通道。 2678 2679 **起始版本:** 3.2 2680 2681 **参数:** 2682 2683 | 名称 | 描述 | 2684 | -------- | -------- | 2685 | slotId | 表示卡槽ID。 | 2686 | serialId | 表示请求的序列化ID。 | 2687 | apduSimIO | 表示通过应用协议数据单元(APDU)传输的SIM数据请求信息,详见[ApduSimIORequestInfo](_apdu_sim_i_o_request_info_v11.md)。 | 2688 2689 **返回:** 2690 2691 0 表示执行成功。 2692 2693 非零值 表示操作失败。 2694 2695 2696 ### SimTransmitApduLogicalChannel() 2697 2698 ``` 2699 IRil::SimTransmitApduLogicalChannel ([in] int slotId, [in] int serialId, [in] struct ApduSimIORequestInfo apduSimIO ) 2700 ``` 2701 **描述** 2702 2703 应用协议数据单元(APDU)逻辑通道数据传输,由应用主动发起连接和关闭。 2704 2705 **起始版本:** 3.2 2706 2707 **参数:** 2708 2709 | 名称 | 描述 | 2710 | -------- | -------- | 2711 | slotId | 表示卡槽ID。 | 2712 | serialId | 表示请求的序列化ID。 | 2713 | apduSimIO | 表示通过应用协议数据单元(APDU)传输的SIM数据请求信息,详见[ApduSimIORequestInfo](_apdu_sim_i_o_request_info_v11.md)。 | 2714 2715 **返回:** 2716 2717 0 表示执行成功。 2718 2719 非零值 表示操作失败。 2720 2721 2722 ### StartDtmf() 2723 2724 ``` 2725 IRil::StartDtmf ([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo ) 2726 ``` 2727 **描述** 2728 2729 开启DTMF。 2730 2731 **起始版本:** 3.2 2732 2733 **参数:** 2734 2735 | 名称 | 描述 | 2736 | -------- | -------- | 2737 | slotId | 表示卡槽ID。 | 2738 | serialId | 表示请求的序列化ID。 | 2739 | dtmfInfo | 表示DTMF信息,详见[DtmfInfo](_dtmf_info_v11.md)。 | 2740 2741 **返回:** 2742 2743 0 表示执行成功。 2744 2745 非零值 表示操作失败。 2746 2747 2748 ### StopDtmf() 2749 2750 ``` 2751 IRil::StopDtmf ([in] int slotId, [in] int serialId, [in] struct DtmfInfo dtmfInfo ) 2752 ``` 2753 **描述** 2754 2755 关闭DTMF。 2756 2757 **起始版本:** 3.2 2758 2759 **参数:** 2760 2761 | 名称 | 描述 | 2762 | -------- | -------- | 2763 | slotId | 表示卡槽ID。 | 2764 | serialId | 表示请求的序列化ID。 | 2765 | dtmfInfo | 表示DTMF信息,详见[DtmfInfo](_dtmf_info_v11.md)。 | 2766 2767 **返回:** 2768 2769 0 表示执行成功。 2770 2771 非零值 表示操作失败。 2772 2773 2774 ### SwitchCall() 2775 2776 ``` 2777 IRil::SwitchCall ([in] int slotId, [in] int serialId ) 2778 ``` 2779 **描述** 2780 2781 切换通话。 2782 2783 **起始版本:** 3.2 2784 2785 **参数:** 2786 2787 | 名称 | 描述 | 2788 | -------- | -------- | 2789 | slotId | 表示卡槽ID。 | 2790 | serialId | 表示请求的序列化ID。 | 2791 2792 **返回:** 2793 2794 0 表示执行成功。 2795 2796 非零值 表示操作失败。 2797 2798 2799 ### UnHoldCall() 2800 2801 ``` 2802 IRil::UnHoldCall ([in] int slotId, [in] int serialId ) 2803 ``` 2804 **描述** 2805 2806 取消保持通话。 2807 2808 **起始版本:** 3.2 2809 2810 **参数:** 2811 2812 | 名称 | 描述 | 2813 | -------- | -------- | 2814 | slotId | 表示卡槽ID。 | 2815 | serialId | 表示请求的序列化ID。 | 2816 2817 **返回:** 2818 2819 0 表示执行成功。 2820 2821 非零值 表示操作失败。 2822 2823 2824 ### UnlockPin() 2825 2826 ``` 2827 IRil::UnlockPin ([in] int slotId, [in] int serialId, [in] String pin ) 2828 ``` 2829 **描述** 2830 2831 PIN解锁。 2832 2833 **起始版本:** 3.2 2834 2835 **参数:** 2836 2837 | 名称 | 描述 | 2838 | -------- | -------- | 2839 | slotId | 表示卡槽ID。 | 2840 | serialId | 表示请求的序列化ID。 | 2841 | pin | 表示用于解锁的PIN码。 | 2842 2843 **返回:** 2844 2845 0 表示执行成功。 2846 2847 非零值 表示操作失败。 2848 2849 2850 ### UnlockPin2() 2851 2852 ``` 2853 IRil::UnlockPin2 ([in] int slotId, [in] int serialId, [in] String pin2 ) 2854 ``` 2855 **描述** 2856 2857 PIN2解锁。 2858 2859 **起始版本:** 3.2 2860 2861 **参数:** 2862 2863 | 名称 | 描述 | 2864 | -------- | -------- | 2865 | slotId | 表示卡槽ID。 | 2866 | serialId | 表示请求的序列化ID。 | 2867 | pin2 | 表示用于解锁的PIN2码。 | 2868 2869 **返回:** 2870 2871 0 表示执行成功。 2872 2873 非零值 表示操作失败。 2874 2875 2876 ### UnlockPuk() 2877 2878 ``` 2879 IRil::UnlockPuk ([in] int slotId, [in] int serialId, [in] String puk, [in] String pin ) 2880 ``` 2881 **描述** 2882 2883 PUK解锁。 2884 2885 **起始版本:** 3.2 2886 2887 **参数:** 2888 2889 | 名称 | 描述 | 2890 | -------- | -------- | 2891 | slotId | 表示卡槽ID。 | 2892 | serialId | 表示请求的序列化ID。 | 2893 | puk | 表示用于解锁的PUK码。 | 2894 | pin | 表示用于解锁的PIN码。 | 2895 2896 **返回:** 2897 2898 0 表示执行成功。 2899 2900 非零值 表示操作失败。 2901 2902 2903 ### UnlockPuk2() 2904 2905 ``` 2906 IRil::UnlockPuk2 ([in] int slotId, [in] int serialId, [in] String puk2, [in] String pin2 ) 2907 ``` 2908 **描述** 2909 2910 PUK2解锁。 2911 2912 **起始版本:** 3.2 2913 2914 **参数:** 2915 2916 | 名称 | 描述 | 2917 | -------- | -------- | 2918 | slotId | 表示卡槽ID。 | 2919 | serialId | 表示请求的序列化ID。 | 2920 | puk2 | 表示用于解锁的PUK2码。 | 2921 | pin2 | 表示用于解锁的PIN2码。 | 2922 2923 **返回:** 2924 2925 0 表示执行成功。 2926 2927 非零值 表示操作失败。 2928 2929 2930 ### UnlockSimLock() 2931 2932 ``` 2933 IRil::UnlockSimLock ([in] int slotId, [in] int serialId, [in] int lockType, [in] String key ) 2934 ``` 2935 **描述** 2936 2937 解锁SIM卡。 2938 2939 **起始版本:** 3.2 2940 2941 **参数:** 2942 2943 | 名称 | 描述 | 2944 | -------- | -------- | 2945 | slotId | 表示卡槽ID。 | 2946 | serialId | 表示请求的序列化ID。 | 2947 | lockType | 表示锁类型,参考3GPP TS 22.022 [33]。 | 2948 | key | 表示用于解锁的密码,参考3GPP TS 22.022 [33]。 | 2949 2950 **返回:** 2951 2952 0 表示执行成功。 2953 2954 非零值 表示操作失败。 2955 2956 2957 ### UpdateCdmaSimMessage() 2958 2959 ``` 2960 IRil::UpdateCdmaSimMessage ([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo cdmaSmsMessageInfo ) 2961 ``` 2962 **描述** 2963 2964 更新CDMA SIM卡短信。 2965 2966 **起始版本:** 3.2 2967 2968 **参数:** 2969 2970 | 名称 | 描述 | 2971 | -------- | -------- | 2972 | slotId | 表示卡槽ID。 | 2973 | serialId | 表示请求的序列化ID。 | 2974 | cdmaSmsMessageInfo | 表示SIM卡短信信息,详见[SmsMessageIOInfo](_sms_message_i_o_info_v11.md)。 | 2975 2976 **返回:** 2977 2978 0 表示执行成功。 2979 2980 非零值 表示操作失败。 2981 2982 2983 ### UpdateSimMessage() 2984 2985 ``` 2986 IRil::UpdateSimMessage ([in] int slotId, [in] int serialId, [in] struct SmsMessageIOInfo gsmSmsMessageInfo ) 2987 ``` 2988 **描述** 2989 2990 更新GSM SIM卡短信。 2991 2992 **起始版本:** 3.2 2993 2994 **参数:** 2995 2996 | 名称 | 描述 | 2997 | -------- | -------- | 2998 | slotId | 表示卡槽ID。 | 2999 | serialId | 表示请求的序列化ID。 | 3000 | gsmSmsMessageInfo | 表示SIM卡短信信息,详见[SmsMessageIOInfo](_sms_message_i_o_info_v11.md)。 | 3001 3002 **返回:** 3003 3004 0 表示执行成功。 3005 3006 非零值 表示操作失败。 3007