A protocol data system and method applied to AIS
By designing a protocol data system that supports custom instruction sets and dynamic port configuration in the AIS system, the problem of inconvenient connection of external devices and instruction set limitations of the AIS system is solved, and more efficient and flexible data transmission and device management are achieved.
Patent Information
- Application Number
- CN202111219214.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-20
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-10-20
AI Technical Summary
The existing AIS system has inconvenient connections to external devices and only supports the standard AIS ClassA command set, making it difficult to meet individual needs.
A protocol data system is designed, including multiple communication ports, data storage modules and port configuration modules. It supports ClassA instruction sets and custom instruction sets, allows external devices to be connected randomly, and configures the communication baud rate and functions of the ports through software. , to achieve dynamic allocation and flexible configuration of ports.
It improves the utilization efficiency and configuration flexibility of communication ports, enhances the reliability of data transmission, supports custom instruction sets and hot switching of ports, and simplifies the installation and maintenance of equipment.
Smart Images

Figure CN113934664B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a protocol data system and method, in particular to a protocol data system and method applied to AIS, belonging to the technical field of automatic control. Background Art
[0002] The Automatic Identification System (AIS) is composed of shore-based (base station) facilities and ship-borne equipment. It is a new type of digital navigation aid system and equipment that integrates network technology, modern communication technology, computer technology, and electronic information display technology. AIS can realize accurate and efficient identification and information exchange between ships and ships and between ships and shores, and plays an important role in ship collision avoidance and VTS management systems. However, the current AIS system uses fixed ports to connect external devices, and the functions and connections between ports cannot be interchanged, which brings inconvenience to the connection, installation and maintenance of the equipment. In addition, the current AIS system only supports the standard AIS ClassA instruction set, which is difficult to meet some personalized needs of manufacturers and customers. Summary of the invention
[0003] The technical problem to be solved by the present invention is to provide a protocol data system and method applied to AIS to realize random connection of external devices of the AIS system.
[0004] In order to solve the above technical problems, the technical solution adopted by the present invention is:
[0005] A protocol data system applied to AIS, characterized by: comprising
[0006] Multiple communication ports for connecting different devices in the AIS system;
[0007] A data storage module, used for storing data;
[0008] Port configuration module, configures the communication baud rate supported by each communication port;
[0009] Instruction set module, supports ClassA instruction set and also supports custom instruction set.
[0010] Furthermore, the plurality of communication ports include an AIS module interface, a remote communication interface, an MKD interface, an ECDIS interface, a pilot interface and a download / upgrade port.
[0011] Furthermore, any one of the plurality of communication ports can be used as a program download / upgrade port.
[0012] Furthermore, the communication port is a serial communication port.
[0013] Furthermore, when connecting external devices to the serial communication ports, any external device can be connected to any serial communication port, and the connection of the external device is not fixed.
[0014] Furthermore, from the download / upgrade port, and according to the external devices connected to the remaining communication ports, the input instructions, output instructions, and transparent transmission instructions supported by the corresponding ports are configured through software.
[0015] Furthermore, the custom instruction set includes
[0016] 1) Regional custom instruction protocol:
[0017] Field 1: $POVA, Field 2: MKD, Field 3: ACA, Connection field: Use the standard ACA statement, Verification field: Verification code;
[0018] 2) Input and output port data set control instructions:
[0019] Field header: $POVA, direction control: IN / OUT, port number: 1-13, data set name: 0-F, check field: check code;
[0020] 3) Types, input and output, and frequency control instructions of statements in the data set:
[0021] Field header: $POVA, data set name: 0-F, mnemonic, statement switch and frequency: 0 / 1, 1-99, mnemonic: check code, statement switch and frequency: 0 / 1, 1-99, mnemonic, statement switch and frequency: 0 / 1, 1-99;
[0022] 4) Port baud rate setting instructions:
[0023] Field 1: $POVA, Field 2: BPS, Fields 3-12: Serial port switch and frequency control, Fields 13-16: CAN / LAN, Check field: Check code;
[0024] 5) Power switching control instructions:
[0025] Field 1: $PSPP, Field 2: Large and small power settings;
[0026] 6) Modify parameter instructions:
[0027] Field 1: $POVA, Field 2: VER, Fields 3-4: Source Control, Field 5: Function Number, Fields 6-8: Manufacturer / Revision Number / Serial Number;
[0028] 7) Restore factory settings command:
[0029] Field 1: $POVA, Field 2: RESET*71 / RESTORE*6C.
[0030] Furthermore, the custom instruction set also includes a silent mode control instruction, a data retransmission times control instruction, and an instruction for obtaining UTC time.
[0031] A protocol data configuration method for a protocol data system applied to AIS, characterized by comprising the following steps:
[0032] All instructions are divided into input instruction group, output instruction group and transparent transmission instruction according to the data transmission direction;
[0033] The port pool configuration is performed based on the available ports of the current device and the physical connection status of the ports. The configuration content includes:
[0034] 1) According to the different devices connected, configure the input command group number supported by the port;
[0035] 2) According to the different devices connected, configure the output instruction group number supported by the port;
[0036] 3) Configure the serial communication baud rate of the port according to the connected device;
[0037] Dynamic port allocation: After the system is powered on and completes related initialization work, it starts to read the configuration parameters of each port from the Flash. After completion, it starts to configure each port in turn from the port pool. After all ports are configured, it enters the data monitoring state;
[0038] If a port receives a command, it first determines whether the command belongs to the custom command set. If so, it directly enters the command processing flow. If it is a standard command, it determines whether it belongs to the whitelist command of the port. If so, it transitions to the command processing flow. Otherwise, it means that this is an invalid command or a command that does not belong to the port. The processing is abandoned and the port returns to the listening state to wait for the arrival of new commands.
[0039] After the instruction processing is completed, the return instruction is generated through the information desensitization process. Before the return instruction is output, it is necessary to query the output instruction whitelist of the port again. If the return instruction is in the whitelist, it is output from the port. Otherwise, the output of the return instruction is abandoned and the entire process ends.
[0040] Compared with the prior art, the present invention has the following advantages and effects: the protocol data system and method applied to AIS of the present invention uses a data protocol conversion system that can support AIS Class A, and the data protocol conversion system supports custom instructions, the port supports blind insertion of external devices, and hot switching of communication baud rates, thereby improving the utilization efficiency and configuration flexibility of the communication port and enhancing the reliability of data transmission in dynamic conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of a protocol data system applied to AIS of the present invention.
[0042] Figure 2 The present invention is a flow chart of a protocol data configuration method applied to AIS. DETAILED DESCRIPTION
[0043] In order to elaborate on the technical scheme adopted by the present invention to achieve the predetermined technical purpose, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only partial embodiments of the present invention, rather than all embodiments, and the technical means or technical features in the embodiments of the present invention can be replaced without paying creative work. The present invention will be described in detail below with reference to the drawings and in conjunction with the embodiments.
[0044] like Figure 1 As shown, a protocol data system applied to AIS of the present invention comprises
[0045] Multiple communication ports are used to connect different devices in the AIS system. The multiple communication ports include AIS module interface, remote communication interface, MKD interface, ECDIS interface, pilot interface and download / upgrade port. Any of the multiple communication ports can be used as a program download / upgrade port. The communication port adopts a serial communication port or other port with data communication function. When connecting external devices to the serial communication port, any external device can be connected to any serial communication port, and the connection of the external device is not fixed. Each external device can configure the input instructions, output instructions and transparent transmission instructions supported by the port through software from the download / upgrade port according to the external devices connected to the other communication ports.
[0046] The data storage module is used to store data.
[0047] The status indication and alarm module is used to indicate the operating status of the system, as well as the alarm function under fault and abnormal conditions.
[0048] Port configuration module, which configures the communication baud rate supported by each communication port through software;
[0049] Instruction set module, supports ClassA instruction set and also supports custom instruction set.
[0050] The protocol data system applied to AIS of the present invention has multiple serial communication interfaces, which are respectively connected to AIS, MKD, ECDIS, remote communication interface, program download / upgrade interface, etc., and are responsible for receiving information and AIS instructions from remote ports, and distributing them to various devices or sensors through serial interfaces after conversion processing. In addition to the standard AISClassA instruction set, the data protocol conversion system also supports a custom instruction set.
[0051] Custom instruction sets include
[0052] 1) Regional custom instruction protocol:
[0053] Field 1: $POVA, Field 2: MKD, Field 3: ACA, Connection field: Use the standard ACA statement, Verification field: Verification code;
[0054] This custom statement can make regional operation settings and management more convenient and flexible.
[0055] 2) Input and output port data set control instructions:
[0056] Field header: $POVA, direction control: IN / OUT, port number: 1-13, data set name: 0-F, check field: check code;
[0057] The direction control field IN and OUT represent the port as input / output direction respectively. The range of the configured port is between 1-13, and the data set name can be selected between 0-F.
[0058] 3) Types, input and output, and frequency control instructions of statements in the data set:
[0059] Field header: $POVA, data set name: 0-F, mnemonic, statement switch and frequency: 0 / 1, 1-99, mnemonic: check code, statement switch and frequency: 0 / 1, 1-99, mnemonic, statement switch and frequency: 0 / 1, 1-99;
[0060] The type, input and output, and frequency control instructions of the statements in the data set are mainly composed of the custom statement field header, the data set name, the mnemonic, the statement switch, and the frequency control field. In the statement switch field, "0" represents off, "1" represents on, and 1-99 controls the frequency of statement sending.
[0061] 4) Port baud rate setting instructions:
[0062] Field 1: $POVA, Field 2: BPS, Fields 3-12: Serial port switch and frequency control, Fields 13-16: CAN / LAN, Check field: Check code;
[0063] The port baud rate setting instruction mainly consists of fields such as custom statement field header, baud rate setting flag, serial port switch and frequency control, CAN / LAN control and checksum.
[0064] 5) Power switching control instructions:
[0065] Field 1: $PSPP, Field 2: Large and small power settings;
[0066] The power switching control instruction is used to control the working power of the device. It starts with "$PSPP". When field 2 is "1*1E", it is used to control the device to work in low power mode. When field 2 is "0*1F", it is used to control the device to work in high power mode.
[0067] 6) Modify parameter instructions:
[0068] Field 1: $POVA, Field 2: VER, Fields 3-4: Source Control, Field 5: Function Number, Fields 6-8: Manufacturer / Revision Number / Serial Number;
[0069] The parameter modification instruction consists of a custom instruction header, version mark, source control, function number, manufacturer, version number, serial number and other information, which is used for equipment management and maintenance.
[0070] 7) Restore factory settings command:
[0071] Field 1: $POVA, Field 2: RESET*71 / RESTORE*6C.
[0072] The custom instruction set also includes silent mode control instructions, data retransmission times control instructions, and UTC time acquisition instructions.
[0073] The factory reset command consists of a custom command header and a reset / restore field.
[0074] Other custom commands include silent mode control, data retransmission times control, and UTC time acquisition, etc. The use of these custom commands greatly enriches and expands the functions of the system, enhances the flexibility of device configuration and the convenience of user operation.
[0075] This system has the function of dynamic port configuration. External devices can be connected to any serial communication port. After the hardware connection is completed, the specific function of each port can be configured through software configuration, thereby improving the flexibility of the system, the convenience of equipment installation and debugging, and the utilization efficiency of the port.
[0076] like Figure 2 As shown, a protocol data configuration method for a protocol data system applied to AIS comprises the following steps:
[0077] All instructions are divided into input instruction group, output instruction group and transparent transmission instruction according to the data transmission direction; the input instruction group and output instruction respectively contain several groups of instruction sets.
[0078] The port pool configuration is performed based on the available ports of the current device and the physical connection status of the ports. The configuration content includes:
[0079] 1) According to the different devices connected, configure the input command group number supported by the port;
[0080] 2) According to the different devices connected, configure the output instruction group number supported by the port;
[0081] 3) Configure the serial communication baud rate of the port according to the connected device;
[0082] In addition, the system is designed with a baud rate hot-switching function, which can flexibly configure data transmission efficiency and transmission stability according to the connection requirements of external devices.
[0083] Dynamic port allocation: After the system is powered on and completes related initialization work, it starts to read the configuration parameters of each port from the Flash. After completion, it starts to configure each port in turn from the port pool. After all ports are configured, it enters the data monitoring state;
[0084] If a port receives a command, it first determines whether the command belongs to the custom command set. If so, it directly enters the command processing flow. If it is a standard command, it determines whether it belongs to the whitelist command of the port. If so, it transitions to the command processing flow. Otherwise, it means that this is an invalid command or a command that does not belong to the port. The processing is abandoned and the port returns to the listening state to wait for the arrival of new commands.
[0085] After the instruction processing is completed, the return instruction is generated through the information desensitization process. Before the return instruction is output, it is necessary to query the output instruction whitelist of the port again. If the return instruction is in the whitelist, it is output from the port. Otherwise, the output of the return instruction is abandoned and the entire process ends.
[0086] The protocol data system and method applied to AIS of the present invention improves the utilization efficiency and configuration flexibility of the communication port and enhances the reliability of data transmission in dynamic situations through a data protocol conversion system that can support AIS ClassA. The data protocol conversion system supports custom instructions, and the port supports blind insertion of external devices and hot switching of communication baud rates.
[0087] The above is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with this profession can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent replacement and improvement made to the above embodiments without departing from the content of the technical solution of the present invention, based on the technical essence of the present invention, within the spirit and principles of the present invention, still fall within the protection scope of the technical solution of the present invention.
Claims
1. A protocol data system applied to AIS, characterized by: Include Multiple communication ports for connecting different devices in the AIS system; A data storage module, used for storing data; Port configuration module, configures the communication baud rate supported by each communication port; Instruction set module, supports ClassA instruction set and custom instruction set; The custom instruction set includes 1) Regional custom instruction protocol: Field 1: $POVA, Field 2: MKD, Field 3: ACA, Connection field: Use the standard ACA statement, Verification field: Verification code; 2) Input and output port data set control instructions: Field header: $POVA, direction control: IN / OUT, port number: 1-13, data set name: 0-F, check field: check code; 3) Types, input and output, and frequency control instructions of statements in the data set: Field header: $POVA, data set name: 0-F, mnemonic, statement switch and frequency: 0 / 1, 1-99, mnemonic: check code, statement switch and frequency: 0 / 1, 1-99, mnemonic, statement switch and frequency: 0 / 1, 1-99; 4) Port baud rate setting instructions: Field 1: $POVA, Field 2: BPS, Fields 3-12: Serial port switch and frequency control, Fields 13-16: CAN / LAN, Check field: Check code; 5) Power switching control instructions: Field 1: $PSPP, Field 2: Large and small power settings; 6) Modify parameter instructions: Field 1: $POVA, Field 2: VER, Fields 3-4: Source Control, Field 5: Function Number, Fields 6-8: Manufacturer / Revision Number / Serial Number; 7) Restore factory settings command: Field 1: $POVA, Field 2: RESET*71 / RESTORE*6C; The custom instruction set also includes a silent mode control instruction, a data retransmission times control instruction, and an instruction for obtaining UTC time; The factory reset command consists of a custom command header and a reset / restore field. Other custom commands include silent mode control, data retransmission times control, and obtaining UTC time.
2. A protocol data system for AIS according to claim 1, characterized in that: The plurality of communication ports include an AIS module interface, a remote communication interface, an MKD interface, an ECDIS interface, a pilot interface and a download / upgrade port.
3. A protocol data system for AIS according to claim 2, characterized in that: Any one of the plurality of communication ports can be used as a program download / upgrade port.
4. A protocol data system for AIS according to claim 2, characterized in that: The communication port is a serial communication port.
5. A protocol data system for AIS according to claim 4, characterized in that: When connecting external devices to the serial communication port, any external device can be connected to any serial communication port, and the connection of the external device is not fixed.
6. A protocol data system for AIS according to claim 3, characterized in that: From the download / upgrade port, and based on the external devices connected to the remaining communication ports, configure the input instructions, output instructions, and transparent transmission instructions supported by the corresponding ports through software.
7. A protocol data configuration method for a protocol data system applied to AIS according to any one of claims 1 to 6, characterized in that The following steps are involved: All instructions are divided into input instruction group, output instruction group and transparent transmission instruction according to the data transmission direction; The port pool configuration is performed based on the available ports of the current device and the physical connection status of the ports. The configuration content includes: 1) According to the different devices connected, configure the input command group number supported by the port; 2) According to the different devices connected, configure the output instruction group number supported by the port; 3) Configure the serial communication baud rate of the port according to the connected device; Dynamic port allocation: After the system is powered on and completes related initialization work, it starts to read the configuration parameters of each port from the Flash. After completion, it starts to configure each port in turn from the port pool. After all ports are configured, it enters the data monitoring state; If a port receives a command, it first determines whether the command belongs to the custom command set. If so, it directly enters the command processing flow. If it is a standard command, it determines whether it belongs to the whitelist command of the port. If so, it transitions to the command processing flow. Otherwise, it means that this is an invalid command or a command that does not belong to the port. The processing is abandoned and the port returns to the listening state to wait for the arrival of new commands. After the instruction processing is completed, the return instruction is generated through the information desensitization process. Before the return instruction is output, it is necessary to query the output instruction whitelist of the port again. If the return instruction is in the whitelist, it is output from the port. Otherwise, the output of the return instruction is abandoned and the entire process ends.
Citation Information
Patent Citations
Method for realizing filtration display of electronic chart ship
CN101644576A
Ship positioning system, shipborne information transmitting equipment and shore-base information receiving equipment
CN102064943A
