版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
道路運輸車輛衛(wèi)星定位系統(tǒng)北斗兼容車載終端通訊協(xié)議技術規(guī)范andofBD中華人民共和國交通運輸部發(fā)布ByTheMinistryofTransportofthePeople'sRepublicofChina二〇一三年一月January,2013目 次Content前言IV1范圍12規(guī)范性引用文件1313.1術語和定義13.2縮略語24協(xié)議基礎34.1通信方式34.2數(shù)據(jù)類型Datatype34.3傳輸規(guī)則34.4消息的組成35通信連接55.1連接的建立55.2連接的維持55.3連接的斷開56消息處理5TCP和消息處理 5SMS67協(xié)議分類67.1概述67.267.377.4信息類協(xié)議77.5電話類協(xié)議87.687.787.887.9999分包消息108數(shù)據(jù)格式108.1108.2108.3終端心跳108.4108.5終端注冊118.68.7終端注銷12IIIII8.8終端鑒權128.912181818終端控制1820202121212627272728事件設置28事件報告29提問下發(fā)29提問應答3030信息點播/取消31信息服務31電話回撥31設置電話本31車輛控制3232323434353536設置路線36刪除路線3738383838393939 4040414142424343434444444445公鑰 45公鑰 46附 錄 A(規(guī)范性附錄) 47設備 47 47 49 51附 錄 B(規(guī)范性附錄) 54Scope2 ReferencesMessagecompositionMessagestructureIdentifierHeaderCheckcodeEstablishmentMaintenanceDisconnection消息處理MessageprocessingTCP和UDP消息處理MessageprocessingforTCPandUCP平臺主發(fā)的消息MessagessentbytheplatformMessagessentbytheterminal數(shù)據(jù)通信鏈路正常Datacommunicationlinksarenormal數(shù)據(jù)通信鏈路異常DatacommunicationlinksareabnormalSMSmessagesprocessingProtocolclassificationIntroductionSet/queryterminalparameters提問Inquiry通用數(shù)據(jù)傳輸類Generaldatatransmission加密類協(xié)議Encryptedprotocols分包消息Messagesubcontracting查詢終端參數(shù)Queryterminalparameters查詢指定終端參數(shù)Querydesignatedterminalparameter查詢終端參數(shù)應答Queryterminalparametersreply8.13 終端控制Terminalcontrol8.14 查詢終端屬性Queryterminalattributes查詢終端屬性應答Queryterminalattributesreply下發(fā)終端升級包Sendingterminalupgradepatch8.17 終端升級結果通知Noticeofterminalupdatesresults8.18 位置信息匯報Locationinformationreporting位置信息查詢Locationinformationquery位置信息查詢應答Locationinformationqueryreply臨時位置跟蹤控制Temporarypositiontrackingcontrol8.22 人工確認報警消息Manuallyconfirmedalarmmessages8.23 文本信息下發(fā)Textmessagessending事件設置Eventssetting8.25事件報告Eventsreporting8.26提問下發(fā)Questionsending8.27提問應答Questioningreply8.28 信息點播菜單設置Informationondemandmenusetting信息服務Informationservices電話回撥Callback8.32 設置電話本Settingthephonebook8.33 車輛控制Vehiclecontrol8.34 車輛控制應答Vehiclecontrolreply8.35 設置圓形區(qū)域Settingcircularareas8.36 刪除圓形區(qū)域Deletecircularareas8.37 設置矩形區(qū)域Settingrectangleareas8.38 刪除矩形區(qū)域Deleterectangularareas設置多邊形區(qū)域Settingpolygonareas刪除多邊形區(qū)域Deletepolygonareas設置路線Settingroutes刪除路線Deleteroutes8.43 行駛記錄數(shù)據(jù)采集命令Drivingrecorddatacollectioncommand行駛記錄數(shù)據(jù)上傳Drivingrecorddataupload行駛記錄參數(shù)下傳命令Drivingrecordparameterssendingcommand電子運單上報Electronicwaybillreporting上報駕駛員身份信息請求Reportingthedriveridentityinformationrequest8.48 駕駛員身份信息采集上報Thecollectionandreportingofthedriveridentityinformation8.49 定位數(shù)據(jù)批量上傳Positioningdatabatchupload多媒體事件信息上傳Multimediaeventsinformationupload多媒體數(shù)據(jù)上傳Multimediadataupload多媒體數(shù)據(jù)上傳應答Multimediadatauploadreply攝像頭立即拍攝命令Cameraimmediate
shootingcommand攝像頭立即拍攝命令應答Cameraimmediate
shootingcommandreply8.56 存儲多媒體數(shù)據(jù)檢索Storageofmultimediadataretrieval8.57 存儲多媒體數(shù)據(jù)檢索應答Storageofmultimediadataretrievalreply8.58 存儲多媒體數(shù)據(jù)上傳命令Storedmultimediadatauploadcommand8.59 錄音開始命令Startingrecordingcommand8.60 單條存儲多媒體數(shù)據(jù)檢索上傳命令Singlestorageofmultimediadataretrievaluploadcommand8.61 數(shù)據(jù)下行透傳Datadownlinkpassthrough8.62 數(shù)據(jù)上行透傳Datauplinkpassthrough8.63 數(shù)據(jù)壓縮上報Reportingdatacompression8.64平臺公鑰PlatformRSApublickey8.65終端公鑰TerminalRSApublickey附 錄 A(規(guī)范性附錄)AppendixA(normativeappendix)
Communicationprotocolbetweenthecar-mountedterminalandperipherals
CommunicationprotocolInstructionsforgeneralprotocolsA.4專用協(xié)議說明Instructionforproprietaryprotocols附 錄 B(規(guī)范性附錄)AppendixB(normativeappendix)Message
paralleltableIIIIVIVPAGEPAGE10前 言Preface本規(guī)范是對JT/T88-2《道路運輸車輛衛(wèi)星定位系統(tǒng)終端訊協(xié)議及數(shù)據(jù)格式的補充和完善,與JT/T——修改了通信連接中8678的內容;——增加了數(shù)據(jù)格式中8.4補傳分包求8.11詢指定終端參數(shù)8.14查詢終端屬性8.15查詢終端屬性應答8.16下發(fā)終端級包8.17終端升級結果通知8.22人工確認警消息8.7上報駕駛員身份信息請求、8.49CAN總線數(shù)據(jù)上傳、8.55攝像頭立即拍攝命令應答0等2并對影響的章節(jié)和表格編號進行了調整;-changedthedataformatandtheinformationintheoriginalchapter8.4terminalregister,chapter8.8settingterminalparameters,chapter8.12locationinformationreporting,chapter8.23textmessagedownload,chapter8.28settingcirclearea,chapter8.36
dataacquisitioncommandfor
drivingrecords,chapter8.37drivingrecorddataupload,chapter8.38
download
commandsfor
drivingrecords
parameters,chapter8.40reportsandcollectionofdriveridentityinformation,chapter8.41multimediaeventsdataupload,chapter8.42respondto
multimediaeventsdatauploaded,chapter8.46
storageofresponsetomultimediadataretrieval,chapter8.49datadownlinkpassthroughandchapter8.50datauplinkpassthrough;
-increases
thedataformatandtheinformationintheoriginalchapter8.4
requestforsubcontracttransmission,chapter8.11
designated
queryterminalparameters,chapter
8.14queryterminal
attributes,chapter8.15responsesto
queryterminal
attributes,chapter
8.16issuingterminalupdates,chapter8.17noticeofterminalupdatesresults,chapter8.22manualconfirmationofalarmmessages,chapter8.47reportsofdriveridentityinformationrequests,chapter8.49locating
batchuploadof
data,chapter8.50CANbusdataupload,chapter8.55responsestorequestsforpromptshootingofcamera,chapter8.60
uploadcommandsfor
singlestorageofmultimediadataretrieval,andrevisedtherelevantsectionandtablenumbers;——修改了附錄A中,表A.2外設類型編號表、表A.3A查詢外設屬性、A.4.1IC卡認證請求、A.4.2IC——修改了附錄B本規(guī)范由中華人民共和國交通運輸部提出。本規(guī)范起草單位:中國交通通信信息中心。-revisedtableA.2.
codetableof
peripheraltypesandtable
A.3tableofcommandtypes
inappendixA;
-increased
thecommunicationprotocolof
terminalhostandperipheralsin
A.3.4queryfortheinformationofslaveversionnumber,A.3.5self-checkingofslave,A.3.6firmwareupdatesofslave,A3.7queryofperipheralsattributes,A.4.1.
authenticationrequestfor
roadtransportICcard,A.4.2noticeofreadingresultsofroadtransportICcard,A.4.3noticeof
cardremoval,A.4.4activetriggerfor
ICcardreading
inappendixA;
-changedallthecorrespondinginformationdescribedinthecomparisontablesincludedin
theappendixB.
ThisspecificationisputforwardbytheMinistryofTransportofthePeople'sRepublicofChina.
Draftedby:ChinaTransportation&TelecommunicationInformationCenter.PAGEPAGE93PAGEPAGE92andofBDScope本規(guī)范規(guī)定了道路運輸車輛衛(wèi)星定位系統(tǒng)北斗兼容車載終端(以下簡稱終端)與監(jiān)管/監(jiān)控平(以下簡稱平臺之間的通訊協(xié)議與數(shù)據(jù)格式包括協(xié)議基礎通信連接消息處理、協(xié)議分類與說明及數(shù)據(jù)格式。本規(guī)范適用于道路運輸車輛衛(wèi)星定位系統(tǒng)北斗兼容車載終端和平臺之間的通信。Thespecificationspecifies
thecommunicationprotocolsanddataformatsbetween
the
GNSS
system
for
operating
vehicles
BD-compatiblevehicleterminal
(hereinafterreferredtoas"theterminal")andregulatory/monitoringplatform(hereinafterreferredtoas"theplatform"),includingprotocolbasis,communicationlinks,messageprocessing,protocolclassificationanddescription,anddataformats.
Thisspecificationappliestothecommunicationbetween
GNSS
system
for
operating
vehicles
BD-compatiblevehicleterminalsandplatforms
.2 References下列文件對于本文件的應用是必不可少的凡是注日期的引用文件僅所注日期的版本適用于本文件凡是不注日期的引用文件其最新版(包括所有的修改單適用于本文。GB/T19056 JT/T415-2006 編目編碼規(guī)則JT/T794 道路運輸車輛衛(wèi)星定位系統(tǒng)Thefollowingdocumentsareessentialfortheapplicationhereof.Foreach
referencewithdates,onlytheversionofthatdatesasshownhereinshallapply,andfor
each
referencewithoutdates,thelatestversion
(includingallamendmentsandmodifications)shallapply.
GB/T2260AdministrativedivisioncodeofthePeople'sRepublicofChina
GB/T19056
Vehicletravellingdatarecorder
JT/T415-2006Regulationson
catalogandencodingof
roadtransporte-governmentplatformJT/T794Technicalrequirementsfor
GNSS
system
for
operating
vehiclesterminals下列術語和定義適用于本文件。Thefollowingtermsanddefinitionsshallapplyhereto.Wirelesscommunicationlinksaredisconnected,ortemporarilysuspendedorheld(e.g.,duringcalling).R終端向平臺發(fā)送消息告知其安裝在某一車輛上。Theterminalsendsamessagetothe
platformforthe
installmentonavehicle.終端向平臺發(fā)送消息告知從所安裝車輛拆下。Theterminalsendsamessagetothe
platformforthe
removalfromtheinstalledvehicle.終端連接上平臺時向平臺發(fā)送消息以使平臺驗證自己身份。Theterminalsendsamessageto
theplatformuponconnectiontheretofortheverificationofitsidentitybytheplatform.定時、定距匯報或兩者結合。Reportingoftimingorlocatingorboth.根據(jù)相關條件確定周期匯報的間隔的規(guī)則。Determinerulesonintervalofperiodicreportinginaccordancewiththerelevantregulations.終端在判斷到車輛拐彎時發(fā)送位置信息匯報消息。采樣頻率不低于1Hz,汽車方位角變化率不低于15°/s,且至少持續(xù)3s以上。Theterminal,whendetectingthevehicleisTuring,wouldsendlocationinformationforreporting.
Samplingfrequencyshallbenolessthan1hz,thechangerateofcarazimuthnolessthan15°/sforatleast3s.終端自動或手動接聽來電的規(guī)則。Therulesofreceivingphonecallsautomaticallybytheterminalormanually.事件項由平臺預設到終端由事件編碼和事件名稱組成駕駛員在遇到相應事件時操作終端,觸發(fā)事件報告發(fā)送到平臺。Eventitemswillbesetontheterminalbytheplatformbydefault,composedofeventscodesandnames.Whenadriveroperatesontheterminalforthoseeventsincludedtherein,itwilltriggereventreportingsenttotheplatform.3.2縮略語Abbreviations下列縮略語適用于本文件。Thefollowingabbreviationsshallapplyhereto.RSA——一種非對稱密碼算法(由RonRivest、Adi來自三者的名字)anasymmetriccryptographicalgorithms(developedbyandnamedafterRonRivest,AdiShamirh,LenAdleman)ProtocolbasisCommunicationmode協(xié)議采用的通信方式應符合JT/T794TCP或作為服務器端,終端作為客戶端。當數(shù)據(jù)通信鏈路異常時,終端可以采用SMS消息方式進行通信。ThecommunicationmodeadoptedbytheprotocolshallcomplywithrelevantprovisionsoftheJT/T794,withcommunicationprotocolusingTCPorUDP,theplatformservingastheserversideandtheterminalastheclientside.Whenabnormaldatacommunicationlinksemerge,theterminalcanuseSMSmessagesforcommunication.協(xié)議消息中使用的數(shù)據(jù)類型Datatype見表1:Thedatatypesusedinthemessagesoftheprotocolareasfollows:表1數(shù)據(jù)類型Datatypedatatupes描述及要求DescriptionandrequirementsDescriptionandrequirementsBYTE無符號單字節(jié)整型(字節(jié),8位)Unsignedsingle-byteinteger(byte,8-bit)WORD無符號雙字節(jié)整型(字,16位)Unsigneddouble-byteinteger(words,16-bit)DWORD無符號四字節(jié)整型(雙字,32位)Unsignedfour-byte
integer(doubleword,32-bit)BYTE[n]n字節(jié)NBYTEBCD[n]8421碼,n字節(jié)8421code,nbytesSTRINGGBK編碼,若無數(shù)據(jù),置空GBKcoding,leaveitblankwithoutdata約定如下:最后傳遞低八位。Theprotocolusesbig-endiannetworkbyteordertotransferwordsanddoublewordsasfollows:BYTEtransferprotocol:usingBYTEstreamfortransmission;-WORDtransferprotocol:theupper8-bitfirst,thenthelower8-bit;-DWORDtransferprotocol:
theupper24-bitfirst,thentheupper16-bit,followedbytheupper8-bitandthelower8-bit.MessagecompositionMessagestructure每條消息由標識位、消息頭、消息體和校驗碼組成,消息結構圖如圖1所示:Eachmessageiscomprisedbyidentifier,header,messagetextandcheckcode.Seefigure1forthemessagestructurediagram:標識位identifier消息頭header消息體messagetext檢驗碼checkcode標識位identifier圖1 Figure1messagestructurediagram:Identifier采用規(guī)則定義如下:0x7e0x7d后緊跟一個0x02;0x7d0x7d后緊跟一個0x01。轉義處理過程如下:示例:發(fā)送一包內容為0x300x7e0x7d0x550x307d0x080x7d0x010x550x7e。0x7eforpresentation,whichifshowninthecheckcode,headerormessagetext,shallbeescapedinaccordancewiththefollowingrules:
0x7e<--->0x7dfollowedby0x02;
0x7d<--->0x7dfollowedby0x01,whichshallbeescapedasfollows:
Sendingmessage:messagepacking->calculateandfillthecheckcode->escape;
Receivingmessage:escapingreduction->validationofcheckcode->analyzingthemessage.
Example:
Ifsendadatapacketof0x30x7e00x080x7d0x55,thepackagingisasfollows:00x02x7e0x307d0x080x7d0x0100x7ex55.Header消息頭內容詳見表2:
Seetable2forthedetailsoftheheaders:表2Table2detailsoftheheaders起始字節(jié)Thestartingbyte字段Fields數(shù)據(jù)類型Datatype描述及要求Descriptionandrequirements0消息IDMessageIDWORD2消息體屬性TheattributesofmessagebodyWORD消息體屬性格式結構圖見圖2Seefigure2forthestructurechartofmessagebodyattributesformatSeefigure2forthestructurechartofmessagebodyattributesformat4終端手機號TerminalmobilephonenumberBCD[6]根據(jù)安裝后終端自身的手機號轉換。手機號不足12位,則在前補充數(shù)字,大陸手機號補充數(shù)字0,港澳臺則根據(jù)其區(qū)號進行位數(shù)補充。Transformationshallbedoneaccordingtothemobilephonenumberattheterminalendafterinstallation.Forphonenumberlessthan12-bitdigital,add0formobilephonenumbersofmainlandChina,andadddigitsaccordingtotherelevantareacodesfornumbersofHongKongandTaiwan.10消息流水號MessageserialnumberWORD按發(fā)送順序從0開始循環(huán)累加Cyclicaccumulation
from0shallbedonebasedonthe
delivery
order12消息包封裝項Packetpackagingitem如果消息體屬性中相關標識位確定消息分包處理,則該項有內容,否則無該項Theexistenceofthisitemdependsoniftheidentifierinthemessagebodyattributesconfirmsthesubcontractprocessingrequests.消息體屬性格式結構圖如圖2所示:Seefigure2forthestructurechartofmessagebodyattributesformat1514131211109876543210保留retaining分包subcontracting數(shù)據(jù)加密方式Dataencryption消息體長度Thelengthofthemessage圖2 消息體屬性格式結構圖Figure2Structurechartofmessagebodyattributesformat數(shù)據(jù)加密方式:Dataencryption——bit10~bit12為數(shù)據(jù)加密標識位;bit10~bit12areidentifiersfordataencryption;——當此三位都為0,表示消息體不加密;-whenallthethreeare0,itmeansthatthemessagebodyisnotencrypted;—當?shù)?0位為1,表示消息體經(jīng)過RSA算法加密;-whenthe10this1,itmeansthatthemessagebodysencryptedbyRSAalgorithm;——其他保留。-othersarereserved.分包:subcontracting當消息體屬性中第13位為1時表示消息體為長消息,進行分包發(fā)送處理,具體分包信息由消息包封裝項決定;若第13位為0,則消息頭中無消息包封裝項字段Fields。消息包封裝項內容見表3:When
the13thintheattributesofmessagebodyis1,itmeansthatthemessagebodyisalongmessage,whosesubcontractedinformationshallbedeterminedbythedatapackageencapsulationitemsduringsendingprocessing;Ifthe13this0,itmeansthereisnodatapackageencapsulationfieldsintheheaders.Messagedatapackageencapsulationitemsareshowninthetable3:表3消息包封裝項內容Table3Messagedatapackageencapsulationitems起始字節(jié)Thestartingbyte字段Fields數(shù)據(jù)類型Datatype描述及要求Descriptionandrequirements0消息總包數(shù)ThetotalnumberofpacketsWORD該消息分包后的總包數(shù)Thetotalnumberofpacketsaftersubcontracting2包序號PacketserialnumberWORD從1開始Startingfrom1校驗碼Checkcode校驗碼指從消息頭開始,同后一字節(jié)異或,直到校驗碼前一個字節(jié),占用一個字節(jié)。Checkcodereferstotheonesinglebytefromthemessageheadertothefollowingbyteor,tothebytebeforethecheckcode.通信連接Communicationlinks連接的建立Establishment終端與平臺的數(shù)據(jù)日常連接可采用TCP或UDP方式,終端復位后應盡快與平臺建立連接,連接建立后立即向平臺發(fā)送終端鑒權消息進行鑒權。TCPorUDPshallbeusedfor
dailylinksbetweentheterminalanddata.Theterminalshouldbeconnectedtotheplatformassoonaspossibleuponreset,afterwhichterminalauthenticationmessagesshallbesenttotheplatformforauthentication.連接的維持Maintenance連接建立和終端鑒權成功后,在沒有正常數(shù)據(jù)包傳輸?shù)那闆r下,終端應周期性向平臺發(fā)送終端心跳消息,平臺收到后向終端發(fā)送平臺通用應答消息,發(fā)送周期由終端參數(shù)指定。Aftertheestablishmentofthelinksandupontheterminalauthentication,intheabsenceofnormaldatapackets,terminalshould
sendterminalheartbeatmessages
periodicallytotheplatform,whichshallreplywithgeneralresponsemessagesafterreceivingthemessagewithafrequencyspecifiedbytheterminalparameters.連接的斷開Disconnection平臺和終端均可根據(jù)TCP協(xié)議主動斷開連接,雙方都應主動判斷TCP連接是否斷開。平臺判斷TCP連接斷開的方法:——根據(jù)TCP協(xié)議判斷出終端主動斷開;——相同身份的終端建立新連接,表明原連接已斷開;——在一定的時間內未收到終端發(fā)出的消息,如終端心跳。終端判斷TCP連接斷開的方法:——根據(jù)TCP協(xié)議判斷出平臺主動斷開;——數(shù)據(jù)通信鏈路斷開;——數(shù)據(jù)通信鏈路正常,達到重傳次數(shù)后仍未收到應答。EithertheplatformortheterminalcandisconnectthelinksbasedonTCPprotocolandbothsidesshouldtaketheinitiativetodeterminewhetheraTCPconnectionisdisconnected.TheplatformcanusethefollowingwaysforTCPdisconnection:
--identifiesdisconnectioninitiatedbytheterminalbasedonTCPprotocol;
-anewconnectionisestablishedforthesameterminal,whichindicatesthattheoriginalconnectionhasbeendisconnected;
-hadnotreceivedmessagesfromtheterminalfor
acertainperiod,suchasterminalheartbeat.TheterminalcanusethefollowingwaysforTCPdisconnection:
-identifiesdisconnectioninitiatedbytheplatform
basedonTCPprotocol;
-datacommunicationslinksdisconnected;
-datacommunicationlinksarenormal,withnoreplyevenafterreachingtherequiredretransmissiontimes.消息處理MessageprocessingTCP和UDP消息處理MessageprocessingforTCPandUCP平臺主發(fā)的消息Messagessentbytheplatform所有平臺主發(fā)的消息均要求終端應答,應答分為通用應答和專門應答,由各具體功能協(xié)議決定。發(fā)送方等待應答超時后,應對消息進行重發(fā)。應答超時時間和重傳次數(shù)由平臺參數(shù)指定,每次重傳后的應答超時時間的計算公式見式(1):Allmessagessentbytheplatformshallberepliedbytheterminalandtheresponsescanbedividedintogeneralresponseandspecificresponse,determinedbyeachproprietaryprotocols.Thesendershall
resendthemessage
afteratimeoutforaresponse.Responsetimeoutandretransmissiontimesshallbedeterminedbyparametersspecifiedbytheplatform.Seethefollowingformula(1)foreachtimeoutperiodafterretransmission:TN+1=TN×(N+1) …………(1)式中:amongwhichTN+1——每次重傳后的應答超時時間;TN——前一次的應答超時時間;N——重傳次數(shù)。TN+1-timeoutofeachresponseafterretransmission;TN—timeoutofpreviousresponse;N-retransmissiontimes.終端主發(fā)的消息Messagessentbytheterminal數(shù)據(jù)通信鏈路正常Datacommunicationlinksarenormal數(shù)據(jù)通信鏈路正常時,所有終端主發(fā)的消息均要求平臺應答,應答分為通用應答和專門應答,由各具體功能協(xié)議決定。終端等待應答超時后,應對消息進行重發(fā)。應答超時時間和重傳次數(shù)由終端參數(shù)指定,每次重傳后的應答超時時間按式(1)進行計算。對于終端發(fā)送的關鍵報警消息,若達到重傳次數(shù)后仍未收到應答,則應對其進行保存。以后在發(fā)送其它消息前要先發(fā)送保存的關鍵報警消息。Whendatacommunicationlinksarenormal,all
messagessentbytheterminalshallberepliedbytheplatformandtheresponsescanbedividedintogeneralresponseandspecificresponse,determinedbyeachproprietaryprotocols.Theterminalshall
resendthemessage
afteratimeoutforaresponse.Responsetimeoutandretransmissiontimesshallbedeterminedbyparametersspecifiedbytheterminal.Seethefollowingformula(1)foreachtimeoutperiodafterretransmission.Foranykeyalarmmessagessentbytheterminal,ifnoresponseisreceivedafterreachingthespecifiedretransmissiontimes,itshallbesaved,recordedandsentbeforesendinganyothermessagesinthefuture.數(shù)據(jù)通信鏈路異常Datacommunicationlinksareabnormal數(shù)據(jù)通信鏈路異常時,終端應對需發(fā)送的位置信息匯報消息進行保存。在數(shù)據(jù)通信鏈路恢復正常后,立即發(fā)送保存的消息。Whendatacommunicationlinksareabnormal,theterminalshallsaveandrecordalllocationinformationreportingmessagestobesentandshallsendtherecordedmessagesimmediatelyafterthe
datacommunicationlinksturnnormal.SMS消息處理SMSmessagesprocessing終端通信方式切換為GSM網(wǎng)絡的SMS消息方式時,采用PDU八位編碼方式,對于長度超過140字節(jié)的消息,應按照GSM網(wǎng)絡的短信服務規(guī)范GSM03.40進行分包處理。SMS消息的應答、重傳和保存機制同6.1,但應答超時時間及重傳次數(shù)應按照表10中參數(shù)ID0x0006及0x0007的相關設定值處理。WhentheterminalcommunicationmodeswitchestoGSMnetworkSMSmessage,PDUeight-bitencodingshallbeusedandforanymessagelongerthan140bytes,itshallbesubcontractedasrequiredbytheGSMnetwork
shortmessageservice
standardsGSM03.40.Seesection6.1forSMSmessageresponse,saveandretransmission,buttheresponsetimeoutandretransmissiontimesshouldbedeterminedinaccordancewiththeparametersID0x0006and0x0007setdata
listed
intable10.協(xié)議分類Protocolclassification概述Introduction以下按功能分類對協(xié)議進行描述。無特別指明,缺省采用TCP通信方式。車載終端與外接設備通訊協(xié)議見附錄A。協(xié)議中消息名稱與消息ID的消息對照表見附錄B。Thefollowingdescriptionofprotocolareclassifiedbyfunction.Unlessotherwise
specified,thedefaultshalluseTCPascommunicationmode.
SeeAppendixAfor
car-mountedterminalandexternaldevicecommunicationprotocol.
SeeAppendixBforthecomparisontableof
messagenamesandmessageIDusedin
theprotocol.終端管理類協(xié)議Protocolforterminalmanagement7.2.1 終端注冊/注銷Terminal
login/logout終端在未注冊狀態(tài)下,應首先進行注冊,注冊成功后終端將獲得鑒權碼并進行保存,鑒權碼在終端登錄時使用。車輛需要拆除或更換終端前,終端應該執(zhí)行注銷操作,取消終端和車輛的對應關系。終端若選擇通過SMS方式發(fā)送終端注冊和終端注銷消息,平臺應通過SMS方式發(fā)送終端注冊應答對終端注冊進行回復,通過SMS方式發(fā)送平臺通用應答對終端注銷進行回復。Theterminal,ifnotregistered,shallregisterfirst,thensavetheauthenticationcodereceivedfortheloginbytheterminalinthefuture.Whentheterminalonthevehicle
needtoberemovedorreplaced,theterminalcancelshallperformlogoutoperationtodisconnecttheterminalandthevehicle.IftheterminalusesSMSforitsloginandlogoutmessages,theplatformshallreplytotheterminalregistermessageswithterminalregistrationreplyandtotheterminallogoutmessageswiththeplatformgeneralresponseviaSMS.7.2.2 終端鑒權Terminalauthentication終端注冊后每次在與平臺建立連接后,應立即進行鑒權。鑒權成功前終端不得發(fā)送其它消息。終端通過發(fā)送終端鑒權消息進行鑒權,平臺回復平臺通用應答消息。Upon
registration,the
terminal
shallimmediatelyconductauthenticationwheneverconnectedto
theplatform.
Theterminalsshallnotsendothermessagesbeforetheauthenticationiscompleted.Theterminalwillsendterminalauthenticationmessagesforauthentication,whichshallberepliedbytheplatformwithplatformgeneralreplymessages.7.2.3 設置/查詢終端參數(shù)Set/queryterminalparameters平臺通過發(fā)送設置終端參數(shù)消息設置終端參數(shù),終端回復終端通用應答消息。平臺通過發(fā)送查詢終端參數(shù)消息查詢終端參數(shù),終端回復查詢終端參數(shù)應答消息。不同網(wǎng)絡制式下的終端應支持各自網(wǎng)絡的一些特有參數(shù)。Theplatformwillsendsettingsterminalparametersmessagestosettheterminalparameters,whichshallberepliedbytheterminalwithterminalgeneralreplymessages.The
platformwillinquireterminalparametersbysendingterminalparametersquerymessages,
whichshallberepliedbytheterminalwithquery
terminalparametersreplymessages.Theterminalsunderdifferentnetworksystemsshallsupportthespecificparametersusedintheirnetworks.7.2.4 終端控制Terminalcontrol平臺通過發(fā)送終端控制消息對終端進行控制,終端回復終端通用應答消息。Theplatformwillsendterminalcontrolmessagesforterminalcontrol,whichshallberepliedbytheterminalwithterminalgeneralreplymessages.7.3 位置、報警類協(xié)議Protocolsforpositionandalarm7.3.1 位置信息匯報Reportinglocationinformation終端根據(jù)參數(shù)設定周期性發(fā)送位置信息匯報消息。根據(jù)參數(shù)控制,終端在判斷到車輛拐彎時可發(fā)送位置信息匯報消息。Theterminalwillsend
periodicallylocationinformationtoreportnews
assetbytheparameters.
Accordingtotheparametercontrol,theterminalcould
sendlocationinformationforreportingwhendetectingthecarsareatturns.7.3.2 位置信息查詢Locationinformationsearch平臺通過發(fā)送位置信息查詢消息,查詢指定車載終端當時位置信息,終端回復位置信息查詢應答消息。Theplatformwillsend
locationinformationquery
messagesfor
specifiedcarterminallocationinformationatthetime,whichshallberepliedbytheterminalwithlocation
informationqueryreplymessage.7.3.3 臨時位置跟蹤控制Temporarypositiontrackingcontrol平臺通過發(fā)送臨時位置跟蹤控制消息啟動/停止位置跟蹤,位置跟蹤要求終端停止之前的周期匯報,按消息指定時間間隔進行匯報。終端回復終端通用應答消息。Theplatformwillsend
temporarypositiontrackingcontrol
messagesto
start/stoplocationtracking.Theperiodicalreportsrequiredbypositiontracking
beforetheterminalstopsshallbesentatthespecifiedinterval.Theterminalshallreplywithterminalgeneralreplymessage.7.3.4 終端報警Terminalalarm終端判斷滿足報警條件時發(fā)送位置信息匯報消息,在位置匯報消息中設置相應的報警標志,平臺可通過回復平臺通用應答消息進行報警處理。各報警類型見位置信息匯報消息體中的描述。報警標志維持至報警條件解除的報警,在報警條件解除后應立即發(fā)送位置信息匯報消息,清除相應的報警標志。Theterminalwill
sendlocationinformationforreportingwhenidentifyingspecified
alarmconditions,duringwhichthecorrespondingwarningsignswillbesetup.Theplatformcan
conductalarmprocessingbyreplyingwith
theplatformgeneral
replymessages.Forvariousalarmtypes,seelocationinformationdescribedinthemessagebody.Foralarmswithpersistentwarningsignsuntiltheremovalofalarm,
locationinformationshallbesentforreporting
immediatelyafter
thealarmisdisarmed,and
thecorrespondingwarningsignsshallberemovedaccordingly.7.4 信息類協(xié)議Protocolsformessages7.4.1 文本信息下發(fā)Textinformationdelivery平臺通過發(fā)送文本信息下發(fā)消息,按指定方式通知駕駛員。終端回復終端通用應答消息。Theplatformwillsend
textmessagedeliverymessagestoinformthedriverinaspecifiedway,whichshallberepliedbytheterminalwithterminalgeneralreplymessages.7.4.2 事件設置及報告Eventssettingandreporting平臺通過發(fā)送事件設置消息,將事件列表發(fā)到終端存儲,駕駛員在遇到相應事件后可進入事件列表界面進行選擇,選擇后終端向平臺發(fā)出事件報告消息。事件設置消息,需要終端回復終端通用應答消息。事件報告消息,需要平臺回復平臺通用應答消息。Theplatformwillsendeventssettingmessagestosendtheeventlisttotheterminalforrecording,whichcouldbeusedbythedriverwhenencounteringsuchevents,afterwhichtheterminalshallsendeventsreportingmessagestotheplatform.Eventssettingmessagesshallberepliedbytheterminalwithterminalgeneralreplymessages.Eventsreportingmessagesshallberepliedbytheplatformwith
platformgeneralreplymessages.提問Inquiry平臺通過發(fā)送提問下發(fā)消息,將帶有候選答案的提問發(fā)到終端,終端立即顯示,駕駛員選擇后終端向平臺發(fā)出提問應答消息。提問下發(fā)消息,需要終端回復終端通用應答消息。Theplatformwillsendinquirieswith
candidateanswers
totheterminal
bysendingquestionsdeliverymessages,whichwillbedisplayedontheterminalimmediately,andtheterminalwillsend
questionreplymessagestotheplatform
afterthedrivermakesaselection.Questionsdeliverymessagesshallberepliedbytheterminalwithterminalgeneralreplymessages.信息點播Informationondemand平臺通過發(fā)送信息點播菜單設置消息,將信息點播項列表發(fā)到終端存儲,駕駛員可以通過菜單選擇點播/取消相應的信息服務,選擇后終端向平臺發(fā)出信息點播/取消消息。信息服務被點播后,將定期收到來自平臺的信息服務消息,如新聞、天氣預報等。信息點播菜單設置消息,需要終端回復終端通用應答消息。信息點播/取消消息,需要平臺回復平臺通用應答消息。信息服務消息,需要終端回復終端通用應答消息。Theplatformwillsend
informationondemanditemlisttotheterminalforrecordingbysendingIODmenusettingmessages,
throughwhichthedrivercould
demand/cancelthecorrespondinginformationservices,afterwhichtheterminalwillsendamessagestotheplatformforthatrequest.Wheninformationserviceisondemand,regularmessages
ofinformationservices
fromplatformwillbereceived,suchasnews,weatherreports,etc.
Informationselectionmenusettingmessagesshallberepliedbytheterminalwithterminalgeneralreplymessages.
Informationondemand/cancelmessagesshallberepliedbytheplatformwithplatformgeneralreplymessages.
Informationservicemessagesshallberepliedbytheterminalwithterminalgeneralreplymessages.7.5 電話類協(xié)議Protocolsforphonecalls電話回撥Callback平臺通過發(fā)送電話回撥消息,要求終端按指定的電話號碼回撥電話,并指定是否按監(jiān)聽方式(終端不打開揚聲器)。Theplatformwillrequesttheterminaltodialbackaspecificphonenumber
andspecifytheansweringmode(suchasnotopentheterminalspeaker)
bysendingcallbackmessages.電話回撥消息,需要終端回復終端通用應答消息。Callbackmessagesshallberepliedbytheterminalwithterminalgeneralreplymessages.設置電話本Settingthephonebook平臺通過發(fā)送設置電話本消息,對終端設置電話本,該消息需要終端回復終端通用應答消息。Theplatformwillsetthephonebookontheterminalbysendingsettingthephonebookmessages,whichshallberepliedbytheterminalwithterminalgeneralreplymessages.7.6 車輛控制類協(xié)議Vehiclecontrolprotocols平臺通過發(fā)送車輛控制消息,要求終端按指定的操作對車輛進行控制。終端收到后立即回復終端通用應答消息。之后終端對車輛進行控制,根據(jù)結果再回復車輛控制應答消息。Theplatformwillrequesttheterminaltocontrolthevehicleswithrequiredoperationsbysendingvehiclecontrolmessages.Theterminalshallreplyimmediatelyafterreceivingwithterminalgeneralreplymessagesandreplyagain
with
vehiclecontrolreplymessages
accordingtotheresultsofvehiclecontrol.7.7 車輛管理類協(xié)議Vehiclemanagementprotocols平臺通過發(fā)送設置圓型區(qū)域、設置矩形區(qū)域、設置多邊形區(qū)域、設置路線等消息,對終端進行區(qū)域和線路設置。終端根據(jù)區(qū)域和線路屬性判斷是否滿足報警條件,報警包括超速報警、進出區(qū)域/路線報警和路段行駛時間不足/過長報警,應在位置信息匯報消息中包含相應的位置附加信息。Theplatformwillsetuproutesandareasontheterminalbysendingroundareas,rectangularareas,polygonareasandroutessettingmessages.Theterminalshalldetermineifthe
alarmconditionsaremeet
accordingtotheareaandrouteattributesandshallincludetheadditional
correspondingpositioninformationin
thelocationinformation
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 煤礦機電設備管理系統(tǒng)技術方案
- 績效發(fā)展咨詢服務
- 展會服務合同范本在線看
- 拼花地板購銷合同樣本
- 個人工作承諾
- 社區(qū)安寧餐飲業(yè)靜音承諾
- 馬戲團表演安全保障服務協(xié)議
- 終止協(xié)議合同的操作
- 版評審表采購合同
- 機電工程招標文件解讀與指導
- 公共廣播系統(tǒng)施工與方案
- 2024年個人信用報告(個人簡版)樣本(帶水印-可編輯)
- 硒鼓回收處理方案
- 書法創(chuàng)作與欣賞智慧樹知到期末考試答案章節(jié)答案2024年華僑大學
- 經(jīng)典導讀與欣賞-知到答案、智慧樹答案
- 悉尼歌劇院-建筑技術分析
- 肺結核病防治知識宣傳培訓
- 三切口食管癌手術步驟
- 食品安全與衛(wèi)生智慧樹知到期末考試答案2024年
- 高三一模作文“文學不是我生命中的唯一”導寫
- (2024年)功能醫(yī)學與健康管理
評論
0/150
提交評論