Method, device and equipment for transmitting data message in standard format of automatic meteorological station

By adopting the standard format data message transmission method of BUFR data files in the meteorological communication system, the problem of high timeliness and low efficiency in the transmission of meteorological observation data is solved, the efficient transmission and standardization of meteorological data is realized, and the data transmission capability of automatic meteorological stations is improved. .

CN118158289BActive Publication Date: 2024-09-10STATE QIXIANG INFORMATION CENT
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410569717.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-09
Publication Date
2024-09-10
Estimated Expiration
2044-05-09

AI Technical Summary

Technical Problem

The existing meteorological communication system cannot meet the high-time transmission requirements for large quantities, high frequency, and multiple types of meteorological observation data, resulting in low transmission efficiency and affecting the comprehensive benefits of the data.

Method used

Using the standard format data message transmission method based on BUFR data files, the transmission client is deployed on the station platform through the domestic meteorological communication system, and the observation data is encapsulated into messages and sent to the provincial message server, which is then forwarded to the national Level message transmission server, using message exchange control strategy to achieve efficient transmission.

Benefits of technology

It effectively improves the high-time-efficient transmission capability of automatic meteorological station observation data, unifies the communication and transmission technology system of national automatic weather stations, realizes the standard format international exchange of domestic surface meteorological data, reduces the decoding overhead of the transmission link, and improves the transmission efficiency. efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118158289B
    Figure CN118158289B
Patent Text Reader

Abstract

The present invention discloses a method, device and equipment for transmitting data messages in standard format of meteorological automatic stations, and relates to the technical field of meteorological data transmission. The method includes: based on the data standard coding format specification, the station ground comprehensive observation business software encapsulates domestic meteorological observation data into BUFR data files, and writes the BUFR data files into an interface directory; through the domestic meteorological communication system, a transmission client is deployed on the station platform, an interface is provided for the station ground comprehensive observation business software, and the BUFR data files are encapsulated into messages and sent to a provincial message server; according to the message exchange control strategy, the provincial message server forwards the messages to the national message transmission service end. The present application can effectively improve the high-efficiency transmission of meteorological automatic station observation data, and unify the communication transmission technical system of national automatic weather stations.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of meteorological data transmission, and in particular to a method, device and equipment for transmitting data messages in a standard format of a meteorological automatic station. Background Art

[0002] According to the provisions and recommendations of the World Meteorological Organization (WMO) Meteorological Code Manual, meteorological codes mainly include characters (TAC) and table-driven codes (including BUFR, CREX and GRIB), which are used for meteorological data encoding and international transmission and exchange. In order to meet the growing demand for the types and quantities of meteorological data, and in view of the advantages of table-driven codes such as self-description, flexible expansion, and data compression, WMO recommends a transition from character codes to table-driven codes. At present, some of my country's data adopts the international common data format, and some adopts the domestic custom data format. There are many types of data formats, which are not standardized and unified, which affects and restricts the comprehensive benefits of meteorological data.

[0003] The meteorological communication system is responsible for the transmission and exchange of meteorological data and products at home and abroad. With the rapid development of modern meteorological services, the types and quantities of meteorological data are increasing. The observation and update frequency of key business data has reached the minute level, and the transmission timeliness requirement has reached the second level. The existing domestic meteorological communication system collects and processes observation data based on the traditional FTP (File Transfer Protocol) file transfer method. Because it is a file-level transmission, it needs to be processed on the server, so the I / O (Input / Output) performance requirements of the server disk are relatively high. The current file transmission can no longer meet the high-time transmission of large quantities, high frequencies, and multiple types of observation data. Therefore, how to quickly transmit observation data to the provincial and national levels through the meteorological communication system has become an urgent problem that needs to be solved. Summary of the invention

[0004] The present application provides a method, device and equipment for transmitting data messages in a standard format of an automatic meteorological station, which can effectively improve the timeliness of transmission of observation data of the automatic meteorological station and unify the communication transmission technology system of national automatic meteorological stations.

[0005] In a first aspect, an embodiment of the present application provides a method for transmitting a data message in a standard format of a weather automatic station, the method comprising:

[0006] Based on the data standard encoding format specification, the station ground comprehensive observation business software encapsulates the domestic meteorological observation data into a BUFR data file and writes the BUFR data file into the interface directory;

[0007] Deploy a transmission client on the station platform through the domestic meteorological communication system, provide an interface for the station's ground comprehensive observation business software, and encapsulate the BUFR data file into a message and send it to the provincial message server;

[0008] According to the message exchange control policy, the provincial message server forwards the message to the national message transmission service end.

[0009] In combination with the first aspect, in one implementation,

[0010] The station ground comprehensive observation business software encapsulates the domestic meteorological observation data into a BUFR data file, wherein the encapsulation format of the BUFR data file includes a header part, a BUFR message body and a tail encapsulation;

[0011] The content of the BUFR message body starts with a first setting character and ends with a second setting character, and the first setting character is used to encapsulate the message header, and the second setting character is used to encapsulate the message tail.

[0012] In combination with the first aspect, in one implementation,

[0013] The interface directory includes a data transmission interface directory, a feedback information interface directory and a data reception interface directory;

[0014] The data transmission interface directory is used to implement the station ground comprehensive observation business software to write the data to be distributed, and the data transmission interface directory includes a receiving directory for data to be distributed, a distribution data backup directory and an unknown file directory;

[0015] The feedback information interface directory is used to store feedback files fed back by the transmission client to the station ground comprehensive observation business software, and the feedback information interface directory includes a feedback information file directory and a feedback information backup directory;

[0016] The data receiving interface directory is used to store data files sent by the provincial message server, and the data receiving interface directory includes a received data file directory and a received data backup directory.

[0017] In combination with the first aspect, in one implementation,

[0018] The receiving directory of data to be distributed is used to implement the station ground comprehensive observation business software to write data and the transmission client to read data;

[0019] The distribution data backup directory is used to enable the transmission client to create a date subdirectory and back up the distributed data according to the format, and the transmission client is responsible for cleaning and maintaining the distribution data backup directory;

[0020] The unknown file directory is used to store data files that cannot be recognized by the transmission client, and the transmission client is responsible for cleaning and maintaining the unknown file directory;

[0021] The feedback information file directory is used to store feedback files written by the transmission client. The station ground comprehensive observation business software reads the feedback files in the feedback information file directory, and the station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information file directory;

[0022] The feedback information backup directory is used by the station ground comprehensive observation business software to read the feedback file. The station ground comprehensive observation business software creates a subdirectory in the feedback information backup directory and backs up the read feedback file to the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information backup directory;

[0023] The received data file directory is used to store data files received by the transmission client from the provincial message server. The station ground comprehensive observation business software reads the data files stored in the received data file directory and is responsible for cleaning and maintaining the received data file directory.

[0024] The received data backup directory is used to create a subdirectory under the data receiving interface directory after the station ground comprehensive observation business software reads the data file in the received data file directory, and backs up the read data file in the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the received data backup directory.

[0025] In combination with the first aspect, in one implementation,

[0026] The transmission client is deployed on the station platform through the domestic meteorological communication system to provide an interface for the station ground comprehensive observation business software, wherein the interface includes an interface initialization function, an observation data message sending interface, and an observation data message sending feedback monitoring interface;

[0027] The interface initialization function is used to call the interface initialization function to initialize the interface when the station ground comprehensive observation business software needs to use the transmission client to transmit data;

[0028] The observation data message sending interface is used to encapsulate the data to be sent into a message when there is data to be sent in the station ground comprehensive observation business software, and send it to the transmission client through the observation data message sending interface. The transmission client receives the data to be sent and saves it as a file or directly forwards it;

[0029] The observation data message sending feedback monitoring interface is used to encapsulate the data sending status into a message and feed back to the station ground comprehensive observation business software when the station ground comprehensive observation business software has data to be sent to the provincial message server.

[0030] In combination with the first aspect, in one implementation,

[0031] The BUFR data file is encapsulated into a message and sent to a provincial message server, wherein the message is encapsulated by putting the message attribute information into the message header in a key-value pair manner, and following the setting principle when designing the message attributes;

[0032] The setting principles include that the message attributes have a unique identifier, routing and forwarding can be performed according to the message attributes, and statistics work during the transmission process can be completed according to the message attributes;

[0033] The unique identification is implemented by random coding;

[0034] The routing forwarding can be performed according to the message attributes, wherein the routing forwarding is realized based on the provincial code, station number and data four-level coding in the message attributes;

[0035] The statistical work in the transmission process can be completed according to the message attributes, wherein the statistical work in the transmission process is completed according to the message attributes based on the observation time, interface call time, and message sending time in the message attributes.

[0036] In combination with the first aspect, in one implementation,

[0037] The message exchange control strategy specifically includes sending in a topic mode, receiving in a queue mode, and controlling the forwarding process from topic to queue based on the routing key value;

[0038] The sending adopts the subject mode, wherein the subject name begins with the third set character, and each subject corresponds to a type of access object;

[0039] For receiving, a queue method is used, wherein the queue name begins with the fourth set character and the receiver is clearly stated in the queue name;

[0040] The forwarding process from topic to queue is controlled based on the routing key value, wherein the routing key value name starts with the fifth set character, and the major category of the routing key value is located before the minor category.

[0041] In a second aspect, an embodiment of the present application provides a device for transmitting data messages in a standard format of a weather automatic station, comprising:

[0042] A data encapsulation module is used to drive the station ground comprehensive observation business software to encapsulate domestic meteorological observation data into BUFR data files based on the data standard encoding format specification;

[0043] A file cache module, which is used to drive the station ground integrated observation business software to write the BUFR data file to be sent into the interface directory;

[0044] A message encapsulation module, which is used to drive the transmission client to read the BUFR data file from the interface directory and encapsulate it into a message, wherein the transmission client is deployed in the station platform through the domestic meteorological communication system;

[0045] The message transmission module is used to send the encapsulated message to the provincial message server, and according to the message exchange control strategy, send the message received by the provincial message server to the national message transmission service end.

[0046] In combination with the second aspect, in one embodiment, the transmission client is also used to monitor the data transmission interface of the provincial message server. When a business instruction or data is sent, the monitored data is obtained and written into the interface directory in the form of a file for reading by the station ground comprehensive observation business software.

[0047] In the third aspect, an embodiment of the present application provides a standard format data message transmission device for a meteorological automatic station, characterized in that the standard format data message transmission device for a meteorological automatic station includes a processor, a memory, and a standard format data message transmission program for a meteorological automatic station stored on the memory and executable by the processor, wherein when the standard format data message transmission program for a meteorological automatic station is executed by the processor, the steps of the standard format data message transmission method for a meteorological automatic station described above are implemented.

[0048] The beneficial effects brought by the technical solution provided in the embodiments of the present application include:

[0049] In combination with actual meteorological business work, the station's ground comprehensive observation business software encapsulates domestic meteorological observation data into BUFR data files, writes them into the interface directory, and the station's transmission client polls the interface directory, encapsulates the BUFR data files into messages and sends them to the provincial message server. The provincial message server forwards the message data to the national message transmission server in accordance with the message exchange control strategy, which can effectively promote the application of standard formats for domestic ground automatic station observation data, lay the foundation for the international exchange of domestic core observation data, and at the same time improve the high-efficiency transmission of meteorological automatic station observation data and unify the communication and transmission technical system of national automatic meteorological stations. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] Figure 1 This is a flow chart of the method for transmitting data messages in standard format of automatic weather stations in this application;

[0051] Figure 2 It is the BUFR message encapsulation format;

[0052] Figure 3 This is a functional module diagram of the device for transmitting data messages in standard format for automatic weather stations of this application;

[0053] Figure 4 This is a schematic diagram of the hardware structure of the standard format data message transmission equipment of the meteorological automatic station. DETAILED DESCRIPTION

[0054] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0055] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0056] On the first aspect, an embodiment of the present application provides a method for transmitting data messages in a standard format of a meteorological automatic station. First, standard format data encoding is completed on the measuring station side for domestic ground, meteorological radiation, acid rain and other meteorological observation data. Then, based on the existing capabilities of the communication system, combined with the characteristics of the observation data of the national ground automatic station and the technical characteristics of the message middleware RabbitMQ (an open source message agent software that implements the Advanced Message Queuing Protocol), the message middleware is used to transmit the observation data, thereby improving the real-time and efficient transmission capability of meteorological data.

[0057] From the application situation, it can be seen that this application can make the core observation data such as domestic ground, meteorological radiation and acid rain adopt the same standard format as the international and industry, laying the foundation for global data exchange, and at the same time efficiently complete the transmission of national ground automatic station data from the station to the province to the country. The average transmission time from the station to the provincial level to the national level is less than 1s. By extracting the monitoring and routing information required for the transmission link from the message attributes, the decoding overhead of the transmission link is reduced, the transmission process is optimized, and the transmission efficiency is improved. At the same time, the use of this exchange control strategy can realize the configurable and customized collection and distribution of observation data, such as classifying and forwarding data of different data types (ground / radiation) and different data sources (such as data from Hubei, Shanghai, etc.) at the national level.

[0058] In one embodiment, referring to Figure 1 , Figure 1This is a flow chart of the method for transmitting data messages in the standard format of the automatic weather station of this application. Figure 1 As shown, the method for transmitting data messages in standard format of automatic weather stations includes:

[0059] S1: Based on the data standard encoding format specification, the station ground integrated observation business software encapsulates the domestic meteorological observation data into a BUFR (a meteorological observation data format) data file, and writes the BUFR data file into the interface directory; the station ground integrated observation business software is referred to as ISOS-SS;

[0060] S2: Deploy a transmission client on the station platform through the domestic meteorological communication system, provide an interface for the station's ground comprehensive observation business software, and encapsulate the BUFR data file into a message and send it to the provincial message server; the domestic meteorological communication system is referred to as CTS2.0;

[0061] S3: According to the message exchange control policy, the provincial message server forwards the message to the national message transmission server.

[0062] Furthermore, in one embodiment, the station ground comprehensive observation business software encapsulates domestic meteorological observation data into a BUFR data file, wherein the encapsulation format of the BUFR data file includes a header part, a BUFR message body and a tail encapsulation; the content of the BUFR message body starts with a first set character and ends with a second set character, and the first set character is used before the encapsulation of the message header, and the second set character is used after the encapsulation of the message tail.

[0063] In the actual application process, the station ISOS-SS software encapsulates domestic meteorological observation data into BUFR data files. The data body starts with the four characters "BUFR" and ends with the four characters "7777". The header of the message is encapsulated before "BUFR", and the tail of the message is encapsulated after "7777". After the meteorological observation data is encapsulated into a BUFR data file, it is written into the interface directory, that is, the ISOS-SS software writes the data to be sent into the interface directory, and then the transmission client reads the data from the interface directory and encapsulates it into a message, sends it to the provincial message server, and writes the feedback information into the interface directory at the same time; in addition, the transmission client is responsible for monitoring the data transmission interface of the provincial message server. When a business instruction is monitored or data is sent, the transmission client obtains data from the provincial message server and writes it into the interface directory in the form of a file for the ISOS-SS software to read.

[0064] It should be noted that in this application, domestic meteorological observation data include ground minute observation data, ground hourly observation data, meteorological radiation minute observation data, meteorological radiation hourly observation data, acid rain observation data, ground automatic station operation status, equipment information, ground station metadata, etc.

[0065] Among them, the data standard coding format specification follows the meteorological industry standards such as "Domestic Surface Meteorological Data Standard Coding Format (Trial)", "Domestic Meteorological Radiation Data Standard Coding Format (Trial)", and "Domestic Acid Rain Data Standard Coding Format (Trial)". The packaging of domestic meteorological observation data complies with the meteorological industry standards such as "Table Driven Code Meteorological Data Transmission File Specification" (QX / T 202-2013).

[0066] For BUFR data files, the BUFR message length is 8 characters, including the header, BUFR message body and tail encapsulation. For the specific format, see Figure 2 shown.

[0067] for Figure 2The message encapsulation format shown in the figure explains the identifiers of each part from left to right. Message length, 8 characters representing the data length from SOH to ETX; format identifier, fixed to 00, indicating an encapsulation format with a start line and an end line; SOH, Start Of Heading, represented by hexadecimal 0x01; CR, carriage return, hexadecimal 0x0D; CR, carriage return, hexadecimal 0x0D; LF, line feed, hexadecimal 0x0A; nnnnn, 5 characters representing the message serial number (station reporting serial number, if not available, can be set to the default 5 characters "99999"); CR, carriage return, hexadecimal 0x0D; CR, carriage return, hexadecimal 0x0D; LF, line feed, hexadecimal 0x0A; TTAAii CCCC YYGGgg[ BBB], simplified header, where [ BBB] is optional, identifies a correction report. For the TTAAii rule, TTAAii is used to represent the data type, and its value rule follows the definition in Table 1 below; CCCC, indicates the compilation center, using the 4-digit meteorological station code; YYGGgg, indicates the data time, YY is the 2-digit day, GG is the 2-digit hour, gg is the 2-digit minute, for example, 071200 indicates the data at 12:00 on the 7th; BBB is an optional item. When a correction report needs to be compiled, this item is set to the correction report identifier CCx; CC is a fixed code, x is A~Z, when x=A, it means the first correction of the observation data or quality control information, when x=B, it means the second correction of the observation data or quality control information. Test data or quality control information, and so on, until x=Z; CR, carriage return, hexadecimal 0x0D; CR, carriage return, hexadecimal 0x0D; LF, line feed, hexadecimal 0x0A; the body of the message, starting with "BUFR", and the part ending with "7777" is the body of the BUFR data file; CR, carriage return, hexadecimal 0x0D; CR, carriage return, hexadecimal 0x0D; LF, line feed, hexadecimal 0x0A; ETX, end of message mark (End of TeXt), hexadecimal 0x03.

[0068] Table 1 TTAAii value rules

[0069] Data type (national station) TTAAii Hourly observation data of ground automatic stations ISAN01 Minute observation data of ground automatic station ISAN30 Domestic radiation hourly observation data ISXR01 Domestic radiation minute observation data ISXR30 Domestic acid rain observation data ISXA01

[0070] Furthermore, in one embodiment, the interface directory includes a data sending interface directory, a feedback information interface directory, and a data receiving interface directory; the data sending interface directory is used to enable the station ground comprehensive observation business software to write the data to be distributed (i.e., domestic meteorological observation data), and the data sending interface directory includes a data receiving directory to be distributed, a distribution data backup directory, and an unknown file directory; the feedback information interface directory is used to store feedback files fed back by the transmission client to the station ground comprehensive observation business software, and the feedback information interface directory includes a feedback information file directory and a feedback information backup directory; the data receiving interface directory is used to store data files sent by the provincial message server, and the data receiving interface directory includes a received data file directory and a received data backup directory.

[0071] The receiving directory of data to be distributed is used to write data to the station ground comprehensive observation business software and read data from the transmission client. For data that can be identified and pass the format check, the transmission client completes the transmission and moves the data from the receiving directory of data to be distributed to the distribution data backup directory for backup. If the data cannot be identified or fails to pass the data format check, the transmission client moves the data file to the unknown file directory. (Under normal circumstances, there will be no data backlog in the receiving directory of data to be distributed).

[0072] The distribution data backup directory is used to enable the transmission client to create a date subdirectory (specifically, create a date subdirectory in the format of yyyyMMdd), and back up the distributed data according to the format, and the transmission client is responsible for cleaning and maintaining the distribution data backup directory; the unknown file directory is used to store data files that the transmission client cannot recognize, and the transmission client is responsible for cleaning and maintaining the unknown file directory;

[0073] Among them, the feedback information file directory is used to store the feedback files written by the transmission client. The station ground comprehensive observation business software reads the feedback files in the feedback information file directory, and the station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information file directory; the feedback information backup directory is used for the station ground comprehensive observation business software to read the feedback files. The station ground comprehensive observation business software creates a subdirectory in the feedback information backup directory (specifically, a subdirectory with a date in yyyyMMdd format) and backs up the read feedback files to the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information backup directory.

[0074] Among them, the received data file directory is used to store data files received by the transmission client from the provincial message server. The station ground comprehensive observation business software reads the data files stored in the received data file directory and is responsible for cleaning and maintaining the received data file directory; the received data backup directory is used to create a subdirectory under the data receiving interface directory after the station ground comprehensive observation business software reads the data file in the received data file directory, and backs up the read data file in the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the received data backup directory.

[0075] Furthermore, in one embodiment, the BUFR data file is encapsulated into a message and sent to a provincial message server, wherein the message is encapsulated by placing the message attribute information in the message header in a key-value pair manner, and following the setting principles when designing the message attributes. The setting principles include that the message attributes have a unique identifier, routing forwarding can be performed according to the message attributes, and statistical work during the transmission process can be completed according to the message attributes.

[0076] The unique identifier is implemented by random coding, that is, there is a unique identifier in the message attribute, which can be used to distinguish uniqueness and to check for duplicate messages from duplicate clients. The unique identifier is implemented by random coding;

[0077] Routing and forwarding can be performed based on the message attributes. Routing and forwarding can be performed based on the provincial code (CCCC), station number (IIiii) and data level 4 code (TYPE) in the message attributes, and monitoring information can be read according to business needs. By reading the attributes, you can know where the message comes from, and monitoring information can be read according to business needs.

[0078] Statistics work during the transmission process can be completed according to message attributes. Based on the observation time (OBSTime), interface call time (SendTime), and message sending time (MQ_SendTime) in the message attributes, statistics work during the transmission process can be completed according to the message attributes. For example, transmission time statistics and data integrity statistics can be performed according to the attribute information.

[0079] For the message encapsulation design, see Table 2 below.

[0080] Table 2 Message attribute encapsulation design

[0081]

[0082] Furthermore, in one embodiment, a transmission client is deployed on the station platform through the domestic meteorological communication system to provide an interface for the station's ground comprehensive observation business software, wherein the interface includes an interface initialization function, an observation data message sending interface, and an observation data message sending feedback monitoring interface.

[0083] Among them, the interface initialization function is used to call the interface initialization function to initialize the interface when the station ground comprehensive observation business software needs to use the transmission client for data transmission;

[0084] That is, when the station ground comprehensive observation business software needs to use the transmission client, the interface initialization function must be called first, and only once. If successful, the return value of the interface initialization function is S_OK, otherwise the data will not be able to reach the transmission client correctly. The initialization operation of the interface initialization function includes the transmission client running status detection (if it is not started, start the transmission client), establish a communication connection with the transmission client, and start the connection status detection thread.

[0085] Among them, the observation data message sending interface is used to encapsulate the data to be sent into a message when there is data to be sent in the station's ground comprehensive observation business software, and send it to the transmission client through the observation data message sending interface. The transmission client receives the data to be sent and saves it as a file or forwards it directly.

[0086] Among them, the observation data message sending feedback monitoring interface is used to encapsulate the data sending status into a message and feedback it to the station ground comprehensive observation business software when there is data that needs to be sent to the provincial message server. The feedback information includes the failure of the transmission client format check, the success or failure of the message sending.

[0087] Further, in one embodiment, the message exchange control strategy specifically includes sending in a topic mode, receiving in a queue mode, and controlling the forwarding process from topic to queue based on a routing key value;

[0088] The subject method is used for sending, in which the subject name starts with the third set character, and each subject corresponds to a type of access object; for example, the subject name starts with "X.", and each subject corresponds to a type of access object. For example, the stations currently participating in the national ground automatic station standard format pilot will send messages to X.OBS in the province.

[0089] For reception, a queue method is adopted, in which the queue name begins with the fourth set character, and the receiver is clearly stated in the queue name; for example, the queue method is adopted for reception, and the queue name begins with "Q.", and the queue name needs to clearly state the receiver, such as the queue for receiving station data in the national CMADAAS data environment is Q.OBS.BABJ. CMADAAS.

[0090] The forwarding process from topic to queue is controlled based on the routing key value, where the routing key value name starts with the fifth set character, and the major category of the routing key value is placed before the minor category. For example, the routing key value name starts with "R.", the major category of the routing key value is placed in front and the minor category is placed in the back, R.OBS.CCCC.N / P. IIiii.TYPE, CCCC represents the provincial code of the province where the message sender is located, N / P represents the level of the message sender, N represents the national station, P represents the regional station, and TYPE represents the data level 4 code.

[0091] In the actual application process, take the ground standard format message transmission as an example: the data observed by the station ISOS software is sent to the provincial topic X.OBS in the form of a message through the transmission client, and then the message is stored in the message queue Q.OBS.TO.BABJ, Q.OBS.TO.Server, Q.OBS.Monitor through the routing key value, and finally forwarded to the national message server and provincial MDOS, CIMISS and Monitor users through Shovel.

[0092] Among them, for the sending end of the station ground comprehensive observation business software, the topic (exchange) is X.OBS, where X is the topic identification code and OBS is the automatic observation business. The routing key value (RoutingKey) is R.OBS.BEPK.N.54511.A.0001.0044.R001, where R is the matching template identification code, OBS represents the automatic observation business, BEPK identifies the provincial code, N represents the station level, the national station is "N", the regional station is "P", 54511 represents the station number, A.0001.0044.R001 represents the data subtype, and the four-level code of the ground hourly data is A.0001.0044.R001.

[0093] Among them, for the receiving end of the provincial message server, the queue is Q. OBS.BEPK.CIMISS, OBS.BEPK.MDOS, where Q is the queue identification code, OBS represents automatic observation service, BEPK identifies the provincial code, and CIMISS / MDOS represents the service system name.

[0094] Among them, for the forwarding of the provincial message server, the topic name is X.OBS, the message route is R.OBS.BEPK.N.#, the provincial upstream queue is Q.OBS.TO.BABJ, and the national upstream topic is X.OBS.

[0095] Among them, for the forwarding of the national-level message transmission server, the topic name is X.OBS, the message route is #, and the national-level receiving queue is Q.OBS.BABJ.CIMISS / Q.OBS.BABJ.ISOS.

[0096] Among them, for the reception of the national message transmission server, the queue is Q.OBS.BABJ.CIMISS / Q.OBS.BABJ.ISOS, where Q is the queue identification code, OBS is the automatic observation service, BABJ is the national code, fixed as BABJ, and CIMISS / MDOS is the service system name.

[0097] The method for transmitting data messages in the standard format of automatic meteorological stations in this application is combined with the actual meteorological business work. The station ground integrated observation business software (ISOS-SS) encapsulates domestic meteorological observation data into BUFR data files and writes them into the interface directory. The station's transmission client polls the interface directory and encapsulates the BUFR data files into messages and sends them to the provincial message server. The provincial message server forwards the message data to the national message transmission server according to the message exchange control strategy. This application can realize the format standardization of domestic observation data such as ground, radiation, and acid rain, and effectively improve the high-efficiency transmission capability of real-time meteorological data, which is close to the actual needs of meteorological business.

[0098] In a second aspect, an embodiment of the present application also provides a device for transmitting data messages in a standard format of a weather automatic station.

[0099] In one embodiment, referring to Figure 3 , Figure 3 This is a functional module diagram of the standard format data message transmission device for the automatic weather station of this application. Figure 3 As shown, the standard format data message transmission device of the meteorological automatic station includes a data encapsulation module, a file cache module, a message encapsulation module, and a message transmission module.

[0100] The data encapsulation module is used to drive the station's ground comprehensive observation business software to encapsulate domestic meteorological observation data into BUFR data files based on data standard encoding format specifications, meeting the needs of message integrity verification, data type identification, file packaging, etc. during data transmission.

[0101] The file cache module is used to drive the station ground comprehensive observation business software to write the BUFR data file to be sent to the interface directory; the transmission client reads the file from the interface directory and encapsulates it into a message and sends it to the provincial message server, and writes the feedback information to the interface directory at the same time. The transmission client is also used to monitor the data transmission interface of the provincial message server. When a business instruction or data is monitored, the monitored data is obtained and written into the interface directory in the form of a file for the station ground comprehensive observation business software to read.

[0102] The message encapsulation module is used to drive the transmission client to read the BUFR data file from the interface directory and encapsulate it into a message, wherein the transmission client is deployed in the station platform through the domestic meteorological communication system.

[0103] Specifically, the message encapsulation module uses the message middleware to transmit meteorological observation data. Combining the characteristics of the observation data of the national ground automatic station and the technical characteristics of the message middleware RabbitMQ, the transmission attributes of the meteorological observation data are placed in the message header. There is no need to decode the message in the transmission link. Instead, the monitoring information such as the station number and observation time can be extracted by reading the attribute information in the message header, thereby reducing the processing cost in the transmission link. The message body is placed in the message body in the form of a string. A message is encapsulated by the message header and the message body and can be sent to the message middleware.

[0104] The message transmission module is used to send the encapsulated message to the provincial message server, and according to the message exchange control strategy, send the message received by the provincial message server to the national message transmission server.

[0105] Specifically, the message transmission module is used to receive messages and routing key information, and distribute messages to the message queue according to the routing key information. The message transmission module is implemented through the corresponding transmission client API interface, including the interface initialization function, the observation data message sending interface, and the observation data message sending feedback interface. When the ISOS-SS software is started, the interface initialization function is called to determine the transmission method to be adopted. The ISOS-SS software sends data to the transmission client through the observation data message sending interface, and obtains the data sending status through the observation data message sending feedback interface.

[0106] In a third aspect, an embodiment of the present application provides a device for transmitting data messages in a standard format for a weather automatic station. The device for transmitting data messages in a standard format for a weather automatic station may be a personal computer (PC), a laptop computer, a server, or other device having a data processing function.

[0107] Reference Figure 4 , Figure 4 The hardware structure diagram of the standard format data message transmission device of the weather automatic station involved in the embodiment of the present application is shown in FIG. In the embodiment of the present application, the standard format data message transmission device of the weather automatic station may include a processor, a memory, a communication interface and a communication bus.

[0108] The communication bus may be of any type and is used to interconnect the processor, the memory, and the communication interface.

[0109] The communication interface includes input / output (I / O) interface, physical interface and logical interface, etc., which are used to realize the interconnection of devices inside the weather automatic station standard format data message transmission equipment, and the interface used to realize the interconnection between the weather automatic station standard format data message transmission equipment and other devices (such as other computing devices or user devices). The physical interface can be an Ethernet interface, a fiber optic interface, an ATM interface, etc.; the user device can be a display (Display), a keyboard (Keyboard), etc.

[0110] The memory can be various types of storage media, such as random access memory (RAM), read-only memory (ROM), non-volatile RAM (NVRAM), flash memory, optical storage, hard disk, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), etc.

[0111] The processor may be a general-purpose processor, which may call the weather station standard format data message transmission program stored in the memory and execute the weather station standard format data message transmission method provided in the embodiment of the present application. For example, the general-purpose processor may be a central processing unit (CPU). The method executed when the weather station standard format data message transmission program is called may refer to the various embodiments of the weather station standard format data message transmission method of the present application, which will not be repeated here.

[0112] Those skilled in the art will understand that Figure 4 The hardware structure shown in the figure does not constitute a limitation on the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0113] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0114] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0115] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0116] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

[0117] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, disk, CD) as described above, and includes a number of instructions for a terminal device to execute the methods described in each embodiment of the present application.

[0118] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for transmitting data messages in standard format of a weather automatic station, characterized in that: The method for transmitting data messages in standard format of automatic weather station comprises: Based on the data standard encoding format specification, the station ground comprehensive observation business software encapsulates the domestic meteorological observation data into a BUFR data file and writes the BUFR data file into the interface directory; Deploy a transmission client on the station platform through the domestic meteorological communication system, provide an interface for the station's ground comprehensive observation business software, and encapsulate the BUFR data file into a message and send it to the provincial message server; According to the message exchange control policy, the provincial message server forwards the message to the national message transmission service end; in, The station ground comprehensive observation business software encapsulates the domestic meteorological observation data into a BUFR data file, wherein the encapsulation format of the BUFR data file includes a header part, a BUFR message body and a tail encapsulation; The content of the BUFR message body starts with a first set character and ends with a second set character, and the first set character is used to encapsulate the message header, and the second set character is used to encapsulate the message tail; The specific encapsulation format of the BUFR data file includes: message length, format identifier, SOH, CR, CR, LF, nnnnn, CR, CR, LF, header part, CR, CR, LF, BUFR message body, CR, CR, LF, ETX; The message length is 8 characters, indicating the data length from SOH to ETX; the format identifier is fixed to 00, indicating an encapsulation format with a start line and an end line; the SOH is a start mark, which is represented by 0x01 in hexadecimal; the CR represents a carriage return, which is represented by 0x0D in hexadecimal; the LF represents a line feed, which is represented by 0x0A in hexadecimal; the nnnnn is 5 characters indicating the message serial number; the ETX is a message end mark, which is represented by 0x03 in hexadecimal; The report header is divided into TTAAii CCCC YYGGgg[ BBB]; TTAAii is used to indicate the data type, which includes ground automatic station hourly observation data, ground automatic station minute observation data, domestic radiation hourly observation data, domestic radiation minute observation data, and domestic acid rain observation data; CCCC indicates the report compilation center, using a 4-digit meteorological station code; YYGGgg indicates the data time, YY is a 2-digit day, GG is a 2-digit hour, and gg is a 2-digit minute; BBB is an optional item, and when a correction report needs to be compiled, BBB is set as the correction report identifier CCx, CC is a fixed code, and x takes the value of A to Z. When x=A, it indicates the first correction of observation data or quality control information, and when x=B, it indicates the second correction of observation data or quality control information, and so on, until x=Z; The first set character is specifically BUFR, and the second set character is specifically 7777; in, The interface directory includes a data transmission interface directory, a feedback information interface directory and a data reception interface directory; The data transmission interface directory is used to implement the station ground comprehensive observation business software to write the data to be distributed, and the data transmission interface directory includes a receiving directory for data to be distributed, a distribution data backup directory and an unknown file directory; The feedback information interface directory is used to store feedback files fed back by the transmission client to the station ground comprehensive observation business software, and the feedback information interface directory includes a feedback information file directory and a feedback information backup directory; The data receiving interface directory is used to store data files sent by the provincial message server, and the data receiving interface directory includes a received data file directory and a received data backup directory; in, The receiving directory of data to be distributed is used to implement the station ground comprehensive observation business software to write data and the transmission client to read data; The distribution data backup directory is used to enable the transmission client to create a date subdirectory and back up the distributed data according to the format, and the transmission client is responsible for cleaning and maintaining the distribution data backup directory; The unknown file directory is used to store data files that cannot be recognized by the transmission client, and the transmission client is responsible for cleaning and maintaining the unknown file directory; The feedback information file directory is used to store feedback files written by the transmission client. The station ground comprehensive observation business software reads the feedback files in the feedback information file directory, and the station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information file directory; The feedback information backup directory is used by the station ground comprehensive observation business software to read the feedback file. The station ground comprehensive observation business software creates a subdirectory in the feedback information backup directory and backs up the read feedback file to the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information backup directory; The received data file directory is used to store data files received by the transmission client from the provincial message server. The station ground comprehensive observation business software reads the data files stored in the received data file directory and is responsible for cleaning and maintaining the received data file directory. The received data backup directory is used to create a subdirectory under the data receiving interface directory after the station ground comprehensive observation business software reads the data file in the received data file directory, and backs up the read data file in the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the received data backup directory.

2. A method for transmitting data messages in standard format of a weather automatic station as claimed in claim 1, characterized in that: The transmission client is deployed on the station platform through the domestic meteorological communication system to provide an interface for the station ground comprehensive observation business software, wherein the interface includes an interface initialization function, an observation data message sending interface, and an observation data message sending feedback monitoring interface; The interface initialization function is used to call the interface initialization function to initialize the interface when the station ground comprehensive observation business software needs to use the transmission client to transmit data; The observation data message sending interface is used to encapsulate the data to be sent into a message when there is data to be sent in the station ground comprehensive observation business software, and send it to the transmission client through the observation data message sending interface. The transmission client receives the data to be sent and saves it as a file or directly forwards it; The observation data message sending feedback monitoring interface is used to encapsulate the data sending status into a message and feed back to the station ground comprehensive observation business software when the station ground comprehensive observation business software has data to be sent to the provincial message server.

3. A method for transmitting data messages in standard format of a weather automatic station as claimed in claim 1, characterized in that: The BUFR data file is encapsulated into a message and sent to a provincial message server, wherein the message is encapsulated by putting the message attribute information into the message header in a key-value pair manner, and following the setting principle when designing the message attributes; The setting principles include that the message attributes have a unique identifier, routing and forwarding can be performed according to the message attributes, and statistics work during the transmission process can be completed according to the message attributes; The unique identification is implemented by random coding; The routing forwarding can be performed according to the message attributes, wherein the routing forwarding is realized based on the provincial code, station number and data four-level coding in the message attributes; The statistical work in the transmission process can be completed according to the message attributes, wherein the statistical work in the transmission process is completed according to the message attributes based on the observation time, interface call time, and message sending time in the message attributes.

4. A method for transmitting data messages in standard format of a weather automatic station as claimed in claim 1, characterized in that: The message exchange control strategy specifically includes sending in a topic mode, receiving in a queue mode, and controlling the forwarding process from topic to queue based on the routing key value; The sending adopts the subject mode, wherein the subject name begins with the third set character, and each subject corresponds to a type of access object; For receiving, a queue method is used, wherein the queue name begins with the fourth set character and the receiver is clearly stated in the queue name; The forwarding process from topic to queue is controlled based on the routing key value, wherein the routing key value name starts with the fifth set character, and the major category of the routing key value is located before the minor category.

5. A device for transmitting data messages in standard format for automatic weather stations, characterized in that: include: A data encapsulation module is used to drive the station ground comprehensive observation business software to encapsulate domestic meteorological observation data into BUFR data files based on the data standard encoding format specification; A file cache module, which is used to drive the station ground integrated observation business software to write the BUFR data file to be sent into the interface directory; A message encapsulation module, which is used to drive the transmission client to read the BUFR data file from the interface directory and encapsulate it into a message, wherein the transmission client is deployed in the station platform through the domestic meteorological communication system; A message transmission module, which is used to send the encapsulated message to the provincial message server, and according to the message exchange control strategy, send the message received by the provincial message server to the national message transmission server; in, The station ground comprehensive observation business software encapsulates the domestic meteorological observation data into a BUFR data file, wherein the encapsulation format of the BUFR data file includes a header part, a BUFR message body and a tail encapsulation; The content of the BUFR message body starts with a first set character and ends with a second set character, and the first set character is used to encapsulate the message header, and the second set character is used to encapsulate the message tail; The specific encapsulation format of the BUFR data file includes: message length, format identifier, SOH, CR, CR, LF, nnnnn, CR, CR, LF, header part, CR, CR, LF, BUFR message body, CR, CR, LF, ETX; The message length is 8 characters, indicating the data length from SOH to ETX; the format identifier is fixed to 00, indicating an encapsulation format with a start line and an end line; the SOH is a start mark, which is represented by 0x01 in hexadecimal; the CR represents a carriage return, which is represented by 0x0D in hexadecimal; the LF represents a line feed, which is represented by 0x0A in hexadecimal; the nnnnn is 5 characters indicating the message serial number; the ETX is a message end mark, which is represented by 0x03 in hexadecimal; The report header is divided into TTAAii CCCC YYGGgg[ BBB]; TTAAii is used to indicate the data type, which includes ground automatic station hourly observation data, ground automatic station minute observation data, domestic radiation hourly observation data, domestic radiation minute observation data, and domestic acid rain observation data; CCCC indicates the report compilation center, using a 4-digit meteorological station code; YYGGgg indicates the data time, YY is a 2-digit day, GG is a 2-digit hour, and gg is a 2-digit minute; BBB is an optional item, and when a correction report needs to be compiled, BBB is set as the correction report identifier CCx, CC is a fixed code, and x takes the value of A to Z. When x=A, it indicates the first correction of observation data or quality control information, and when x=B, it indicates the second correction of observation data or quality control information, and so on, until x=Z; The first set character is specifically BUFR, and the second set character is specifically 7777; in, The interface directory includes a data transmission interface directory, a feedback information interface directory and a data reception interface directory; The data transmission interface directory is used to implement the station ground comprehensive observation business software to write the data to be distributed, and the data transmission interface directory includes a receiving directory for data to be distributed, a distribution data backup directory and an unknown file directory; The feedback information interface directory is used to store feedback files fed back by the transmission client to the station ground comprehensive observation business software, and the feedback information interface directory includes a feedback information file directory and a feedback information backup directory; The data receiving interface directory is used to store data files sent by the provincial message server, and the data receiving interface directory includes a received data file directory and a received data backup directory; in, The receiving directory of data to be distributed is used to implement the station ground comprehensive observation business software to write data and the transmission client to read data; The distribution data backup directory is used to enable the transmission client to create a date subdirectory and back up the distributed data according to the format, and the transmission client is responsible for cleaning and maintaining the distribution data backup directory; The unknown file directory is used to store data files that cannot be recognized by the transmission client, and the transmission client is responsible for cleaning and maintaining the unknown file directory; The feedback information file directory is used to store feedback files written by the transmission client. The station ground comprehensive observation business software reads the feedback files in the feedback information file directory, and the station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information file directory; The feedback information backup directory is used by the station ground comprehensive observation business software to read the feedback file. The station ground comprehensive observation business software creates a subdirectory in the feedback information backup directory and backs up the read feedback file to the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the feedback information backup directory; The received data file directory is used to store data files received by the transmission client from the provincial message server. The station ground comprehensive observation business software reads the data files stored in the received data file directory and is responsible for cleaning and maintaining the received data file directory. The received data backup directory is used to create a subdirectory under the data receiving interface directory after the station ground comprehensive observation business software reads the data file in the received data file directory, and backs up the read data file in the created subdirectory. The station ground comprehensive observation business software is responsible for cleaning and maintaining the received data backup directory.

6. A device for transmitting data messages in standard format for an automatic weather station as claimed in claim 5, characterized in that: The transmission client is also used to monitor the data transmission interface of the provincial message server. When a business instruction or data is monitored, the monitored data is obtained and written into the interface directory in the form of a file for reading by the station ground comprehensive observation business software.

7. A data message transmission device in standard format for a weather automatic station, characterized in that: The weather automatic station standard format data message transmission device includes a processor, a memory, and a weather automatic station standard format data message transmission program stored in the memory and executable by the processor, wherein when the weather automatic station standard format data message transmission program is executed by the processor, the steps of the weather automatic station standard format data message transmission method as described in any one of claims 1 to 4 are implemented.