根據網上的代碼拼湊了壹個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>
**********************************************************************************************/