CN105491037A - System and process for converting protocol between shipborne Beidou 2nd generation device and ship Ethernet - Google Patents

System and process for converting protocol between shipborne Beidou 2nd generation device and ship Ethernet Download PDF

Info

Publication number
CN105491037A
CN105491037A CN201510886499.5A CN201510886499A CN105491037A CN 105491037 A CN105491037 A CN 105491037A CN 201510886499 A CN201510886499 A CN 201510886499A CN 105491037 A CN105491037 A CN 105491037A
Authority
CN
China
Prior art keywords
data
beidou
iec61162
module
standard
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.)
Granted
Application number
CN201510886499.5A
Other languages
Chinese (zh)
Other versions
CN105491037B (en
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.)
DALIAN LANDSEA MARITECH Co Ltd
Original Assignee
DALIAN LANDSEA MARITECH 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 DALIAN LANDSEA MARITECH Co Ltd filed Critical DALIAN LANDSEA MARITECH Co Ltd
Priority to CN201510886499.5A priority Critical patent/CN105491037B/en
Publication of CN105491037A publication Critical patent/CN105491037A/en
Application granted granted Critical
Publication of CN105491037B publication Critical patent/CN105491037B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a ship communication protocol conversion system and a conversion process, which are used for data exchange between a shipborne Beidou 2nd generation device and a ship Ethernet. According to the protection conversion system, a UART0 module is used for receiving and sending data of the shipborne Beidou 2nd generation device to perform communication; a Beidou 2nd generation protocol function module is used for identifying and processing Beidou 2nd generation positioning data, device state data and system log data, and sending a Beidou device instruction to the shipborne Beidou 2nd generation device; a protocol conversion module is used for performing encapsulation conversion on the data of the shipborne Beidou 2nd generation device and IEC 61162-450 standard data; an IEC 61162-450 protocol function module manages a physical layer, a data link layer, an internet layer, a transport layer and an application layer of a communication protocol stack through a logic device and an application process to establish a communication link; and a network interface module establishes a network connection with the ship Ethernet to perform communication. Therefore, the conversion system and process can enable the shipborne Beidou 2nd generation device to be used in the ship Ethernet meeting IEC 61162-450 standards, and a foundation is laid for the application of the shipborne Beidou 2nd generation device to the field of ships.

Description

Protocol conversion system between boat-carrying Beidou II equipment and boats and ships Ethernet and process
Technical field
The present invention relates to a kind of marine communication protocol conversion system and transfer process, mutually exchange for data between boat-carrying Beidou II equipment and boats and ships Ethernet.
Background technology
Boat-carrying Beidou II equipment, due to its passive location, the many merits such as positioning precision is high, real-time is good, obtains using more and more widely at ship domain.But because the communication standard of boat-carrying Beidou II equipment adopts " Beidou satellite navigation system user terminal universal data interface ", the standard disunity of this standard and boats and ships Ethernet, cause inconvenience to the use of boat-carrying Beidou II equipment, too increase difficulty of construction and management cost simultaneously.
Current boats and ships Ethernet operative norm is IEC61162-450(" sail and Wireless Telecom Equipment and system data interface " Part450: the Ethernet of MPTY device and receiver is interconnected), do not define boat-carrying Beidou II equipment in standard and how to access boats and ships Ethernet, cause boat-carrying Beidou II equipment access boats and ships Ethernet difficulty.In existing IMO the Maritime Safety committee of International Maritime Organization resolution MSC.379 (93), the interface requirement of IEC61162 particularly must be met about requirement in " the boat-carrying BDS(Big Dipper) receiving equipment performance standard ".And existing IEC61162-1 and IEC61162-2(marine celestial navigation and radio communication equipment and system digits interface part 1: single session device and many receivers) definition is based on serial data form, do not specify the method for boat-carrying Beidou II equipment access boats and ships Ethernet in the standard of corresponding IEC61162-450, the solution adopting common serial-port communication and ethernet communication to change cannot meet the requirement of IEC61162-450 standard.
For these reasons, a kind of protocol conversion device and method is needed to solve the problem, for boat-carrying Beidou II equipment lays the foundation in the extensive use of ship domain.
Summary of the invention
The object of this invention is to provide a kind of for boat-carrying Beidou II device data acquisition, transmission and the communication Protocol Conversion system connecting boats and ships Ethernet, make current boat-carrying Beidou II equipment can be used in meeting the boats and ships Ethernet of IEC61162-450 standard.
Another object of the present invention is to provide a kind of protocol conversion process of above-mentioned protocol conversion system.
For realizing above-mentioned first object, the invention provides following technical scheme:
Be applicable to carry out an interconnected protocol conversion system between boat-carrying Beidou II equipment and boats and ships Ethernet, comprise:
UART0 module, for receiving and send the data meeting Beidou satellite navigation system user terminal universal data interface standard, adopts RS422 standard and boat-carrying Beidou II device talk;
Beidou II protocol function, builds according to Beidou satellite navigation system user terminal universal data interface standard, and process boat-carrying Beidou II device talk data, comprise command frame establishment, data frame analyzing and encapsulation;
Protocol conversion module, changes with the data meeting IEC61162-450 standard mutually by the boat-carrying Beidou II device data meeting Beidou satellite navigation system user terminal universal data interface standard;
IEC61162-450 protocol function, builds according to IEC61162-450 standard, realizes the function specified in IEC61162-450 standard, comprises the realization of the scheduling of each program circuit in logical device and management, communications protocol correlation function;
Network Interface Module, for receiving and send the data that IEC61162-450 standard specifies, adopts UDP multicast service agreement in the enterprising news that work of the boats and ships Ethernet meeting IEC61162-450 standard.
Described UART0 module comprises data reception module 0, data transmission blocks 0 and timer 0;
Described data reception module 0, segmented mode in employing, gives Beidou II functional module by the complete data frame received and processes;
Described data transmission blocks 0, adopts inquiry mode, the data of Beidou II Frame package module is sent to boat-carrying Beidou II equipment;
Described timer 0, for judging time-out between Frame byte.
Described Beidou function module encapsulates two module compositions by Beidou II data frame analyzing, Beidou II Frame;
Described Beidou II data frame analyzing module carries out data frame analyzing according to Beidou satellite navigation system user terminal universal data interface standard, its entrance is the output of data reception module 0, data frame analyzing will produce error logging and generation system daily record time abnormal, the data meeting Beidou satellite navigation system user terminal universal data interface standard is sent to Beidou II and turn IEC61162-450 Data Identification module;
Described Beidou II Frame package module identifies according to Beidou satellite navigation system user terminal universal data interface standard, its entrance is the output that IEC61162-450 turns Beidou II Data Identification module, generates the data meeting NMEA0183 reference format; The data meeting Beidou satellite navigation system user terminal universal data interface standard are sent to data transmission blocks 0.
Described protocol conversion module turns IEC61162-450 Data Identification by Beidou II and IEC61162-450 turns Beidou II Data Identification two module compositions;
Described Beidou II turns the data that the data meeting Beidou satellite navigation system user terminal universal data interface standard are converted to IEC61162-450 reference format by IEC61162-450 Data Identification module, and its protocol conversion process is as follows:
Input data observe Beidou satellite navigation system user terminal universal data interface standard, and wherein the encapsulation of navigation information frame encapsulates according to IEC61162-450 standard Appendix B regulation, and TAG block is:
“UdPbC\t:MMSI,c:UTC,s:Source-identification,n:Line-count*Checksum\”;
Wherein: " MMSI " represents Waterborne movable communication service identification code, " c ": represent the time, " UTC " represents the UTC time, and in seconds, " Checksum " represents check code;
UDP multicast service is adopted to send data to the boats and ships Ethernet meeting IEC61162-450 standard;
The function that the IEC61162-450 of described protocol conversion module turns Beidou II Data Identification module is carried out searching and changing according to the regulation of Beidou satellite navigation system user terminal universal data interface standard at the data meeting IEC61162-450 standard, sends to Beidou II Frame package module.
Described IEC61162-450 protocol function comprises three parts: logical device, application process module and standard communication protocol stack;
Described logical device only adopts a logic manage equipment, and all objects are all put into logical device, comprises functional object and data object;
Described application process module completes the function of IEC61162-450 standard, comprise the process of IEC61162-450 normal data, management logic facility information, respond each service primitive, if these service primitives meet IEC61162-450 standard, give communication protocol stack and send, otherwise give protocol conversion module and process;
Described communication protocol stack adopts the system protocol stack structure of five layer protocols, communication protocol stack completes the encapsulation of communication protocol, comprise application layer, transport layer, network layer, data link layer, physical layer five protocol layers, complete establishment of connection, the coding of communications data frame and parsing, the encapsulation of complete data frame, frame check and frame format and time-out detects.
Described IEC61162-450 protocol function adopts the self-defined expansion specified in IEC61162-450 standard, self-defined Beidou navigation information BD adds multicast group NAVD, multicast address 239.192.0.4 port 60004, the Beidou II locator data process information that the encapsulation of navigation information frame sends carries out multicast on NAVD.
Described IEC61162-450 protocol function, its system journal adopts UDP multicast service to carry out multicast according to IEC61162-450 standard regulation, and multicast address is 239.192.0.254, and port is 514.
Described IEC61162-450 protocol function, according to the regulation of expansion self-defined in IEC61162-450 standard, definition Big Dipper state BDZT is multicast group #, multicast address is 239.192.0.9, port is 60009, and the boat-carrying Beidou II status information of equipment that the encapsulation of equipment state frame sends carries out multicast on BDZT.
Described Network Interface Module comprises data transmission blocks 1, data reception module 1 and timer 1;
The data receiver of described data reception module adopts interrupt mode, the boats and ships Ethernet data received is flowed to communication protocol stack and carries out subsequent treatment;
The data of described data transmission blocks send and adopt inquiry mode, and the data of communication protocol stack are sent to Ethernet peculiar to vessel;
Described timer, for time-out between judgment frame byte.
In order to realize the second object, the invention provides following technical scheme:
Protocol conversion process of the present invention is as follows:
The communication process of IEC61162-450 standard adopts UDP multicast formula, and need to set up an application before a communication and connect, when protocol conversion system connects boat-carrying Beidou II equipment and boats and ships Ethernet, communication process starts, and whole communication process is as follows:
The first step sets up application connection procedure,
1st step: after protocol conversion system access boats and ships Ethernet, first set up physical layer and connect;
2nd step: after physical layer connects, system generated data response command issues consultative management process, sends Frame and sets up data link layer connection after consultative management process response command;
3rd step: after data link layer connection establishment, consultative management process sends order to internetwork layer connection, according to the IP address that this protocol conversion system configures, sets up internetwork layer and connects;
4th step: send data response command after internetwork layer connection establishment to consultative management process, consultative management process sends order and sets up transport layer connection, and this converting system adopts UDP multicast protocol to communicate;
5th step: send data response command after transport layer connection establishment to consultative management process, consultative management process sends order and sets up application layer connection;
6th step: send data response command after application layer connection establishment to consultative management process, consultative management process sends instruction to application process, shows the data communication normally can carrying out protocol conversion system;
Second step sets up data communication process,
Data communication process must carry out under the prerequisite establishing application connection;
(1) boat-carrying Beidou II device data is changed to the data protocol of boats and ships Ethernet,
1st step: boat-carrying Beidou II equipment sending data frame receives through UART0 receiver module, Beidou II protocol function carries out data frame analyzing, protocol conversion module gives application process after carrying out data transaction;
2nd step: application process, according to the regulation of IEC61162-450 standard, adopts UDP communication protocol, sends data to boats and ships Ethernet by communication protocol stack by Network Interface Module;
(2) boats and ships Ethernet data is changed to the data protocol of boat-carrying Beidou II equipment,
1st step: Network Interface Module receives the data of boats and ships Ethernet, and transfer to application process by communication protocol stack, application process carries out Data Analysis according to the regulation of IEC61162-450 standard;
2nd step: the data processed transfer to protocol conversion module to carry out data transaction by application process, the data converted transfer to Beidou II protocol function to carry out Frame encapsulation, and are sent to boat-carrying Beidou II equipment by UART0 sending module.
Provided by the invention for boat-carrying Beidou II equipment and boats and ships ethernet communication protocol converting system and transfer process thereof, be applied to meet " Beidou satellite navigation system user terminal universal data interface " standard between boat-carrying Beidou II equipment and the system of these two different stipulations of boats and ships Ethernet meeting IEC61162-450 standard, make can carry out normal exchanges data between the system of these two different stipulations.Therefore the present invention can make current boat-carrying Beidou II equipment for meeting in the boats and ships Ethernet of IEC61162-450 standard, thus lays a good foundation applying of ship domain for boat-carrying Beidou II equipment.
Accompanying drawing explanation
Fig. 1 is protocol conversion system hardware block diagram of the present invention;
Fig. 2 is protocol conversion system functional block diagram of the present invention;
Fig. 3 is the structure chart of protocol conversion system IEC61162-450 functional module communication protocol stack of the present invention;
Fig. 4 is protocol conversion system IEC61162-450UDP multi-case data form of the present invention.
Embodiment
Protocol conversion system of the present invention has two PORT COM, and a PORT COM is used for and the boat-carrying Beidou II device talk meeting " Beidou satellite navigation system user terminal universal data interface " standard; Another PORT COM carries out communication with adopting the boats and ships Ethernet of IEC61162-450 standard.So just the boat-carrying Beidou II equipment meeting " Beidou satellite navigation system user terminal universal data interface " standard is coupled together with these two communication systems of boats and ships Ethernet meeting IEC61162-450 standard, make it two systems and achieve exchanges data.Thus achieve the technical purpose that the present invention will reach.
As shown in Figure 1, protocol conversion system of the present invention comprises power module, MCU, memory, reseting module, UART0 and network interface.
Power module provides power supply for protocol conversion system modules.
MCU is the core of the protocol conversion system connecting boat-carrying Beidou II equipment and boats and ships Ethernet, for executive program code, completes protocol conversion function.
Memory, for depositing program and the configuration information of protocol conversion system, comprises the information such as IP address, serial communication baud rate.
Reseting module adopts and produces when program malfunctions the hardware watchdog that reset signal can restart system, utilize a timer circuit, its timing output is connected to the reset terminal of circuit, program resets timer within the scope of certain hour, and when therefore program normally works, timer always can not overflow, also just reset signal can not be produced, if program malfunctions, do not reset house dog in timing cycle, just makes WatchDog Timer overflow to produce reset signal to lay equal stress on starting system.
UART0 adopts serial data communication mode, and adopt RS422 interface to carry out full-duplex communication here, RS422 interface builds according to TIA/EIA-422-A standard.
Network interface builds according to IEEE802.3 standard, is connected to boats and ships Ethernet by RJ45 interface.
As shown in Figure 2, the protocol conversion system connecting boat-carrying Beidou II equipment and boats and ships Ethernet is divided into 5 modules, be divided into: UART0 module, Beidou function module, protocol conversion module, IEC61162-450 protocol function, Network Interface Module, illustrate below respectively.
1, UART0 module
The function of this module receives and sends boat-carrying Beidou II device package exactly, and namely adopt binary stream transfer of data ASCII by UART0 interface in accompanying drawing 1, it comprises data reception module 0, data transmission blocks 0 and timer 0.
(1) data reception module 0 adopts interrupt mode, and the complete data frame received is given Beidou II data frame analyzing module and carried out subsequent treatment by data reception module;
(2) data transmission blocks 0 adopts inquiry mode, and data transmission blocks is responsible for the data that Beidou II Frame package module is sent to send to boat-carrying Beidou II equipment;
(3) timer 0 is for time-out between judgment frame byte.
2, Beidou II protocol function
The major function of Beidou II protocol function is process boat-carrying Beidou II device talk data, build according to " Beidou satellite navigation system user terminal universal data interface " standard, encapsulate two module compositions by Beidou II data frame analyzing, Beidou II Frame.
(1) Beidou II data frame analyzing module
The entrance of this module is: the output of the data reception module of UART0, carries out data frame analyzing according to " Beidou satellite navigation system user terminal universal data interface " standard, will produce error logging and generation system daily record when data frame analyzing is abnormal;
The outlet of this module is: the data meeting Beidou satellite navigation system user terminal universal data interface standard, is sent to the input that Beidou II turns IEC61162-450 Data Identification module;
(2) Beidou II Frame package module
The entrance of this module is the output that IEC61162-450 turns Beidou II Data Identification module, identify according to " Beidou satellite navigation system user terminal universal data interface " standard, generate the data meeting NMEA0183 reference format, NMEA0183 standard is National Marine Electronics association (NationalMarineElectronicsAssociation) is the reference format that sea electronic equipment is formulated.;
The outlet of this module is the input data meeting Beidou satellite navigation system user terminal universal data interface standard being sent to UART0 data transmission blocks.
3, protocol conversion module
The function of protocol conversion module according to the data specifying in " Beidou satellite navigation system user terminal universal data interface " standard lookup IEC61162-450 standard to identify, and is converted to notebook data the data meeting " Beidou satellite navigation system user terminal universal data interface " standard; Rebuild according to IEC61162-450 standard meeting the data that " Beidou satellite navigation system user terminal universal data interface " specify.This module turns IEC61162-450 Data Identification by Beidou II and IEC61162-450 turns Beidou II Data Identification two module compositions.
(1) Beidou II turns IEC61162-450 Data Identification module
The function of this module is that the data meeting " Beidou satellite navigation system user terminal universal data interface " standard in boat-carrying Beidou II device data are converted to the data of IEC61162-450 reference format.
The entrance of this module: the output of Beidou II data frame analyzing module, data format is NMEA0183 standard.
The outlet of this module: the input of the application process module of IEC61162-450 protocol function.
(2) IEC61162-450 turns Beidou II Data Identification module
The function of this module is carried out searching and changing, to be supplied to boat-carrying Beidou II equipment according to " Beidou satellite navigation system user terminal universal data interface " standard at the data of IEC61162-450 reference format.
The entrance of this module: the output of the application process module of IEC61162-450 protocol function.
The outlet of this module: data issue the input of Beidou II Frame package module, data format is NMEA0183 standard.
4, IEC61162-450 protocol function
IEC61162-450 protocol function builds according to IEC61162-450 standard, it is the nucleus module supporting this standard, its major function has been the correlation function of IEC61162-450 standard, comprises the realization etc. of the scheduling of each program circuit in logical device and equipment and management, communications protocol correlation function.IEC61162-450 protocol function comprises three parts: logical device, application process module and standard communication protocol stack.
(1) logical device
Protocol conversion system involved in the present invention carrys out the structure of finishing equipment by object-oriented data model, this protocol conversion system only adopts a logical device to manage all logical device, all objects are all put into logical device, comprise functional object and data object, these objects build the data model of IEC61162-450 protocol function jointly.
(2) application process module
This module has been the nucleus module of IEC61162-450 standard, its task comprise IEC61162-450 standard gauge given data process, management logic facility information, respond each service primitive.If these service original statements are relevant to IEC61162-450 standard, transfer to give communication protocol stack and send, otherwise give protocol conversion module and process.
(3) communication protocol stack
Communication protocol stack adopts the system protocol stack structure of five layer protocols, communication protocol stack completes the encapsulation of communication protocol, comprise application layer, transport layer, network layer, data link layer, physical layer five protocol layers, mainly comprise establishment of connection, the coding of communications data frame and parsing, the encapsulation of complete data frame, frame check and frame format and time-out detects.Communication protocol stack concrete structure as shown in Figure 4.
5, Network Interface Module
The major function of Network Interface Module receives and send IEC61162-450 standard Protocol Data bag, i.e. binary stream data.It comprises data transmission blocks 1, data reception module 1 and timer 1.
(1) data reception module 1
Data receiver adopts interrupt mode, carries out subsequent treatment by passing to communication protocol stack after taken-over vessel Ethernet data;
(2) data transmission blocks 1
Data send and adopt inquiry mode, are responsible for the data of IEC61162-450 standard agreement functional module communication protocol stack to be sent to Ethernet peculiar to vessel.
(3) timer 1
Timer 1 is for time-out between judgment frame byte;
As shown in Figure 3, the protocol conversion process of above-mentioned protocol conversion system is as follows:
The communication process of IEC61162-450 standard adopts UDP multicast formula, needs to set up an application before a communication and connect.When protocol conversion system access boats and ships Ethernet, communication process starts.Whole communication process is as follows:
1, application connection procedure is set up
The first step: after protocol conversion system access boats and ships Ethernet, first set up physical layer and connect;
Second step: after physical layer connects, system generated data response command issues consultative management process, sends Frame and sets up data link layer connection after consultative management process response command;
3rd step: after data link layer connection establishment, consultative management process sends order to internetwork layer connection, according to the IP address that this protocol conversion system configures, sets up internetwork layer and connects;
4th step: send data response command after internetwork layer connection establishment to consultative management process, consultative management process sends order and sets up transport layer connection, and this converting system adopts UDP multicast protocol to communicate;
5th step: send data response command after transport layer connection establishment to consultative management process, consultative management process sends order and sets up application layer connection.
6th step: send data response command after application layer connection establishment to consultative management process, consultative management process sends instruction to application process, shows the data communication normally can carrying out protocol conversion system.
2, data communication process
Data communication process must carry out under the prerequisite establishing application connection.
(1) boat-carrying Beidou II device data is changed to the data protocol of boats and ships Ethernet
The first step: boat-carrying Beidou II equipment sending data frame receives through UART0 receiver module, Beidou II protocol function carries out data frame analyzing, protocol conversion module gives application process after carrying out data transaction;
Second step: application process, according to the regulation of IEC61162-450 standard, adopts UDP communication protocol, sends data to boats and ships Ethernet by communication protocol stack by network interface service module.
(2) boats and ships Ethernet data is changed to the data protocol of boat-carrying Beidou II equipment
The first step: network interface service module receives the data of boats and ships Ethernet, and transfer to application process by communication protocol stack, application process carries out Data Analysis according to the regulation of IEC61162-450 standard.
Second step: the data processed transfer to protocol conversion module to carry out data transaction by application process, the data converted transfer to Beidou II protocol function to carry out Frame encapsulation, and are sent to boat-carrying Beidou II equipment by UART0 sending module.
As shown in Figure 4, when the encapsulation of Beidou II locator data process navigation information frame sends locating information data according to " Beidou satellite navigation system user terminal universal data interface " standard, data fit NMEA0183 standard, such as:
“$BDGGA,123519,4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,
M,,*47<0x0D><0x0A>”
The encapsulation of navigation information frame is encapsulated according to IEC61162-450 standard and Appendix B regulation thereof.TAG block is " UdPbC t:MMSI, c:UTC, s:Source-identification, n:Line-count*Checksum "
Wherein: " MMSI " represents Waterborne movable communication service identification code, " c ": represent the time; " UTC " represents the UTC time, in seconds." Checksum " represents check code.
Encapsulation of data is:
“UdPbC\t:412607000,c:1424893517,s:BD0001,n:987*20\$GPGGA,123519,
4807.038,N,01131.000,E,1,08,0.9,545.4,M,46.9,M,,*47<0x0D><0x0A>”
Wherein:
The multicast that " UdPbC " specifies for IEC61162-450 agreement represents symbol;
In " t:412607000 ", " t " represents text, and " 412607000 " represent Waterborne movable communication service identification code MMSI;
In " c:1424893517 ", " c " represents the time, and " 1424893517 " represent the UTC time, corresponding Beijing time " 2015/2/263:45:17 ";
In " s:BD0001 ", " s " represents information source, and " BD " represents boat-carrying Beidou II equipment, " 0001 " order of representation number;
In " n:987 ", " n " represents line number, and " 987 " represent line number value, has the statement line numerical value of identical identifier (such as " $ GPGGA ") information frame to export from 0 to 999 circulations;
In " n:987*20 ", " * " is separator;
In " n:987*20 ", " 20 " are CRC check code.
UDP multicast service sends data to boats and ships Ethernet.
When the process of boat-carrying Beidou II device status data encapsulates transmission and reception status information data according to " Beidou satellite navigation system user terminal universal data interface " standard to equipment state frame, such as:
“$BDBSI,3,4,0,2,0,0,3,5,0,0,0,0*5D<0x0D><0x0A>”
The encapsulation of equipment state frame is encapsulated according to IEC61162-450 standard regulation, and wherein TAG is identical with the TAG data format that navigation information frame encapsulates, and after encapsulation, data are:
“UdPbC\t:412607000,c:1424893517,s:BD0001,n:453*24\$BDBSI,3,4,0,2,
0,0,3,5,0,0,0,0*5D<0x0D><0x0A>”
The encapsulation of boat-carrying Beidou II device directive sends station-keeping mode setting data by sending module to boat-carrying Beidou II terminal equipment according to " Beidou satellite navigation system user terminal universal data interface " regulation, such as:
“$CCMSS,Z,2,B1,A,B3,P,,*36<0x0D><0x0A>”
The error reporting of the Beidou II functional module captured is sent to error log by error reporting, as follows according to the regulation generation error daily record of 4.3.3 in IEC61162-450:
“131120150204T23:10:20-01:00192.168.103.250450-BDT-102–dataheadererror”
The encapsulation of system journal frame is encapsulated according to IEC61162-450 standard regulation, and wherein TAG is identical with the TAG formatted data that navigation information frame encapsulates, and after encapsulation, data are
“UdPbC\t:412607000,c:1467543517,s:BD0001,n:187*2F\131120150204
T23:10:20-01:00192.168.103.250450-BDT-102–dataheadererror”
Table 1 lists Beidou II locating information UDP multicast service address.
Table 1
Adopt self-defined expansion in IEC61162-450, self-defined BD(Beidou navigation information) add multicast group NAVD, multicast address 239.192.0.4 port 60004.The Beidou II locator data process information that the encapsulation of navigation information frame sends carries out multicast on NAVD.
Table 2 lists boat-carrying Beidou II status information of equipment UDP multicast service address.
Table 2
Adopt self-defined expansion in IEC61162-450, be defined as BDZT(Big Dipper state) multicast group #, multicast address 239.192.0.9 port 60009.The boat-carrying Beidou II status information of equipment that equipment state frame encapsulation 232 sends carries out multicast on BDZT.
Table 3 lists boat-carrying Beidou II device log multicast service address.
Table 3
The daily record of boat-carrying Beidou II device Errors is encapsulated by system journal frame, carries out multicast according to the requirement of regulation system journal multicast group in IEC61162-450 standard on multicast address 239.192.0.254 port 514 by UDP multicast service.

Claims (10)

1. be applicable to carry out an interconnected protocol conversion system between boat-carrying Beidou II equipment and boats and ships Ethernet, it is characterized in that: comprise
UART0 module, for receiving and send the data meeting Beidou satellite navigation system user terminal universal data interface standard, adopts RS422 standard and boat-carrying Beidou II device talk;
Beidou II protocol function, builds according to Beidou satellite navigation system user terminal universal data interface standard, and process boat-carrying Beidou II device talk data, comprise command frame establishment, data frame analyzing and encapsulation;
Protocol conversion module, changes with the data meeting IEC61162-450 standard mutually by the boat-carrying Beidou II device data meeting Beidou satellite navigation system user terminal universal data interface standard;
IEC61162-450 protocol function, builds according to IEC61162-450 standard, realizes the function specified in IEC61162-450 standard, comprises the realization of the scheduling of each program circuit in logical device and management, communications protocol correlation function;
Network Interface Module, for receiving and send the data that IEC61162-450 standard specifies, adopts UDP multicast service agreement in the enterprising news that work of the boats and ships Ethernet meeting IEC61162-450 standard.
2. protocol conversion system according to claim 1, is characterized in that: described UART0 module comprises data reception module 0, data transmission blocks 0 and timer 0;
Described data reception module 0, segmented mode in employing, gives Beidou II functional module by the complete data frame received and processes;
Described data transmission blocks 0, adopts inquiry mode, the data of Beidou II Frame package module is sent to boat-carrying Beidou II equipment;
Described timer 0, for judging time-out between Frame byte.
3. protocol conversion system according to claim 1, is characterized in that: described Beidou function module encapsulates two module compositions by Beidou II data frame analyzing, Beidou II Frame;
Described Beidou II data frame analyzing module carries out data frame analyzing according to Beidou satellite navigation system user terminal universal data interface standard, its entrance is the output of data reception module 0, data frame analyzing will produce error logging and generation system daily record time abnormal, the data meeting Beidou satellite navigation system user terminal universal data interface standard is sent to Beidou II and turn IEC61162-450 Data Identification module;
Described Beidou II Frame package module identifies according to Beidou satellite navigation system user terminal universal data interface standard, its entrance is the output that IEC61162-450 turns Beidou II Data Identification module, generates the data meeting NMEA0183 reference format; The data meeting Beidou satellite navigation system user terminal universal data interface standard are sent to data transmission blocks 0.
4. protocol conversion system according to claim 1, is characterized in that: described protocol conversion module turns IEC61162-450 Data Identification by Beidou II and IEC61162-450 turns Beidou II Data Identification two module compositions;
Described Beidou II turns the data that the data meeting Beidou satellite navigation system user terminal universal data interface standard are converted to IEC61162-450 reference format by IEC61162-450 Data Identification module, and its protocol conversion process is as follows:
Input data observe Beidou satellite navigation system user terminal universal data interface standard, and wherein the encapsulation of navigation information frame encapsulates according to IEC61162-450 standard Appendix B regulation, and TAG block is:
“UdPbC\t:MMSI,c:UTC,s:Source-identification,n:Line-count*Checksum\”;
Wherein: " MMSI " represents Waterborne movable communication service identification code, " c ": represent the time, " UTC " represents the UTC time, and in seconds, " Checksum " represents check code;
UDP multicast service is adopted to send data to the boats and ships Ethernet meeting IEC61162-450 standard;
The function that the IEC61162-450 of described protocol conversion module turns Beidou II Data Identification module is carried out searching and changing according to the regulation of Beidou satellite navigation system user terminal universal data interface standard at the data meeting IEC61162-450 standard, sends to Beidou II Frame package module.
5. protocol conversion system according to claim 1, is characterized in that: described IEC61162-450 protocol function comprises three parts: logical device, application process module and standard communication protocol stack;
Described logical device only adopts a logic manage equipment, and all objects are all put into logical device, comprises functional object and data object;
Described application process module completes the function of IEC61162-450 standard, comprise the process of IEC61162-450 normal data, management logic facility information, respond each service primitive, if these service primitives meet IEC61162-450 standard, give communication protocol stack and send, otherwise give protocol conversion module and process;
Described communication protocol stack adopts the system protocol stack structure of five layer protocols, communication protocol stack completes the encapsulation of communication protocol, comprise application layer, transport layer, network layer, data link layer, physical layer five protocol layers, complete establishment of connection, the coding of communications data frame and parsing, the encapsulation of complete data frame, frame check and frame format and time-out detects.
6. protocol conversion system according to claim 1, it is characterized in that: described IEC61162-450 protocol function adopts the self-defined expansion specified in IEC61162-450 standard, self-defined Beidou navigation information BD adds multicast group NAVD, multicast address 239.192.0.4 port 60004, the Beidou II locator data process information that the encapsulation of navigation information frame sends carries out multicast on NAVD.
7. protocol conversion system according to claim 1, it is characterized in that: described IEC61162-450 protocol function, its system journal adopts UDP multicast service to carry out multicast according to IEC61162-450 standard regulation, and multicast address is 239.192.0.254, and port is 514.
8. protocol conversion system according to claim 1, it is characterized in that: described IEC61162-450 protocol function, according to the regulation of expansion self-defined in IEC61162-450 standard, definition Big Dipper state BDZT is multicast group #, multicast address is 239.192.0.9, port is 60009, and the boat-carrying Beidou II status information of equipment that the encapsulation of equipment state frame sends carries out multicast on BDZT.
9. protocol conversion system according to claim 1, is characterized in that: described Network Interface Module comprises data transmission blocks 1, data reception module 1 and timer 1;
The data receiver of described data reception module adopts interrupt mode, the boats and ships Ethernet data received is flowed to communication protocol stack and carries out subsequent treatment;
The data of described data transmission blocks send and adopt inquiry mode, and the data of communication protocol stack are sent to Ethernet peculiar to vessel;
Described timer, for time-out between judgment frame byte.
10. the protocol conversion process being applicable to the protocol conversion system between boat-carrying Beidou II equipment and boats and ships Ethernet is as follows:
The communication process of IEC61162-450 standard adopts UDP multicast formula, and need to set up an application before a communication and connect, when protocol conversion system connects boat-carrying Beidou II equipment and boats and ships Ethernet, communication process starts, and whole communication process is as follows:
The first step sets up application connection procedure,
1st step: after protocol conversion system access boats and ships Ethernet, first set up physical layer and connect;
2nd step: after physical layer connects, system generated data response command issues consultative management process, sends Frame and sets up data link layer connection after consultative management process response command;
3rd step: after data link layer connection establishment, consultative management process sends order to internetwork layer connection, according to the IP address that this protocol conversion system configures, sets up internetwork layer and connects;
4th step: send data response command after internetwork layer connection establishment to consultative management process, consultative management process sends order and sets up transport layer connection, and this converting system adopts UDP multicast protocol to communicate;
5th step: send data response command after transport layer connection establishment to consultative management process, consultative management process sends order and sets up application layer connection;
6th step: send data response command after application layer connection establishment to consultative management process, consultative management process sends instruction to application process, shows the data communication normally can carrying out protocol conversion system;
Second step sets up data communication process,
Data communication process must carry out under the prerequisite establishing application connection;
(1) boat-carrying Beidou II device data is changed to the data protocol of boats and ships Ethernet,
1st step: boat-carrying Beidou II equipment sending data frame receives through UART0 receiver module, Beidou II protocol function carries out data frame analyzing, protocol conversion module gives application process after carrying out data transaction;
2nd step: application process, according to the regulation of IEC61162-450 standard, adopts UDP communication protocol, sends data to boats and ships Ethernet by communication protocol stack by Network Interface Module;
(2) boats and ships Ethernet data is changed to the data protocol of boat-carrying Beidou II equipment,
1st step: Network Interface Module receives the data of boats and ships Ethernet, and transfer to application process by communication protocol stack, application process carries out Data Analysis according to the regulation of IEC61162-450 standard;
2nd step: the data processed transfer to protocol conversion module to carry out data transaction by application process, the data converted transfer to Beidou II protocol function to carry out Frame encapsulation, and are sent to boat-carrying Beidou II equipment by UART0 sending module.
CN201510886499.5A 2015-12-07 2015-12-07 Protocol conversion system and process between boat-carrying Beidou II equipment and ship Ethernet Active CN105491037B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510886499.5A CN105491037B (en) 2015-12-07 2015-12-07 Protocol conversion system and process between boat-carrying Beidou II equipment and ship Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510886499.5A CN105491037B (en) 2015-12-07 2015-12-07 Protocol conversion system and process between boat-carrying Beidou II equipment and ship Ethernet

Publications (2)

Publication Number Publication Date
CN105491037A true CN105491037A (en) 2016-04-13
CN105491037B CN105491037B (en) 2019-02-12

Family

ID=55677752

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510886499.5A Active CN105491037B (en) 2015-12-07 2015-12-07 Protocol conversion system and process between boat-carrying Beidou II equipment and ship Ethernet

Country Status (1)

Country Link
CN (1) CN105491037B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111992A (en) * 2017-12-23 2018-06-01 北京卫星信息工程研究所 A kind of split type boat-carrying admittance equipment and its data processing method
CN110381046A (en) * 2019-07-10 2019-10-25 广东星舆科技有限公司 A kind of encrypted transmission method of GNSS data
CN110794826A (en) * 2019-09-24 2020-02-14 北京旷视机器人技术有限公司 Hybrid navigation method and device, communication method and device, equipment and storage medium
CN111585999A (en) * 2020-04-28 2020-08-25 深圳震有科技股份有限公司 Data conversion method, system and storage medium
CN112019256A (en) * 2020-08-28 2020-12-01 深圳市青柠互动科技开发有限公司 Gateway device and satellite ground station system
CN112116201A (en) * 2020-08-11 2020-12-22 长江三峡通航管理局 Method for acquiring and processing navigation operation data of ship lock

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201039202Y (en) * 2007-04-24 2008-03-19 武汉理工大学 Multi-channel standard data receiver for boat
CN101277299A (en) * 2008-05-13 2008-10-01 珠海中慧微电子有限公司 Protocol conversion system and protocol conversion process
CN101820417A (en) * 2010-03-05 2010-09-01 威胜集团有限公司 Development system of interoperability electricity communication protocol

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201039202Y (en) * 2007-04-24 2008-03-19 武汉理工大学 Multi-channel standard data receiver for boat
CN101277299A (en) * 2008-05-13 2008-10-01 珠海中慧微电子有限公司 Protocol conversion system and protocol conversion process
CN101820417A (en) * 2010-03-05 2010-09-01 威胜集团有限公司 Development system of interoperability electricity communication protocol

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111992A (en) * 2017-12-23 2018-06-01 北京卫星信息工程研究所 A kind of split type boat-carrying admittance equipment and its data processing method
CN110381046A (en) * 2019-07-10 2019-10-25 广东星舆科技有限公司 A kind of encrypted transmission method of GNSS data
CN110381046B (en) * 2019-07-10 2021-12-07 广东星舆科技有限公司 GNSS data encryption transmission method
CN110794826A (en) * 2019-09-24 2020-02-14 北京旷视机器人技术有限公司 Hybrid navigation method and device, communication method and device, equipment and storage medium
CN110794826B (en) * 2019-09-24 2023-10-20 北京旷视机器人技术有限公司 Hybrid navigation method and device, communication method and device, equipment and storage medium
CN111585999A (en) * 2020-04-28 2020-08-25 深圳震有科技股份有限公司 Data conversion method, system and storage medium
CN112116201A (en) * 2020-08-11 2020-12-22 长江三峡通航管理局 Method for acquiring and processing navigation operation data of ship lock
CN112116201B (en) * 2020-08-11 2021-07-06 长江三峡通航管理局 Method for acquiring and processing navigation operation data of ship lock
CN112019256A (en) * 2020-08-28 2020-12-01 深圳市青柠互动科技开发有限公司 Gateway device and satellite ground station system

Also Published As

Publication number Publication date
CN105491037B (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN105491037A (en) System and process for converting protocol between shipborne Beidou 2nd generation device and ship Ethernet
CN100534040C (en) Ethernet optical terminal adapter and ethernet transmission method
CN111064726B (en) Method and system for realizing data conversion between GOOSE protocol and HDLC protocol
CN102195946A (en) Intelligent communication controller based on ARM (Advanced RISC Machines) technology
CN102053935A (en) MODBUS serial communication protocol-based communication method
CN113115346A (en) Gateway multi-protocol conversion device based on 5G and method thereof
CN103595598A (en) Remote transparent transmission serial server based on fiber and control mode thereof
CN103647706A (en) Self-adaptation protocol communication gateway and communication platform
CN106506306A (en) A kind of method and apparatus of data-message transmission
CN104683228A (en) FPGA-based digital switch media gateway implementation method
CN104426605B (en) Remote equipment failure localization method, system and relevant device based on optical fiber transmission
CN110708394A (en) Data transmission method, unit, system, acquisition terminal and central server
CN104980371B (en) Microserver
CN110062178A (en) One kind is based on government affairs wireless private network and the double net video transmission methods of wireless public network
CN103731330A (en) Calibration data communication device and communication method
KR20150000516A (en) Apparatus and method for communication using communication protocol of container tracer
KR101572810B1 (en) asynchronous communication and synchronous communication system and its control method
CN106027137A (en) Multi-satellite compatible satellite remote sensing ground receiving and processing system and method thereof
CN106603430A (en) SOPC-based general data communication interface integration method
CN103873391B (en) A kind of two layers of adapter select system and method
CN112929356A (en) Method and system for converting cclink protocol into modbus protocol
CN204013549U (en) A kind of CAN bus network based on optical fiber communication
CN204031197U (en) The management system of master station automation equipment
CN207440553U (en) A kind of encoder of Profinet outputs
CN104184570A (en) Communication system and method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant