資源描述:
《科瑞維護通道協(xié)議.doc》由會員上傳分享,免費在線閱讀,更多相關(guān)內(nèi)容在工程資料-天天文庫。
1、協(xié)議說明協(xié)議的一般格式報文頭(0x68)報文長度命令數(shù)據(jù)校驗報文頭(0x7E)lbyte2byte1Byte變長lbyte(和)lbyte報文長度=命令+數(shù)據(jù)校驗二命令+數(shù)據(jù)的和校驗命令1I:DTU數(shù)據(jù)22:采集設(shè)備維護3FF:錯誤DTU數(shù)據(jù)子命令數(shù)據(jù)1Byte變長1.讀取參數(shù)和冋應(yīng)2.設(shè)置參數(shù)和冋應(yīng)3.重啟設(shè)備和冋應(yīng)4.心跳發(fā)送和心跳
2、叫應(yīng)主動上報ID1分鐘上傳5.停止主站傳輸和回應(yīng)6.恢復(fù)主站傳輸和冋應(yīng)7.狀態(tài)查詢維護/傳輸目前沒有專網(wǎng)卡的時候dtu維護通道為的協(xié)議為udpserver或udp客八端讀取參數(shù)和回應(yīng)6800010101027E68()0CA0101CC00
3、002580000000()065908CAODE808E8EDE808E8E3A983A9A0101000000000()(X)00000000()00000000000000000()001001401F40()28434D4E45540()00000000000000000000000000000000000000000000000000000000000000000000233737370000000000000000000000636172640000000000000000000000000000000000000000000000000000000000000
4、00000000000636172640000000000000000000000()000000()(X)00000000()000000000000000000000000000000001000600384E3100010001OBAO7E設(shè)置參數(shù)和冋丿26800CA0102CB000025800000000065908CAODE808E8EDE808E8E3A983A9A010100()0000000(X)()000000000000()00()0000000000001001401F40028434D4E455400000000()0000()(X)00000()
5、00()0000000()0000()0000()00000()000000()00()00()0000()000233737370000000000000000000000636172640000000000000000000000000000000000000000000000000000000000000000000000006361726400000000000000000000000000000000000000000000000000000000000000000000000001000600384E3100010001OBAO7E6800010102037E6
6、800CA0102CC00002580OA80FCC865908CAODE808B34DE808B343A983A9A0200313333383131383131313100000000000000000001001401F40028434D4E45540000000()000000(X)00000000()0000()000000000000000()000000000000()00000()0()0002A39392A2A2A31230000000()0()()000667265650000(X)0000(X)00000000()0()00000(X)0000()000
7、0000000000000()()000000()00000()0000006672656500000000()000()0()0000()000000000000000000000000000000000000000000000000000001000600384E3100010001OB187E木地IP要設(shè)置為()重啟設(shè)備和冋應(yīng)6800010103047E6800010103047E心跳發(fā)送和心跳冋應(yīng)主動上報ID6800010104057E6800010104057E68000C01043133333831313831313131327E停止主站傳輸和冋應(yīng)6800010
8、105067E6800010105067E恢復(fù)主站傳輸和冋應(yīng)6800010106077E68()0010105067E狀態(tài)查詢維護/傳輸680002010701097E6800010107087E錯誤680000FPFF7EMAX_TCPC_NUM2structpara_ncom{u8_tstate;u32_tbaud;u32_tlipaddr;u!6_tlport[MAX_TCPC_NUM];u32_tripaddr[MAX_TCPC_NUM];u16_trport[MAX_TCPC_NUM];u8_tpt[MA