|
发送8bit编码短信我是直接调用RIL API的发送函数发的,SmsSendMessage函数不支持这种格式
问题是接收的时候检测不到,下面是两种格式的调试信息的对比:
USC2编码的,可以正常检测:
RilDrv: Accumulated response: +CMT: "",144 0891683108200005F0040D916851806961X1FX0008902132905280237C56E04E3A67094E8673AB7470624D67097F8E4E3D7684723160C5FF1B56E04E3A6709851A84DD768459297A7A624D670998DE7FD4768468A660F3FF1B56E04E3A67094E864F60624D8BA962116D6A8D394E006
RILDrv : t : CRilHandle::BroadcastNotification : Broadcasting notification 0x20001
RILProxy : n : MESSAGE - To \Windows\udevice.exe - Info Pointer = 0x00033e10, Param = 0x00030720
RILProxy : N : MESSAGE - SvcCtrAddress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE, "8613800200500", Message Flags = NONE, MSGTYPE_IN_DELIVER, MsgInDeliver: { OrigAdress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE,
RILProxy : N : MESSAGE - "8615089616XXX", MSGPROTOCOL_SMETOSME, DataCoding: DCSTYPE_GENERAL, DCSALPHABET_UCS2, SCReceiveTime: 2009-12-23 Wednsday 01:25:08.000 MsgLength = 62,
RILProxy : N : MESSAGE - Message = 56E04E3A67094E8673AB7470624D67097F8E4E3D7684723160C5FF1B56E04E3A6709851A84DD768459297A7A624D670998DE7FD4768468A660F3FF1B56E0 }
RILProxy : n : MESSAGE - To \Windows\udevice.exe - Info Pointer = 0x00031030, Param = 0x000306e0
RILProxy : N : MESSAGE - SvcCtrAddress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE, "8613800200500", Message Flags = NONE, MSGTYPE_IN_DELIVER, MsgInDeliver: { OrigAdress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE,
RILProxy : N : MESSAGE - "8615089616XXX", MSGPROTOCOL_SMETOSME, DataCoding: DCSTYPE_GENERAL, DCSALPHABET_UCS2, SCReceiveTime: 2009-12-23 Wednsday 01:25:08.000 MsgLength = 62,
RILProxy : N : MESSAGE - Message = 56E04E3A67094E8673AB7470624D67097F8E4E3D7684723160C5FF1B56E04E3A6709851A84DD768459297A7A624D670998DE7FD4768468A660F3FF1B56E0
InitSms: Sms Receive Success!
readsms: smscAddress is start!
-------------------------------------------
8BIT的,不能检测:
RilDrv: Accumulated response: +CMT: "",54 0891683108707505F0040D91683109822171F40004902132903271232200112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF5577
RILDrv : t : CRilHandle::BroadcastNotification : Broadcasting notification 0x20001
RILProxy : n : MESSAGE - To \Windows\udevice.exe - Info Pointer = 0x00034810, Param = 0x00030720
RILProxy : N : MESSAGE - SvcCtrAddress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE, "8613800757500", Message Flags = NONE, MSGTYPE_IN_DELIVER, MsgInDeliver: { OrigAdress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE,
RILProxy : N : MESSAGE - "8613902812174", MSGPROTOCOL_SMETOSME, DataCoding: DCSTYPE_GENERAL, DCSALPHABET_8BIT, SCReceiveTime: 2009-12-23 Wednsday 01:23:17.000 MsgLength = 34,
RILProxy : N : MESSAGE - Message = 00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF5577 }
RILProxy : n : MESSAGE - To \Windows\udevice.exe - Info Pointer = 0x00031030, Param = 0x000306e0
RILProxy : N : MESSAGE - SvcCtrAddress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE, "8613800757500", Message Flags = NONE, MSGTYPE_IN_DELIVER, MsgInDeliver: { OrigAdress: ADDRTYPE_INTERNATIONAL, NUMPLAN_TELEPHONE,
RILProxy : N : MESSAGE - "8613902812174", MSGPROTOCOL_SMETOSME, DataCoding: DCSTYPE_GENERAL, DCSALPHABET_8BIT, SCReceiveTime: 2009-12-23 Wednsday 01:23:17.000 MsgLength = 34,
RILProxy : N : MESSAGE - Message = 00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF5577
我看RIL驱动的处理都是一样的,但是aitForSingleObject函数就无法识别后一种的短信格式,跳不出来,有可能是RIL驱动的问题,但不知问题出在哪里.
|
|