判断数据拨号是否由电脑发起的
终端连着电脑时,有时会遇到意想不到的数据拨号,这个数据拨号由电脑发起,并可能引起正常的AP侧发起的数据拨号失败,如:
手机AP侧正常发起的setup_data_call命令在QMI走的是0x1544 QMI QCSI通道。
如果发现有类似如下错误:
10:17:31.469 [0x1544] MCS QCSI Payload Packet
packetVersion = 2
V2 {
MsgType = Response
Counter = 4
ServiceId = 1
MajorRev = 1
MinorRev = 155
ConHandle = 0x000000EC
MsgId = 0x00000020
QmiLength = 26
Service_WDS {
ServiceWDSV1 {
wds_start_network_interface {
wds_start_network_interface_respTlvs[0] {
Type = 0x02
Length = 4
resp {
result = QMI_RESULT_FAILURE
error = QMI_ERR_CALL_FAILED
}
}
wds_start_network_interface_respTlvs[1] {
Type = 0x01
Length = 4
pkt_data_handle {
pkt_data_handle = 0
}
}
wds_start_network_interface_respTlvs[2] {
Type = 0x10
Length = 2
call_end_reason {
call_end_reason = WDS_CER_UNSPECIFIED
}
}
wds_start_network_interface_respTlvs[3] {
Type = 0x11
Length = 4
verbose_call_end_reason {
call_end_reason_type = WDS_VCER_TYPE_INTERNAL
call_end_reason = 241
}
}
//Value :241
//Name :IFACE_IN_USE_CFG_MATCH
//Description:Returned when the IFACE is already in use with a matching configuration
//Failure type:Temporary
//Recovery mechanism:Retry call origination after disconnecting the existing call
则要确认这个错误是否由电脑数据拨号引起的,判断方法:
在前面的QXDM日志中查看是否有legacy QMI通道的数据拨号,有,则该数据拨号一般就是由电脑发起的:
电脑数据拨号走的是legacy QMI通道,如:
[0x1390] LOG 10:17:16.592 QMI Link 2 RX PDU Length: 0033 255 0
Service_Wds_V1 {
QmiWdsStartNetworkInterface {
QmiWdsStartNetworkInterfaceReqTlvs[0] {
Type = 48
Length = 1
TechPrefTlv {
TechPref = 3GPP
}
}
QmiWdsStartNetworkInterfaceReqTlvs[1] {
Type = 22
Length = 1
AuthPrefTlv {
AuthPref = NONE
}
}
QmiWdsStartNetworkInterfaceReqTlvs[2] {
Type = 20
Length = 5
ApnNameTlv {
ApnName = 3GNET
}
}
QmiWdsStartNetworkInterfaceReqTlvs[3] {
Type = 25
Length = 1
IpFamilyPref {
IP Family Preference = IPv4
关闭电脑数据拨号的方法:
WIN+R -->输入:services.msc,确定 →在“ 服务” 里 把 “WWAN AutoConfig”停止,并改为“禁用”或“手动”