Virtual power plant terminal networking communication method, system, device and storage medium
Patent Information
- Application Number
- CN202611163886.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-03
- Publication Date
- 2026-10-30
AI Technical Summary
[0003]然而,现有的窄带无线通信方案,通常只关注物理层调制解调或单点通信流程,且现场部署时需要人工配置地址、信道、组网关系和重传参数,难以满足快速安装、自动入网和灵活扩展的要求,仍然存在通信效率较低的问题
[0020]上述虚拟电厂终端组网通信系统中,虚拟电厂终端在检测到入网操作时,根据入网操作构建入网请求帧序列,在入网请求帧序列中添加多个入网关联字段,得到更新后的入网请求帧序列,并对更新后的入网请求帧序列进行调制处理,获得调制后的入网调制信号,将入网调制信号反馈至协调器,从而虚拟电厂终端和协调器可按实际部署关系运行,虚拟电厂终端采用先入网后采集上报的方式,可避免协调器侧自行生成模拟业务数据,更符合实际窄带无线组网运行逻辑,减少无效数据的生成。其中,协调器在接收到虚拟电厂终端通过通信链路发送的入网请求时,根据入网请求获取入网调制信号,对入网调制信号进行解调,获得请求帧序列数据,通过数据调制、无线传输、解调和帧解析,形成了适合窄带低速率场景的通信流程,减少了数据通信过程中的数据损失和资源消耗。进一步地,协调器通过对请求帧序列数据进行数据校验,并在请求帧序列数据通过数据校验的情况下,向虚拟电厂终端反馈入网响应帧,以通过虚拟电厂终端,根据入网响应帧采集业务数据,并将业务数据反馈至协调器,使得协调器在接收到业务数据后,向虚拟电厂终端反馈数据接收响应帧,并将业务数据发送至上位业务系统,提升了虚拟电厂终端、协调器、以及上位业务系统之间的通信效率。
Smart Images

Figure CN123021335A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of power communication technology, and in particular to a virtual power plant terminal networking communication method, system, computer equipment, computer-readable storage medium, and computer program product. Background Technology
[0002] With the development of power communication technology and the promotion and application of low-power Internet of Things, industrial sensing, power distribution automation, environmental monitoring and remote equipment operation and maintenance, narrowband wireless communication terminals can realize data transmission in low-speed, low-power, long-distance and weak infrastructure environments, based on pre-configured communication parameters, fixed network topology or dedicated communication protocols.
[0003] However, existing narrowband wireless communication solutions typically only focus on physical layer modulation and demodulation or single-point communication processes, and require manual configuration of addresses, channels, network relationships, and retransmission parameters during field deployment. This makes it difficult to meet the requirements of rapid installation, automatic network access, and flexible expansion, and still results in low communication efficiency. Summary of the Invention
[0004] Based on this, it is necessary to provide a virtual power plant terminal networking communication method, system, computer equipment, computer-readable storage medium, and computer program product that can improve the communication efficiency between virtual power plant terminals, coordinators, and upper-level business systems, in response to the above-mentioned technical problems.
[0005] In a first aspect, this application provides a virtual power plant terminal networking communication method, comprising: receiving a network access request sent by the virtual power plant terminal through a communication link; acquiring a network access modulation signal according to the network access request; demodulating the network access modulation signal to obtain request frame sequence data, and performing data verification on the request frame sequence data; if the request frame sequence data passes the data verification, feeding back a network access response frame to the virtual power plant terminal, the network access response frame being used to instruct the virtual power plant terminal to collect and feed back service data; receiving the service data fed back by the virtual power plant terminal; feeding back a data receiving response frame to the virtual power plant terminal; and sending the service data to the upper-level service system.
[0006] Secondly, this application also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: receiving a network access request sent by a virtual power plant terminal through a communication link; acquiring a network access modulation signal according to the network access request; demodulating the network access modulation signal to obtain request frame sequence data, and performing data verification on the request frame sequence data; if the request frame sequence data passes the data verification, feeding back a network access response frame to the virtual power plant terminal, the network access response frame being used to instruct the virtual power plant terminal to collect and feed back service data; receiving the service data fed back by the virtual power plant terminal; feeding back a data reception response frame to the virtual power plant terminal; and sending the service data to the upper-level service system.
[0007] Thirdly, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the following steps: receiving a network access request sent by a virtual power plant terminal through a communication link; acquiring a network access modulation signal according to the network access request; demodulating the network access modulation signal to obtain request frame sequence data, and performing data verification on the request frame sequence data; if the request frame sequence data passes the data verification, feeding back a network access response frame to the virtual power plant terminal, the network access response frame being used to instruct the virtual power plant terminal to collect and feed back service data; receiving the service data fed back by the virtual power plant terminal; feeding back a data receiving response frame to the virtual power plant terminal; and sending the service data to the upper-level service system.
[0008] Fourthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps: receiving a network access request sent by a virtual power plant terminal through a communication link; acquiring a network access modulation signal according to the network access request; demodulating the network access modulation signal to obtain request frame sequence data, and performing data verification on the request frame sequence data; if the request frame sequence data passes the data verification, feeding back a network access response frame to the virtual power plant terminal, the network access response frame being used to instruct the virtual power plant terminal to collect and feed back service data; receiving the service data fed back by the virtual power plant terminal; feeding back a data receiving response frame to the virtual power plant terminal; and sending the service data to the upper-level service system.
[0009] In the aforementioned virtual power plant terminal networking communication method, computer equipment, computer-readable storage medium, and computer program product, by receiving the network access request sent by the virtual power plant terminal through the communication link, obtaining the network access modulation signal according to the network access request, and demodulating the network access modulation signal to obtain the request frame sequence data, a communication process suitable for narrowband low-rate scenarios is formed through data modulation, wireless transmission, demodulation, and frame parsing, reducing data loss and resource consumption during data communication. Furthermore, the coordinator verifies the request frame sequence data, and if the request frame sequence data passes the verification, it sends a network access response frame back to the virtual power plant terminal. The virtual power plant terminal then collects service data based on the network access response frame. Thus, the virtual power plant terminal and the coordinator can operate according to their actual deployment relationship; that is, the virtual power plant terminal adopts a "network access first, then data collection and reporting" approach, which avoids the coordinator generating simulated service data, better conforms to the actual narrowband wireless networking operation logic, and reduces the generation of invalid data. The virtual power plant terminal feeds back service data to the coordinator, which in turn sends a data reception response frame to the virtual power plant terminal after receiving the service data, and then sends the service data to the upper-level service system, thereby improving the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system.
[0010] Fifthly, this application provides a virtual power plant terminal networking communication method, comprising: when a network access operation is detected, constructing a network access request frame sequence based on the network access operation; adding multiple network access association fields to the network access request frame sequence to obtain an updated network access request frame sequence; performing modulation processing on the updated network access request frame sequence to obtain a modulated network access modulation signal, and feeding the network access modulation signal back to a coordinator, wherein the network access modulation signal is used to instruct the coordinator to demodulate and verify the network access modulation signal, and to feed back a network access response frame after successful data verification; receiving the network access response frame fed back by the coordinator, collecting service data based on the network access response frame, and feeding the service data back to the coordinator, so that the coordinator receives the response frame based on the service data feedback data, and sends the service data to the upper-level service system.
[0011] Sixthly, this application also provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to perform the following steps: when a network access operation is detected, constructing a network access request frame sequence based on the network access operation; adding multiple network access association fields to the network access request frame sequence to obtain an updated network access request frame sequence; performing modulation processing on the updated network access request frame sequence to obtain a modulated network access modulation signal, and feeding the network access modulation signal back to the coordinator. The network access modulation signal is used to instruct the coordinator to demodulate and verify the network access modulation signal, and to feed back a network access response frame after successful data verification; receiving the network access response frame fed back by the coordinator, collecting service data based on the network access response frame, and feeding the service data back to the coordinator, so that the coordinator receives the response frame based on the service data and sends the service data to the upper-level service system.
[0012] Seventhly, this application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, performs the following steps: upon detecting a network access operation, constructing a network access request frame sequence based on the network access operation; adding multiple network access association fields to the network access request frame sequence to obtain an updated network access request frame sequence; performing modulation processing on the updated network access request frame sequence to obtain a modulated network access modulation signal, and feeding the network access modulation signal back to the coordinator, wherein the network access modulation signal is used to instruct the coordinator to demodulate and verify the network access modulation signal, and to feed back a network access response frame after successful data verification; receiving the network access response frame fed back by the coordinator, collecting service data based on the network access response frame, and feeding the service data back to the coordinator, so that the coordinator receives the response frame based on the service data feedback data, and sends the service data to the upper-level service system.
[0013] Eighthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps: upon detecting a network access operation, constructing a network access request frame sequence based on the network access operation; adding multiple network access association fields to the network access request frame sequence to obtain an updated network access request frame sequence; performing modulation processing on the updated network access request frame sequence to obtain a modulated network access modulation signal, and feeding the network access modulation signal back to the coordinator, wherein the network access modulation signal is used to instruct the coordinator to demodulate and verify the network access modulation signal, and to feed back a network access response frame after successful data verification; receiving the network access response frame fed back by the coordinator, collecting service data based on the network access response frame, and feeding back the service data to the coordinator, so that the coordinator receives the response frame based on the service data and sends the service data to the upper-level service system.
[0014] In the aforementioned virtual power plant terminal networking communication method, computer equipment, computer-readable storage medium, and computer program product, when the virtual power plant terminal detects a network access operation, it constructs a network access request frame sequence based on the operation, adds multiple network access association fields to the sequence to obtain an updated sequence, and modulates the updated sequence to obtain a modulated network access signal. This modulated signal is then fed back to the coordinator, allowing the virtual power plant terminal and coordinator to operate according to their actual deployment relationship. The virtual power plant terminal's "network access first, data collection and reporting later" approach avoids the coordinator from generating simulated service data, better aligning with the actual narrowband wireless networking logic and reducing the generation of invalid data. Furthermore, the coordinator demodulates and verifies the network access modulated signal, and upon successful verification, feeds back a network access response frame. Through data modulation, wireless transmission, demodulation, and frame parsing, a communication process suitable for narrowband low-rate scenarios is formed. The virtual power plant terminal receives the network access response frame fed back by the coordinator, collects service data based on the network access response frame, and feeds the service data back to the coordinator. This improves the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system, and reduces data loss and resource consumption during data communication.
[0015] Ninthly, this application also provides a virtual power plant terminal networking communication system, including a virtual power plant terminal and a coordinator, wherein the virtual power plant terminal and the coordinator communicate through a communication link; wherein:
[0016] The virtual power plant terminal is configured to: upon detecting a grid access operation, construct a grid access request frame sequence based on the grid access operation; add multiple grid access association fields to the grid access request frame sequence to obtain an updated grid access request frame sequence; perform modulation processing on the updated grid access request frame sequence to obtain a modulated grid access modulation signal, and feed the grid access modulation signal back to the coordinator.
[0017] The coordinator is configured to: receive a network access request sent by a virtual power plant terminal through a communication link; obtain a network access modulation signal according to the network access request; demodulate the network access modulation signal to obtain request frame sequence data; and perform data verification on the request frame sequence data; and, if the request frame sequence data passes the data verification, send a network access response frame back to the virtual power plant terminal.
[0018] The virtual power plant terminal is also used to: receive the network access response frame fed back by the coordinator, collect service data according to the network access response frame, and feed the service data back to the coordinator;
[0019] The coordinator is further configured to: receive service data fed back by the virtual power plant terminal, send a data reception response frame to the virtual power plant terminal, and send the service data to the upper-level service system.
[0020] In the aforementioned virtual power plant terminal networking communication system, when a virtual power plant terminal detects a network access operation, it constructs a network access request frame sequence based on the operation. Multiple network access association fields are added to this sequence to obtain an updated network access request frame sequence. This updated sequence is then modulated to obtain a modulated network access signal, which is fed back to the coordinator. This allows the virtual power plant terminal and coordinator to operate according to their actual deployment relationship. The virtual power plant terminal adopts a "network access first, data collection later" approach, avoiding the coordinator from generating simulated service data, which better aligns with the actual narrowband wireless networking logic and reduces the generation of invalid data. Specifically, when the coordinator receives a network access request from the virtual power plant terminal via the communication link, it obtains the network access modulation signal based on the request, demodulates it to obtain the request frame sequence data, and through data modulation, wireless transmission, demodulation, and frame parsing, forms a communication process suitable for narrowband, low-rate scenarios, reducing data loss and resource consumption during data communication. Furthermore, the coordinator verifies the request frame sequence data and, if the request frame sequence data passes the verification, sends a network access response frame to the virtual power plant terminal. The virtual power plant terminal then collects service data based on the network access response frame and sends the service data back to the coordinator. Upon receiving the service data, the coordinator sends a data reception response frame to the virtual power plant terminal and transmits the service data to the upper-level service system, thereby improving the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system. Attached Figure Description
[0021] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is an application environment diagram of a virtual power plant terminal networking communication method in one embodiment;
[0023] Figure 2 This is a flowchart illustrating a virtual power plant terminal networking communication method in one embodiment;
[0024] Figure 3 This is a schematic diagram of a lightweight data frame structure in one embodiment;
[0025] Figure 4 This is a flowchart illustrating the virtual power plant terminal networking communication method in another embodiment;
[0026] Figure 5This is a schematic diagram illustrating the time slot coordination and conflict backoff process in one embodiment;
[0027] Figure 6 This is a flowchart illustrating the virtual power plant terminal networking communication method in another embodiment;
[0028] Figure 7 This is a flowchart illustrating the virtual power plant terminal networking communication method in yet another embodiment;
[0029] Figure 8 This is a schematic diagram of the overall processing procedure of the virtual power plant terminal networking communication method in one embodiment;
[0030] Figure 9 This is a schematic diagram of the architecture of a virtual power plant terminal networking communication system in one embodiment;
[0031] Figure 10 This is an internal structural diagram of a computer device in one embodiment;
[0032] Figure 11 This is a diagram of the internal structure of a computer device in another embodiment. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0034] It should be noted that the terms "first," "second," etc., used in this application can be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish the first element from the second element. The terms "comprising" and "having," and any variations thereof, used in this application, are intended to cover non-exclusive inclusion. The term "multiple" used in this application refers to two or more. The term "and / or" used in this application refers to one of the embodiments, or any combination of multiple embodiments.
[0035] The virtual power plant terminal networking communication method provided in this application embodiment can be applied to, for example... Figure 1In the application environment shown, the virtual power plant terminal 102 communicates with the coordinator 104 via a network. A data storage system can store the data that the coordinator 104 needs to process. The data storage system can be integrated onto the coordinator 104 or placed in the cloud or on other network servers. The virtual power plant terminal 102 can be, but is not limited to, various personal computers, laptops, smartphones, tablets, drones, low-altitude aircraft, IoT devices, and portable wearable devices. IoT devices can include smart speakers, smart TVs, smart air conditioners, smart vehicle devices, projection devices, etc. Portable wearable devices can include smartwatches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc. The coordinator 104 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services.
[0036] Both the virtual power plant terminal 102 and the coordinator 104 can be used independently to execute the power data processing method provided in this embodiment, or they can work together to execute the power data processing method provided in this embodiment. For example, taking the collaborative execution of the power data processing method provided in this embodiment by the virtual power plant terminal 102 and the coordinator 104 as an example, the coordinator 104 receives a network access request sent by the virtual power plant terminal 102 through a communication link, obtains the network access modulation signal according to the request, demodulates the network access modulation signal to obtain request frame sequence data, and performs data verification on the request frame sequence data. If the request frame sequence data passes the data verification, the coordinator 104 sends a network access response frame back to the virtual power plant terminal 102. The network access response frame instructs the virtual power plant terminal 102 to collect and send back service data, receives the service data sent back by the virtual power plant terminal 102, sends a data reception response frame back to the virtual power plant terminal 102, and sends the service data to the upper-level service system.
[0037] Similarly, taking the collaborative execution of the power data processing method provided in this application embodiment by the virtual power plant terminal 102 and the coordinator 104 as an example, when the virtual power plant terminal 102 detects a grid access operation, it constructs a grid access request frame sequence based on the grid access operation, adds multiple grid access association fields to the grid access request frame sequence to obtain an updated grid access request frame sequence, and modulates the updated grid access request frame sequence to obtain a modulated grid access signal. This modulated signal is then fed back to the coordinator 104. The grid access modulated signal instructs the coordinator 104 to demodulate and verify the data, and after successful data verification, it feeds back a grid access response frame to the virtual power plant terminal 102. Further, the virtual power plant terminal 102 receives the grid access response frame from the coordinator 104, collects service data based on the grid access response frame, and feeds the service data back to the coordinator 104. This allows the coordinator 104 to receive the response frame based on the service data feedback and send the service data to the upper-level service system.
[0038] In one exemplary embodiment, such as Figure 2 As shown, a virtual power plant terminal networking communication method is provided, which is applied to... Figure 1 Taking the coordinator 104 as an example, the explanation includes the following steps S202 to S208. Wherein:
[0039] Step S202: Receive the network access request sent by the virtual power plant terminal through the communication link, and obtain the network access modulation signal according to the network access request.
[0040] Specifically, the virtual power plant terminal can be a narrowband virtual power plant terminal, which communicates and transmits data through a narrowband communication link and a coordinator. The virtual power plant terminal runs terminal communication software used to collect service data, trigger network requests, encapsulate data frames, transmit modulated signals, parse network access response frames, and parse data reception frames. Similarly, the coordinator or gateway device runs coordinator communication software used to detect terminal online status, demodulate and deframe modulated signals, manage neighbor tables and time slots, transmit network access response frames, and transmit data reception response frames.
[0041] Specifically, when the coordinator receives a network access request sent by the virtual power plant terminal through a narrowband communication link, it obtains the network access modulated signal after the signal has been modulated by the virtual power plant terminal, based on the network access request.
[0042] Specifically, the JOIN_REQ grid access request frame is converted into a digital bit sequence by a narrowband virtual power plant terminal. The digital bit sequence is then modulated by a modulation and demodulation module to obtain a narrowband modulation signal based on frequency shift keying, which is the grid access modulation signal corresponding to the grid access request. The grid access modulation signal is then sent to the coordinator or gateway device through a narrowband communication link.
[0043] Step S204: Demodulate the network-connected modulated signal to obtain the requested frame sequence data, and perform data verification on the requested frame sequence data.
[0044] Specifically, firstly, the coordinator performs analog front-end conditioning on the received network-in modulation signal (including low-noise amplification of the received network-in modulation signal, amplifying the weak signal to the amplitude level required for subsequent processing, and filtering the amplified network-in modulation signal through a bandpass filter) to obtain the conditioned network-in modulation signal. The conditioned network-in modulation signal is then input to an analog-to-digital converter (ADC). The ADC samples and quantizes the network-in modulation signal at a preset sampling frequency, converting the continuous network-in modulation signal into a discrete digital signal to obtain a digital intermediate frequency (IF) signal.
[0045] Secondly, the coordinator performs frequency separation on the digital intermediate frequency signal, extracts the first frequency component and the second frequency component respectively, and performs envelope detection on the first frequency component and the second frequency component respectively to obtain the energy envelope of each frequency component (the purpose of envelope detection is to extract the amplitude change information of each frequency component, i.e., the energy envelope, to reflect the energy distribution of each frequency component in each symbol period).
[0046] Furthermore, the coordinator obtains the symbol synchronization signal to determine the start time and optimal sampling time of each symbol (the purpose of symbol synchronization is to recover the timing signal consistent with the symbol rate of the transmitter at the receiver, determine the start boundary and center position of each symbol, and ensure that the sampling decision is made at the optimal time). Based on the symbol synchronization signal, the coordinator performs sampling decision on the energy envelope, recovers each symbol to the corresponding bit value, and obtains the digital bit sequence (the purpose of sampling decision is to determine the bit value (0 or 1) corresponding to each symbol based on the energy distribution of the two frequency components within each symbol period, thereby recovering the original digital bit sequence of the transmitter), which is to obtain the request frame sequence data corresponding to the network access request.
[0047] In an exemplary embodiment, the coordinator performs data verification on the request frame sequence data. The verification process specifically includes synchronization word detection, frame boundary identification, field parsing, and cyclic redundancy check.
[0048] Specifically, the coordinator performs data validation on the request frame sequence data, including: detecting synchronization words in the request frame sequence data to identify synchronization words; identifying frame boundaries for synchronization words in the request frame sequence data to determine the frame start position; obtaining the payload length corresponding to the request frame sequence data and determining the frame boundary based on the payload length; parsing the fields of the request frame sequence data according to the start position, frame boundaries, and preset frame structure definitions to extract the data content of each field; and validating the data content of each field, obtaining valid request frame sequence data when the validation passes.
[0049] The purpose of synchronization word detection is to locate the preset synchronization word from the bit stream, thereby determining the starting position of valid data. Specifically, the frame structure processing module internally includes a shift register group. This shift register group buffers the input serial bit stream. In each clock cycle, the shift register group shifts the newly input 1 bit into the least significant bit while discarding the most significant bit. In each clock cycle, the current 32-bit value buffered in the shift register group is compared bit-by-bit with the preset synchronization word (i.e., a sliding correlation operation). The number of identical bits between the two is counted. Specifically, when the number of identical bits reaches a preset threshold, a synchronization word is detected. For example, the preset threshold can be set to 30 / 32, allowing a maximum error tolerance of 2 bits to accommodate bit errors in narrowband channels.
[0050] Furthermore, once the synchronization word is successfully detected, its specific position in the digital bit sequence is obtained (i.e., the offset of the last bit of the synchronization word in the bit stream). Specifically, the starting position of the frame data is calculated by using the position of the last bit of the detected synchronization word as a reference point and combining it with the fixed offset between the synchronization word and the frame body in the preset frame structure definition.
[0051] For example, the synchronization word is located before and immediately adjacent to the frame header. Specifically, the frame structure processing module can determine the first bit after the last bit of the synchronization word as the starting position of the frame header, that is, the starting position of the frame data. For example, if the last bit of the synchronization word is the Nth bit in the bit stream, then the frame start position is the (N+1)th bit.
[0052] In an exemplary embodiment, after determining the frame start position, the frame structure processing module extracts each field sequentially from the frame start position according to a preset frame structure definition. The frame header field contains payload length information, indicating the byte length of the data field. Specifically, determining the frame boundary based on the payload length includes: adding a fixed length (e.g., 8 bytes) to the frame header start position to obtain the data field start position; adding the payload length (e.g., 32 bytes) to the data field start position to obtain the data field end position, i.e., the start position of the cyclic redundancy check (CRC) field; and adding a fixed length (e.g., 2 bytes) to the CRC field start position to obtain the end position of the entire frame, i.e., the frame boundary. Therefore, the data range of the complete frame is from the frame start position to the frame boundary.
[0053] Furthermore, after determining the frame start position and frame boundary, according to the preset frame structure definition, within the bit range between the frame start position and the frame boundary, each field is parsed sequentially by bit or byte offset. These fields may include synchronization word, source address, destination address, frequency hopping index, flag / frame type, payload length, payload, and cyclic redundancy check (CRC) fields. The synchronization word is used for frame boundary identification, the control field expresses the node address, frequency hopping index, retransmission flag, and frame type, the payload is a maximum of 32 bytes, and the CRC check is used to verify frame integrity.
[0054] The data verification process for each field includes, but is not limited to, cyclic redundancy check (CRBC). Address verification and frame type verification may also be included as needed. Specifically, the data verification process involves: performing a 16-bit CRBC calculation on all fields in the digital bit sequence except for the CRBC field (i.e., all bytes from the frame start position to the CRBC field) to obtain a first check value; and extracting the CRBC field (the two bytes before the frame boundary) from the digital bit sequence as a second check value. The first and second check values are then compared. If they match (i.e., the calculated result equals the CRBC value carried in the frame), the data verification is considered successful; otherwise, the verification is considered unsuccessful.
[0055] In one exemplary embodiment, such as Figure 3 As shown, a lightweight data frame structure is provided. Figure 3 As can be seen, a lightweight data frame consists of fields such as synchronization word (4 bytes), source address (1 byte), destination address (1 byte), frequency hopping index (1 byte), flag / frame type (1 byte), payload length (1 byte), payload (0-32 bytes), and cyclic redundancy check (2 bytes).
[0056] Among them, the synchronization word is used for frame boundary identification, the control field is used to express the node address, frequency hopping index, retransmission flag and frame type, the payload is up to 32 bytes, and the cyclic redundancy check is used to check the frame integrity.
[0057] Step S206: If the request frame sequence data passes the data verification, a network access response frame is sent to the virtual power plant terminal. The network access response frame is used to instruct the virtual power plant terminal to collect and send back service data.
[0058] Specifically, when the request frame sequence data passes the data verification, the coordinator sends a network access response frame to the virtual power plant terminal. When the virtual power plant terminal receives the network access response frame, it indicates that the virtual power plant terminal has successfully entered the network access state. After the virtual power plant terminal enters the network access state, it begins to periodically collect business data such as temperature, power consumption, and status. After encapsulating the business data into business data frames, it uploads the business data frames to the coordinator.
[0059] When the virtual power plant terminal receives the JOIN-OK network access response frame returned by the coordinator, its modem module demodulates the frame, restores the digital bit sequence, and then performs deframing and cyclic redundancy check on the digital bit sequence. If the check passes, the terminal status is updated according to the frame type of the JOIN-OK network access response frame. In other words, the virtual power plant terminal enters the network access state after receiving the JOIN-OK network access response frame.
[0060] Step S208: Receive business data fed back from the virtual power plant terminal, send a response frame to the virtual power plant terminal to receive the data, and send the business data to the upper-level business system.
[0061] Specifically, the coordinator receives service data frames fed back by the virtual power plant terminal through a narrowband communication link. After receiving the service data frames, it demodulates them, restores the digital bit sequence, and then performs deframing and cyclic redundancy check on the digital bit sequence. If the check passes, indicating that the coordinator has successfully received the service data, it generates a data reception response frame for the service data frame, feeds the data reception response frame back to the virtual power plant terminal, and further sends the service data to the upper-level service system.
[0062] In this process, after the coordinator sends the data reception response frame back to the virtual power plant terminal, the virtual power plant terminal demodulates the data reception response frame to restore the digital bit sequence, and then performs deframing and cyclic redundancy check on the digital bit sequence. If the check passes, the terminal status is updated according to the frame type of the data reception response frame, that is, the virtual power plant terminal confirms that the business data was successfully reported based on the data reception response frame.
[0063] In the aforementioned virtual power plant terminal networking communication method, by receiving the network access request sent by the virtual power plant terminal through the communication link, obtaining the network access modulation signal according to the network access request, and demodulating the network access modulation signal to obtain the request frame sequence data, a communication process suitable for narrowband low-rate scenarios is formed through data modulation, wireless transmission, demodulation, and frame parsing, reducing data loss and resource consumption during data communication. Furthermore, the coordinator verifies the request frame sequence data, and if the request frame sequence data passes the verification, it sends a network access response frame back to the virtual power plant terminal. The virtual power plant terminal then collects service data based on the network access response frame. Thus, the virtual power plant terminal and the coordinator can operate according to their actual deployment relationship. That is, the virtual power plant terminal adopts a "network access first, then data collection and reporting" approach, which avoids the coordinator generating simulated service data, better conforms to the actual narrowband wireless networking operation logic, and reduces the generation of invalid data. The virtual power plant terminal feeds back service data to the coordinator, which in turn sends a data reception response frame to the virtual power plant terminal after receiving the service data, and then sends the service data to the upper-level service system, thereby improving the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system.
[0064] In one exemplary embodiment, such as Figure 4 As shown, a virtual power plant terminal networking communication method is provided, which is applied to... Figure 1 Taking the coordinator 104 as an example, the explanation includes the following steps S402 to S406. Wherein:
[0065] Step S402: If the request frame sequence data passes the data verification, an initial time slot is allocated to the virtual power plant terminal, and the virtual power plant terminal is registered as a neighbor in the neighbor table.
[0066] Specifically, when the request frame sequence data passes the data verification, the coordinator obtains the pre-configured node time slot mapping table and determines the target time slot that matches the virtual power plant terminal based on the node time slot mapping table and the terminal identifier of the virtual power plant terminal.
[0067] The pre-configured node time slot mapping table may include the correspondence between terminal identifiers of multiple different virtual power plant terminals and multiple target time slots. Specifically, the correspondence between terminal identifiers and target time slots may be a one-to-one correspondence. Based on the terminal identifier of the virtual power plant terminal, the target time slot matching the terminal identifier can be determined from the pre-configured node time slot mapping table.
[0068] Furthermore, the coordinator identifies the time slot status corresponding to the target time slot, including idle and occupied states. An occupied state indicates that the target time slot has been occupied by another virtual power plant terminal, while an idle state indicates that the target time slot is not occupied. For example, the coordinator determines the status of the time slot by detecting the current time slot within each time slot period, specifically by determining whether a data frame was successfully received in the current time slot and the source address information of the received data frame.
[0069] For example, if the coordinator successfully receives a data frame in the time slot and the frame parsing is normal (including passing the synchronization word detection and cyclic redundancy check), it obtains the terminal identifier of the virtual power plant terminal that sent the frame based on the source address field in the frame header, and queries the current status of the time slot in the time slot status table: including: 1) If the current status of the time slot is idle, and a specified virtual power plant terminal has been previously allocated to the time slot, the coordinator updates the status of the time slot to occupied and records the terminal identifier of the virtual power plant terminal occupying the time slot; 2) If the current status of the time slot is occupied, and the terminal identifier of the virtual power plant terminal occupying the time slot is consistent with the source address of the currently received frame, the occupied status is maintained, and the last used time is updated to the current time; 3) If the current status of the time slot is occupied, but the terminal identifier of the virtual power plant terminal occupying the time slot is inconsistent with the source address of the currently received frame, a time slot conflict is determined to have occurred.
[0070] Conversely, if the coordinator does not receive any valid data frames in a time slot, it determines that the time slot is idle. For time slots that have been allocated but have been idle for an extended period, the coordinator can adjust the status of the time slot to idle after several consecutive superframe cycles without receiving data, so that it can be reassigned to other virtual power plant terminals.
[0071] Specifically, when the time slot is in an idle state, the coordinator uses the target time slot as the initial time slot corresponding to the virtual power plant terminal.
[0072] In an exemplary embodiment, the coordinator identifies the time slot status corresponding to the target time slot and determines that a time slot conflict has been triggered if the time slot status is occupied. Specifically, in the event of a time slot conflict, the coordinator sets the retransmission flag of the service data and randomly backs off a preset number of time slots. After the backoff ends, the coordinator re-requests channel occupancy permission, and if the channel occupancy permission request is successful, it sends the service data carrying the retransmission flag.
[0073] Specifically, the coordinator compares the source address of the data frame received in the current time slot with the terminal identifier of the virtual power plant terminal occupying that time slot, as recorded in the time slot status table, and determines whether a time slot conflict has occurred based on the comparison result. When the coordinator successfully receives a data frame in the target time slot, it extracts the source address field from the frame header to obtain the first terminal identifier of the virtual power plant terminal that sent the frame. It then queries the time slot status table for the target time slot to read the second terminal identifier occupying that time slot. If the first terminal identifier and the second terminal identifier are inconsistent, a time slot conflict is determined, and a time slot conflict is triggered.
[0074] When the coordinator determines that a time slot conflict has occurred, it generates or updates the service data frame to be sent, setting the retransmission flag in the frame header of the service data frame to an active state. For example, specifically, after detecting a time slot conflict, the coordinator's upper-layer protocol processing module sends a retransmission indication to the MAC layer (i.e., the Media Access Control layer), and the Media Access Control layer sets the retransmission flag field in the frame header of the service data frame to be sent to 1, thus indicating that the frame is a retransmission frame.
[0075] Furthermore, after triggering a time slot conflict and setting the retransmission flag, the coordinator does not immediately perform a retransmission. Instead, it initiates a random backoff procedure to avoid colliding with the conflicting terminal again in the next time slot following the conflict. For example, the coordinator's backoff unit generates a random integer, the value of which ranges from 1 to a preset maximum number of backoff time slots. The preset maximum number of backoff time slots is a system configuration parameter; in this embodiment, the maximum number of backoff time slots is 3.
[0076] After the backoff ends, the coordinator re-initiates a channel occupancy request to obtain the permission to send retransmission frames. Specifically, after the backoff ends, the coordinator's media access control layer performs carrier sense or slot status query operations to determine the current channel's busy / idle status. For example, it checks whether the current slot (i.e., the next available slot after the backoff ends) is idle, that is, it queries the current slot's record in the slot status table. If the status is idle, the channel is determined to be available, and thus, if the channel occupancy permission request is successful, service data carrying a retransmission flag can be sent.
[0077] Conversely, if the current time slot is occupied (i.e., other virtual power plant terminals are sending data), the coordinator continues to wait for the next time slot and re-queries the time slot status at each time slot boundary until an idle time slot is detected.
[0078] In one exemplary embodiment, such as Figure 5 As shown, a time slot coordination and conflict backoff process is provided, referring to... Figure 5It is known that the pre-configured node time slot mapping table includes multiple time slots, and the terminal identifiers of different virtual power plant terminals are hashed and mapped to their respective time slots. The specific processing steps for time slot coordination and conflict backoff include:
[0079] Step S501: Before performing the business data transmission operation, determine the target time slot that matches the virtual power plant terminal based on the node time slot mapping table and the terminal identifier of the virtual power plant terminal.
[0080] Step S502: Determine whether the target time slot is occupied.
[0081] Step S503: If the target time slot is occupied, determine that there is a time slot conflict, set the retransmission flag of the service data, and randomly back off a preset number of time slots.
[0082] Step S504: If the backoff ends, re-request channel occupancy permission, and if the channel occupancy permission request is successful, send service data carrying a retransmission flag.
[0083] After executing step S502, execute step S505. If the target time slot is not occupied, use the target time slot as the initial time slot corresponding to the virtual power plant terminal, and send service data according to the initial time slot.
[0084] After executing step S504 or step S505, step S506 is executed, where the coordinator receives service data and updates the neighbor table and time slot usage records.
[0085] Step S404: Upon receiving service data, determine that the virtual power plant terminal is in an online state, and update the neighbor status of the virtual power plant terminal based on the service data according to the neighbor table.
[0086] Specifically, when the coordinator successfully receives the service data uploaded by the virtual power plant terminal, it determines that the terminal status of the virtual power plant terminal is online, and updates the neighbor status of the virtual power plant terminal based on the service data according to the neighbor table, including updating the terminal identifier, received signal strength indicator value, most recent reception time, current time slot and node status in the neighbor table.
[0087] For example, the coordinator can extract the terminal identifier from the source address field in the frame header to identify the identity of the virtual power plant terminal uploading the service data, and obtain the current time slot number of the frame from the current time slot field in the frame header or the time slot status table maintained locally by the coordinator, as well as obtain the timestamp of the current moment from the coordinator system clock as the time when the terminal last successfully received data, and obtain the received signal strength indication value when the frame was received from the physical layer or the modem module, so as to update the neighbor table according to the obtained data.
[0088] After successfully receiving any valid data frame from the virtual power plant terminal, the coordinator sets the node status of the virtual power plant terminal to online. When the coordinator fails to receive any data frame from the terminal within a preset number of consecutive superframe periods (determined by accumulating the number of consecutive reception failures), the node status is switched to offline, and the time slot management module triggers the time slot reclamation or reallocation process.
[0089] Step S406: Determine the time slot occupancy quota corresponding to the business data, and update the initial time slot according to the time slot occupancy quota to obtain the updated time slot quota.
[0090] Specifically, the coordinator can determine the time slot occupancy quota corresponding to the business data by synchronously statistically analyzing the actual usage of the corresponding target time slots, and update the initial time slots according to the time slot occupancy quota to obtain the updated time slot quota. This provides a basis for subsequent judgments on time slot conflicts, node offline, and whether time slots need to be reallocated.
[0091] Among them, the time slot occupancy quota refers to the quantitative measurement of the actual usage of a specific time slot within a certain time window. The specific measurement dimensions include: occupancy frequency: the number of times the time slot has been successfully used within a preset statistical period; occupancy duration: the total duration of the time slot occupied within the preset statistical period; occupancy rate: the proportion of the time slot occupied within the preset statistical period (occupancy time / total time of the statistical period); and most recent occupancy time: the system timestamp of the most recent successful use of the time slot.
[0092] For example, after a virtual power plant terminal completes its network access and is allocated an initial time slot, the coordinator dynamically adjusts the initial time slot based on the actual reception of subsequent service data. For instance, if it is detected that the amount of service data of a terminal is continuously increasing and its currently allocated time slot is nearing saturation, the coordinator can proactively allocate additional auxiliary time slots for the terminal or migrate the terminal to a time slot with lower occupancy to achieve load balancing.
[0093] In this embodiment, by allocating initial time slots to the virtual power plant terminal after the request frame sequence data passes data verification, and registering the virtual power plant terminal as a neighbor in the neighbor table, a complete data verification of the request frame sequence data is performed before allocating the initial time slot. This ensures that only legitimate terminals sending valid network access requests can obtain time slot resources, avoiding invalid time slot allocations caused by interference, bit errors, or malicious attacks, effectively preventing the waste and illegal occupation of time slot resources, and improving network security. Furthermore, upon receiving service data, the terminal status of the virtual power plant terminal is determined to be online, and based on the neighbor table, the neighbor status of the virtual power plant terminal is updated according to the service data. This allows the coordinator to accurately perceive the active terminals and their distribution in the current network, providing timely and accurate status information for network management and resource scheduling. The time slot allocation corresponding to the business data is determined, and the initial time slots can be updated based on the time slot allocation to obtain the updated time slot allocation. This enables the detection of changes in the communication status of each virtual power plant terminal. When a virtual power plant terminal goes offline due to movement, shielding, or power failure, the coordinator can quickly identify the offline node based on the timeout judgment of the most recent reception time, and promptly trigger time slot reclamation and reallocation to avoid resource waste caused by offline nodes occupying time slots for a long time.
[0094] In one exemplary embodiment, such as Figure 6 As shown, a virtual power plant terminal networking communication method is provided, which is applied to... Figure 1 The following explanation uses the virtual power plant terminal 102 as an example, including the following steps S602 to S608. Wherein:
[0095] Step S602: When a network access operation is detected, a network access request frame sequence is constructed based on the network access operation.
[0096] Specifically, when the virtual power plant terminal detects a network access operation, it reads the device information required to construct the network access request frame from the local storage medium, and constructs the network access request frame sequence according to the preset frame structure definition based on the read device information.
[0097] Step S604: Add multiple network access association fields to the network access request frame sequence to obtain the updated network access request frame sequence.
[0098] Specifically, the virtual power plant terminal obtains multiple network access related fields such as synchronization word (4 bytes), source address (1 byte), destination address (1 byte), frequency hopping index (1 byte), flag / frame type (1 byte), payload length (1 byte), payload (0-32 bytes), and cyclic redundancy check (2 bytes) and adds multiple network access related fields to the network access request frame sequence to obtain the updated network access request frame sequence.
[0099] Step S606: Modulate the updated network access request frame sequence to obtain the modulated network access signal, and feed the modulated network access signal back to the coordinator. The modulated network access signal is used to instruct the coordinator to demodulate and verify the data of the modulated network access signal, and to feed back the network access response frame after the data verification is successful.
[0100] Specifically, the virtual power plant terminal modulates the updated grid access request frame sequence, that is, it converts the binary data stream of the grid access request frame sequence into a serial digital bit sequence for input to the modem module for modulation processing. Specifically, this is done by concatenating the fields of the grid access request frame in sequence and outputting them byte by byte in high-order priority to form a continuous serial bit stream, which is the digital bit sequence.
[0101] For example, the signal modulation process of the virtual power plant terminal on the grid access request frame includes:
[0102] 1) Encoding Processing: The original bit sequence is converted into a differential coded sequence, allowing the demodulation end to recover data by detecting phase changes between adjacent symbols rather than absolute phase, thus reducing the receiver's requirement for carrier phase synchronization; 2) Frequency Shift Keying Modulation: Based on the value ("0" or "1") of each symbol in the digital bit sequence, each symbol in the digital bit sequence is mapped to a corresponding frequency component to generate a frequency shift keying modulation signal; wherein, based on the symbol value of the input digital bit sequence, the frequency synthesizer is controlled to output the corresponding carrier frequency, including: when the symbol value is 0, the first frequency carrier signal is output; when the symbol value is 1, the second frequency carrier signal is output; 3) Signal Shaping and Filtering: The modulated signal is filtered and amplified to generate a modulated signal that meets the requirements of narrowband communication links, that is, the modulated signal for network entry is obtained.
[0103] Furthermore, the virtual power plant terminal feeds back the grid-connected modulation signal to the coordinator to instruct the coordinator to demodulate and verify the data of the grid-connected modulation signal, and feeds back the grid-connected response frame to the virtual power plant terminal after the data verification is successful.
[0104] In an exemplary embodiment, after receiving the network access modulation signal, the coordinator performs the following processing steps on the network access modulation signal, including:
[0105] First, the received network-in modulation signal is conditioned by analog front-end conditioning to obtain the conditioned network-in modulation signal. The conditioned network-in modulation signal is then input to the analog-to-digital converter (ADC). The ADC samples and quantizes the network-in modulation signal at a preset sampling frequency, converting the continuous network-in modulation signal into a discrete digital signal to obtain the digital intermediate frequency signal.
[0106] Secondly, the coordinator performs frequency separation on the digital intermediate frequency signal, extracts the first frequency component and the second frequency component respectively, and performs envelope detection on the first frequency component and the second frequency component respectively to obtain the energy envelope of each frequency component.
[0107] Third, the coordinator determines the start time and optimal sampling time of each symbol by acquiring the symbol synchronization signal, and performs sampling decision on the energy envelope according to the symbol synchronization signal, recovers each symbol to the corresponding bit value, and obtains the digital bit sequence, that is, obtains the request frame sequence data corresponding to the network access request.
[0108] Fourth, the coordinator performs data verification on the requested frame sequence data, including synchronization word detection, frame boundary identification, field parsing, and cyclic redundancy check;
[0109] Fifth, if the request frame sequence data passes the data verification, the coordinator sends a grid access response frame back to the virtual power plant terminal.
[0110] Step S608: Receive the network access response frame fed back by the coordinator, collect service data according to the network access response frame, and feed the service data back to the coordinator, so that the coordinator receives the response frame according to the service data feedback data and sends the service data to the upper-level service system.
[0111] Specifically, the virtual power plant terminal receives the network access response frame fed back by the coordinator, which indicates that the virtual power plant terminal has successfully entered the network access state. After entering the network access state, the virtual power plant terminal begins to periodically collect business data such as temperature, power consumption, and status, and after encapsulating the business data into business data frames, it uploads the business data frames to the coordinator.
[0112] When the virtual power plant terminal receives the JOIN-OK network access response frame returned by the coordinator, its modem module demodulates the frame, restores the digital bit sequence, and then performs deframing and cyclic redundancy check on the digital bit sequence. If the check passes, the terminal status is updated according to the frame type of the JOIN-OK network access response frame. In other words, the virtual power plant terminal enters the network access state after receiving the JOIN-OK network access response frame.
[0113] Furthermore, the coordinator receives service data frames fed back by the virtual power plant terminal through a narrowband communication link. After receiving the service data frames, it demodulates them, restores the digital bit sequence, and then performs deframing and cyclic redundancy check on the digital bit sequence. If the check passes, indicating that the coordinator has successfully received the service data, it generates a data reception response frame for the service data frame, feeds the data reception response frame back to the virtual power plant terminal, and further sends the service data to the upper-level service system.
[0114] In this process, after the coordinator sends the data reception response frame back to the virtual power plant terminal, the virtual power plant terminal demodulates the data reception response frame to restore the digital bit sequence, and then performs deframing and cyclic redundancy check on the digital bit sequence. If the check passes, the terminal status is updated according to the frame type of the data reception response frame, that is, the virtual power plant terminal confirms that the business data was successfully reported based on the data reception response frame.
[0115] In the aforementioned virtual power plant terminal networking communication method, when the virtual power plant terminal detects a network access operation, it constructs a network access request frame sequence based on the operation. Multiple network access association fields are added to this sequence to obtain an updated network access request frame sequence. This updated sequence is then modulated to obtain a modulated network access signal, which is fed back to the coordinator. This allows the virtual power plant terminal and coordinator to operate according to their actual deployment relationship. The virtual power plant terminal's approach of "network access first, data collection and reporting later" avoids the coordinator from generating simulated service data, better aligning with the actual narrowband wireless networking logic and reducing the generation of invalid data. Furthermore, the coordinator demodulates and verifies the network access modulated signal, and upon successful verification, feeds back a network access response frame. Through data modulation, wireless transmission, demodulation, and frame parsing, a communication process suitable for narrowband low-rate scenarios is formed. The virtual power plant terminal receives the network access response frame fed back by the coordinator, collects service data based on the network access response frame, and feeds the service data back to the coordinator. This improves the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system, and reduces data loss and resource consumption during data communication.
[0116] In one exemplary embodiment, such as Figure 7 As shown, a virtual power plant terminal networking communication method is provided. This method involves a virtual power plant terminal and a coordinator, as described in the reference. Figure 7 It can be seen that the method specifically includes the following steps:
[0117] In step S701, when the virtual power plant terminal detects a network access operation, it constructs a network access request frame sequence based on the network access operation.
[0118] In step S702, the virtual power plant terminal adds multiple network access association fields to the network access request frame sequence to obtain the updated network access request frame sequence.
[0119] In step S703, the virtual power plant terminal modulates the updated grid access request frame sequence to obtain the modulated grid access signal and feeds it back to the coordinator.
[0120] In step S704, the coordinator receives the grid-connected modulation signal fed back by the virtual power plant terminal and demodulates the grid-connected modulation signal to obtain the request frame sequence data.
[0121] In step S705, the coordinator performs synchronization word detection on the request frame sequence data, identifies the synchronization words in the request frame sequence data, and performs frame boundary identification on the synchronization words in the request frame sequence data to determine the frame start position in the request frame sequence data.
[0122] In step S706, the coordinator obtains the payload length corresponding to the request frame sequence data, determines the frame boundary based on the payload length, and performs field parsing on the request frame sequence data according to the starting position, frame boundary, and preset frame structure definition to extract the data content of each field.
[0123] In step S707, the coordinator performs data validation on the data content of each field.
[0124] In step S708, upon successful verification, a valid request frame sequence data is obtained, and the coordinator sends a network access response frame back to the virtual power plant terminal.
[0125] In step S709, the virtual power plant terminal receives the network access response frame fed back by the coordinator, collects service data according to the network access response frame, and feeds the service data back to the coordinator.
[0126] After executing step S707, step S710 is executed. When the verification is successful, the coordinator obtains the pre-configured node time slot mapping table and determines the target time slot that matches the virtual power plant terminal based on the node time slot mapping table and the terminal identifier of the virtual power plant terminal.
[0127] Step S711: The coordinator identifies the time slot status corresponding to the target time slot.
[0128] In step S712, when the time slot is in an idle state, the coordinator uses the target time slot as the initial time slot corresponding to the virtual power plant terminal.
[0129] After executing step S711, execute step S713. If the time slot status is occupied, determine that a time slot conflict has been triggered, set the retransmission flag of the service data, and randomly back off a preset number of time slots.
[0130] Step S714: If the backoff ends, re-request channel occupancy permission, and if the channel occupancy permission request is successful, send service data carrying a retransmission flag.
[0131] In one exemplary embodiment, such as Figure 8 As shown, an overall processing procedure for a virtual power plant terminal networking communication method is provided, referring to... Figure 8 It can be seen that the processing steps of this virtual power plant terminal networking communication method include:
[0132] In step S801, when the virtual power plant terminal starts up and detects the network access operation, it obtains the device information required to construct the network access request frame.
[0133] In step S802, the virtual power plant terminal constructs a network access request frame sequence according to the preset frame structure definition based on the read device information.
[0134] In step S803, the virtual power plant terminal modulates the grid access request frame sequence to obtain the modulated grid access signal, and feeds the modulated grid access signal back to the coordinator through a narrowband communication link.
[0135] In step S804, the coordinator receives the network-connected modulation signal, demodulates and verifies the data of the network-connected modulation signal, and if the verification is successful, allocates an initial time slot to the virtual power plant terminal and registers the virtual power plant terminal as a neighbor in the neighbor table.
[0136] In step S805, if the verification is successful, the coordinator sends a network access response frame to the virtual power plant terminal.
[0137] In step S806, after receiving the network access response frame returned by the coordinator, the virtual power plant terminal enters the network access state and collects service data in the network access state.
[0138] In step S807, the virtual power plant terminal encapsulates the business data into a business data frame and uploads the business data frame to the coordinator.
[0139] In step S808, the coordinator receives the service data frame uploaded by the virtual power plant terminal and sends a data reception response frame back to the virtual power plant terminal.
[0140] In step S809, upon receiving service data, the coordinator updates the neighbor status of the virtual power plant terminal based on the neighbor table according to the service data.
[0141] In the aforementioned virtual power plant terminal networking communication method, when the virtual power plant terminal detects a network access operation, it constructs a network access request frame sequence based on the operation. Multiple network access association fields are added to this sequence to obtain an updated network access request frame sequence. The updated sequence is then modulated to obtain a modulated network access signal, which is fed back to the coordinator. This allows the virtual power plant terminal and coordinator to operate according to their actual deployment relationship. The virtual power plant terminal adopts a "network access first, data collection later" approach, avoiding the coordinator from generating simulated service data, which better aligns with the actual narrowband wireless networking logic and reduces the generation of invalid data. When the coordinator receives a network access request from the virtual power plant terminal via the communication link, it obtains the network access modulation signal based on the request, demodulates it to obtain the request frame sequence data, and through data modulation, wireless transmission, demodulation, and frame parsing, forms a communication process suitable for narrowband low-rate scenarios, reducing data loss and resource consumption during data communication. Furthermore, the coordinator verifies the request frame sequence data and, if the request frame sequence data passes the verification, sends a network access response frame to the virtual power plant terminal. The virtual power plant terminal then collects service data based on the network access response frame and sends the service data back to the coordinator. Upon receiving the service data, the coordinator sends a data reception response frame to the virtual power plant terminal and transmits the service data to the upper-level service system, thereby improving the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system.
[0142] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages in other steps. It is understood that the steps in different embodiments can be freely combined as needed, and all non-contradictory solutions formed by such combinations are within the scope of protection of this application.
[0143] Based on the same inventive concept, this application also provides a virtual power plant terminal networking communication system for implementing the virtual power plant terminal networking communication method described above. The solution provided by this system is similar to the implementation scheme described in the above method; therefore, the specific limitations in one or more virtual power plant terminal networking communication system embodiments provided below can be found in the limitations of the virtual power plant terminal networking communication method described above, and will not be repeated here.
[0144] In one exemplary embodiment, such as Figure 9 As shown, a virtual power plant terminal networking communication system is provided, including a virtual power plant terminal 90 and a coordinator 92. The virtual power plant terminal 90 and the coordinator 92 communicate with each other through a narrowband communication link, wherein:
[0145] The virtual power plant terminal 90 is used to: construct a grid access request frame sequence based on the grid access operation when a grid access operation is detected; add multiple grid access association fields to the grid access request frame sequence to obtain an updated grid access request frame sequence; perform modulation processing on the updated grid access request frame sequence to obtain a modulated grid access signal, and feed the modulated grid access signal back to the coordinator.
[0146] Coordinator 92 is used to: receive network access requests sent by virtual power plant terminals through communication links, obtain network access modulation signals according to network access requests; demodulate network access modulation signals to obtain request frame sequence data, and perform data verification on request frame sequence data; and, if the request frame sequence data passes data verification, send network access response frames back to virtual power plant terminals.
[0147] The virtual power plant terminal 90 is also used to: receive the network access response frame fed back by the coordinator, collect service data according to the network access response frame, and feed the service data back to the coordinator.
[0148] The coordinator 92 is also used to: receive business data fed back from the virtual power plant terminal, receive response frames for data fed back to the virtual power plant terminal, and send the business data to the upper-level business system.
[0149] The virtual power plant terminal networking communication system also includes a host business system 94 that establishes a communication connection with the coordinator 92, used to receive business data uploaded by the coordinator 92.
[0150] In one exemplary embodiment, such as Figure 9As shown, the virtual power plant terminal 90 includes a data acquisition unit 902 and terminal communication software. The terminal communication software specifically includes a first master control scheduling module 904, a first networking protocol module 906, a first frame structure processing module 908, a first modem module 910, and a first narrowband communication interface 912. Similarly, the coordinator 92 includes coordinator communication software, which specifically includes a second master control scheduling module 920, a second networking protocol module 922, a second frame structure processing module 924, a second modem module 926, and a second narrowband communication interface 928.
[0151] Specifically, the data acquisition unit 902 is used to acquire service data, the first master control scheduling module 904 is used to trigger the corresponding communication process, the first networking protocol module 906 is used to generate JOIN_REQ network entry requests, maintain the status of not yet or already in the network, send service data frames according to the allocated time slots, and handle timeouts, backoffs, and retransmissions, the first frame structure processing module 908 is used to add or parse fields such as synchronization words, source address, destination address, frame type, payload length, and cyclic redundancy check, the first modulation and demodulation module 910 is used to perform the conversion between digital data and modulated signals, and the first narrowband communication interface 912 is used to perform the actual transmission and reception of modulated signals.
[0152] Similarly, the second narrowband communication interface 928 is used to implement the actual transmission and reception of modulated signals. The second master control scheduling module 920 is used to implement operations such as continuous detection, reception event processing, demodulation frame invocation, neighbor table update, time slot management, response transmission, and submission of collected data to the upper-level service system. The second networking protocol module 922 is used to maintain the neighbor table, allocate or adjust time slots, generate JOIN-OK network entry response and data reception response frames. The neighbor table and time slot table are status data used by the second networking protocol module 922 in the coordinator. The second frame structure processing module 924 is used to identify the frame start position based on the synchronization word, determine the frame boundary based on the payload length, parse each field and perform cyclic redundancy check to determine whether the frame is legal and complete. The second modulation and demodulation module 926 is used to perform the conversion between digital data and modulated signals.
[0153] In the aforementioned virtual power plant terminal networking communication system, when a virtual power plant terminal detects a network access operation, it constructs a network access request frame sequence based on the operation. Multiple network access association fields are added to this sequence to obtain an updated network access request frame sequence. This updated sequence is then modulated to obtain a modulated network access signal, which is fed back to the coordinator. This allows the virtual power plant terminal and coordinator to operate according to their actual deployment relationship. The virtual power plant terminal adopts a "network access first, data collection later" approach, avoiding the coordinator from generating simulated service data, which better aligns with the actual narrowband wireless networking logic and reduces the generation of invalid data. Specifically, when the coordinator receives a network access request from the virtual power plant terminal via the communication link, it obtains the network access modulation signal based on the request, demodulates it to obtain the request frame sequence data, and through data modulation, wireless transmission, demodulation, and frame parsing, forms a communication process suitable for narrowband, low-rate scenarios, reducing data loss and resource consumption during data communication. Furthermore, the coordinator verifies the request frame sequence data and, if the request frame sequence data passes the verification, sends a network access response frame to the virtual power plant terminal. The virtual power plant terminal then collects service data based on the network access response frame and sends the service data back to the coordinator. Upon receiving the service data, the coordinator sends a data reception response frame to the virtual power plant terminal and transmits the service data to the upper-level service system, thereby improving the communication efficiency between the virtual power plant terminal, the coordinator, and the upper-level service system.
[0154] In an exemplary embodiment, the coordinator is further configured to: perform synchronization word detection on the request frame sequence data to identify synchronization words in the request frame sequence data; perform frame boundary identification on the synchronization words in the request frame sequence data to determine the frame start position in the request frame sequence data; obtain the payload length corresponding to the request frame sequence data and determine the frame boundary based on the payload length; perform field parsing on the request frame sequence data according to the start position, frame boundary, and preset frame structure definition to extract the data content of each field; perform data verification on the data content of each field, and obtain valid request frame sequence data when the verification passes.
[0155] In an exemplary embodiment, the coordinator is further configured to: allocate initial time slots for virtual power plant terminals and register the virtual power plant terminals as neighbors in a neighbor table; upon receiving service data, determine that the terminal status of the virtual power plant terminal is online, and update the neighbor status of the virtual power plant terminal based on the service data according to the neighbor table; determine the time slot occupancy quota corresponding to the service data, and update the initial time slot according to the time slot occupancy quota to obtain the updated time slot quota.
[0156] In an exemplary embodiment, the coordinator is further configured to: obtain a pre-configured node time slot mapping table; determine a target time slot matching the virtual power plant terminal based on the node time slot mapping table and the terminal identifier of the virtual power plant terminal; identify the time slot status corresponding to the target time slot; and, if the time slot status is idle, use the target time slot as the initial time slot corresponding to the virtual power plant terminal.
[0157] In an exemplary embodiment, the coordinator is further configured to: determine if a time slot conflict is triggered when the time slot status is occupied; set the retransmission flag of the service data and randomly back off a preset number of time slots when a time slot conflict is triggered; and re-request channel occupancy permission when the backoff ends, and send the service data carrying the retransmission flag when the channel occupancy permission request is successful.
[0158] Each module in the aforementioned virtual power plant terminal networking communication system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0159] In one exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 10 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operating system and computer programs stored in the non-volatile storage media. The database stores data such as network access requests, network access modulation signals, request frame sequence data, network access response frames, service data, and data reception response frames. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When the computer program is executed by the processor, it implements a virtual power plant terminal networking communication method.
[0160] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 11As shown, the computer device includes a processor, memory, input / output interfaces, a communication interface, a display unit, and an input device. The processor, memory, and input / output interfaces are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interfaces. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The input / output interfaces are used for exchanging information between the processor and external devices. The communication interface is used for wired or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, Near Field Communication (NFC), or other technologies. When the computer program is executed by the processor, it implements a virtual power plant terminal networking communication method. The display unit is used to form a visually visible image and can be a display screen, a projection device, or a virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.
[0161] Those skilled in the art will understand that Figure 10 and Figure 11 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0162] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0163] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, implements the steps in the above method embodiments.
[0164] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0165] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.
[0166] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.
[0167] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as the combination of these technical features does not contradict each other, it should be considered within the scope of this application. The above embodiments only illustrate several implementation methods of this application, and their descriptions are relatively specific and detailed, but they should not be construed as limiting the scope of this application. It should be noted that for those skilled in the art, several modifications and improvements can be made without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A virtual power plant terminal networking communication method, characterized in that, The method includes: Receive network access request sent by virtual power plant terminal through communication link, and obtain network access modulation signal according to the network access request; The network-connected modulated signal is demodulated to obtain the request frame sequence data, and the request frame sequence data is verified. If the request frame sequence data passes the data verification, a network access response frame is fed back to the virtual power plant terminal. The network access response frame is used to instruct the virtual power plant terminal to collect and feed back service data. The system receives service data from the virtual power plant terminal, sends a data reception response frame back to the virtual power plant terminal, and transmits the service data to the upper-level service system.
2. The method according to claim 1, characterized in that, The data verification of the request frame sequence data includes: Synchronization word detection is performed on the request frame sequence data to identify synchronization words in the request frame sequence data; Frame boundary identification is performed on the synchronization word in the requested frame sequence data to determine the frame start position in the requested frame sequence data; Obtain the payload length corresponding to the request frame sequence data, and determine the frame boundary based on the payload length; Based on the starting position, the frame boundary, and the preset frame structure definition, the request frame sequence data is parsed to extract the data content of each field; The data content of each field is validated, and a valid request frame sequence data is obtained when the validation passes.
3. The method according to claim 2, characterized in that, If the requested frame sequence data passes the data verification, the method further includes: Allocate initial time slots to the virtual power plant terminal and register the virtual power plant terminal as a neighbor in the neighbor table; Upon receiving the service data, the system determines that the virtual power plant terminal is in an online state, and updates the neighbor status of the virtual power plant terminal based on the service data according to the neighbor table. Determine the time slot occupancy quota corresponding to the business data, and update the initial time slot according to the time slot occupancy quota to obtain the updated time slot quota.
4. The method according to claim 3, characterized in that, The allocation of initial time slots for the virtual power plant terminal includes: Obtain a pre-configured node time slot mapping table, and determine the target time slot that matches the virtual power plant terminal based on the node time slot mapping table and the terminal identifier of the virtual power plant terminal; Identify the time slot state corresponding to the target time slot; When the time slot is in an idle state, the target time slot is used as the initial time slot corresponding to the virtual power plant terminal.
5. The method according to claim 4, characterized in that, The method further includes: If the time slot is in an occupied state, a time slot conflict is determined to be triggered. In the event of a time slot conflict, the retransmission flag of the service data is set, and a preset number of time slots are randomly backed off. If the backoff ends, the channel occupancy permission is re-requested, and if the channel occupancy permission request is successful, service data carrying the retransmission flag is sent.
6. A virtual power plant terminal networking communication method, characterized in that, The method includes: When a network access operation is detected, a network access request frame sequence is constructed based on the network access operation; Add multiple network access association fields to the network access request frame sequence to obtain an updated network access request frame sequence; The updated network access request frame sequence is modulated to obtain a modulated network access signal, and the modulated network access signal is fed back to the coordinator. The modulated network access signal is used to instruct the coordinator to demodulate and verify the modulated network access signal, and to feed back a network access response frame after successful data verification. The system receives the network access response frame fed back by the coordinator, collects service data based on the network access response frame, and feeds the service data back to the coordinator, so that the coordinator receives the response frame based on the service data and sends the service data to the upper-level service system.
7. A virtual power plant terminal networking communication system, characterized in that, The system includes a virtual power plant terminal and a coordinator, and the virtual power plant terminal and the coordinator communicate via a communication link; wherein: The virtual power plant terminal is configured to: upon detecting a grid access operation, construct a grid access request frame sequence based on the grid access operation; add multiple grid access association fields to the grid access request frame sequence to obtain an updated grid access request frame sequence; perform modulation processing on the updated grid access request frame sequence to obtain a modulated grid access modulation signal, and feed the grid access modulation signal back to the coordinator. The coordinator is configured to: receive a network access request sent by a virtual power plant terminal through a communication link; obtain a network access modulation signal according to the network access request; demodulate the network access modulation signal to obtain request frame sequence data; and perform data verification on the request frame sequence data; and, if the request frame sequence data passes the data verification, send a network access response frame back to the virtual power plant terminal. The virtual power plant terminal is also used to: receive the network access response frame fed back by the coordinator, collect service data according to the network access response frame, and feed the service data back to the coordinator; The coordinator is further configured to: receive service data fed back by the virtual power plant terminal, send a data reception response frame to the virtual power plant terminal, and send the service data to the upper-level service system.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
