CN107193621A - RTCM3 data decoding methods - Google Patents

RTCM3 data decoding methods Download PDF

Info

Publication number
CN107193621A
CN107193621A CN201710316163.4A CN201710316163A CN107193621A CN 107193621 A CN107193621 A CN 107193621A CN 201710316163 A CN201710316163 A CN 201710316163A CN 107193621 A CN107193621 A CN 107193621A
Authority
CN
China
Prior art keywords
rtcm3
data
message
files
decoding
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710316163.4A
Other languages
Chinese (zh)
Inventor
张体良
张达
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qianxun Position Network Co Ltd
Original Assignee
Qianxun Position Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qianxun Position Network Co Ltd filed Critical Qianxun Position Network Co Ltd
Priority to CN201710316163.4A priority Critical patent/CN107193621A/en
Publication of CN107193621A publication Critical patent/CN107193621A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a kind of RTCM3 data decoding methods, step is as follows:Step 1, program starts;Step 2, RTCM3 data-message masterplate files are read in;Step 3, judge whether RTCM3 data-message masterplate files load success;If loaded successfully, step 4 is performed;If loading failure, performs step 8;Step 4, checking work is carried out;Step 5, judge whether to be proved to be successful;If be proved to be successful, step 6 is performed;If authentication failed, output error carries out error handle, performs step 8;Step 6, program file is generated;Step 7, RTCM3 message encoding and decoding files are automatically generated, step 9 is performed;Step 8, failure handling is done, step 9 is performed;Step 9, EP (end of program).The present invention proposes templated concept, automatically generates RTCM3 data encoding and decoding files, improves code efficiency, reduces the introducing of mistake, realizes encoding and decoding procedure.

Description

RTCM3 data decoding methods
Technical field
The present invention relates to data decoding technique field, and in particular to a kind of RTCM3 data decoding methods.
Background technology
The international ocean shipping cause radiotechnics committee (RTCM, Radio Technical Commission for Maritime Services) it is proposed a variety of DIFFERENTIAL PROTOCOL standards, and wherein RTCM3 agreements refer to now official and issued RTCM3.0/RTCM3.1/RTCM3.2 agreements.
Gradually popularized with location data service, carrying out data with RTCM3 data formats broadcasts gradually for market Received.The current decoding process for being directed to RTCM3 data formats, mainly enters item by item according to the content defined in RTCM3 documents Row encoding and decoding work, and so cause the encoding and decoding program for RTCM3 to vary with each individual, while it is templated to be not easily achieved procedure, Artificial mistake is readily incorporated, causes to expend substantial amounts of manpower progress test checking and problem investigation.RTCM3 data format bags Containing substantial amounts of message format, encoding and decoding are carried out with traditional method for each message format, are unfavorable for quick response business Demand.
Prior art shortcoming:
1st, it is error-prone.Current RTCM3 code encoding/decoding modes, need item by item cutting message to carry out, are compiled line by line during exploitation Code, is easier error during cutting mistake.
2nd, investigate difficult.According to upper, once error is, it is necessary to which code investigation problem line by line, efficiency comparison is low.
3rd, it is maintainable poor, it is readable poor.People different at present enter encoding and decoding using different code encoding/decoding modes, and style is poor Different larger, other developers safeguard relatively difficult, readable poor.
The content of the invention
The present invention solves traditional RTCM3 encoding and decoding and defined according to RTCM3 Protocol documents with following the prescribed order, one by one data Item carries out encoding and decoding, without procedure, is unfavorable for the technical problem of the sub- message encoding and decoding exploitations of quick RTCM3 and checking.
The technical solution adopted by the present invention is:
A kind of RTCM3 data decoding methods, it is characterised in that step is as follows:
Step 1, program starts.
Step 2, RTCM3 data-message masterplate files are read in.
Step 3, judge whether RTCM3 data-message masterplate files load success;If loaded successfully, step 4 is performed;Such as Fruit loading failure, performs step 8.
Step 4, checking work is carried out.
Step 5, judge whether to be proved to be successful;If be proved to be successful, step 6 is performed;If authentication failed, output error is entered Row error handle, performs step 8.
Step 6, program file is generated.
Step 7, RTCM3 message encoding and decoding files are automatically generated, step 9 is performed.
Step 8, failure handling is done, step 9 is performed.
Step 9, EP (end of program).
Further, RTCM3 data-message masterplates file includes message name and message data in the step 2, disappears Ceasing data item includes message modifier, RTCM3 data item, message data a title and message data order.
Further, RTCM3 encoding and decoding maker reads in RTCM3 data-message masterplate files in the step 2, according to disappearing Cease title generation program file.
Further, the message modifier is single or repeated types.
Further, verify that work is as follows in the step 4:
Verify whether RTCM3 data-message masterplate file formats are correct;
Determine whether message modifier and data field are defined, it is ensured that definition of the field value in message data is suitable Sequence is errorless.
Further, RTCM3 is automatically generated according to the definition of message data inside program file in the step 7 to disappear Cease encoding and decoding file.
The beneficial effects of the present invention are, by the RTCM3 data encoding and decoding makers ground certainly, masterplate file is read, from Dynamic generation RTCM3 data codec codes, improve code efficiency, reduce the introducing of mistake, realize encoding and decoding procedure.
Brief description of the drawings
Fig. 1 is RTCM3 data decoding methods flow chart of the present invention.
Embodiment
The present invention proposes templated concept, passes through the RTCM3 data ground certainly by analyzing RTCM3 data format documents Encoding and decoding maker, reads RTCM3 data-message masterplate files, automatically generates RTCM3 data encoding and decoding files, improves coding effect Rate, reduces the introducing of mistake, realizes encoding and decoding procedure.Hereinafter, the present invention is made in conjunction with the accompanying drawings and embodiments into One step is illustrated.
The present invention is mainly made up of two parts, RTCM3 data-message masterplate files and RTCM3 encoding and decoding makers.
RTCM3 data-message masterplates file is used for the particular content that formatting definition goes out every message, including message name With message data, wherein message data includes message modifier, RTCM3 data item, message data a title and message count According to item.
Message modifier includes single/repeated types.Single modifiers represent the message data, disobey Rely in other data item.Repeated modifiers represent that the message data is repeat type data item, and number of repetition is relied on In other data item.Repeated modifier parameters represent that the message data number of repetition depends on that message data .
RTCM3 data item is the concept abstracted according to RTCM3 data formats.RTCM3 data item illustrates described disappear Cease service concept category of the data item in RTCM3 data format documents.Corresponding to the business in RTCM3 data format documents , data type and valid value range.
Message data order represents the particular order in the message data RTCM3 message.
RTCM3 encoding and decoding maker reads in RTCM3 data-message masterplate files, and specific program is generated according to message name File.RTCM3 message encoding and decoding files are automatically generated according to the definition of message data inside program file.
Fig. 1 is RTCM3 data decoding methods flow chart of the present invention, and step is as follows:
Step 1, program starts, and calls start methods.
Step 2, RTCM3 data-message masterplate files are read in, message name is RTCM1005, it will generation program filename For RTCM1005.java program file.The data field that DF starts in program file is all in RTCM32 Standard File Formats Defined in data field.Data field mainly includes business implication/field length/field value scope of the data field.Such as Fruit authentication failed, then output error carries out error handle.
Step 3, judge whether RTCM3 data-message masterplate files load success;If loaded successfully, step 4 is performed;Such as Fruit loading failure, performs step 8.
Step 4, checking work is carried out:
1) whether checking RTCM3 data-message masterplate file formats are correct.RTCM1005 includes in outermost layer as described All fields, and start with message the definition of whole message body.
2) determine whether modifier and data field are defined.Ensure definition of order of the field value in message data It is errorless.Be not in miss and out of order situation.
Step 5, judge whether to be proved to be successful;If be proved to be successful, step 6 is performed;If authentication failed, output error is entered Row error handle, performs step 8;
Step 6, specific RTCM1005.java program files are generated;
Step 7, program file automatically generates RTCM3 message encoding and decoding according to the definition of RTCM3 data-message masterplate files File, performs step 9;
Step 8, failure handling is done, step 9 is performed;
Step 9, EP (end of program).
The present invention is a kind of processed offline program, performance be not it is main pursue a goal, general computational language is such as Java/c/c++/c# can be implemented.
Although the present invention is disclosed as above with preferred embodiment, it is not for limiting the present invention, any this area Technical staff without departing from the spirit and scope of the present invention, may be by the methods and techniques content of the disclosure above to this hair Bright technical scheme makes possible variation and modification, therefore, every content without departing from technical solution of the present invention, according to the present invention Any simple modifications, equivalents, and modifications made to above example of technical spirit, belong to technical solution of the present invention Protection domain.

Claims (6)

1. a kind of RTCM3 data decoding methods, it is characterised in that step is as follows:
Step 1, program starts;
Step 2, RTCM3 data-message masterplate files are read in;
Step 3, judge whether RTCM3 data-message masterplate files load success;If loaded successfully, step 4 is performed;If plus Failure is carried, step 8 is performed;
Step 4, checking work is carried out;
Step 5, judge whether to be proved to be successful;If be proved to be successful, step 6 is performed;If authentication failed, output error carries out wrong Handle by mistake, perform step 8;
Step 6, program file is generated;
Step 7, RTCM3 message encoding and decoding files are automatically generated, step 9 is performed;
Step 8, failure handling is done, step 9 is performed;
Step 9, EP (end of program).
2. a kind of RTCM3 data decoding methods as claimed in claim 1, it is characterised in that RTCM3 data in the step 2 Message masterplate file includes message name and message data, and message data includes message modifier, RTCM3 data item, disappeared Cease data item title and message data order.
3. a kind of RTCM3 data decoding methods as claimed in claim 2, it is characterised in that RTCM3 compiles solution in the step 2 Code generator reads in RTCM3 data-message masterplate files, and program file is generated according to message name.
4. a kind of RTCM3 data decoding methods as claimed in claim 2, it is characterised in that the message modifier is Single or repeated types.
5. a kind of RTCM3 data decoding methods as claimed in claim 2, it is characterised in that verify work such as in the step 4 Under:
Verify whether RTCM3 data-message masterplate file formats are correct;
Determine whether message modifier and data field defined, it is ensured that definition of order of the field value in message data without By mistake.
6. a kind of RTCM3 data decoding methods as claimed in claim 2, it is characterised in that in program file in the step 7 The internal definition according to message data automatically generates RTCM3 message encoding and decoding files.
CN201710316163.4A 2017-05-06 2017-05-06 RTCM3 data decoding methods Pending CN107193621A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710316163.4A CN107193621A (en) 2017-05-06 2017-05-06 RTCM3 data decoding methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710316163.4A CN107193621A (en) 2017-05-06 2017-05-06 RTCM3 data decoding methods

Publications (1)

Publication Number Publication Date
CN107193621A true CN107193621A (en) 2017-09-22

Family

ID=59872752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710316163.4A Pending CN107193621A (en) 2017-05-06 2017-05-06 RTCM3 data decoding methods

Country Status (1)

Country Link
CN (1) CN107193621A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138877A (en) * 2011-11-29 2013-06-05 中国商用飞机有限责任公司 Message decoding method and device for plane communication addressing and reporting system
CN105824924A (en) * 2016-03-17 2016-08-03 孙红星 Multifunctional GNSS data conversion system
CN106357889A (en) * 2016-08-22 2017-01-25 杭州字节信息技术有限公司 Intelligence framework of Beidou satellite communication and navigation based on Android system and application

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103138877A (en) * 2011-11-29 2013-06-05 中国商用飞机有限责任公司 Message decoding method and device for plane communication addressing and reporting system
CN105824924A (en) * 2016-03-17 2016-08-03 孙红星 Multifunctional GNSS data conversion system
CN106357889A (en) * 2016-08-22 2017-01-25 杭州字节信息技术有限公司 Intelligence framework of Beidou satellite communication and navigation based on Android system and application

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张子林: "DGPS中RTCM数据解码分析与RINEX文件生成", 《现代测绘》 *
毕学军 等: "可变消息格式报文编解码工具设计", 《兵器装备工程学报》 *

Similar Documents

Publication Publication Date Title
CN108282474B (en) Block chain based digital asset transaction consistency maintenance method
CN105743616B (en) Long message segmentation and reliable communication method based on Big Dipper short message communication
CN103188668A (en) Security protection method and security protection system for mobile terminal application
CN102611531B (en) A kind of one-way data transmission method
CN109286473A (en) A kind of low complex degree PDCCH channel blind detecting method based on polarization code
CN103312458B (en) Hybrid coding method
CN103067364A (en) Virus detection method and equipment
CN102025444A (en) Resource publishing method, resource downloading method and data verification system
CN102045268B (en) A kind of e-mail data restoration methods and device
Alimpiev et al. The video information resources integrity concept by using binomial slots
CN105809039B (en) Buffer-overflow vulnerability self-repairing method
CN107193621A (en) RTCM3 data decoding methods
CN102403715B (en) Data matching method for electric power system
CN108540259A (en) A kind of polarization code coding/decoding method and device
CN111629008B (en) Communication data processing method and device
CN102438024A (en) Voice verification method based on nonlinguistic characteristics
CN111726125B (en) Error-containing concatenated code identification method based on template matching
CN110287118B (en) Test data generation method and software test method of test case
CN110381050A (en) The multi-protocols conversion method of calibration and device of data packet
CN107193685A (en) Entangling based on flash memory device deletes method and device
CN103514651A (en) Internet lottery secure transaction and claiming system based on face recognition and method thereof
CN107767192A (en) A kind of verification method of electronic bill, apparatus and system
CN105915551A (en) Real-name system verification method and communication operator real-name system verification method based on mobile terminal bottom layer
CN105718329B (en) terminal data recovery method and system
CN101262481A (en) A remote service recognition system and method for computer network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170922