Method, system and device for high-speed distribution of ship navigation information based on optical fiber link
By adopting a high-speed distribution method of navigation information based on fiber links in the ship navigation system, the traditional navigation information distribution architecture has solved the shortcomings in anti-interference ability, high-speed transmission and scalability, and achieved high-speed, stable and reliable navigation information transmission, meeting users' needs for improving real-time and reliability of navigation information.
Patent Information
- Application Number
- CN202411910162.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-12-24
AI Technical Summary
The traditional ship navigation information distribution architecture is based on the parallel interface cascade method, and there are problems such as poor anti-interference ability of transmission, unsuitable for high-speed signal transmission, strict signal synchronization and limited expansion capabilities, which cannot meet users' needs to improve the real-time and reliability of navigation information.
The high-speed distribution method of ship navigation information based on fiber links is adopted to send the verified data packets through fiber splits to realize a high-speed, stable and reliable new transmission link main channel, ensuring a high transmission rate, long transmission distance and strong anti-interference ability.
It realizes high-speed, stable and reliable navigation information transmission, improves real-time and reliability of transmission, and meets users' efficient distribution needs for navigation information.
Smart Images

Figure CN119363295B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of high-speed transmission of ship navigation information, and in particular to a method, system and device for high-speed distribution of ship navigation information based on optical fiber links. Background Art
[0002] The ship navigation system needs to collect the attitude and relative speed information of inertial navigation equipment, compass, odometer and other sensor equipment. Its input is for the navigation system and its output is for all ship users. After information fusion processing and preferential selection, the information is sent to the outside through Ethernet, serial port, optical fiber interface, synchronous machine analog interface, etc. according to the needs of internal and external users of the navigation system.
[0003] The principles that need to be considered for distributing ship navigation information are as follows:
[0004] a) Internal information processing reduces forwarding links as much as possible and improves the real-time nature of information transmission;
[0005] b) In the design of information flow, full consideration should be given to the hot backup of information acquisition and transmission channels to improve reliability;
[0006] c) Place different types of channels in different functional units to reduce fault correlation and improve the reliability and maintainability of information channels;
[0007] d) Ensure unified and controlled transmission of each channel.
[0008] Traditional ship navigation information distribution is mainly based on the parallel interface cascade method. After the input end receives the data from sensors such as inertial navigation, compass, and odometer, it is processed and transmitted through the parallel electrical signal interface. Different nodes are connected in a cascade manner.
[0009] The disadvantages of the navigation information distribution architecture based on parallel interface are as follows:
[0010] a) Parallel electrical signals use TTL level signals, which have poor transmission anti-interference ability;
[0011] b) Parallel electrical signal transmission is not suitable for high-speed signal transmission. When the transmission rate increases, there are strict requirements on the signal synchronization between different signal lines;
[0012] c) The expansion capability of parallel electrical signal transmission is limited. Due to the cascade method, when there are many nodes, the signal driving capability of the data source needs to be considered.
[0013] As users' requirements for real-time navigation information increase, the original design can no longer meet the needs of navigation information distribution. In order to further improve the real-time and reliability of navigation information transmission, it is necessary to establish a new type of high-speed, stable and reliable transmission link main channel. As a high-speed information transmission medium, optical fiber has the advantages of high transmission rate, long transmission distance and strong anti-interference ability. Introducing optical fiber transmission technology into the navigation information distribution architecture can effectively solve the shortcomings of the existing information distribution architecture. Summary of the invention
[0014] The present invention aims to solve at least one of the technical problems existing in the related art. To this end, the present invention provides a method, system and device for high-speed distribution of ship navigation information based on optical fiber links, which realizes the establishment of a high-speed, stable and reliable new type of transmission link main channel, achieving the goals of high transmission rate, long transmission distance and strong anti-interference ability.
[0015] The present invention provides a method for high-speed distribution of ship navigation information based on optical fiber links, comprising the following steps:
[0016] S1: setting a working clock according to the working frequency of the optical fiber, processing input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information;
[0017] S2: according to the sending frequency of the data packet, sending the verified data packet to the target node through optical fiber branching;
[0018] S3: After receiving the verified data packet, the target node outputs it according to the user interface.
[0019] According to a method for high-speed distribution of ship navigation information based on optical fiber links, step S1 comprises:
[0020] The verification of the data packet comprises the following steps:
[0021] S11: sorting the input information according to its importance level, and setting the sending frequency of the data packet according to the input frequency of the most important input information;
[0022] S12: Setting a working clock according to the working frequency of the optical fiber:
[0023]
[0024] in, is the operating frequency of the optical fiber, is the period of the working clock;
[0025] S13: Encode the input information to obtain encoded input information;
[0026] S14: agreeing on a frame start mark and a frame end mark of the encoded input information;
[0027] S15: when the frame start mark is detected, receiving the encoded input information and storing it in the first buffer to construct the data packet, and at the same time performing a correctness check on the encoded input information and a completeness check on the encoded input information;
[0028] S16: When the frame end mark is detected, after the correctness check and the integrity check are completed, if both the correctness check and the integrity check are passed, the checked data packet is updated to the second cache area in the next working time cycle, otherwise, the second cache area is not updated, and an error status is sent in the next working clock cycle.
[0029] According to a method for high-speed distribution of ship navigation information based on optical fiber links, the correctness check in step S14 includes:
[0030] The first data after the frame start flag is the frame length counter, and the data before the frame end flag is the cumulative sum check result. The cumulative range of the cumulative sum check result is the frame length counter to the previous data of the cumulative sum check result; the frame start flag, the frame end flag, the frame length and the cumulative sum check result are all correctly compared, which means the correctness check passes, otherwise the correctness check fails.
[0031] According to a method for high-speed distribution of ship navigation information based on an optical fiber link, the integrity check in step S15 includes the following steps:
[0032] S151: Initial inspection: When the integrity check starts, perform an initial inspection and record the current time. Enter the information after consecutive coding ,
[0033] for The information is input after the encoding of the time. for The information is input after the encoding of the time. is the total number of information input after encoding, Calculate the difference between the encoded input information sequence and the :
[0034]
[0035] Among them, judgment Maximum rate of change between sampling times relationship, if it exists If the coded input information is invalid during this period, the coded input information is received again and step S151 is repeated. If it does not exist, the next step is stored. After the information is encoded, execute step S152;
[0036] S152: the ordinal number of the encoded input information is re-counted, and the number of replacements is set to 0;
[0037] S153: Continue to receive the encoded input information, and the sequence number of the encoded input information is increased by one;
[0038] S154: Assume that the received ,right and Difference ,like Then judge If the data is abnormal, execute step S156;
[0039] like think If the data is valid, execute step S155;
[0040] S155: Storage , the number of replacements is recounted to determine whether the ordinal number of the encoded input information is equal to If it is equal, store this After the information is encoded, return to step S152; otherwise, return to step S153;
[0041] S156: Abnormal data processing.
[0042] According to a method for high-speed distribution of ship navigation information based on optical fiber links, step S156 includes:
[0043] determination The number of encoded input information stored when data is abnormal ;
[0044] when When all the encoded input information is cleared, the process returns to step S151;
[0045] when When , the two encoded input information stored is , Calculated and The difference :
[0046]
[0047] in, for The information is input after the encoding of the time.
[0048] Calculate the predicted value at the current moment :
[0049]
[0050] use Alternative , receiving the encoded input information at the next moment, the ordinal number of the encoded input information is increased by one, if the data is still abnormal at the next moment, clearing the current stored data and restarting step S151; otherwise, returning to step S155;
[0051] when When , determine whether the number of replacements is greater than If the number is greater than 1, the current stored data is cleared and step S151 is restarted;
[0052] If not, then the stored value before the current time After encoding the input information, find the polynomial of degree 1 , so that the polynomial satisfies The minimum, among which, is the first-order coefficient of the polynomial, is the polynomial constant, To compensate for the difference A linear fitting function,
[0053]
[0054] pass The compensation difference is calculated , then the predicted value at the current moment for:
[0055]
[0056] use Alternative , and store , the number of replacements is increased by one, and the process returns to step S153.
[0057] According to a method for high-speed distribution of ship navigation information based on optical fiber links, step S2 includes: after the verified data packet is sent to the target node through the optical fiber branch, the correctness of the data packet is verified.
[0058] According to a method for high-speed distribution of ship navigation information based on optical fiber links, step S3 comprises:
[0059] When the user interface is an analog interface, it is divided into a single-channel analog interface output and a dual-channel analog interface output according to the accuracy required by the user.
[0060] According to a method for high-speed distribution of ship navigation information based on optical fiber links, the total delay of the input information to be sent to the target node is for:
[0061]
[0062]
[0063]
[0064] in, is the size of the input information, is the number of update cycles, The delay for packet processing, For the transmission time.
[0065] The present invention also provides a high-speed distribution system for ship navigation information based on optical fiber links, comprising:
[0066] Data processing module: setting a working clock according to the working frequency of the optical fiber, processing the input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information;
[0067] Data transmission module: according to the sending frequency of the data packet, the verified data packet is sent to the target node through the optical fiber branch;
[0068] Data output module: After receiving the verified data packet, the target node outputs it according to the user interface.
[0069] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps of the method for high-speed distribution of ship navigation information based on optical fiber links are implemented.
[0070] The above one or more technical solutions in the embodiments of the present invention have at least one of the following technical effects:
[0071] The present invention provides a method, system and device for high-speed distribution of ship navigation information based on optical fiber links, which achieves technical effects such as high transmission rate, long transmission distance and strong anti-interference ability by establishing a high-speed, stable and reliable new type of transmission link main channel.
[0072] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0073] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0074] Figure 1 The present invention provides a method flow chart of high-speed distribution of ship navigation information based on optical fiber links.
[0075] Figure 2 The present invention provides a block diagram of a high-speed distribution system for ship navigation information based on optical fiber links.
[0076] Figure 3 It is a structural schematic diagram of the electronic device provided by the present invention.
[0077] Reference numerals:
[0078] 101, data processing module; 102, data transmission module; 103, data output module; 810, processor; 820, communication interface; 830, memory; 840, communication bus. DETAILED DESCRIPTION
[0079] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme in the present invention will be clearly and completely described below. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention. The following embodiments are used to illustrate the present invention, but cannot be used to limit the scope of the present invention.
[0080] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the embodiment of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.
[0081] Example
[0082] Combine the following Figures 1 to 3 Describing the Invention:
[0083] like Figure 1 As shown, an embodiment of the present invention provides a method for high-speed distribution of ship navigation information based on an optical fiber link, comprising the following steps:
[0084] S1: setting a working clock according to the working frequency of the optical fiber, processing input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information;
[0085] S2: according to the sending frequency of the data packet, sending the verified data packet to the target node through optical fiber branching;
[0086] S3: After receiving the verified data packet, the target node outputs it according to the user interface.
[0087] Specifically, step S1 of the embodiment of the present invention includes:
[0088] S11: Sort the input information according to its importance level, set the sending time of the data packet according to the input frequency of the most important input information, and set the working time period according to the working frequency of the optical fiber.
[0089] In the embodiment of the present invention, the inertial navigation input information is selected from the attitude information as the information source with the highest priority, and the data is updated based on the input frequency of the inertial navigation information of 1000Hz. When data from other information sources arrives, it is cached in a preset data cache area, and then based on the inertial navigation information 1000Hz, the information is encapsulated together into an output data packet and transmitted to the next level.
[0090] S12: Setting a working clock according to the working frequency of the optical fiber:
[0091] Since the optical fiber interface is the communication interface with the highest operating frequency among all input information sources, the system working clock is based on the working clock of the optical fiber interface. When the optical fiber transmission bit rate is 1.25Gbps, the reference working frequency is 125MHz.
[0092]
[0093] in, is the operating frequency, is the working time cycle. In the embodiment of the present invention, the processing cycle .
[0094] S13: Encode the input information to obtain the encoded input information. The inertial navigation information and other data are received through the optical fiber interface. Among them, in the embodiment of the present invention, the heading angle is used to simulate other data. Since the data processing bit width of the optical fiber interface in the embodiment of the present invention is 10 bits, the actual data width of the inertial navigation information and other data is 8 bits. Therefore, the embodiment of the present invention uses 8B / 10B encoding, which is 10 bits after 8B / 10B encoding. At the same time, the data after 8B / 10B encoding can ensure that it can be correctly restored at the receiving end after transmission.
[0095] S14: Agreeing on a frame start mark and a frame end mark of the encoded input information. In the embodiment of the present invention, the frame start mark is agreed to be 7E7E (HEX) and the frame end mark is agreed to be BFBF (HEX).
[0096] S15: When the frame start mark is detected, the encoded input information is received and stored in a first buffer to construct the data packet, and at the same time, the correctness of the encoded input information and the integrity of the encoded input information are checked.
[0097] The correctness check includes:
[0098] The first data after the frame start flag is the frame length counter, and the data before the frame end flag is the cumulative sum check result. The cumulative range of the cumulative sum check result is the frame length counter to the previous data of the cumulative sum check result; the frame start flag, the frame end flag, the frame length and the cumulative sum check result are all correctly compared, which means the correctness check passes, otherwise the correctness check fails.
[0099] Among them, integrity verification includes:
[0100] S151: Initial inspection: When the integrity check starts, perform an initial inspection and record the current time. Enter the information after consecutive coding ,
[0101] for The information is input after the encoding of the time. for The information is input after the encoding of the time. is the total number of information input after encoding, Calculate the difference between the encoded input information sequence and the :
[0102]
[0103] Among them, judgment Maximum rate of change between sampling times relationship, if it exists If the coded input information is invalid during this period, the coded input information is received again and step S151 is repeated. If it does not exist, the next step is stored. After the information is encoded, execute step S152;
[0104] S152: the ordinal number of the encoded input information is re-counted, and the number of replacements is set to 0;
[0105] S153: Continue to receive the encoded input information, and the sequence number of the encoded input information is increased by one;
[0106] S154: Assume that the received ,right and Difference ,like Then judge If the data is abnormal, execute step S156;
[0107] like think If the data is valid, execute step S155;
[0108] S155: Storage , the number of replacements is recounted to determine whether the ordinal number of the encoded input information is equal to If it is equal, store this After the information is encoded, return to step S152; otherwise, return to step S153;
[0109] S156: Abnormal data processing.
[0110] determination The number of encoded input information stored when data is abnormal ;
[0111] when When all the encoded input information is cleared, the process returns to step S151;
[0112] when When , the two encoded input information stored is , Calculated and The difference :
[0113]
[0114] in, for Enter information after time encoding,
[0115] Calculate the predicted value at the current moment :
[0116]
[0117] use Alternative , receiving the encoded input information at the next moment, the ordinal number of the encoded input information is increased by one, if the data is still abnormal at the next moment, clearing the current stored data and restarting step S151; otherwise, returning to step S155;
[0118] when When , determine whether the number of replacements is greater than If the number is greater than 1, the current stored data is cleared and step S151 is restarted;
[0119] If not, then the stored value before the current time After encoding the input information, find the polynomial of degree 1 , so that the polynomial satisfies The minimum, among which, is the first-order coefficient of the polynomial, is the polynomial constant, To compensate for the difference A linear fitting function of
[0120]
[0121] pass The compensation difference is calculated , then the predicted value at the current moment for:
[0122]
[0123] use Alternative , and store , the number of replacements is increased by one, and the process returns to step S153.
[0124] S16: When the frame end mark is detected, the correctness check and the integrity check are completed. If both the correctness check and the integrity check are passed, the checked data packet is updated to the second cache area in the next working time cycle. If one of the checks fails, the second cache area is not updated, and an error status is sent in the next working clock cycle.
[0125] When the frame end flag is received and the data packet check is completed, if the check passes, the data will be updated to the secondary cache within one working clock cycle. If the check fails, the data will be discarded, the secondary cache will not be updated, and the error status will be sent to the outside.
[0126] From data verification to the update of the secondary cache area working clock cycles, assuming that the size of the input information is , packet processing delay for:
[0127]
[0128] in, is the number of update cycles.
[0129] In the embodiment of the present invention , Therefore, the packet processing delay .
[0130] After the low-priority data completes the secondary cache, it is directly read from the secondary cache and written into the data packet during data reorganization. This processing method can ensure that the delay of the inertial navigation information source in the input processing stage is certain, and the delay decreases proportionally with the increase of the transmission rate of the optical fiber communication. The reorganized data is transmitted to the information distribution layer through the optical fiber interface.
[0131] In step S2, in order to ensure that more users can use the navigation information, the input information needs to be expanded after data processing and reorganization to achieve multi-channel synchronous distribution of information. In order to obtain high-speed, high-reliability, and constant-delay transmission effects, optical fiber transmission is selected as the design basis for information distribution. Through the processing of the optical fiber splitter, the data packets are distributed to different branch optical fiber channels. Since all data processing is based on the same working clock, accurate information synchronization and parallel processing can be achieved. At the same time, since the same working clock is used in optical fiber transmission, the process of data packet transmission is consistent. Therefore, the transmission time for:
[0132]
[0133] In the embodiment of the present invention, .
[0134] Therefore, in the present invention, the total delay of data packet transmission to the target node is It can be predicted by calculation.
[0135]
[0136] In this embodiment of the present invention, the total delay of the data packet transmission to the target node is .
[0137] In step S3, after the optical fiber branch transmission, each output node converts the data transmitted by the optical fiber interface into the interface type required by the user and sends it to the outside.
[0138] For digital interface users, the output frequency conversion is based on the optical fiber input information frequency (1000Hz) for frequency reduction. The information frequency of marine navigation information users is generally 100Hz, 40Hz, 10Hz, etc. In addition, the unit conversion of information is required according to different user needs. Taking the attitude angular velocity as an example, when the input information source unit is ° / s and the output information unit is mrad / s, the information needs to be converted. It is also implemented with 125MHz as the working clock and programmable logic devices. The calculation cycle is usually 1T, that is, .
[0139] For analog interface users, single-channel analog interface and dual-channel analog interface can be provided according to different requirements of different users for information accuracy. After being processed, the digital information is sent to the synchronous machine signal conversion module through the parallel interface (taking 14-bit digital information input as an example). The digital information of the single-channel analog interface directly intercepts the high 14 bits of the information to be transmitted for conversion, while the dual-channel calculates the coarse channel and fine channel values respectively, and then outputs the data to the synchronous machine signal conversion module. The calculation method is as follows:
[0140] The ratio M of the coarse channel and the fine channel is set to 36:1, that is, the ratio of the data range represented by the coarse channel to the data range represented by the fine channel is 36:1. For example, if the coarse channel represents 360°, the fine channel represents 10°. For the coarse channel, the highest bit is 1, which represents 180°, the second highest bit represents 90°, and so on; for the fine channel, the highest bit is 1, which represents 5°, the second highest bit represents 2.5°, and so on. The calculation method of the coarse and fine channel data is as follows:
[0141] Assume the input data is ,use Bit binary data representation. Coarse channel data Interception ; The precision channel data calculation first takes The data below the single digit is calculated by repeatedly calculating the parameters in the programmable logic device. , , until , calculate the fine channel value , , master channel data Interception .
[0142] The present invention designs a high-speed distribution method for ship navigation information based on optical fiber links, which is compatible with information input of different interface types and can output data according to different user interface requirements. The internal transmission delay is low and controllable, and an input end information integrity check and an output end analog interface information conversion calculation method are provided. The transmission architecture is universal and can be upgraded with the development of optical fiber transmission technology to further reduce transmission delay, solve many shortcomings of traditional navigation information distribution architecture, and meet the use requirements of subsequent upgrades of ship navigation information transmission systems.
[0143] like Figure 2 As shown, the present invention provides a servo system motor commutation zero position automatic calibration system, which is used to execute a servo system motor commutation zero position automatic calibration method, and includes the following modules:
[0144] Data processing module 101: setting a working clock according to the working frequency of the optical fiber, processing input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information;
[0145] Data transmission module 102: according to the transmission frequency of the data packet, the verified data packet is sent to the target node through the optical fiber branch;
[0146] Data output module 103: After receiving the verified data packet, the target node outputs it according to the user interface.
[0147] Figure 3 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 3 As shown, the electronic device may include: a processor 810, a communications interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communications interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a high-speed distribution method of ship navigation information based on an optical fiber link, the method comprising:
[0148] S1: setting a working clock according to the working frequency of the optical fiber, processing input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information;
[0149] S2: according to the sending frequency of the data packet, sending the verified data packet to the target node through optical fiber branching;
[0150] S3: After receiving the verified data packet, the target node outputs it according to the user interface.
[0151] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0152] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0153] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0154] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for high-speed distribution of ship navigation information based on optical fiber links, characterized in that: The following steps are involved: S1: setting a working clock according to the working frequency of the optical fiber, processing input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information; S11: sorting the input information according to its importance level, and setting the sending frequency of the data packet according to the input frequency of the most important input information; S12: Setting a working clock according to the working frequency of the optical fiber: in, is the operating frequency of the optical fiber, is the period of the working clock; S13: Encode the input information to obtain encoded input information; S14: agreeing on a frame start mark and a frame end mark of the encoded input information; S15: when the frame start mark is detected, receiving the encoded input information and storing it in the first buffer to construct the data packet, and at the same time performing a correctness check on the encoded input information and a completeness check on the encoded input information; The correctness check includes: the first data after the frame start mark is a frame length counter, the data before the frame end mark is a cumulative sum check result, and the cumulative range of the cumulative sum check result is from the frame length counter to the previous data of the cumulative sum check result; if the frame start mark, the frame end mark, the frame length and the cumulative sum check result are all correctly compared, the correctness check is passed, otherwise the correctness check fails; The integrity check comprises the following steps: S151: Initial inspection: When the integrity check starts, perform an initial inspection and record the current time. Enter the information after consecutive coding , for The information is input after the encoding of the time. for The information is input after the encoding of the time. is the total number of information input after encoding, Calculate the difference between the encoded input information sequence and the : Among them, judgment Maximum rate of change between sampling times relationship, if it exists If the coded input information is invalid during this period, the coded input information is received again and step S151 is repeated. If it does not exist, the next step is stored. After the information is encoded, execute step S152; S152: the ordinal number of the encoded input information is re-counted, and the number of replacements is set to 0; S153: Continue to receive the encoded input information, and the sequence number of the encoded input information is increased by one; S154: Assume that the received ,right and Difference ,like Then judge If the data is abnormal, execute step S156; like think If the data is valid, execute step S155; S155: Storage , the number of replacements is recounted to determine whether the ordinal number of the encoded input information is equal to If it is equal, store this After the information is encoded, return to step S152; otherwise, return to step S153; S156: abnormal data processing; S16: When the frame end mark is detected, after the correctness check and the integrity check are completed, if both the correctness check and the integrity check are passed, the checked data packet is updated to the second buffer area in the next working time cycle, otherwise, the second buffer area is not updated, and an error state is sent in the next working clock cycle; S2: according to the sending frequency of the data packet, sending the verified data packet to the target node through optical fiber branching; S3: After receiving the verified data packet, the target node outputs it according to the user interface.
2. A method for high-speed distribution of ship navigation information based on optical fiber links according to claim 1, characterized in that: Step S156 includes: determination The number of encoded input information stored when data is abnormal ; when When all the encoded input information is cleared, the process returns to step S151; when When , the two encoded input information stored is , Calculated and The difference : in, for The information is input after the encoding of the time. Calculate the predicted value at the current moment : use Alternative , receiving the encoded input information at the next moment, the ordinal number of the encoded input information is increased by one, if the data is still abnormal at the next moment, clearing the current stored data and restarting step S151; otherwise, returning to step S155; when When , determine whether the number of replacements is greater than If the number is greater than 1, the current stored data is cleared and step S151 is restarted; If not, then the stored value before the current time After encoding the input information, find the polynomial of degree 1 , so that the polynomial satisfies The minimum, among which, is the first-order coefficient of the polynomial, is the polynomial constant, To compensate for the difference A linear fitting function, pass The compensation difference is calculated , then the predicted value at the current moment for: use Alternative , and store , the number of replacements is increased by one, and the process returns to step S153.
3. A method for high-speed distribution of ship navigation information based on optical fiber links according to claim 1, characterized in that: Step S2 includes: After the verified data packet is sent to the target node through the optical fiber branch, the correctness of the data packet is verified.
4. A method for high-speed distribution of ship navigation information based on optical fiber links according to claim 1, characterized in that: Step S3 includes: When the user interface is an analog interface, it is divided into single-channel analog interface output and dual-channel analog interface output according to the accuracy required by the user.
5. The method for high-speed distribution of ship navigation information based on optical fiber link according to claim 1, characterized in that: The total delay of sending the input information to the target node for: in, is the size of the input information, is the number of update cycles, The delay for packet processing, For the transmission time.
6. A high-speed distribution system for ship navigation information based on optical fiber links, used to execute the high-speed distribution method for ship navigation information based on optical fiber links as claimed in any one of claims 1 to 5, characterized in that: include: Data processing module: setting a working clock according to the working frequency of the optical fiber, processing the input information according to the working clock to obtain a data packet, verifying the data packet to obtain a verified data packet, and setting a sending frequency of the data packet according to the input information; Data transmission module: according to the sending frequency of the data packet, the verified data packet is sent to the target node through the optical fiber branch; Data output module: After receiving the verified data packet, the target node outputs it according to the user interface.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the steps of the method for high-speed distribution of ship navigation information based on optical fiber links as described in any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Method for high-precision time service of electricity meter based on dual-mode communication
CN116527796A
Spacecraft data transmission and detection method and system based on optical fiber interface
CN117353791A