Numerical weather forecast distribution device and method
By designing a numerical weather forecast distribution device, using memory storage and MQTT protocols, the problem that traditional systems cannot adapt to the storage limitations of terminal equipment is solved, and fast and safe numerical weather forecast data acquisition and distribution is achieved, which is suitable for load-side applications of new power systems. .
Patent Information
- Application Number
- CN202411427367.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-10
AI Technical Summary
The traditional cloud numerical weather forecast data processing system requires large storage space and cannot adapt to the limited storage resources of terminal equipment. The cloud data acquisition method is not suitable for minimalist resource applications, and the lack of simple numerical weather forecast distribution devices to quickly and easily at the end. Receive data in this area.
A numerical weather forecast distribution device is designed, including a cloud communication module, a device-side communication module, a data processing module and a data distribution module. It uses memory for data storage and distribution, and obtains short-term and ultra-short-term numerical weather forecast data through wireless communication modules. It is also processed and distributed in combination with local measured meteorological data, and uses the MQTT transmission protocol to provide data to simplify computing and storage resource requirements.
It realizes convenient and flexible acquisition of numerical weather forecast data on end devices, reduces storage resource requirements, accelerates data distribution speed, improves data transmission security, and is suitable for end applications.
Smart Images

Figure CN119299511A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of meteorological data transmission, and in particular relates to a numerical weather forecast distribution device and method thereof. Background Art
[0002] With the advancement of the national dual-carbon strategy and the new power system strategy, the energy system is undergoing tremendous changes. The new power system needs to carry a large amount of new energy and realize flexible and controllable load side. In 2024, the state issued the "Action Plan for Accelerating the Construction of a New Power System", which further put forward the requirements for high-quality and friendly interaction of the new power system. The characteristics of coordinated interaction between sources, grids, loads and storage in the new power system require that each link can accurately predict and evaluate the operating status and adjustable capabilities of the equipment, and have the ability to prevent risks such as meteorology and sabotage. Numerical weather forecasting is an important support for new power systems and source-load analysis. Energy forecasting, regulation capacity assessment, energy planning, and risk prevention are all inseparable from the support of numerical weather forecasting.
[0003] The traditional approach is to collect data to a cloud platform or a master station system, and then access the numerical weather forecast data in the master station system through a cloud-to-cloud interconnection mode. However, with the advancement of the construction of new power systems, the demand for the use of numerical weather forecasts has become increasingly strong. The edge side and even the terminal side need the support of numerical weather forecast data to carry out load profiling, load clustering and other services. However, at present, the traditional cloud-based numerical weather forecast data processing system requires a large storage space to store long-term numerical weather forecast data. When applied on the terminal side, the device storage resources are limited and cannot store large amounts of data. At the same time, the cloud-based sftp or ftp method of obtaining files is not suitable for minimalist resource applications on the terminal side. There is no simple numerical weather forecast distribution device on the market that allows terminal devices to quickly and conveniently receive numerical weather forecast data for the area. Summary of the invention
[0004] Purpose of the invention: The purpose of the present invention is to address the deficiencies of the prior art and to provide a numerical weather forecast distribution device and method thereof, which can conveniently and flexibly obtain numerical weather forecast data at the user terminal, thereby facilitating the terminal device to carry out applications related to numerical weather forecasting.
[0005] Technical solution: The numerical weather forecast distribution device of the present invention comprises: Cloud communication module, used to obtain short-term and ultra-short-term numerical weather forecast data from the numerical weather forecast center; Device-side communication module, used to collect local measured meteorological data; The data processing module is used to obtain and process the collected short-term and ultra-short-term numerical weather forecast data and measured meteorological data; The data distribution module uses standard communication protocols for external communications and is used to distribute processed numerical weather forecast data and measured meteorological data to terminal devices.
[0006] To further improve the above technical solution, the cloud communication module is a wireless communication module.
[0007] Furthermore, the device-side communication module is one or more of a 485 communication module, a network communication module, and a lora communication module.
[0008] Furthermore, in order to simplify the demand for computing resources and storage resources on the end side, the data processing module uses memory to store and distribute numerical weather forecast data. The data processing module divides the memory into a short-term numerical weather forecast memory area, an ultra-short-term numerical weather forecast memory area, and a measured meteorological memory area, and writes the collected short-term and ultra-short-term numerical weather forecast data and measured meteorological data into the corresponding memory areas by calculating the storage length of different types of data, and manages the data in the short-term numerical weather forecast memory area and the ultra-short-term numerical weather forecast memory area through the memory data storage management module.
[0009] Furthermore, the short-term numerical weather forecast memory area is used to store the numerical weather forecast data for the next day, with a storage period of 3 days; the ultra-short-term numerical weather forecast data area is used to store the numerical weather forecast data for the next 4 hours, storing one forecast data every 15 minutes, with a storage period of 3 days; the measured meteorological memory area stores data in memory mode, which is refreshed once a second. Through the above data processing, numerical weather forecast data can be obtained with minimal resources.
[0010] Furthermore, the data processing module performs data processing including missing number repair and mutation value correction; the missing number repair refers to using valid data on both sides of the missing data to repair by interpolation method; the mutation value correction refers to checking that if the data is more than 5 times the average value, this value is determined as a mutation value and the mutation value is repaired in the missing number manner.
[0011] Furthermore, the data processing module includes a link management module, which is used to implement link management of the cloud communication module, the device-side communication module and the data distribution module, including link establishment, connection, interruption and reconnection functions, establish communication links according to different communication methods, and manage them in a unified manner.
[0012] Furthermore, the data distribution module adopts the MQTT transmission protocol, receives data requests from terminal devices through a unified external service entrance, and provides data to the outside.
[0013] Furthermore, the data distribution module uniformly defines the data model of the MQTT transmission protocol as forecast time, forecast type, forecast period time, and forecast value during the outward distribution process.
[0014] The method for distributing weather forecast values using the numerical weather forecast distribution device comprises the following steps: S1. Acquisition of numerical weather forecast data After the device is started, it initiates a connection to the numerical weather forecast center in client mode according to the configured IP address and port; after the connection is established, the device sends the latitude and longitude information of the device to the numerical weather forecast center, and the numerical weather forecast center determines the forecast area based on the latitude and longitude information and determines the file directory of the numerical weather forecast center, which stores the standard short-term and ultra-short-term numerical weather forecast data files generated by the numerical weather forecast center; The device periodically visits the numerical weather forecast center to detect whether there is new short-term numerical weather forecast data in the corresponding directory. If so, it will be downloaded to the local computer. If not, it will monitor whether there is an ultra-short-term numerical weather forecast. If so, it will be downloaded to the local computer. If not, it will sleep and wait for the next detection cycle. The downloaded data will be directly saved to the memory after being parsed locally. S2. Acquisition of measured meteorological data The device obtains local measured meteorological data from the meteorological resource monitoring device through any one of the 485 communication module, network communication module and lora communication module, including air pressure, temperature, humidity, irradiance, wind force and wind direction; S3. Distribution of numerical weather forecast data and measured meteorological data The device establishes short-term weather forecast data, ultra-short-term weather forecast data, and measured meteorological memory areas in the memory. The short-term numerical weather forecast memory area is used to store the numerical weather forecast data for the next day, with a retention period of 3 days. The ultra-short-term numerical weather forecast data area is used to store the numerical weather forecast data for the next 4 hours, storing one forecast data every 15 minutes, with a retention period of 3 days. The measured meteorological memory area stores data in memory and refreshes once a second. The device provides the MQTT transmission protocol to the outside, receives data requests from terminal devices through a unified external service entrance, and provides data to the outside.
[0015] Beneficial effect: Compared with the prior art, the advantages of the present invention are: compared with the traditional numerical weather forecast data, which is obtained at the system level through cloud-to-cloud connection, which has high requirements on computing power and resources and is not suitable for terminal device applications, the numerical weather forecast distribution device provided by the present invention simplifies the data processing mode to adapt to the terminal device's acquisition function of the numerical weather forecast, which is different from the traditional numerical weather forecast file acquisition mode. The present invention can conveniently and flexibly obtain numerical weather forecast data at the user terminal, which is convenient for the terminal device to carry out applications related to numerical weather forecasts.
[0016] The unique storage design of the present invention does not use file storage, but directly stores fixed data in memory, which speeds up data distribution and is more suitable for terminal applications. It includes a memory block processing structure and storage structure for short-term / ultra-short-term / real-time weather data, and realizes the subscription and distribution of multiple types of data (short-term numerical weather forecast data, ultra-short-term numerical weather forecast data, and real-time meteorological data). The security of data distribution: Traditional data distribution uses the network to transmit data, which is often subject to external attacks and interference. This device designs a standard communication format based on 485, which avoids network intrusion during data distribution and improves the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a system hierarchy diagram; Figure 2 It is the device logic diagram; Figure 3 It is a hardware principle block diagram of the present invention; Figure 4 It is a functional schematic diagram of the present invention; Figure 5 It is a logic diagram of the internal modules of the present invention; Figure 6 Flowchart for obtaining data for numerical weather prediction; Figure 7 Diagram of the data distribution structure for numerical weather prediction. DETAILED DESCRIPTION
[0018] The technical solution of the present invention is described in detail below with reference to the accompanying drawings, but the protection scope of the present invention is not limited to the embodiments.
[0019] Example 1: Figure 1 The numerical weather forecast distribution device shown obtains numerical weather forecast data from a numerical weather forecast center or a cloud platform and collects local measured meteorological data, and distributes the numerical weather forecast or measured meteorological data to each terminal device.
[0020] like Figure 2 The principle block diagram of the numerical weather forecast distribution device shown includes a cloud communication module, a device-side communication module, a data processing module, and a data distribution module. The cloud communication module is used to obtain numerical weather forecast data, and the device-side communication module is used to obtain local measured meteorological data. The acquired data is transmitted to the numerical processing module, and then transmitted to the data distribution module after being processed by the data processing module.
[0021] like Figure 3The numerical weather forecast distribution device shown includes: power module Power, data processing module MCU, RS485, encryption module ENC, LAN1, Lora, RS485, LAN2, 4G. Among them, the cloud communication module is a wireless communication module to realize data communication and collection with the numerical forecast center; the device-side communication module is configured with 485 / network communication / lora communication module to realize the collection and transmission of meteorological resource monitoring devices. The data distribution module adopts standard communication protocol for external communication and supports data distribution to multiple terminals. The data processing module MCU includes functions such as data collection and protocol conversion.
[0022] like Figure 4 The functional diagram shown includes configuration management, data correction, field measurement collection, numerical weather forecast collection, data distribution, memory data storage management, link management, and driver.
[0023] 1. Memory data storage management Set up an internal data storage management module, and divide the memory into short-term numerical weather forecast memory area, ultra-short-term numerical weather forecast memory area, and measured meteorological memory area. Short-term numerical weather forecast stores the numerical weather forecast data for the next day, and the storage period is 3 days. Ultra-short-term numerical weather forecast stores a forecast result every 15 minutes, stores the next 4 hours, and the storage period is 3 days. Real-time data is stored in memory and refreshed once a second. Short-term forecasts are made once a day, with 96 points each time, and occupying about 1.2K bytes for 3 days. Ultra-short-term forecasts are made once every 15 minutes, with 16 points each time, and occupying about 18K bytes for 3 days. After 3 days, the latest data will be refreshed to replace the earliest data.
[0024] 2. Link management Realize the management of communication links, including cloud communication module, device communication module and data distribution communication. Realize functions such as link establishment, connection, interruption and reconnection.
[0025] 3. Measured data collection Realize the actual measurement and collection of meteorological resource monitoring devices, access the actual measurement communication data through the network or 485, and refresh it in seconds.
[0026] 4. Numerical weather forecast collection Collect the numerical weather forecast data from the Numerical Meteorological Forecast Center, including short-term and ultra-short-term data. After collection, write the data into the corresponding storage area and save it to disk.
[0027] 5. Data Correction Data correction methods include missing data repair and mutation value correction. Missing data repair uses the valid data on both sides of the missing data to repair by interpolation method; mutation value correction checks that if the data is more than 5 times the average value, this value is determined as a mutation value and the mutation value is repaired in the same way as the missing data.
[0028] 6. Data Distribution Provide a unified external service portal, receive external data requests, and provide data to the outside world.
[0029] like Figure 5 The data conversion logic diagram shown in the figure collects the numerical weather forecast data from the Numerical Meteorological Forecast Center, including short-term and ultra-short-term data. After collection, the data is written into the corresponding storage area and saved to disk. After the measured meteorology is collected by the measured data acquisition module, the measured meteorology memory area, short-term numerical weather forecast file management, and ultra-short-term numerical weather forecast file management are managed for data distribution to external applications.
[0030] Example 2: Figure 6 As shown in the flowchart, the implementation of this device is mainly divided into three steps: S1. Acquisition of numerical weather forecast data The acquisition of numerical weather forecast data includes short-term weather forecast data acquisition and ultra-short-term weather forecast data acquisition. After the device is started, a connection is established based on the configured IP address of the numerical weather forecast center; According to the device ID, determine the numerical weather prediction center file directory.
[0031] Check whether there is any short-term numerical weather forecast data generated; if so, download it to the local computer; if not, monitor whether there is any ultra-short-term numerical weather forecast generated; if so, download it to the local computer; if not, sleep and wait for the next detection cycle (1 minute).
[0032] S2. Acquisition of measured data The measured data are obtained from the meteorological resource monitoring device through the 485 interface, network or wifi. The measured data include air pressure, temperature, humidity, irradiance, wind force and wind direction.
[0033] S3. Distribution of numerical weather forecast data and measured meteorological data The distribution mechanism of numerical weather forecast data and measured meteorological data is as follows Figure 7 , establish short-term weather forecast data, ultra-short-term weather forecast data, and measured meteorological data in the memory, provide MQTT transmission protocol to the outside world, and support communication methods such as lora / 485.
[0034] As described above, although the present invention has been shown and described with reference to specific preferred embodiments, it should not be construed as limiting the present invention itself. Various changes in form and details may be made without departing from the spirit and scope of the present invention as defined in the appended claims.
Claims
1. A numerical weather forecast distribution device, characterized in that: include: Cloud communication module, used to obtain short-term and ultra-short-term numerical weather forecast data from the numerical weather forecast center; Device-side communication module, used to collect local measured meteorological data; The data processing module is used to obtain and process the collected short-term and ultra-short-term numerical weather forecast data and measured meteorological data; The data distribution module uses standard communication protocols for external communication and is used to distribute the processed numerical weather forecast data and measured meteorological data to the terminal equipment.
2. The numerical weather forecast distribution device according to claim 1, characterized in that: The cloud communication module is a wireless communication module.
3. The numerical weather forecast distribution device according to claim 1, characterized in that: The device-side communication module is one or more of a 485 communication module, a network communication module, and a lora communication module.
4. The numerical weather forecast distribution device according to claim 1, characterized in that: The data processing module divides the memory into a short-term numerical weather forecast memory area, an ultra-short-term numerical weather forecast memory area and a measured meteorological memory area, and writes the collected short-term and ultra-short-term numerical weather forecast data and measured meteorological data into the corresponding memory areas by calculating the storage length of different types of data, and manages the data in the short-term numerical weather forecast memory area and the ultra-short-term numerical weather forecast memory area through the memory data storage management module.
5. The numerical weather forecast distribution device according to claim 4, characterized in that: The short-term numerical weather forecast memory area is used to store the numerical weather forecast data for the next day, with a storage period of 3 days; the ultra-short-term numerical weather forecast data area is used to store the numerical weather forecast data for the next 4 hours, storing one forecast data every 15 minutes, with a storage period of 3 days; the measured meteorological memory area stores data in memory mode and refreshes it once per second.
6. The numerical weather forecast distribution device according to claim 1, characterized in that: The data processing module performs data processing including missing number repair and mutation value correction; the missing number repair refers to using the valid data on both sides of the missing data to repair by interpolation method; the mutation value correction refers to checking that if the data is more than 5 times the average value, this value is determined as a mutation value and the mutation value is repaired in the missing number manner.
7. The numerical weather forecast distribution device according to claim 1, characterized in that: The data distribution module adopts the MQTT transmission protocol, receives data requests from terminal devices through a unified external service entrance, and provides data to the outside.
8. The numerical weather forecast distribution device according to claim 7, characterized in that: The data distribution module uniformly defines the data model of the MQTT transmission protocol as forecast time, forecast type, forecast period time, and forecast value during the outward distribution process.
9. A method for distributing data using the numerical weather forecast distribution device according to any one of claims 1 to 8, characterized in that: The following steps are involved: S1. Acquisition of numerical weather forecast data After the device is started, it initiates a connection to the numerical weather forecast center in client mode according to the configured IP address and port; after the connection is established, the device sends the latitude and longitude information of the device to the numerical weather forecast center, and the numerical weather forecast center determines the forecast area based on the latitude and longitude information and determines the file directory of the numerical weather forecast center, which stores the standard short-term and ultra-short-term numerical weather forecast data files generated by the numerical weather forecast center; The device periodically visits the numerical weather forecast center to detect whether there is new short-term numerical weather forecast data in the corresponding directory. If so, it will be downloaded to the local computer. If not, it will monitor whether there is an ultra-short-term numerical weather forecast. If so, it will be downloaded to the local computer. If not, it will sleep and wait for the next detection cycle. The downloaded data will be directly saved to the memory after being parsed locally. S2. Acquisition of measured meteorological data The device obtains local measured meteorological data from the meteorological resource monitoring device through any one of the 485 communication module, network communication module and lora communication module, including air pressure, temperature, humidity, irradiance, wind force and wind direction; S3. Distribution of numerical weather forecast data and measured meteorological data The device establishes short-term weather forecast data, ultra-short-term weather forecast data, and measured meteorological memory areas in the memory. The short-term numerical weather forecast memory area is used to store the numerical weather forecast data for the next day, with a retention period of 3 days. The ultra-short-term numerical weather forecast data area is used to store the numerical weather forecast data for the next 4 hours, storing one forecast data every 15 minutes, with a retention period of 3 days. The measured meteorological memory area stores data in memory and refreshes once a second. The device provides the MQTT transmission protocol to the outside, receives data requests from terminal devices through a unified external service entrance, and provides data to the outside.