Electric power acquisition system and method based on Beidou satellite communication link

The power data acquisition system based on the BeiDou satellite communication link solves the problem of difficult data transmission from electricity meters in areas without 4G network signal coverage, realizes reliable power data transmission and time synchronization, simplifies installation and debugging, and improves efficiency.

CN120916078APending Publication Date: 2025-11-07SHENZHEN SHENJINGDIAN TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202511146911.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-15
Publication Date
2025-11-07

AI Technical Summary

Technical Problem

In remote areas without 4G network coverage, electricity meter data cannot be transmitted to the power grid master station in real time and stably, posing a huge challenge to traditional data collection methods.

Method used

A power data acquisition system based on the BeiDou satellite communication link is adopted, including a data acquisition terminal, a BeiDou satellite and a BeiDou front-end unit. It establishes a connection with the terminal site through adaptive baud rate and communication protocol, transmits data with the satellite using the BeiDou short message sending module, and ensures system stability through hardware and software watchdog modules. Combined with data retransmission and fault self-recovery mechanisms, reliable data transmission is achieved.

Benefits of technology

Reliable transmission of power data was achieved in areas without network coverage, simplifying the on-site installation and commissioning process, improving efficiency, ensuring data time synchronization and transmission stability, and constructing a complete power data acquisition and transmission chain.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120916078A_ABST
    Figure CN120916078A_ABST
Patent Text Reader

Abstract

The invention relates to an electric power collection system and method based on a Beidou satellite communication link. The electric power collection system comprises a collection terminal, a Beidou satellite and a Beidou front-end processor which are connected in sequence. The acquisition terminal comprises a pairing module which tries to establish communication connection with the terminal site at various baud rates and various communication protocols, and establishes communication connection with the Beidou satellite through a Beidou short message sending module; the data acquisition module is used for acquiring electric energy data of a terminal station; the internal storage unit is used for recording and storing the Baud rate and the communication protocol used this time in the internal storage unit, and storing the electric energy data in the internal storage unit; the time service module is used for carrying out precise time service operation on the terminal stations or the data acquisition module with the disordered clocks; the Beidou short message sending module is used for analyzing the stored electric energy data into Beidou No.3 short messages and orderly sending the Beidou No.3 short messages to a Beidou satellite according to a specified sending interval; and the Beidou satellite receives the short message and then sends the short message to the Beidou front-end processor.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of information collection, in particular to a power collection system and method based on a Beidou satellite communication link. BACKGROUND

[0002] In many fields such as power, energy, industrial monitoring, the demand for data collection and remote management of electric meters is increasing. However, some application scenarios are located in remote mountainous areas, oceans, deserts and other areas without 4G / 5G and other conventional communication network coverage, and the electric meter data cannot be transmitted to the power grid master station in real time and stably, and the traditional data collection and transmission method faces great challenges. SUMMARY

[0003] In view of the defects of the prior art, the present application provides a power collection system and method based on a Beidou satellite communication link, aiming to solve the problem that the electric meter data collected by the terminal in the area without 4G network signal coverage, signal limitation or absence cannot be transmitted to the power grid master station in real time and stably.

[0004] To achieve the above-mentioned purpose, the present application adopts the following technical solutions:

[0005] In a first aspect, a power collection system based on a Beidou satellite communication link comprises a collection terminal, a Beidou satellite and a Beidou front-end machine, the collection terminal is connected with a terminal site, the collection terminal is connected with the Beidou satellite, and the Beidou satellite is connected with the Beidou front-end machine;

[0006] The collection terminal comprises a pairing module, a data collection module, an internal storage unit, a time service module and a Beidou short message sending module;

[0007] The pairing module is configured to establish a communication connection with the terminal site by trying multiple baud rates and multiple communication protocols, to interact with the Beidou short message sending module, and to establish a communication connection with the Beidou satellite through the Beidou short message sending module;

[0008] The data collection module is configured to collect various electric energy data of the terminal site;

[0009] The internal storage unit is configured to record and store the baud rate and communication protocol used this time in the internal storage unit, and to store the electric energy data in the internal storage unit;

[0010] The time service module is configured to perform accurate time service operation on the terminal site or the data collection module with a wrong clock;

[0011] The Beidou short message sending module is configured to parse the electric energy data into Beidou No.3 short messages with a data length ≤228 Chinese characters and sequentially send them to the Beidou satellite according to the specified sending interval.

[0012] The Beidou satellite receives the short message and sends it to the Beidou front-end machine.

[0013] Further, the collection terminal further comprises a data retransmission module configured to store 32 pieces of 15-minute curve data in the buffer within the last 8 hours, trigger retransmission every 4 hours, check unconfirmed data in the buffer, send in ascending order of failure times, reset the counter after successful transmission, and decrease the counter until giving up in case of failure.

[0014] Further, the collection terminal further comprises a watchdog module, which comprises a hardware watchdog module and a software watchdog module. The hardware watchdog module is configured to monitor the running state of the system in real time, and once detects that the system is running abnormally, the system is responding slowly or is completely stuck, the hardware watchdog module triggers a restart mechanism to quickly restore the system to a normal working state. The software watchdog module is configured to send a "feed dog" signal to the hardware watchdog module at regular intervals, indicating that the system is in normal operation. If the signal cannot be sent on time, it is considered that the system has an abnormality, and the software watchdog module drives the hardware watchdog module to perform a restart operation. The internal storage unit stores error logs.

[0015] Further, the time service module comprises an electric meter time service module and a collection terminal time service module,

[0016] The electric meter time service module is configured to time service the terminal site only once a day. When the clock deviation is > 5 minutes, it is stepped back. When the deviation is ≤ 5 minutes, it is directly corrected to the Beidou time.

[0017] The collection terminal time service module is configured to time service the collection terminal once an hour without condition correction to the Beidou time. The time service operation avoids the data collection window.

[0018] Further, the data collection module comprises a daily frozen data collection module and a 15-minute curve data collection module. The daily frozen data collection module automatically starts to collect active and reactive power energy and demand data after 5 minutes of a new day. The curve data collection module collects voltage, current, active and reactive power, and power factor at the 4th minute of each 15-minute interval.

[0019] The Beidou short message sending module is further configured to construct a priority queue for data to be sent. 15-minute curve data is set as class 1 data, and daily frozen data is classified as class 2 data. The priority of class 1 data is higher than that of class 2 data. The queue is detected every 120 seconds, class 1 data is preferentially sent, and data of the same priority is sent in the order of first in, first out. After successful transmission, the queue entry is deleted, and failed data is retained until the next transmission window.

[0020] In a second aspect, a power collection method based on a Beidou satellite communication link comprises the following steps:

[0021] Step 1: baud rate and protocol adaptation, comprising the following steps:

[0022] Step 1.1: after power-on, a historical baud rate and a historical communication protocol are preferentially loaded, and an attempt is made to directly connect a target device;

[0023] Step 1.2: if the connection fails, a preset sequence is scanned for a baud rate and a communication protocol;

[0024] Step 1.3: a protocol detection frame is sent, and CRC and structure compliance of a response frame are monitored;

[0025] Step 1.4: after successful establishment of communication, valid parameters are stored in an internal storage unit, and subsequent direct reuse is started;

[0026] Step 2: data collection and storage, comprising the following steps:

[0027] Step 2.1: daily frozen data is collected at 00:05 every day, and 15-minute curve data is collected at the fourth minute every 15 minutes;

[0028] Step 2.2: if copying fails for three times in succession, the copying is suspended, and retry is performed in the next period;

[0029] Step 2.3: when the internal storage unit is full, the earliest data is overwritten, and key data is stored in double backup;

[0030] Step 3: dual-device time setting, comprising the following steps:

[0031] Step 3.1: terminal site time setting: time setting is performed only once every day, when clock deviation is greater than 5 minutes, step-by-step callback is performed, each time by ±5 minutes; when the deviation is less than or equal to 5 minutes, direct correction is performed to the Beidou time;

[0032] Step 3.2: data collection terminal time setting: time setting is performed once every hour, and unconditional correction is performed to the Beidou time; time setting operation avoids the data collection window;

[0033] Step 4: efficient transmission of Beidou short messages, comprising the following steps:

[0034] Step 4.1: data compression: time stamp is converted into 4-byte Unix format, floating-point data is compressed into 2 bytes according to the precision of 0.1℃, and state data is encoded using a 4-bit field;

[0035] Step 4.2: sending control:

[0036] A priority queue is constructed, and is set to be 1-type data, and daily frozen data is classified as 2-type data;

[0037] Every 120 seconds, detect the queue, send the first class data first, and send the same priority in the first-in-first-out order;

[0038] After successful transmission, delete the queue entry, and keep the failed data for the next transmission window;

[0039] Step 5: After receiving the short message sent by the collection terminal, the Beidou satellite forwards it to the Beidou front-end machine. When the Beidou front-end machine receives the message from the Beidou satellite, it checks the message. If the check is qualified, it is parsed and processed. If the check is not qualified, it is determined that the message is invalid and is discarded without parsing operation.

[0040] Further, it further includes step 6: data retransmission, including the following steps:

[0041] Step 6.1: Store 32 pieces of 15-minute curve data in the last 8 hours in the buffer;

[0042] Step 6.2: Trigger retransmission every 4 hours: check the unconfirmed data in the buffer, and send in ascending order of failure number priority;

[0043] Step 6.3: Reset the counter after successful transmission, and decrease the count until giving up.

[0044] Further, it further includes step 7: watchdog mechanism, including the following steps:

[0045] Step 7.1: The hardware watchdog independent chip monitors the system operation, and forcibly restarts if there is no response after timeout;

[0046] Step 7.2: The software watchdog registers the key threads to the monitoring matrix, and reports the heartbeat regularly; the monitoring thread detects the timeout task, triggers the restart submodule or system reset; records the abnormal log to the internal storage unit, and the abnormal log includes fault type, timestamp, thread ID.

[0047] Further, it further includes step 8: fault self-recovery, including the following steps:

[0048] Step 8.1: Detect whether the Beidou data reception is abnormal. If it is abnormal, record the fault information and trigger the restart; if it is normal, execute the next step;

[0049] Step 8.2: Detect whether the communication between the timing terminal station or the collection terminal is abnormal. If it is abnormal, record the fault information and trigger the restart; if it is normal, execute the next step;

[0050] Step 8.3: Detect whether the internal storage unit writing is abnormal. If it is abnormal, record the fault information and trigger the restart; if it is normal, execute step 7.1.

[0051] Further, the specific inspection mode of the message in step 5 is that the Beidou front-end computer calculates the check code of the received message and compares it with the check code carried in the message, when the two check codes are completely the same, the message is determined as a valid message and is parsed; if the two check codes are not matched, the message is determined as invalid and is discarded without parsing operation.

[0052] The power collection system and method based on the Beidou satellite communication link have the beneficial effects that:

[0053] By forming the Beidou communication link of the collection terminal, the Beidou satellite and the Beidou front-end computer, the power data collection is realized in remote areas without 4G network, the pairing module can automatically interact with the terminal site through the adaptive baud rate and the adaptive communication protocol, and is paired with the Beidou satellite through the Beidou short message sending module, which simplifies the on-site installation and debugging process, does not need manual configuration, improves the efficiency, the collection terminal can collect the electric energy data of the terminal site through the data collection module, the internal storage unit can store parameters and electric energy data, the time granting module can grant time to the terminal site or the data collection module to ensure the time synchronization of the terminal site and the collection terminal, provides the accuracy for the time marking of data, the Beidou short message sending module can parse the electric energy data into the Beidou No. 3 message and send it at intervals, uses the Beidou satellite communication, is not limited by the ground network, realizes the reliable data transmission in the network-free area, and the whole system builds a complete power data collection and transmission chain based on the Beidou satellite. BRIEF DESCRIPTION OF DRAWINGS

[0054] Figure 1 is a schematic diagram of the power collection system based on the Beidou satellite communication link of the embodiment of the application;

[0055] Figure 2 is a flowchart of data collection and storage of the embodiment of the application;

[0056] Figure 3 is a flowchart of double-device time granting of the embodiment of the application;

[0057] Figure 4 is a flowchart of efficient transmission of the Beidou short message of the embodiment of the application;

[0058] Figure 5 is a flowchart of fault self-recovery of the embodiment of the application;

[0059] Figure 6 is a flowchart of the watchdog mechanism of the embodiment of the application. DETAILED DESCRIPTION

[0060] The application will be further described below in combination with the drawings and specific embodiments.

[0061] As Figure 1 shown, the application discloses a power collection system based on Beidou satellite communication link, comprising: a collection terminal, a Beidou satellite and a Beidou front-end machine, the collection terminal is connected with a terminal site, the collection terminal is connected with the Beidou satellite, and the Beidou satellite is connected with the Beidou front-end machine;

[0062] The collection terminal comprises a pairing module, a data collection module, an internal storage unit, a time service module and a Beidou short message sending module.

[0063] The pairing module is configured to establish a communication connection with the terminal site by trying multiple baud rates and multiple communication protocols, to interact with the Beidou short message sending module, and to establish a communication connection with the Beidou satellite through the Beidou short message sending module.

[0064] The data collection module is configured to collect various power data of the terminal site.

[0065] The internal storage unit is configured to record and store the baud rate and the communication protocol used this time in the internal storage unit, and to store the power data in the internal storage unit.

[0066] The time service module is configured to perform accurate time service operation on the terminal site or the data collection module with a wrong clock.

[0067] The Beidou short message sending module is configured to parse the power data into Beidou No. 3 short messages with a data length ≤228 Chinese characters and sequentially send them to the Beidou satellite according to the specified sending interval.

[0068] The Beidou satellite sends the short messages to the Beidou front-end machine after receiving them.

[0069] By forming the Beidou communication link of the collection terminal, the Beidou satellite and the Beidou front-end machine, power data collection is realized in remote areas without 4G network. The pairing module can automatically interact with the terminal site through adaptive baud rate and adaptive communication protocol, and is paired with the Beidou satellite through the Beidou short message sending module, thereby simplifying the on-site installation and debugging process, eliminating the need for manual configuration and improving efficiency. The collection terminal can collect the power data of the terminal site through the data collection module, the internal storage unit can store the parameters and the power data, the time service module can time the terminal site or the data collection module to ensure the time synchronization of the terminal site and the collection terminal, thereby providing accuracy for the time marking of data, the Beidou short message sending module can parse the power data into Beidou No. 3 short messages and send them at intervals, the Beidou satellite communication is used, the system is not limited by ground network, reliable data transmission is realized in network-free areas, and the entire system builds a complete power data collection and transmission chain based on the Beidou satellite.

[0070] During the on-site installation process, the operator only needs to accurately connect the RS485 line of the collection terminal to the RS485 port of the terminal site that needs to be collected, and then power on the collection terminal. After power on, the collection terminal will automatically start the adaptive communication process and try to establish a communication connection with the target device in turn by trying multiple baud rates and communication protocols.

[0071] During the communication attempt, the collection terminal will continuously monitor the communication state. Once a communication connection with the target device is successfully established, it will immediately record the baud rate and communication protocol information used for this communication and store these information in the internal storage unit.

[0072] When the collection terminal needs to be restarted due to power failure or other reasons, it will preferentially read the previously recorded baud rate and communication protocol information, directly skip the adaptive communication attempt step, and quickly enter the normal working state.

[0073] When data collection is needed, the collection terminal will interact with the target device based on the baud rate and communication protocol just recorded, through this series of automated processes, greatly simplifying the on-site installation and debugging work, and improving work efficiency.

[0074] When the collection terminal relies on Beidou satellite for data transmission, it is subject to the relevant regulations of civilian Beidou short message, which has strict restrictions on sending frequency and data length. For example, when using a single-phase card, each data transmission must be separated by at least two minutes, and the single data length must not exceed 228 Chinese characters. At the same time, there is no feedback mechanism after sending Beidou short message, and it cannot confirm whether the data has been successfully sent in real time, and can only ensure the normal transmission of data by repeated sending.

[0075] To efficiently complete data transmission under the above limitations, the communication protocol needs to be optimized. Specifically, a custom protocol is used to remove redundant parts of the standard protocol and achieve efficient data compression. On this basis, data is sent in order according to the specified sending interval to ensure the stability and reliability of data transmission.

[0076] The collected data will first be stored in the internal storage unit, such as Flash memory, etc. Local storage uses a safe and reliable way to ensure that data will not be lost if an exception occurs during transmission. Data is stored in a structured manner to facilitate subsequent query and management. For example, daily frozen data and curve data are stored in different data tables, each data table contains data collection time, device identification, data type, data value, etc.

[0077] To ensure stable and efficient system performance and reliable operation, all data stored in the Flash medium adopts a cyclic storage mechanism. Under this mechanism, when the amount of stored data reaches the preset maximum capacity threshold, the system will automatically overwrite the earliest stored data, thereby ensuring the continuous and effective use of storage space and the dynamic balance of data storage.

[0078] Further, the acquisition terminal further comprises a data retransmission module configured to store 32 pieces of 15-minute curve data within the last 8 hours in the buffer, trigger retransmission every 4 hours, check unconfirmed data in the buffer, send in ascending order of failure number priority, reset the counter after successful transmission, and decrement the counter until abandonment in case of failure.

[0079] Due to the complex and variable field environment, there are many uncontrollable factors, such as dynamic changes in satellite angle, possible signal obstruction, etc. These situations may cause data transmission failure within a certain time period.

[0080] To effectively deal with such problems, ensure the integrity and reliability of the data, and avoid data loss due to various unexpected conditions, a retransmission strategy is developed for 15-minute curve data. Combined with the sending interval requirement specified in the Beidou short message, after comprehensive consideration and optimization design, the retransmission mechanism is set to automatically retransmit 15-minute curve data within the past 8 hours every 4 hours. Through this periodic data backtracking and retransmission method, the time period of data transmission failure caused by satellite signal problems or other interference factors can be covered to the greatest extent, significantly reducing the risk of data loss and ensuring stable transmission and complete preservation of data. The data is sent in ascending order of failure number priority (i.e. the more the failure number, the higher the priority), ensuring that data that has been retried multiple times is sent as soon as possible to avoid permanent data loss. The mechanism of decrementing the counter until abandonment avoids occupying resources due to infinite retries.

[0081] Further, the acquisition terminal further comprises a watchdog module, which comprises a hardware watchdog module and a software watchdog module. The hardware watchdog module is configured to monitor the running state of the system in real time. Once it detects that the system is running abnormally, the system response is delayed, or the system is completely stuck, the hardware watchdog module triggers a restart mechanism to quickly restore the system to a normal working state. The software watchdog module is configured to send a "feed dog" signal to the hardware watchdog module at regular intervals, indicating that the system is running normally. If the signal cannot be sent on time, it is considered that the system may have an abnormality, and the software watchdog module drives the hardware watchdog module to perform a restart operation. The internal storage unit stores error logs.

[0082] The dual protection of hardware watchdog and software watchdog improves the reliability and stability of the system in unattended environments. It can automatically recover from abnormal states such as system freezing and program runaway, reducing manual intervention. Recording error logs facilitates subsequent fault analysis and system optimization.

[0083] Further, the time-providing module comprises: an electric meter time-providing module and a collection terminal time-providing module,

[0084] The electric meter time-providing module is configured to provide time for the terminal site only once a day, and when the clock deviation is greater than 5 minutes, stepwise callback is performed; and when the clock deviation is less than or equal to 5 minutes, direct correction to the Beidou time is performed.

[0085] The collection terminal time-providing module is configured to provide time for the collection terminal once an hour, and unconditional correction to the Beidou time is performed; the time-providing operation avoids the data collection window.

[0086] For the limitation of the electric meter time-providing, the electric meter can only be provided with time once a day, and cannot be adjusted by more than 5 minutes at a time, so the stepwise callback strategy is adopted to avoid affecting the electric meter and ensure the normal operation of the electric meter. The collection terminal is provided with time more frequently to ensure the time accuracy thereof, and the time-providing operation avoids the data collection window to avoid interference with data collection. The differentiated time-providing strategy meets the time-providing requirements of different devices.

[0087] The Beidou satellite needs to be adapted to the two different devices of the electric meter and the collection terminal, and since there is no 4G network on site, the master station cannot provide time, so the collection terminal needs to automatically obtain the Beidou time and then provide time for the connected terminal site. The time-providing modes of the two are different, so the time-providing module needs to have targeted and flexible time-providing control functions.

[0088] For the electric meter device, the electric meter time-providing module should follow its specific time-providing rules. The electric meter only supports time-providing operation once a day, and the effective time span of each time-providing operation cannot exceed 5 minutes. If the electric meter clock deviation is greater than 5 minutes, the electric meter time-providing module needs to use the stepwise adjustment mode to only adjust the electric meter time back by 5 minutes each day until the electric meter time returns to normal, so as to avoid affecting the normal operation of the electric meter due to a large one-time adjustment range.

[0089] For the collection terminal, the collection terminal time-providing module should meet the requirement of time-providing at any time, and the time span is not limited. However, in order to ensure that the normal collection work of the collection terminal is not disturbed, the collection terminal time-providing module needs to reasonably plan the time-providing frequency and set it to perform time-providing operation once an hour, so as to ensure the time accuracy of the collection terminal and minimize the influence of the time-providing operation on the collection task thereof.

[0090] Further, the data collection module comprises: a daily frozen data collection module and a 15-minute curve data collection module, the daily frozen data collection module automatically starts to collect active and reactive power and demand data after 5 minutes of a new day; and the curve data collection module collects voltage, current, active and reactive power, and power factor at the 4th minute of each 15-minute interval.

[0091] The Beidou short message sending module is further configured to build a priority queue for data to be sent, 15-minute curve data is set as class 1 data, and daily frozen data is classified as class 2 data, the priority of the class 1 data is higher than the priority of the class 2 data; the queue is detected every 120 seconds, the class 1 data is preferentially sent, and data of the same priority is sent in the order of first in first out; after successful sending, the queue entry is deleted, and the failed data is retained until the next sending window.

[0092] The data acquisition module accurately acquires data of the electric meter or the special transformer terminal. The acquired data includes daily frozen data and 15-minute curve data. The daily frozen data includes active and reactive power and demand data, and the curve data includes voltage, current, active and reactive power, and power factor.

[0093] The data acquisition timing rule is clear, and the integrity and timeliness of data acquisition are ensured. The priority queue mechanism ensures that important curve data is preferentially sent, and the real-time performance of critical data is improved. The queue is detected at a fixed interval (120 seconds), which meets the Beidou sending interval limit, and the ordered sending avoids conflicts.

[0094] In terms of collection time arrangement, the data acquisition module starts daily frozen data acquisition work at the 5th minute after the beginning of a new day. For 15-minute curve data, collection is performed at the 4th minute of each 15-minute interval. During the collection process, the reading state is queried once every 15 minutes, if it is found that the data has not been read back, continuous reading is performed, if reading fails for 3 times in succession, the current reading is suspended, and the next reading period is waited for, until all required data is successfully acquired.

[0095] As shown in Figures 2 to 4 The application also provides a power acquisition method based on a Beidou satellite communication link, which comprises the following steps:

[0096] Step 1: Baud rate and protocol adaptation, comprising the following steps:

[0097] Step 1.1: After power-on, the historical baud rate and the historical communication protocol are preferentially loaded, and the target device is directly connected;

[0098] Step 1.2: If the connection fails, the baud rate and the communication protocol are scanned in a preset sequence;

[0099] Step 1.3: A protocol detection frame is sent, and the CRC and the structure compliance of the response frame are monitored;

[0100] Step 1.4: After successful establishment of communication, the effective parameters are stored in an internal storage unit, and subsequent direct reuse is started;

[0101] Step 2: Data acquisition and storage, comprising the following steps:

[0102] Step 2.1: Daily freeze data starts collecting at 00:05 every day, and 15-minute curve data is collected at the 4th minute every 15 minutes;

[0103] Step 2.2: If continuous 3 times of reading fails, then pause and retry in the next cycle;

[0104] Step 2.3: Overwrite the earliest data when the internal storage unit is full, and store the key data in double backup;

[0105] Step 3: Dual-device time service, including the following steps:

[0106] Step 3.1: Terminal site time service: time the clock only once a day, step back when the deviation is > 5 minutes, ± 5 minutes each time; When the deviation is ≤ 5 minutes, directly correct to Beidou time;

[0107] Step 3.2: Data acquisition terminal time service: time every hour once, unconditionally correct to Beidou time; Time operation avoids data acquisition window;

[0108] Step 4: Beidou short message efficient transmission, including the following steps:

[0109] Step 4.1: Data compression: timestamp is converted to 4-byte Unix format, floating-point data (such as temperature) is compressed to 2 bytes according to the accuracy of 0.1℃; State data uses 4-bit field coding;

[0110] Step 4.2: Send control:

[0111] Build a priority queue, set it to class 1 data, and daily freeze data is classified as class 2 data;

[0112] Check the queue every 120 seconds, send class 1 data first, and send the same priority in the order of first in first out;

[0113] Delete the queue entry after successful sending, and keep the failed data until the next sending window;

[0114] Step 5: After the Beidou satellite receives the short message sent by the data acquisition terminal, it is forwarded to the Beidou front-end machine. When the Beidou front-end machine receives the message from the Beidou satellite, it checks the message. If the check is qualified, it is parsed and processed. If the check is not qualified, it is determined that the message is invalid and is discarded directly without parsing operation.

[0115] By forming the Beidou communication link of the acquisition terminal, the Beidou satellite and the Beidou preprocessor, power data acquisition is realized in remote areas without 4G network. Through adaptive baud rate and adaptive communication protocol, data interaction with the terminal site can be automatically realized. Through Beidou short message sending and Beidou satellite pairing, the on-site installation and debugging process is simplified, manual configuration is not required, efficiency is improved, and the power data of the terminal site is collected and stored. The double equipment timing can time the terminal site or the data acquisition module to ensure the time synchronization of the terminal site and the acquisition terminal, provide accuracy for the time marking of data, and efficiently transmit the power data to the Beidou satellite. The power data is parsed into Beidou three short messages and sent at intervals. The Beidou satellite communication is not limited by the ground network, and reliable data transmission is realized in the network-free area. The whole system builds a complete power data acquisition and transmission method based on Beidou satellite.

[0116] Precise collection of data of electric meters or special variable terminals. The collected data includes daily frozen data and 15-minute curve data. The daily frozen data includes active and reactive power and demand data; the curve data includes voltage, current, active and reactive power, and power factor.

[0117] Data acquisition and storage in the collection time arrangement, the software starts the daily frozen data collection work at the 5th minute after the beginning of a new day. For 15-minute curve data, collection is performed at the 4th minute of every 15-minute interval. During the collection process, the reading state is queried once every 15 minutes, and if the data is not read back, continuous reading is performed. If reading fails for 3 times in a row, the current reading is suspended, and the next reading cycle is waited for until all the required data is successfully obtained.

[0118] Double equipment timing accurately times the clock of the electric meter or the acquisition terminal which appears to be disordered. Timing is started at a specific time every day. When the timing process is started, the timing module first reads the current time of the target device (electric meter or acquisition terminal), and judges whether the device needs to be timed according to the time difference between the target device and the Beidou satellite. The standard for judgment is that the time of the target device is different from the Beidou satellite time by 1 second.

[0119] If it is determined that timing is needed, different correction methods are used for the electric meter and the acquisition terminal. For the electric meter, if the clock is more than 5 minutes out of sync, the timing module will adopt a step-by-step callback strategy, with 5 minutes of callback each time, until the clock of the electric meter returns to normal. For the special variable acquisition terminal, the timing module directly performs the timing operation to quickly restore the accuracy of the clock.

[0120] After the data acquisition of the electric meter or terminal is completed, the data needs to be sent out by means of Beidou short message. Since the sending of civilian Beidou short message is limited, that is, only one piece of data is allowed to be sent every 2 minutes, in order to efficiently and orderly complete the data sending task, the software uses a queue mechanism to control the sending process.

[0121] The queue follows the basic principle of first-in first-out (FIFO), and according to the importance and urgency of the data, the data to be sent is prioritized. Among them, the curve data is set as class 1 data, which has a higher sending priority; the daily frozen data is classified as class 2 data, which has a lower sending priority. When sending data, class 1 data is processed and sent first; when there are multiple data of the same priority in the queue, they are sent in the order of first-in first-out. Each time a piece of data is successfully sent, it is deleted from the queue. In addition, the software automatically detects the queue every 2 minutes to check whether there is data to be sent, so as to ensure that the data can be transmitted in time and in order.

[0122] Further, it further includes step 6: data retransmission, including the following steps:

[0123] Step 6.1: Store 32 pieces of 15-minute curve data in the last 8 hours in the buffer area;

[0124] Step 6.2: Trigger retransmission every 4 hours: check the unconfirmed data in the buffer area and send them in ascending order of failure times;

[0125] Step 6.3: Reset the counter after successful sending, or decrease the counter until giving up.

[0126] Due to the complex and variable field environment, there are many uncontrollable factors, such as dynamic changes of satellite angle, possible signal shielding, etc. These situations may cause data sending failure in a certain period of time.

[0127] In order to effectively deal with such problems, ensure the integrity and reliability of the data, and avoid data loss caused by various unexpected conditions, a retransmission strategy is developed for 15-minute curve data. Combined with the sending interval requirement of Beidou short message, after comprehensive consideration and optimization design, the retransmission mechanism is set to automatically retransmit the 15-minute curve data in the past 8 hours every 4 hours. Through this periodic data backtracking and retransmission method, the period of data transmission failure caused by satellite signal problems or other interference factors can be covered to the greatest extent, the risk of data loss is significantly reduced, and the stable transmission and complete preservation of data are ensured. The data is sent in ascending order of failure times (i.e. the more the failure times, the higher the priority), which ensures that the data that has been tried many times is sent as soon as possible, avoiding permanent data loss. The mechanism of decreasing the counter until giving up avoids occupying resources by infinite retries.

[0128] AsFigure 6 As shown, it also includes step 7: watchdog mechanism, including the following steps:

[0129] Step 7.1: hardware watchdog independent chip monitors system running, and forces restart if there is no response after timeout;

[0130] Step 7.2: software watchdog registers key threads to the monitoring matrix and reports heartbeat regularly; monitoring thread detects timeout task, triggers restart submodule or full system reset; records abnormal logs to internal storage unit, including fault type, timestamp, thread ID.

[0131] The dual protection of hardware watchdog and software watchdog improves the reliability and stability of the system in unattended environment. It can automatically recover from abnormal states such as system freezing and program runaway, reducing manual intervention. Error logs are recorded for subsequent fault analysis and system optimization.

[0132] The acquisition terminal will start multiple tasks in parallel during the initialization phase. Each task will register with a global software watchdog mechanism to ensure its stability and reliability. At the same time, the acquisition terminal has specially arranged a dedicated thread, whose main responsibility is to send periodic "feed dog" signals to the hardware watchdog to avoid automatic restart triggered by system non-response at the hardware level.

[0133] In addition to the feed dog operation, this dedicated thread also undertakes an additional task, which is to periodically check the status of all threads registered with the software watchdog. If it detects that any thread has failed to complete its task on time due to some reason, resulting in exceeding the preset time limit (i.e. timeout), the thread will take necessary recovery measures - usually triggering a full system restart to clear the factors that may cause system instability and ensure the system can quickly recover to a stable and reliable working state.

[0134] As shown, it also includes step 8: fault self-recovery, including the following steps: Figure 5

[0135] Step 8.1: detect whether the Beidou data reception is abnormal, if abnormal, record fault information and trigger restart; if normal, execute the next step;

[0136] Step 8.2: detect whether the communication between the timing terminal station or the acquisition terminal is abnormal, if abnormal, record fault information and trigger restart; if normal, execute the next step;

[0137] Step 8.3: detect whether the internal storage unit writing is abnormal, if abnormal, record fault information and trigger restart; if normal, execute step 7.1.

[0138] ​The fault self-recovery is to monitor the system running state in real time to identify whether there is an abnormal situation. Specifically, a variety of abnormalities that can affect the normal operation of the business but have not yet directly affected the basic operation of the equipment will be detected, including but not limited to Beidou data long-time receiving error, communication abnormality with the connected time-of-flight meter or terminal, and Flash write failure and other problems. Once such a fault occurs, the fault self-recovery module will trigger a restart operation to eliminate the abnormal state and ensure the normal operation of the business system. In combination with the watchdog mechanism, a multi-level fault recovery is formed.

[0139] Further, the specific verification method of the message in step 5 is that the Beidou front-end computer calculates the received message check code and compares it with the check code carried in the message. When the two check codes are exactly the same, the message is identified as a valid message and is parsed; if the two check codes do not match, the message is determined to be invalid and is discarded without parsing.

[0140] The data accuracy and reliability must be strictly guaranteed during the communication between the terminal and the Beidou satellite to achieve high-precision time service.

[0141] When the Beidou front-end computer receives messages from the Beidou satellite, in order to ensure the integrity and accuracy of the message information, the message must be verified. Specifically, the Beidou front-end computer needs to calculate the check code of the received message and compare it with the check code carried in the message. Only when the two check codes are exactly the same, the message is identified as a valid message, and the Beidou front-end computer will parse it; if the check codes do not match, the message is determined to be invalid and is discarded without any parsing operation, thus eliminating the influence of error data on the timing accuracy from the source.

[0142] When collecting data from the meter or the terminal, strict communication accuracy requirements must also be followed. For the protocol message used for communication with the target device, the terminal needs to perform validity confirmation. This process covers a comprehensive check of the message format, key fields and logical relationships to ensure that the protocol message meets the preset specifications and standards. Only the protocol message that has passed the validity confirmation will be used for timing operation to ensure the accurate transmission and execution of timing instructions, thereby ensuring the accuracy of the system in the communication link and meeting the application requirements of high-precision timing.

[0143] In order to guarantee the safety and reliability of data, the system carefully constructs a double backup system that covers the protection of user drivers, core application programs and key system parameters. This strategy greatly reduces the risk of data loss or damage, significantly improves the system's ability to quickly recover from unexpected situations, and ensures the integrity and consistency of the data.

[0144] The above is only the preferred embodiment of the present application, and does not limit the technical scope of the present application. Any slight modification, equivalent change and modification of the above embodiment according to the technical essence of the present application are still within the technical scope of the present application.

Claims

1. A power harvesting system based on a Beidou satellite communication link, characterized in that, Comprise: The acquisition terminal, Beidou satellite and Beidou front-end machine, the acquisition terminal is connected with terminal site, the acquisition terminal is connected with the Beidou satellite, the Beidou satellite is connected with the Beidou front-end machine; The acquisition terminal includes: pairing module, data acquisition module, internal storage unit, time service module, Beidou short message sending module; Pairing module is configured to establish communication connection with the terminal site by trying multiple baud rates and multiple communication protocols, interact with the Beidou short message sending module, and establish communication connection with the Beidou satellite through the Beidou short message sending module; Data acquisition module is configured to collect various electric energy data of terminal site; Internal storage unit is configured to record and store the baud rate and communication protocol used this time in the internal storage unit, and store electric energy data in the internal storage unit; Time service module is configured to accurately time the terminal site or data acquisition module with clock disorder; Beidou short message sending module is configured to parse electric energy data into Beidou No. 3 short message with data length ≤228 Chinese characters and sequentially send to the Beidou satellite according to the specified sending interval; The Beidou satellite receives short message and sends to the Beidou front-end machine.

2. The BeiDou satellite communication link based power harvesting system of claim 1, wherein, The acquisition terminal further comprises a data retransmission module configured to store 32 15-minute curve data in the buffer within the last 8 hours, trigger retransmission every 4 hours, check unconfirmed data in the buffer, send in ascending order of failure number, reset the counter after successful transmission, and decrease the counter until giving up if failed.

3. The BeiDou satellite communication link based power harvesting system of claim 1, wherein, The acquisition terminal further comprises a watchdog module, which comprises a hardware watchdog module and a software watchdog module, the hardware watchdog module is configured to monitor the running state of the system in real time, once detects that the system is running abnormally, the system response is slow or completely stuck, the hardware watchdog module triggers the restart mechanism to quickly restore the system to normal working state;The software watchdog module is configured to send "feed dog" signal to the hardware watchdog module at regular intervals, indicating that the system is running normally, if the signal cannot be sent on time, it is considered that the system is abnormal, the software watchdog module drives the hardware watchdog module to execute restart operation;The internal storage unit stores error log.

4. The BeiDou satellite communication link based power harvesting system of claim 1, wherein, The time service module includes: electric meter time service module and acquisition terminal time service module, The electric meter time service module is configured to time the terminal site only once a day, step back when the clock deviation is >5 minutes;When the deviation is ≤5 minutes, correct directly to Beidou time; The acquisition terminal time service module is configured to time the acquisition terminal once an hour, and correct to Beidou time unconditionally;Time operation avoids data acquisition window.

5. The BeiDou satellite communication link based power harvesting system of claim 1, wherein, The data acquisition module includes daily frozen data acquisition module and 15-minute curve data acquisition module, the daily frozen data acquisition module automatically starts to collect active and reactive power and demand data after 5 minutes of a new day;The curve data acquisition module collects voltage, current, active and reactive power, and power factor at the 4th minute of each 15-minute interval. The Beidou short message sending module is further configured to build a priority queue for data to be sent, 15-minute curve data is set as class 1 data, and daily frozen data is classified as class 2 data, the priority of the class 1 data is higher than that of the class 2 data; the queue is detected every 120 seconds, the class 1 data is preferentially sent, and data of the same priority is sent in the order of first-in first-out; after successful sending, the queue entry is deleted, and failed data is retained until the next sending window.

6. A power harvesting method based on a Beidou satellite communication link, characterized in that, The method comprises the following steps: Step 1: baud rate and protocol adaptation, comprising the following steps: Step 1.1: after power-on, the historical baud rate and the historical communication protocol are preferentially loaded, and an attempt is made to directly connect to the target device; Step 1.2: if the connection fails, the baud rate and the communication protocol are scanned in a preset sequence; Step 1.3: a protocol probe frame is sent, and the CRC and the structure compliance of the response frame are monitored; Step 1.4: after successful establishment of communication, the valid parameters are stored in an internal storage unit, and subsequent direct reuse is started; Step 2: data acquisition and storage, comprising the following steps: Step 2.1: daily frozen data is started to be acquired at 00:05 every day, and 15-minute curve data is acquired at the fourth minute every 15 minutes; Step 2.2: if continuous reading fails for three times, the reading is suspended, and the next period is retried; Step 2.3: when the internal storage unit is full, the earliest data is overwritten, and critical data is stored in double backup; Step 3: dual-device time setting, comprising the following steps: Step 3.1: terminal site time setting: time setting is performed only once a day, when the clock deviation is greater than 5 minutes, step-by-step callback is performed, each time by ±5 minutes; when the deviation is less than or equal to 5 minutes, direct correction to the Beidou time is performed; Step 3.2: data acquisition terminal time setting: time setting is performed once an hour, and unconditional correction to the Beidou time is performed; the time setting operation avoids the data acquisition window; Step 4: Beidou short message efficient transmission, comprising the following steps: Step 4.1: data compression: the timestamp is converted into a 4-byte Unix format, floating-point data is compressed into a 2-byte format according to the precision of 0.1℃, and state data is encoded using a 4-bit field; Step 4.2: sending control: A priority queue is built, and is set as class 1 data, and daily frozen data is classified as class 2 data; The queue is detected every 120 seconds, the class 1 data is preferentially sent, and data of the same priority is sent in the order of first-in first-out; After successful sending, the queue entry is deleted, and failed data is retained until the next sending window; Step 5: after the Beidou satellite receives the short message sent by the data acquisition terminal, the short message is forwarded to the Beidou front-end machine, when the Beidou front-end machine receives the message from the Beidou satellite, the message is verified, if the verification is qualified, the message is analyzed and processed, if the verification is not qualified, the message is determined to be invalid, and is directly discarded without analysis operation.

7. The method of claim 6, wherein the power harvesting is based on a Beidou satellite communication link. Further comprising step 6: data retransmission, comprising the following steps: Step 6.1: 32 pieces of 15-minute curve data in the last 8 hours are stored in a buffer; Step 6.2: retransmission is triggered every 4 hours: unconfirmed data in the buffer is checked, and is preferentially sent in ascending order of failure times; Step 6.3: after successful sending, the counter is reset, and the counter is decremented until it is abandoned in case of failure.

8. The method of claim 7, wherein the power harvesting is based on a Beidou satellite communication link. Further comprising step 7: watchdog mechanism, comprising the following steps: Step 7.1: a hardware watchdog independent chip monitors the system operation, and forcibly restarts in case of timeout without response; Step 7.2: The software watchdog registers the key thread to the monitoring matrix and reports the heartbeat periodically; the monitoring thread detects the timeout task and triggers the restart sub-module or the whole system reset; records the abnormal log to the internal storage unit, including the fault type, timestamp, thread ID.

9. The method of claim 8, wherein the power harvesting is based on a Beidou satellite communication link. Also includes step 8: fault self-recovery, including the following steps: Step 8.1: Detect whether the Beidou data reception is abnormal, if abnormal, record fault information and trigger restart; if normal, execute the next step; Step 8.2: Detect whether the communication between the timing terminal station or the collection terminal is abnormal, if abnormal, record fault information and trigger restart; if normal, execute the next step; Step 8.3: Detect whether the internal storage unit writing is abnormal, if abnormal, record fault information and trigger restart; if normal, execute step 7.

1.

10. The method of claim 6, wherein the method further comprises: The specific verification method of the message in step 5 is: the Beidou front-end computer calculates the check code of the received message and compares it with the check code carried in the message, when the two check codes are exactly the same, the message is identified as a valid message and is parsed and processed; if the two check codes do not match, the message is determined to be invalid and is discarded directly without parsing operation.

Citation Information

Cited By

  • Electric power monitoring data general transmission method and system based on Beidou short message

    CN121173749A