本人做一个项目,需要用到短信功能,只需要发送短信功能,
根据网上的代码拼凑了一个cmpp接口程序,
通过CMPP3.0短信网关模拟器SIM1.8 和
CMPP3.0Smg.exe 两个模拟网关程序测试都没有问题,但到真正在移动网关上测试的时候,
SP请求连接到ISMG(CMPP_CONNECT)的操作能成功,证明说,已经通过验证,和网关建立连接了,可是发送短信的时候,也不知道什么地方出错,就是无法发送成功,
也没有CMPP_CONNECT_RESP 消息返回。
由于小弟只是临阵磨枪,对 CMPP3.0协议理解不深,甚至是c#端口通信也一一知半解,实在是无法找出错误所在,
现在跪求各位大哥大姐帮帮忙,
这是我在CMPP3.0Smg.exe 程序上 测试时的数据包,也不知道是不是数据包有问题,请大家帮看看,
一个找不出错误的菜鸟,痛苦的寻求帮助,人生最痛苦的事莫过于,有错,却找不到错,甚至不知从合入手。
希望大家多多帮助!
客户端436登录成功,企业代码:901235.
SP->SMG:
00 00 00 cb 00 00 00 04 00 00 00 04 00 00 00 00
00 00 00 00 01 01 01 00 31 30 36 35 38 35 30 33
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 0f 39 30 31 32 33 35 30 31 35
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 31 30 36 35 38 35 30 33 00
00 00 00 00 00 00 00 00 00 00 00 00 01 31 33 39
39 39 39 39 39 39 39 39 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 b6
cc d0 c5 c4 da c8 dd 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
/**********************************************************************************************
Total_Length: <203>, Command_Id: <CMPP_SUBMIT(0x00000004)>, Sequence_Id: <4>.
Msg_Id: <0>
Pk_total: <1>
Pk_number: <1>
Registered_Deliverey: <1>
Msg_Level: <0>
Service_Id: <10658503>
Fee_UserType: <0>
Fee_terminal_Id: <>
Fee_terminal_type: <0>
TP_pid: <0>
TP_udhi: <0>
Msg_Fmt: <15>
Msg_Src: <901235>
FeeType: <01>
FeeCode: <5>
Valid_Time: <>
At_Time: <>
Src_Id: <10658503>
DestUsr_tl: <1>
Dest_terminal_Id: <13999999999 >
Dest_terminal_type: <0>
Msg_Length: <8>
Msg_Content: <短信内容>
LinkID: < 0>
**********************************************************************************************/
根据网上的代码拼凑了一个cmpp接口程序,
通过CMPP3.0短信网关模拟器SIM1.8 和
CMPP3.0Smg.exe 两个模拟网关程序测试都没有问题,但到真正在移动网关上测试的时候,
SP请求连接到ISMG(CMPP_CONNECT)的操作能成功,证明说,已经通过验证,和网关建立连接了,可是发送短信的时候,也不知道什么地方出错,就是无法发送成功,
也没有CMPP_CONNECT_RESP 消息返回。
由于小弟只是临阵磨枪,对 CMPP3.0协议理解不深,甚至是c#端口通信也一一知半解,实在是无法找出错误所在,
现在跪求各位大哥大姐帮帮忙,
这是我在CMPP3.0Smg.exe 程序上 测试时的数据包,也不知道是不是数据包有问题,请大家帮看看,
一个找不出错误的菜鸟,痛苦的寻求帮助,人生最痛苦的事莫过于,有错,却找不到错,甚至不知从合入手。
希望大家多多帮助!
客户端436登录成功,企业代码:901235.
SP->SMG:
00 00 00 cb 00 00 00 04 00 00 00 04 00 00 00 00
00 00 00 00 01 01 01 00 31 30 36 35 38 35 30 33
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 0f 39 30 31 32 33 35 30 31 35
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 31 30 36 35 38 35 30 33 00
00 00 00 00 00 00 00 00 00 00 00 00 01 31 33 39
39 39 39 39 39 39 39 39 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00 00 00 00 08 b6
cc d0 c5 c4 da c8 dd 00 00 00 00 00 00 00 00 00
00 00 00 00 00 00 00 00 00 00 00
/**********************************************************************************************
Total_Length: <203>, Command_Id: <CMPP_SUBMIT(0x00000004)>, Sequence_Id: <4>.
Msg_Id: <0>
Pk_total: <1>
Pk_number: <1>
Registered_Deliverey: <1>
Msg_Level: <0>
Service_Id: <10658503>
Fee_UserType: <0>
Fee_terminal_Id: <>
Fee_terminal_type: <0>
TP_pid: <0>
TP_udhi: <0>
Msg_Fmt: <15>
Msg_Src: <901235>
FeeType: <01>
FeeCode: <5>
Valid_Time: <>
At_Time: <>
Src_Id: <10658503>
DestUsr_tl: <1>
Dest_terminal_Id: <13999999999 >
Dest_terminal_type: <0>
Msg_Length: <8>
Msg_Content: <短信内容>
LinkID: < 0>
**********************************************************************************************/