Data transmission method and device based on Beidou No.3 short message communication module
Through the data transmission method of Beidou 3 short message communication module, the data transmission protocol and the overlapping data duplicate reporting technology across time periods are used to solve the problem of low data transmission success rate under extreme conditions of Beidou 2 short message communication module, and the reliability and accuracy of data transmission are achieved.
Patent Information
- Application Number
- CN202510574799.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-06
- Publication Date
- 2025-07-22
AI Technical Summary
The existing Beidou 2 short-term communication module has a low success rate of data transmission in extremely bad weather and in areas that cannot be covered, which affects the accuracy of forecast information products.
The Beidou 3 short-report communication module is adopted to define the data transmission protocol, collect and store observation data of hydrological and meteorological elements, and superimpose data reprinting and data compression technology across time periods, and then data is sent after the communication is normal.
It improves the success rate of data transmission, avoids data transmission failure caused by short-term external interference, and ensures data integrity and accuracy.
Smart Images

Figure CN120358462A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data transmission, and in particular to a data transmission method and device based on the BeiDou-3 short message communication module. Background Art
[0002] The automatic hydrological and meteorological observation system of the ocean station is an important part of the ocean observation network. Its main function is to realize the on-site collection of hydrological and meteorological elements and provide data for the production of forecast information products. The data transmission network adopts 3G\4G\5G network, ground dedicated line, Beidou-2 short message and other communication methods to realize data transmission and product distribution. Many ocean observation sites are located on the edge of islands, and some are even built on isolated islands. Some areas cannot be covered by 3G\4G\5G network and ground dedicated line. Even in areas that can be covered by 3G\4G\5G network and ground dedicated line, in extremely bad weather, 3G\4G\5G network and ground dedicated line will experience communication interruption. Beidou-2 short message communication is the main communication tool for areas that cannot be covered by 3G\4G\5G network and ground dedicated line and in extremely bad weather. However, the frequency of BeiDou-2 short message communication is 1 minute, and the amount of data transmitted each time cannot exceed 78 bytes. In addition, the success rate of BeiDou-2 short message civilian equipment cannot reach 100%, and as the use time of BeiDou-2 communication terminal equipment increases, the signal will gradually attenuate, resulting in a decrease in the success rate of BeiDou-2 short message data transmission, and failure to provide complete and accurate data for the production of forecast information products, thus affecting the accuracy of the forecast. Summary of the invention
[0003] The purpose of this application is to provide a data transmission method and device based on the BeiDou-3 short message communication module, which can improve the success rate of data transmission.
[0004] To achieve the above objectives, this application provides the following solutions:
[0005] In a first aspect, the present application provides a data transmission method based on the BeiDou-3 short message communication module, comprising:
[0006] Define data transfer protocols;
[0007] Collect and store observation data of hydrological and meteorological elements;
[0008] Organize a data packet for sending the hydrological and meteorological element observation data in accordance with the data transmission protocol; the data packet sent once includes multiple groups of hydrological and meteorological element observation data;
[0009] When the Beidou-3 short message communication module communicates normally, the once-sent data packet is sent.
[0010] Second aspect, the present application provides a data transmission device based on a Beidou-3 short message communication module, including:
[0011] A data transmission protocol definition module, configured to define a data transmission protocol;
[0012] An acquisition and storage module, configured to acquire and store hydrometeorological element observation data;
[0013] A primary transmission data packet organization module, configured to organize a primary transmission data packet for the hydrometeorological element observation data according to the data transmission protocol; the primary transmission data packet includes multiple groups of hydrometeorological element observation data;
[0014] A transmission module, configured to transmit the primary transmission data packet when the Beidou-3 short message communication module is communicating normally.
[0015] According to the specific embodiments provided by the present application, the following technical effects are disclosed in the present application:
[0016] The present application provides a data transmission method and device based on a Beidou-3 short message communication module. By defining a data transmission protocol, it can effectively avoid the problem that the Beidou-3 short message communication module fails to send data due to short-term external interference, and by checking that the Beidou-3 short message communication module is communicating normally before sending data, the success rate of each data transmission is improved. Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings required in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0018] Figure 1 It is a schematic flowchart of a data transmission method based on a Beidou-3 short message communication module provided by an embodiment of the present application;
[0019] Figure 2 It is a schematic functional module diagram of a data transmission device based on a Beidou-3 short message communication module provided by an embodiment of the present application. Detailed Embodiments
[0020] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art without creative efforts based on the embodiments of the present application belong to the scope of protection of the present application.
[0021] To make the above objects, features, and advantages of the present application more obvious and understandable, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0022] In an exemplary embodiment, as Figure 1 shown, a data transmission method based on the Beidou-3 short message communication module is provided. This method is executed by a computer device, specifically, it can be executed independently by a computer device such as a terminal or a server, or jointly executed by a terminal and a server. In the embodiments of the present application, taking the application of this method to a server as an example for illustration, it includes the following steps S1 to S4. Among them:
[0023] S1: Define a data transmission protocol.
[0024] (1) According to the requirements of coastal observation specifications, the observation frequency of hydrometeorological element observation data such as wind direction, wind speed, air temperature, relative humidity, air pressure, rainfall, visibility, surface seawater temperature, surface seawater salinity, and tide is 1 minute. The data observed every minute should be sent to the data center for use by the forecasting system.
[0025] (2) The data transmission protocol adopts a data compression scheme that expands decimals to integers, changes negative numbers to integers, and encodes data in hexadecimal format.
[0026] (3) The data transmission protocol adopts cross-period superposition data repeated reporting. Several groups of hydrometeorological element observation data observed in the past period and several groups of hydrometeorological element observation data observed at the current time are combined into a data packet. For example, if the "number of data groups sent at one time" is 4 and the current time is 11:02, the content sent by cross-period superposition data repeated reporting is the data observed at 10:01, 10:02, 11:01, and 11:02. When it comes to 12:02, the content sent by reporting is the data observed at 11:01, 11:02, 12:01, and 12:02, and so on.
[0027] (4) The data transmission protocol format is: frame header + station code + first group of hydrometeorological element observation data + second group of hydrometeorological element observation data + third group of hydrometeorological element observation data + fourth group of hydrometeorological element observation data + frame tail, and the data encoding format is hexadecimal encoding.
[0028] 1) Frame header: 0x02, length: 1 byte;
[0029] 2) Station code: composed of numbers or characters, length: 4 bytes;
[0030] 3) Frame tail: 0x03, length: 1 byte;
[0031] 4) The format of the observed data of each group of hydrometeorological elements is as follows: all the observed data of hydrometeorological elements per minute form a group. The data transmitted in each group includes the date and time, all the observed data of hydrometeorological elements observed per minute, and all the observed data of hydrometeorological elements are encoded in a fixed order. For example, the message is organized in the order of wind direction, wind speed, air temperature, relative humidity, air pressure, rainfall, visibility, surface seawater temperature, surface seawater salinity, and tide.
[0032] ① The date and time is composed of a 2-byte length year + a 1-byte length month + a 1-byte length date + a 1-byte length hour + a 1-byte length minute, all encoded in hexadecimal. For example, for the year: 0x07d9 represents the year 2009; for the month: 0x0a represents October; for the date: 0x17 represents the 23rd; for the hour: 0x10 represents 16:00; for the minute: 0x0a represents 10 minutes.
[0033] ② All the observed data of hydrometeorological elements observed per minute are reported according to a fixed byte length and fixed positions.
[0034] Definition of the byte length of the observed data of hydrometeorological elements: Determine the byte length occupied by the observed data of each hydrometeorological element according to the observation accuracy and observation range of the observed data of each hydrometeorological element.
[0035] a. The byte length occupied by the observed data of each hydrometeorological element can be calculated and set to a fixed value. The calculation method is as follows:
[0036] Set the number of decimal places after the decimal point of the observation accuracy of the observed data of each hydrometeorological element as N;
[0037] Set the absolute value of the "maximum observed value" of the observed data of each hydrometeorological element as D1;
[0038] Set the absolute value of the "minimum observed value" of the observed data of each hydrometeorological element as D2;
[0039] Compare the magnitudes of D1 and D2, and take the larger value as D;
[0040] Set L1 = 8 * D * 10^N;
[0041] Take the integer part value of L1 as L2; convert L2 into a hexadecimal data L3, and calculate the byte length occupied by the hexadecimal data L3 as L. L is the byte length occupied by the observed data of each hydrometeorological element.
[0042] b. The method for determining the observed value of the observed data of each hydrometeorological element is as follows:
[0043] The observed data of hydrometeorological elements adopt a data coding method that expands decimals to integers, changes negative numbers to positive numbers, and uses a hexadecimal format. When the data is missing, all bytes occupied by the observed data are filled with 0xFF. Changing negative numbers to positive numbers: Set the decimal observed value per minute of the hydrometeorological element observed data as D3, take the absolute value of D3 and assign it to D4; Expanding decimals to integers: Set the number of digits after the decimal point of the observation accuracy of each hydrometeorological element observed data as N, D5 = D4 * 10^N, and take the integer part value of D5 as D6.
[0044] Hexadecimal format data coding: Set the hexadecimal data D as the finally transmitted data. The highest bit Bit15 value of the binary corresponding to data D is D0. When D3 is a negative number, D0 is assigned 1, indicating a negative number; when D3 is a positive number, D0 is assigned 0, indicating a positive number. Bit14 - Bit0 corresponding to data D are the observed values of the hydrometeorological element observed data. The corresponding data is the integer value obtained after taking the absolute value of the hydrometeorological element observed data and expanding it to an integer, and the corresponding data is D6.
[0045] For example, the observed value of air temperature occupies two bytes in length. When the data is missing, it is represented by 0xFFFF, and the others are valid; Bit15 is the positive and negative flag, 0 is positive, 1 is negative, and Bit14 - Bit0 are the absolute value of the temperature. For example, 0x8064 represents that the observed value of air temperature is -10.0.
[0046] S2: Collect and store the observed data of hydrometeorological elements.
[0047] The data acquisition software creates a Beidou data sending buffer queue SendBufferList and a Beidou sending normal flag BDSendFlag, and BDSendFlag is assigned False.
[0048] The data acquisition software realizes the data acquisition of each element and stores it immediately in a certain format
[0049] S3: Organize a sending data packet for the observed data of the hydrometeorological elements according to the data transmission protocol. One sending data packet includes multiple groups of observed data of hydrometeorological elements.
[0050] The data acquisition software organizes a sending data packet for the observed data of the hydrometeorological elements that have been collected and stored according to the data transmission protocol through a 1-minute-level timing interrupt 1. This sending data packet is appended to the tail of the Beidou data sending buffer queue SendBufferList and returns to wait for the next interrupt.
[0051] S4: Send the one-time sending data packet when the Beidou-3 short message communication module is communicating normally.
[0052] The data acquisition software triggers the Beidou transmission process through a 1-minute timed interrupt 2. If the Beidou transmission normal flag BDSendFlag is equal to True and the length of the send buffer queue SendBufferList is greater than 0, the data acquisition software obtains a single send data packet SendData from SendBufferList in a first-in, first-out manner and sends the data packet SendData to the receiver through the Beidou 3 communication module, then returns to wait for the next interrupt.
[0053] The data acquisition software checks the communication status of the Beidou 3 communication module through a timed interrupt 3. If the communication is normal, the Beidou transmission normal flag BDSendFlag is assigned True; otherwise, the Beidou transmission normal flag BDSendFlag is assigned False, and then it returns to wait for the next interrupt.
[0054] This application has the following advantages:
[0055] (1) The communication ability of Beidou-3 is greatly improved compared with Beidou-2. The communication level is level 1, and the length of the non-secret telegram can be 692 bits. When the communication level is level 5, the length of the non-secret telegram can even reach 14,000 bits.
[0056] (2) The data transmission protocol adopts data compression technology and cross-period superposition data repeated reporting method. The data compression technology ensures that more data can be sent each time. The superposition data repeated reporting method increases the number of data transmissions, ensures the arrival rate of the observed data per minute, and the cross-period superposition data effectively avoids the problem of data transmission failure of the Beidou 3 communication module due to short-term external interference.
[0057] (3) By checking the normal communication of the Beidou 3 short message communication module and then obtaining data from the send buffer queue for sending, the success rate of each data transmission is improved.
[0058] Based on the same inventive concept, the embodiment of this application also provides a device for implementing the data transmission method based on the Beidou 3 short message communication module involved above. The implementation solutions provided by this device to solve problems are similar to the implementation solutions recorded in the above method. Therefore, the specific limitations in one or more embodiments of the data transmission device based on the Beidou 3 short message communication module provided below can refer to the limitations on the data transmission method based on the Beidou 3 short message communication module in the above text, and will not be repeated here.
[0059] In an exemplary embodiment, as Figure 2 shown, a data transmission device based on the Beidou 3 short message communication module is provided, including:
[0060] A data transmission protocol definition module 1, used to define the data transmission protocol.
[0061] The acquisition and storage module 2 is used to acquire and store the observed data of hydrometeorological elements.
[0062] The primary transmission data packet organizing module 3 is used to organize a primary transmission data packet for the observed data of hydrometeorological elements according to the data transmission protocol; the primary transmission data packet includes multiple groups of observed data of hydrometeorological elements.
[0063] The transmission module 4 is used to transmit the primary transmission data packet when the Beidou-3 short message communication module is in normal communication.
[0064] The technical features of the above embodiments can be combined arbitrarily. For the sake of concise description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in this specification.
[0065] Specific examples are used in this article to elaborate on the principles and implementation manners of the present application. The descriptions of the above embodiments are only used to help understand the method and its core idea of the present application; at the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation manners and application scopes. In summary, the content of this specification should not be construed as a limitation to the present application.
Claims
1. A data transmission method based on a Beidou-3 short message communication module, characterized in that, Including: Define a data transmission protocol; Collect and store the observed data of hydrometeorological elements; Organize a packet for sending the observed data of hydrometeorological elements according to the data transmission protocol; the packet for sending once includes multiple groups of observed data of hydrometeorological elements; Send the packet for sending once when the Beidou-3 short message communication module is communicating normally.
2. The data transmission method based on the Beidou-3 short message communication module according to claim 1, wherein The observed data of hydrometeorological elements includes wind direction, wind speed, air temperature, relative humidity, air pressure, rainfall, visibility, surface seawater temperature, surface seawater salinity and tide.
3. The data transmission method based on the Beidou-3 short message communication module according to claim 1, characterized in that, Define a data transmission protocol, specifically including: According to the requirements of coastal observation specifications, the observation frequency of the observed data of hydrometeorological elements is 1 minute; The data transmission protocol adopts a data compression scheme of expanding decimals to integers, changing negative numbers to integers and encoding data in hexadecimal format; The data transmission protocol adopts cross-period superposition data repeated reporting, and organizes several groups of observed data of hydrometeorological elements observed in the past period of time and several groups of observed data of hydrometeorological elements observed at the current time into a packet for sending once.
4. The data transmission method based on the Beidou-3 short message communication module according to claim 1, characterized in that The format of the data transmission protocol is: frame header + station code + the first group of observed data of hydrometeorological elements + the second group of observed data of hydrometeorological elements + the third group of observed data of hydrometeorological elements + the fourth group of observed data of hydrometeorological elements + frame tail, and the data encoding format is hexadecimal encoding.
5. The data transmission method based on the Beidou-3 short message communication module according to claim 1, characterized in that, The format of each group of observed data of hydrometeorological elements is: all the observed data of hydrometeorological elements observed per minute is a group, and the data transmitted in each group includes date and time, all the observed data of hydrometeorological elements observed per minute, and all the observed data of hydrometeorological elements are encoded in a fixed order.
6. The data transmission method based on the Beidou-3 short message communication module according to claim 5, characterized in that, The format of the date and time is: 2-byte length year + 1-byte length month + 1-byte length date + 1-byte length hour + 1-byte length minute.
7. The data transmission method based on the Beidou-3 short message communication module according to claim 5, characterized in that, All the observed data of hydrometeorological elements observed per minute are reported according to a fixed byte length and fixed position.
8. The data transmission method based on the Beidou-3 short message communication module according to claim 7, wherein, Determine the byte length occupied by each type of observed data of hydrometeorological elements according to the observation accuracy and observation range of each type of observed data of hydrometeorological elements.
9. The data transmission method based on the Beidou-3 short message communication module according to claim 1, characterized in that, Send a packet for sending once through the Beidou-3 short message communication module, specifically including: Trigger the Beidou sending process through a 1-minute-level timing interrupt 2. If the Beidou sending normal flag BDSendFlag is equal to True and the length of the sending buffer queue SendBufferList is greater than 0, obtain the packet for sending once SendData in SendBufferList in a first-in, first-out manner, and send the packet SendData to the receiving party through the Beidou-3 short message communication module, and return to wait for the next interrupt; Check the communication status of the Beidou-3 short message communication module through a timing interrupt 3. If the communication is normal, assign the Beidou sending normal flag BDSendFlag to True, otherwise assign the Beidou sending normal flag BDSendFlag to False, and return to wait for the next interrupt.
10. A data transmission device based on a Beidou-3 short message communication module, characterized in that, Including: A data transmission protocol definition module for defining a data transmission protocol; An acquisition and storage module for collecting and storing the observed data of hydrometeorological elements; The primary transmission data packet organizing module is used to organize a primary transmission data packet for the hydrometeorological element observation data according to the data transmission protocol; the primary transmission data packet includes multiple groups of hydrometeorological element observation data; The sending module is used to send the primary transmission data packet when the BDS-3 short message communication module is in normal communication.