Communication method and system for dual-mode reading controller and multi-class dual-mode communication units in multiple scenes
By designing a dual-mode controller as a master node role to communicate with the dual-mode communication unit, and using periodic automatic frequency bias synchronization and frequency lock countdown mechanisms, the problem of the dual-mode controller's frequency bias synchronization in the existing technology is not fine and the communication cannot be achieved by the inability to achieve designated link channel, and stable and efficient dual-mode communication is achieved.
Patent Information
- Application Number
- CN202510685600.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-06-27
- Estimated Expiration
- 2045-05-27
AI Technical Summary
In the prior art, the frequency bias synchronization mechanism of the dual-mode controller is not refined enough to perform link synchronization and communication on a specified link channel and a specified frequency band, and it is not possible to manage the maximum idle time between the dual-mode controller and the slave node module.
A dual-mode scribe controller is designed as a master node role to communicate with the dual-mode communication unit, and communication with the master node module or slave node module is realized through link connection synchronization and service data communication processes. The data link layer periodic automatic frequency bias synchronization mechanism is adopted to support frequency bias synchronization of single-link channels or dual-link channels, and a mechanism combining frequency locking and reset frequency locking countdown is introduced.
It realizes stable communication between the dual-mode controller and multi-class dual-mode communication unit in multiple scenarios, improves the precision and stability of frequency bias synchronization, and avoids long-term impact on the frequency lock state of the original communication network.
Smart Images

Figure CN120224050A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of dual-mode communication applications in smart grids, and specifically relates to a method for a dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios. Background Art
[0002] With the full promotion and bidding of dual-mode communication modules, dual-mode communication modules have gradually started to be supplied and applied to low-voltage power consumption information collection stations. The functional detection of these scenarios, such as the production line of dual-mode communication modules, the arrival inspection pipeline of dual-mode communication modules of the State Grid Electric Power Research Institute, and the site of low-voltage power consumption information collection stations, all rely on dual-mode meter reading controllers.
[0003] Before the formal promotion of dual-mode communication technology, the meter reading controllers used in low-voltage power consumption information collection stations or the production lines of each module manufacturer were all broadband power line carrier (HPLC) meter reading controllers, hereinafter simply referred to as HPLC meter reading controllers. The HPLC meter reading controller can only diagnose and read the broadband power line carrier slave node module. If it is adapted to communicate with the dual-mode communication module, there are communication problems in the following three major scenarios: (1) The HPLC meter reading controller cannot perform carrier communication with the dual-mode master node module (CCO); (2) The HPLC meter reading controller cannot perform wireless communication with the dual-mode master node module (CCO); (3) The HPLC meter reading controller cannot perform wireless communication with the dual-mode slave node module (STA).
[0004] The communication problems in the above three major scenarios are also the main reasons for developing a dual-mode meter reading controller, and more comprehensive requirements are put forward for the functions of the dual-mode meter reading controller, that is: (a) It is required that the dual-mode meter reading controller can perform carrier communication with the dual-mode master node module (CCO); (b) It is required that the dual-mode meter reading controller can perform wireless communication with the dual-mode master node module (CCO); (c) It is required that the dual-mode meter reading controller can perform carrier communication with the dual-mode slave node module (STA); (d) It is required that the dual-mode meter reading controller can perform wireless communication with the dual-mode slave node module (STA).
[0005] The communication mechanism scheme of the dual-mode meter reading controller in the prior art has at least the following disadvantages: (1) The frequency offset value synchronized by the frequency offset synchronization mechanism is not fine enough, and there may be a situation where the communication success rate still does not meet the expectation after frequency offset synchronization; (2) The frequency offset synchronization mechanism is not perfect. Instead of adopting a periodic frequency offset synchronization mechanism, only a frequency offset synchronization is performed before the initial communication. There may be a situation where after communicating for a period of time, the frequency offset dynamically changes and is not synchronized again in time, affecting the stability of subsequent communication; (3) It fails to achieve the functions of link synchronization and communication on the specified link channel and specified frequency band; (4) It fails to manage the maximum idle duration of communication between the dual-mode copy controller and the slave node module, resulting in the slave node module in the frequency-locked state always being in the frequency-locked control state, thus affecting the original communication network for a long time. Summary of the Invention
[0006] To solve the deficiencies in the prior art, the present invention provides a method for a dual-mode copy controller to communicate with multiple types of dual-mode communication units in multiple scenarios, which can solve the technical problems that the frequency offset synchronization mechanism of the dual-mode copy controller in the prior art is not fine and perfect enough, and it fails to achieve the functions of link synchronization and communication on the specified link channel and specified frequency band.
[0007] The present invention adopts the following technical solutions.
[0008] A method for a dual-mode copy controller to communicate with multiple types of dual-mode communication units in multiple scenarios includes the following steps: Step 1, design the dual-mode copy controller as a class master node role to communicate with the dual-mode communication unit, and the dual-mode communication unit includes a master node module and a slave node module; Step 2, perform link connection synchronization between the dual-mode copy controller and the dual-mode communication unit, so that the dual-mode copy controller and the node to be measured establish a connection on the specified link channel and frequency point; Step 3, respectively construct the processes for the dual-mode copy controller to perform service communication with the master node module or the slave node module, and realize the communication between the dual-mode copy controller and the dual-mode communication unit based on the processes.
[0009] Preferably, the design of the dual-mode copy controller as a class master node role to communicate with the dual-mode communication unit specifically includes: The hardware part of the dual-mode copy controller module uses the slave node module as the hardware of the dual-mode copy controller module, the software part of the dual-mode copy controller module uses the master node module program, and the inter-network coordination mechanism of the dual-mode copy controller is turned off.
[0010] Preferably, the performance of link connection synchronization between the dual-mode copy controller and the dual-mode communication unit, so that the dual-mode copy controller and the node to be measured establish a connection on the specified link channel and frequency point, specifically includes: Step 2-1, configure the working communication parameters for the dual-mode copy controller according to the link channel scenario; Step 2-2, construct a periodic automatic frequency offset synchronization mechanism at the data link layer to achieve frequency offset synchronization between the dual-mode copy controller and the dual-mode communication unit, and support frequency offset synchronization of a single link channel or a dual link channel; Step 2-3, when the dual-mode copy controller communicates with the dual-mode slave node module, establish a mechanism that combines the interaction between the dual-mode copy controller and the dual-mode slave node module, i.e., frequency locking and resetting the frequency lock countdown.
[0011] Preferably, configuring working communication parameters for the dual-mode copying controller according to the link channel scenario specifically includes: Selecting a connection link channel, a copying controller connection mode, a broadband carrier frequency band, a wireless link Option mode, a wireless link channel number, and a connection target node address through a host computer, and sending the above parameters to the dual-mode copying controller to configure its communication working parameters.
[0012] Preferably, achieving frequency offset synchronization between the dual-mode copying controller and the dual-mode communication unit based on periodic automatic frequency offset synchronization at the data link layer, and supporting frequency offset synchronization for a single link channel or a dual link channel, specifically including: According to the link connection method between the dual-mode copying controller and the dual-mode communication unit, respectively construct corresponding periodic automatic frequency offset synchronization mechanisms for achieving frequency offset synchronization between the dual-mode copying controller and the dual-mode communication unit; The link connection methods between the dual-mode copying controller and the dual-mode communication unit include: HPLC link connection method, HRF link connection method, HPLC and HRF link connection method: For the HPLC link connection method, on the set broadband carrier frequency band, construct a periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the copying controller and the dual-mode communication unit; For the HRF link connection method, on the set wireless frequency point, construct a periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the copying controller and the dual-mode communication unit; For the HPLC and HRF link connection method, on the set broadband carrier frequency band and wireless frequency point, respectively construct periodic automatic frequency offset synchronization mechanisms to achieve frequency offset synchronization between the copying controller and the dual-mode communication unit.
[0013] Preferably, for the HPLC link connection method, on the set broadband carrier frequency band, construct a periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the copying controller and the dual-mode communication unit, specifically including: On the set broadband carrier frequency band, the dual-mode copying controller sends a custom frequency offset synchronization message through the HPLC link channel with a period of 1 second. The initial frequency offset in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is set to 1 second; If the dual-mode copying controller does not receive a frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value remains unchanged when re-sending the frequency offset synchronization message until it stops re-sending the message after re-sending 2 times and still not receiving the frequency offset synchronization return code message. Instead, the frequency offset of the copying controller itself is set to ±n*10 ppm in sequence and then the frequency offset synchronization message is sent, where n is the order and the value range of n is 0 to 15; If the dual-mode communication unit receives the frequency offset synchronization message, it parses and sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message; When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, it indicates that the currently set frequency offset value of the dual-mode meter reading controller is reasonable. When sending the frequency offset synchronization message in the next 1-second cycle, both the frequency offset value set by the dual-mode meter reading controller itself and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
[0014] Preferably, for the HRF link connection method, a periodic automatic frequency offset synchronization mechanism is constructed at the set wireless frequency point to achieve frequency offset synchronization between the meter reading controller and the dual-mode communication unit, specifically including: When the HRF link connection method is selected, at the set wireless frequency point, the dual-mode meter reading controller sends a custom frequency offset synchronization message through the HRF link channel with a period of 1 second. The initial frequency offset in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is 1 second; If the dual-mode meter reading controller does not receive the frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value when re-sending the frequency offset synchronization message remains unchanged until it stops re-sending the message after re-sending 2 times and still not receiving the frequency offset synchronization return code message. Instead, the frequency offset of the meter reading controller is set at ±n*10 ppm in sequence, and then the frequency offset synchronization message is sent, where n is the order and the value range of n is 0 to 15; If the dual-mode communication unit receives the frequency offset synchronization message, after parsing, it sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message; When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, it indicates that the currently set frequency offset value of the dual-mode meter reading controller is appropriate. When sending the frequency offset synchronization message in the next 1-second cycle, both the frequency offset value set by the dual-mode meter reading controller itself and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
[0015] Preferably, when the dual-mode meter reading controller communicates with the dual-mode slave node module, a mechanism combining frequency locking and resetting the frequency locking countdown for the interaction between the dual-mode meter reading controller and the dual-mode slave node module is established, specifically including: Step 2-3-1, constructing a mechanism combining frequency locking and resetting the frequency locking countdown for each service message interaction between the dual-mode meter reading controller - slave node module; Step 2-3-2, after the slave node module is frequency locked by the dual-mode meter reading controller, an independent control and independent management mechanism for the frequency locking countdown is adopted for the frequency locking functions of the broadband power line carrier and wireless two link channels.
[0016] Preferably, the specific content of the step 2-3-1 includes: Step 2-3-1-1: After receiving a service message sent by the meter reading controller from the node module each time, if it determines that the service message is a qualified meter reading controller - slave node diagnostic message, it performs corresponding reply processing, locks the frequency of the link channel corresponding to the received message according to the current frequency band, and resets the countdown of the frequency locking time to the initial value (120 seconds). Step 2-3-1-2: If, after a certain working link channel of the slave node module is frequency-locked, no qualified service message is received on this link channel before the countdown of the frequency locking reaches 0, the slave node exits the frequency-locked state on this link channel when the countdown of the frequency locking reaches 0.
[0017] Preferably, the specific steps of Step 2-3-2 include: Step 2-3-2-1, supporting the dual-mode slave node to lock only the frequency band of the broadband power line carrier channel or only the frequency point of the wireless channel separately, so as to realize the function of independent frequency locking control for the two link channels and meet the requirements of independence testing for different link channels on the production line; Step 2-3-2-2, using two independent variables to manage the countdown of frequency locking for the broadband power line carrier channel and the wireless two link channels respectively, so as to realize the asynchronous time-sharing management of the countdown of frequency locking for the broadband power line carrier channel and the wireless channel by the dual-mode slave node.
[0018] Preferably, in the said Step 3, the service communication process between the dual-mode meter reading controller and the master node module specifically includes: Step 3-1, the dual-mode meter reading controller supports parsing the meter reading controller - master node diagnostic message of the Q / GDW 376.2 protocol type sent by the upper computer, and packages this service message in a newly defined meter reading controller application protocol message for sending down, so as to realize the sending down of the meter reading controller - master node diagnostic message; Step 3-2, the dual-mode meter reading controller supports parsing the application layer protocol message of the newly defined Q / GDW 376.2 protocol type for the return code message received by the application layer. When it determines that the inner packet message is a Q / GDW 376.2 protocol type message when receiving the return code at the application layer, it strips the Q / GDW 376.2 protocol type message and forwards it to the upper computer for parsing and processing through the serial port, so as to realize the processing and forwarding of the meter reading controller - master node diagnostic return code.
[0019] Preferably, in the said Step 3, the service communication process between the dual-mode meter reading controller and the slave node module specifically includes: Step 3-1, the dual-mode meter reading controller supports parsing the meter reading controller - slave node diagnostic message of the DL / T645-2007 or DL / T698.45 protocol sent by the upper computer, and packages this service message in an application layer meter reading protocol message for sending down, so as to realize the sending down of the meter reading controller - slave node diagnostic message; Step 3-2, when the application layer of the dual-mode meter reading and control device receives the return code message, it supports parsing the meter reading protocol messages at the application layer. When the application layer receives the return code and determines that the inner packet message is a DL / T645-2007 or DL / T698.45 protocol type message and the destination TEI is the TEI of the meter reading and control device, the DL / T645-2007 or DL / T698.45 protocol type message is stripped and forwarded to the upper computer for parsing and processing through the serial port, so as to realize the processing and forwarding of the diagnostic return code of the meter reading and control device - slave node.
[0020] The present invention also proposes a communication system for a dual-mode meter reading and control device and multiple types of dual-mode communication units in multiple scenarios, which is used to implement the communication method between the dual-mode meter reading and control device and multiple types of dual-mode communication units in multiple scenarios, including: a dual-mode meter reading and control device, a dual-mode communication unit, an upper computer, a link connection synchronization unit, and a service communication unit; Among them, the upper computer is used to send or receive the message data sent by the dual-mode meter reading and control device; The dual-mode meter reading and control device synchronizes the link connection with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode meter reading and control device and the node to be measured establish a connection on the specified link channel and frequency point; The service communication unit is used to construct the business communication process between the dual-mode meter reading and control device and the master node module or the slave node module, so as to realize the communication between the dual-mode meter reading and control device and the dual-mode communication unit.
[0021] The present invention also proposes a terminal, including a processor and a storage medium; The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the communication method between the dual-mode meter reading and control device and multiple types of dual-mode communication units in multiple scenarios.
[0022] The present invention also proposes a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it realizes the steps of the communication method between the dual-mode meter reading and control device and multiple types of dual-mode communication units in multiple scenarios.
[0023] The beneficial effects of the present invention are as follows. Compared with the prior art, the present invention has at least the following beneficial effects: 1. The present invention proposes a mechanism to define the dual-mode meter reading and control device as a class master node role for development to achieve compatibility with the dual-mode communication of the two major types of nodes, namely the master node and the slave node. Hardware-wise, the dual-mode slave node module is used as the dual-mode meter reading and control device module. Software-wise, the dual-mode meter reading and control device module uses the master node program and turns off the network coordination mechanism and wireless channel coordination mechanism of the conventional master node. In this way, it not only cleverly solves the problem that the meter reading and control device with a class slave node role in the past could not communicate with the master node module, but also is compatible with the function of communicating between the meter reading and control device and the slave node module, greatly reducing the development cost, R & D complexity, and R & D workload; 2. The present invention proposes to design the interaction between the dual-mode meter reading controller and the dual-mode communication unit into two major processes: link connection synchronization and service data communication. The link connection synchronization process provides a guarantee of a stable network for the service data communication process. At the same time, the management of the link connection synchronization process and the two major processes of service data communication are independent of each other, greatly ensuring the stability of communication and the robustness of the system. 3. The present invention proposes a mechanism for selectively configuring different working communication parameters of the meter reading controller to prepare for connecting and communicating with the target node through different link channel scenarios, which greatly meets the user's need to test the meter reading controller on the link channel and communication frequency band frequency points they want to test, and provides diverse choices for the diversification of product testing and on-site maintenance. 4. The present invention proposes to introduce the data link layer periodic automatic frequency offset synchronization technology to achieve the frequency offset synchronization between the dual-mode meter reading controller and the dual-mode communication unit, supporting the frequency offset synchronization mechanism for single-link channels or dual-link channels. It innovatively solves the problem of stable link connection synchronization for different link channels, solves the problem that the previous old version of the meter reading controller could not perform wireless meter reading, and solves the need for dual-link or single-link on-demand selection communication, providing great convenience for the single-link channel test of the production line before leaving the factory. 5. The present invention proposes a mechanism that combines frequency locking and resetting the frequency locking countdown for each service message interaction between the meter reading controller and the slave node, which not only ensures the stability of the communication between the meter reading controller and the slave node, but also ensures the independence of the slave node from being frequency locked in the idle state without communication with the meter reading controller, greatly reducing the impact on the original communication of the slave node after the meter reading controller is connected to the environment. 6. The present invention proposes a mechanism for independently controlling and independently managing the frequency locking countdown for the frequency locking functions of the broadband power line carrier and wireless two link channels, which meets the separate diagnostic test requirements of the meter reading controller for different channels of the dual-mode meter reading controller. The frequency locking of the two channels of the slave node is independently managed and controlled, greatly reducing the coupling of the communication control of different links of the slave node. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 is a flowchart of the communication method between the dual-mode meter reading controller and multiple types of dual-mode communication units in multiple scenarios of the present invention; Figure 2 is a block diagram of the communication process between the dual-mode meter reading controller and the dual-mode master node module in multiple scenarios of the present invention; Figure 3 is a block diagram of the communication process between the dual-mode meter reading controller and the dual-mode slave node module in multiple scenarios of the present invention; Figure 4 is a structural diagram of the communication system between the dual-mode meter reading controller and multiple types of dual-mode communication units in multiple scenarios of the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0025] To make the objectives, technical solutions, and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. The embodiments described in this application are only a part of the embodiments of the present invention, rather than all embodiments. Based on the spirit of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present invention.
[0026] As Figure 1 shown, the present invention proposes a method for a dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios, which is used for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units such as the master node module and the slave node module (slave node STA, slave node collector) in multiple scenarios of broadband power line carrier link communication and wireless link communication. The method includes the following steps: Step 1, design the dual-mode meter reading controller as a master node-like role for development to achieve the function of compatible dual-mode communication with the two major types of nodes, namely the master node and the slave node; Specifically, use the dual-mode slave node module as the dual-mode meter reading controller module in terms of hardware, and use the master node module program for the dual-mode meter reading controller module in terms of software.
[0027] In terms of the software technology mechanism, turn off the inter-network coordination mechanism of the dual-mode meter reading controller to avoid bandwidth coordination and wireless channel coordination on the power line carrier channel between the dual-mode meter reading controller and the master node module to be tested, resulting in the inability to communicate on the same beacon time slot or wireless channel.
[0028] In this way, the dual-mode meter reading controller can meet the communication conditions with the two major types of nodes, namely the master node and the slave node, on the power line carrier or wireless channel at the data link layer.
[0029] The dual-mode communication unit includes a dual-mode master node module and a dual-mode slave node module.
[0030] Step 2, synchronize the link connection between the dual-mode meter reading controller and the dual-mode communication unit to establish a connection between the dual-mode meter reading controller and the node to be tested on the specified link channel and frequency point; Specifically, the link connection synchronization process specifically includes the configuration of working parameters and the periodic frequency offset synchronization process, as follows: Step 2-1, configure the working communication parameters for the dual-mode meter reading controller according to the link channel scenario; It is possible to select different working communication parameters for the meter reading controller to prepare for connecting and communicating with the target node through different link channel scenarios; Configuring the working communication parameters for the dual-mode meter reading controller according to the link channel connection scenario includes: Select the connection link channel, the connection mode of the copying controller, the broadband carrier frequency band, the Option mode of the wireless link, the wireless link channel number, and the address of the connection target node through the host computer interface, and send these parameters to the dual-mode copying controller to configure its different working parameters, so as to prepare for connecting and communicating with the target node through different link channel connection scenarios. The link channel connection scenario refers to the link connection method between the dual-mode copying controller and the dual-mode communication unit.
[0031] Step 2-2: Based on the periodic automatic frequency offset synchronization of the data link layer, achieve the frequency offset synchronization between the dual-mode copying controller and the dual-mode communication unit, and support the frequency offset synchronization of single-link channel or dual-link channel; According to the link connection method between the dual-mode copying controller and the dual-mode communication unit, different periodic automatic frequency offset synchronization methods are respectively adopted to achieve the frequency offset synchronization between the dual-mode copying controller and the dual-mode communication unit. The link connection methods between the dual-mode copying controller and the dual-mode communication unit include: HPLC link connection method, HRF link connection method, HPLC+HRF link connection method. Specifically as follows: When the selected link connection method is the HPLC link connection method, on the set broadband carrier frequency band, achieve the frequency offset synchronization between the dual-mode copying controller and the dual-mode communication unit through periodic automatic frequency offset synchronization: On the set broadband carrier frequency band, the dual-mode copying controller sends a custom frequency offset synchronization message through the HPLC link channel with a period of 1 second. The initial frequency offset in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is set to 1 second.
[0032] If the dual-mode copying controller does not receive the frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value remains unchanged when re-sending the frequency offset synchronization message until it stops re-sending the message after re-sending 2 times and still not receiving the frequency offset synchronization return code message. Instead, the frequency offset of the copying controller itself is set in turn with ±n*10 ppm frequency offset (n is the order, and the value range is 0~15), and then the frequency offset synchronization message is sent.
[0033] If the dual-mode communication unit receives the frequency offset synchronization message, it parses and sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message.
[0034] When the dual-mode copying controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, it means that the current frequency offset value set by the dual-mode copying controller itself is reasonable. When sending the frequency offset synchronization message in the next 1-second cycle, the frequency offset value set by the dual-mode copying controller itself and the frequency offset value filled in the frequency offset synchronization message are both consistent with the current frequency offset value.
[0035] When the selected link connection method is the HRF link connection method, achieve the frequency offset synchronization between the copying controller and the dual-mode communication unit through periodic automatic frequency offset synchronization on the setting: Further, when the HRF link connection mode is selected, on the set wireless frequency point, the dual-mode transceiver sends a custom frequency offset synchronization message through the HRF link channel at a period of 1 second. The initial frequency offset in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is 1 second.
[0036] If the dual-mode transceiver does not receive the frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value remains unchanged when re-sending the frequency offset synchronization message. Stop re-sending the message until the message has been re-sent 2 times without receiving the frequency offset synchronization return code message. Instead, set the frequency offset of the transceiver itself in turn with ±n*10 ppm frequency offset (n is the order, and the value range of n is 0 to 15), and then send the frequency offset synchronization message.
[0037] If the dual-mode communication unit receives the frequency offset synchronization message, after parsing, it sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message.
[0038] If the dual-mode transceiver receives the frequency offset synchronization return code replied by the dual-mode communication unit, it indicates that the currently set frequency offset value of the dual-mode transceiver itself is appropriate. When sending the frequency offset synchronization message in the next 1-second cycle, both the frequency offset value set by the dual-mode transceiver itself and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
[0039] Further, when the HPLC+HRF link connection mode is selected, on the set broadband carrier frequency band and wireless frequency point, a periodic automatic frequency offset synchronization mechanism is respectively constructed to achieve frequency offset synchronization between the transceiver and the dual-mode communication unit, specifically including: When the HPLC+HRF link connection mode is used, on the set wireless frequency point and broadband carrier frequency band respectively, the dual-mode transceiver sends a custom frequency offset synchronization message through the HPLC and HRF link channels at a period of 1 second. The initial frequency offset in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is 1 second; If the dual-mode transceiver does not receive the frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value remains unchanged when re-sending the frequency offset synchronization message. Stop re-sending the message until the message has been re-sent 2 times without receiving the frequency offset synchronization return code message. Instead, set the frequency offset of the transceiver itself in turn with ±n*10 ppm frequency offset, where n is the order and the value range of n is 0 to 15, and then send the frequency offset synchronization message; If the dual-mode communication unit receives the frequency offset synchronization message, after parsing, it sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message; If the dual-mode data collector receives the frequency offset synchronization return code replied by the dual-mode communication unit, it indicates that the currently set frequency offset value of the dual-mode data collector is appropriate. When sending the frequency offset synchronization message in the next 1-second cycle, both the frequency offset value set by the dual-mode data collector itself and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
[0040] Furthermore, it supports frequency offset synchronization for single-link channels or dual-link channels, specifically including: 1) The custom frequency offset synchronization message respectively contains carrier frequency offset and wireless frequency offset parameters to inform the current data collector to set its own frequency offset parameters; 2) When only performing frequency offset synchronization for a single-link channel, the frequency offset parameters of the other link channel are default filled with 0; 3) When selecting dual-link channel frequency offset synchronization, as long as the frequency offset synchronization of one link channel is successful, it is considered that the frequency offset synchronization is successful.
[0041] 4) When selecting dual-link channel frequency offset synchronization, even if the frequency offset synchronization of only one link channel is successful, the data collector will still continuously perform the action of sending synchronization messages with frequency offset switching on the other link channel.
[0042] Step 2-3, when the dual-mode data collector communicates with the dual-mode slave node module, establish a mechanism that combines the interaction between the dual-mode data collector and the dual-mode slave node module, namely frequency locking and resetting the frequency locking countdown; Step 2-3-1, construct a mechanism that combines frequency locking and resetting the frequency locking countdown for each service message interaction between the data collector and the slave node module; Step 2-3-1-1: After the slave node module receives the service message sent by the data collector each time, if it determines that the service message is a qualified data collector-slave node diagnostic message, it will perform corresponding reply processing and lock the frequency of the link channel corresponding to the received message according to the current frequency band, and reset the frequency locking countdown to the initial value (120 seconds); Step 2-3-1-2: If a certain working link channel of the slave node module is frequency locked and no qualified service message is received on this link channel before the frequency locking countdown reaches 0, the slave node will exit the frequency locking state on this link channel when the frequency locking countdown reaches 0.
[0043] Step 2-3-2, after the slave node module is synchronously frequency locked by the dual-mode data collector, adopt an independent control and independent management mechanism for the frequency locking countdown for the frequency locking functions of the broadband power line carrier and wireless two link channels; Among them, Step 2-3-2 specifically includes: Step 2-3-2-1, support the dual-mode slave node to only lock the frequency band of the broadband power line carrier channel or only lock the frequency point of the wireless channel, so as to realize the function of independent frequency locking control for the two link channels and meet the requirements of independent testing for different link channels in the production line.
[0044] Step 2-3-2-2: Use two independent variables to manage the frequency-locking countdown for the broadband power line carrier channel and the wireless two-link channels respectively, so as to realize the asynchronous time-sharing management of the frequency-locking countdown for the broadband power line carrier channel and the wireless channel by the dual-mode slave node.
[0045] Step 3: Construct the service communication processes between the dual-mode data collector and the master node module or the slave node module respectively to realize the communication between the dual-mode data collector and the dual-mode communication unit.
[0046] Specifically, the service data communication process is used to realize the communication interaction of specific service data between the dual-mode data collector and the node to be measured, so as to realize the expected service function.
[0047] As Figure 2 shown, when the dual-mode data collector conducts service communication with the master node module, the communication process specifically includes: The dual-mode data collector analyzes the Q / GDW 376.2 protocol type message sent by the upper computer and sends the service message packet in the newly defined application layer protocol message. When the application layer receives the return code and determines that the inner packet message is a Q / GDW 376.2 protocol type message, the Q / GDW 376.2 protocol type message is stripped and forwarded to the upper computer for parsing and processing through the serial port. The specific process is as follows: Step 3-1: The dual-mode data collector supports analyzing the collector-master node diagnostic message of the Q / GDW 376.2 protocol type sent by the upper computer, and sends this service message packet in the newly defined collector application protocol message, so as to realize the sending of the collector-master node diagnostic message; Step 3-2: The dual-mode data collector supports parsing the newly defined application layer protocol message of the Q / GDW 376.2 protocol type for the return code message received by the application layer. When the application layer receives the return code and determines that the inner packet message is a Q / GDW 376.2 protocol type message, the Q / GDW 376.2 protocol type message is stripped and forwarded to the upper computer for parsing and processing through the serial port, so as to realize the processing and forwarding of the collector-master node diagnostic return code.
[0048] As Figure 3 shown, when the dual-mode data collector conducts service communication with the slave node module, the communication process specifically includes: The dual-mode meter reading and control device supports parsing the DL / T 645-2007 or DL / T 698.45 protocol messages sent by the master station and sending the service messages in the application layer meter reading protocol messages. When the application layer receives the return code and determines that the inner packet message is a DL / T 645-2007 or DL / T 698.45 protocol type message, the DL / T 645-2007 or DL / T 698.45 protocol type message is stripped and forwarded to the master station for parsing and processing through the serial port. The specific process is as follows: Step 3-1: The dual-mode meter reading and control device supports parsing the meter reading and control device - slave node diagnostic message of the DL / T 645-2007 or DL / T 698.45 protocol sent by the master station, and sending this service message in the application layer meter reading protocol message to realize the sending of the meter reading and control device - slave node diagnostic message; Step 3-2: When the application layer of the dual-mode meter reading and control device receives the return code message, it supports parsing the application layer meter reading protocol message. When the application layer receives the return code and determines that the inner packet message is a DL / T 645-2007 or DL / T 698.45 protocol type message and the destination TEI is the meter reading and control device TEI, the DL / T 645-2007 or DL / T 698.45 protocol type message is stripped and forwarded to the master station for parsing and processing through the serial port to realize the processing and forwarding of the meter reading and control device - slave node diagnostic return code.
[0049] Furthermore, the present invention includes two major categories of instances: the communication between the dual-mode meter reading and control device and the dual-mode master node module (CCO) in multiple scenarios, and the communication between the dual-mode meter reading and control device and the dual-mode slave node module (STA) in multiple scenarios, as specifically shown in the appendix Figure 1 as follows. The implementation processes of these two major categories of instances corresponding to the present invention are introduced separately in sequence below.
[0050] I. Communication between the dual-mode meter reading and control device and the dual-mode master node module (CCO) in multiple scenarios The communication system between the dual-mode meter reading and control device and the dual-mode master node module (CCO) mainly includes the master station software, the dual-mode meter reading and control device, the dual-mode master node module, and the dual-mode slave node module (optional). The communication between the dual-mode meter reading and control device and the dual-mode master node module (CCO) in multiple scenarios is specifically divided into two major processes: link connection synchronization and service data communication, as detailed in the appendix Figure 2 as follows.
[0051] The following combines the appendix Figure 2 to detail the execution steps of link connection synchronization: Step 1: Select information such as the meter reading and control device connection link channel, working frequency band, target node type, and target node address on the master station interface, and click the send command. Then the master station group customizes the message with the above parameters and sends it to the meter reading and control device through the serial port. The message uses the 376.2 format protocol to customize and expand AFN = 05H, Fn = 24, and the data unit format is as shown in Table 1 below.
[0052] Table 1: Data Unit Format for Setting the Working Frequency Band of the Reading and Control Device
[0053] Connection Link Channel: 0: The reading and control device is connected to the equipment via the HPLC link; 1: The reading and control device is connected to the equipment via the HRF link; 2: The reading and control device is connected to the equipment via the HPLC+HRF dual-mode link for communication.
[0054] Connection Mode of the Reading and Control Device: 0: The reading and control device will establish a connection with the CCO; 1: The reading and control device will establish a connection with the STA; Others: Reserved Broadband Carrier Frequency Band: 0: 1.953~11.96 MHz; 1: 2.441~5.615 MHz; 2: 0.781~2.930 MHz; 3: 1.758~2.930 MHz; 4~255 indicate reserved. Valid only when the connection link is HPLC.
[0055] Wireless Link Option Mode: 1, 2, 3, valid only when the connection link is HRF.
[0056] Wireless Link Channel Number: Configured according to the actual set value, valid only when the connection link is HRF.
[0057] Address of the Target Node to which the Reading and Control Device Connects: The address of the CCO or STA node to which the reading and control device is about to connect, arranged in little endian.
[0058] Step 2: After the reading and control device receives the correct message for setting its own working parameters, it resets its connection link channel, connection mode, broadband carrier frequency band, wireless Option mode, wireless link channel number, and address of the target node to which it connects according to the parsed result. And a 376.2 standard confirmation frame is assembled and sent back to the host computer.
[0059] Step 3: The reading and control device automatically sends a frequency offset synchronization message at a period of 1 s on the newly set link channel and working frequency band according to the specific content of Mechanism 4. The frequency offset synchronization message carries the address of the destination node and the current frequency offset value of the reading and control device (unit: 10 ppm).
[0060] Step 4: If the dual-mode master node module (CCO) receives the frequency offset synchronization message, after parsing, it sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message.
[0061] Step 5: If the dual-mode reading and control device receives the frequency offset synchronization message return code and the parsing is successful, it saves the current frequency offset synchronization ppm customization. Subsequently, it still sends the frequency offset synchronization message at a period of 1 second, and the frequency offset value takes this stored ppm fixed value until the frequency offset synchronization message is not received three times at a certain moment, and then the next frequency offset ppm value is switched for frequency offset synchronization.
[0062] Note: The frequency offset synchronization message selects the variable region of the beacon frame type in the data link layer for extension. The specific extended frequency offset synchronization protocol frame format is shown in Tables 2 and 3 below: Table 2: Frequency offset synchronization downlink protocol frame format extended in the data link layer
[0063] Table 3: Frequency offset synchronization uplink protocol frame format extended in the data link layer
[0064] Furthermore, still taking the attachment Figure 2 Details of the execution steps of the communication process between the meter reading controller and the CCO service data are as follows: Step 1: The user selects a certain diagnostic service as needed in the upper computer interface for the CCO service. For example, when selecting the service of reading the CCO slave node information, the upper computer reads the CCO slave node information message according to the standard 376.2 protocol specification. When clicking to send, the upper computer sends this message to the meter reading controller through the serial port.
[0065] Step 2: After receiving the diagnostic message of the standard 376.2 protocol specification, the dual-mode meter reading controller parses the meter reading controller - master node diagnostic message of the Q / GDW 376.2 protocol specification type sent by the upper computer, and packages this service message in a newly defined meter reading controller application layer protocol message for downstream transmission, thereby realizing the downstream transmission of the meter reading controller - master node diagnostic message; Step 3: After receiving the meter reading controller - master node diagnostic message, the application layer of the dual-mode master node module parses it and decides whether to continue forwarding it to the STA. Finally, it forms a return code frame according to the 376.2 protocol format, packages it in the meter reading controller application layer protocol message, and replies through the corresponding link channel.
[0066] Step 4: The dual-mode meter reading controller supports parsing the application layer protocol message of the newly defined Q / GDW 376.2 protocol specification type for the return code message received by the application layer. When it is determined that the inner packet message is a message of the Q / GDW 376.2 protocol specification type when the application layer receives the return code, the Q / GDW 376.2 protocol specification type message is stripped and forwarded to the upper computer for parsing and processing through the serial port, thereby realizing the processing and forwarding of the meter reading controller - master node diagnostic return code.
[0067] II. Communication between the dual-mode meter reading controller and the dual-mode slave node module (STA) in multiple scenarios The communication system between the dual-mode meter reading controller and the dual-mode slave node module (STA) mainly includes the upper computer software, the dual-mode meter reading controller, the dual-mode slave node module, and the electric energy meter. The communication between the dual-mode meter reading controller and the dual-mode slave node module (STA) in multiple scenarios is specifically divided into three major processes: the link connection synchronization process, the frequency-locked slave node process, and the service data communication. Details are as in the attachment Figure 3As shown in the figure. The process of the transceiver controller synchronizing the link connection to the slave node is extremely similar to that of the master node, which will not be elaborated here. Only the process of the transceiver controller locking the frequency of the slave node and the process of business data communication will be introduced below.
[0068] The following combines the attached Figure 3 Details of the execution steps of the slave node frequency locking process are as follows: Step 1: After the transceiver controller and the STA complete the link connection synchronization process, when the user clicks the frequency locking button on the upper computer interface, the upper computer automatically selects the target slave node address and link connection channel in the current link connection synchronization process of the transceiver controller, groups a message to query the working frequency band according to the custom DL / T645-2007 protocol, and sends a message to query the corresponding working frequency band to the transceiver controller via the serial port, which is used as the frequency locking command message.
[0069] If the link connection channel is broadband power line carrier, group a message to query the broadband power line carrier band.
[0070] If the link connection channel is micro-power wireless, group a message to query the wireless Option and channel number.
[0071] The extended custom DL / T645-2007 protocol data format for querying the working frequency band of the slave node is as shown in Table 4 below: Table 4: Extended custom DL / T645-2007 protocol data format for querying the working frequency band (frequency locking) of the slave node
[0072] Step 2: After the transceiver controller receives the frequency locking command message, it wraps the message in the application layer concentrator active meter reading message and sends it down through the corresponding working link channel (carrier / wireless).
[0073] Step 3: When a certain link channel of the dual-mode slave node receives the application layer message and parses it into a frequency locking command message, it first re-locks the link channel to the current working frequency band and resets the 120-second countdown, and then groups a reply message for the current working frequency band 645-07 and wraps it in the application layer concentrator active meter reading format uplink message and replies through the corresponding working link channel.
[0074] Step 4: When a certain link channel of the dual-mode slave node receives the application layer message and parses it into a frequency locking command message, it first re-locks the link channel to the current working frequency band and resets the 120-second countdown, and then groups a reply message for the current working frequency band 645-07 and wraps it in the application layer concentrator active meter reading format uplink message and replies through the corresponding working link channel.
[0075] Step 5: When the dual-mode transceiver controller receives the uplink message in the application layer concentrator active meter reading format replied by the slave node, it strips the message encapsulated in this application layer and replies to the upper computer software through the serial port.
[0076] Step 6: If the host computer software receives the query working frequency band return code message within 1.5 seconds and the parsing format is normal, it will display "Frequency locking STA bandx successful / Frequency locking STA channel id=x option=x successful", otherwise it will display "Frequency locking failed".
[0077] Further, in combination with the attached Figure 3 Describe in detail the execution steps of the business data communication process between the meter reading controller - slave node: Step 1: The user selects a certain diagnostic service as needed in the slave node (STA) service diagnosis on the host computer interface. For example, if the user selects to read the total forward active electric energy of the slave node, the host computer will group the corresponding message for reading the total forward active electric energy of the slave node according to the protocol selected on the interface (645 - 07 / 698.45). When clicking "Send", the host computer will send this message to the meter reading controller via the serial port (the meter reading timeout is 2 seconds).
[0078] Step 2: After receiving the diagnostic message of the standard 645 - 07 or 698.45 protocol, the dual - mode meter reading controller parses the diagnostic message from the host computer to the slave node and wraps this service message in the concentrator's active meter reading application layer protocol message and sends it down through the current working link channel (carrier / wireless), so as to realize the sending of the diagnostic message from the meter reading controller to the slave node; Step 3: After receiving the diagnostic message from the meter reading controller to the slave node, the dual - mode slave node module application layer first re - locks the frequency of the current communication link channel again and resets the 120 - second countdown. After parsing, it decides whether to continue forwarding downward to the electricity meter. Taking the current reading of the total forward active electric energy as an example, the slave node module needs to send the 645 - 07 or 698.45 protocol meter reading message encapsulated inside to the electricity meter via the STA serial port and wait for its return code.
[0079] Step 4: After receiving the electricity meter return code message by the dual - mode slave node serial port and the format parsing is normal, it is wrapped in the concentrator's active meter reading application layer protocol upward message and sent back through the current working link channel (carrier / wireless).
[0080] Step 5: After receiving the return code message, the dual - mode meter reading controller application layer parses the application layer protocol message, strips the encapsulated meter reading message, and forwards it to the host computer for parsing and processing via the serial port.
[0081] Step 6: If the host computer receives the return code message within 2 seconds of meter reading and performs parsing and processing, for example, parsing the return code of reading the total forward active electric energy, it will parse out the total forward active electric energy value and display it on the interface. Otherwise, if the return code is not received within 2 seconds, it will display "Diagnostic meter reading timeout". Thus, a single - round diagnostic process between the meter reading controller - STA is completed.
[0082] The above implementation examples are only the execution step descriptions of one example each based on the dual-mode meter reading controller - CCO diagnosis and the meter reading controller - STA diagnosis. After actually adopting the method of this invention patent, various rich diagnosis functions for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios can be realized, and no further examples will be given one by one in this article.
[0083] As Figure 4 shown, the present invention also proposes a communication system for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios, which is used to implement the method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios. The system includes: a dual-mode meter reading controller, a dual-mode communication unit, a host computer, a link connection synchronization unit, and a service communication unit; Among them, the host computer is used to send or receive the message data sent by the dual-mode meter reading controller CKQ; The dual-mode communication unit includes a master node module CCO and a slave node module STA; The dual-mode meter reading controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode meter reading controller and the node to be measured establish a connection on the specified link channel and frequency point; The service communication unit is used to construct the service communication process for the dual-mode meter reading controller to communicate with the master node module or the slave node module, and realize the communication between the dual-mode meter reading controller and the dual-mode communication unit.
[0084] The beneficial effect of the present invention is that, compared with the prior art, by constructing a fine and perfect frequency offset synchronization mechanism for the dual-mode meter reading controller, the present invention can realize the functions of link synchronization and communication on the specified link channel and specified frequency band, and at the same time can realize the management of the maximum idle time of communication between the dual-mode meter reading controller and the slave node module, avoiding long-term impact on the original communication network.
[0085] This disclosure may be a system, a method, and / or a computer program product. The computer program product may include a computer-readable storage medium having thereon computer-readable program instructions for causing a processor to implement various aspects of this disclosure.
[0086] A computer-readable storage medium can be a tangible device that can hold and store instructions for use by an instruction execution device. A computer-readable storage medium may be, for example—but not limited to—an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disc (DVD), a memory stick, a floppy disk, a mechanically encoded device such as a punched card or raised structures in grooves having instructions stored thereon, and any suitable combination of the foregoing. The computer-readable storage medium as used herein is not construed as being a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., an optical pulse through an optical fiber cable), or an electrical signal transmitted through a wire.
[0087] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to respective computing / processing devices, or can be downloaded to an external computer or an external storage device through a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network may include a copper transmission cable, an optical fiber transmission, a wireless transmission, a router, a firewall, a switch, a gateway computer, and / or an edge server. A network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in each computing / processing device.
[0088] Computer program instructions for performing the operations of this disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine - related instructions, microcode, firmware instructions, state - setting data, or source code or object code written in any combination of one or more programming languages, including object - oriented programming languages such as Smalltalk, C++, etc., and conventional procedural programming languages such as the "C" language or similar programming languages. The computer - readable program instructions may be executed entirely on the user's computer, partly on the user's computer, as a stand - alone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider). In some embodiments, by using the state information of the computer - readable program instructions to customize an electronic circuit, such as a programmable logic circuit, a field - programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit can execute the computer - readable program instructions to implement various aspects of this disclosure.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that: modifications or equivalent substitutions can still be made to the specific embodiments of the present invention, and any modification or equivalent substitution that does not depart from the spirit and scope of the present invention should be covered by the protection scope of the claims of the present invention.
Claims
1. A method for a dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios, characterized in that, It includes the following steps: Step 1: Design the dual-mode meter reading controller as a quasi-master node role to communicate with the dual-mode communication unit, where the dual-mode communication unit includes a master node module and a slave node module; Step 2: Synchronize the link connection between the dual-mode meter reading controller and the dual-mode communication unit to establish a connection between the dual-mode meter reading controller and the node to be measured on the specified link channel and frequency point; Step 3: Respectively construct the processes for the dual-mode meter reading controller to perform service communication with the master node module or the slave node module, and realize the communication between the dual-mode meter reading controller and the dual-mode communication unit based on the processes.
2. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 1, characterized in that The design of the dual-mode meter reading controller as a quasi-master node role to communicate with the dual-mode communication unit specifically includes: The hardware part of the dual-mode meter reading controller module adopts the slave node module, the software part of the dual-mode meter reading controller module adopts the master node module program, and the inter-network coordination mechanism of the dual-mode meter reading controller is turned off.
3. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 1, characterized in that The synchronization of the link connection between the dual-mode meter reading controller and the dual-mode communication unit to establish a connection between the dual-mode meter reading controller and the node to be measured on the specified link channel and frequency point specifically includes: Step 2-1: Configure the working communication parameters for the dual-mode meter reading controller according to the link channel scenario; Step 2-2: Construct a periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the dual-mode meter reading controller and the dual-mode communication unit, and support frequency offset synchronization for single-link channels or dual-link channels; Step 2-3: When the dual-mode meter reading controller communicates with the slave node module, establish a mechanism that combines frequency locking and resetting the frequency locking countdown for the interaction between the dual-mode meter reading controller and the dual-mode slave node module.
4. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 3, characterized in that The configuration of the working communication parameters for the dual-mode meter reading controller according to the link channel scenario specifically includes: The upper computer issues the parameters of the connection link channel, the meter reading controller connection mode, the broadband carrier frequency band, the wireless link Option mode, the wireless link channel number, and the connection target node address to the dual-mode meter reading controller as the communication working parameters of the dual-mode meter reading controller.
5. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 3, characterized in that The realization of frequency offset synchronization between the dual-mode meter reading controller and the dual-mode communication unit based on periodic automatic frequency offset synchronization and supporting frequency offset synchronization for single-link channels or dual-link channels specifically includes: According to the link connection method between the dual-mode meter reading controller and the dual-mode communication unit, respectively construct the corresponding periodic automatic frequency offset synchronization mechanism for realizing frequency offset synchronization between the dual-mode meter reading controller and the dual-mode communication unit; The link connection methods between the dual-mode meter reading controller and the dual-mode communication unit include: HPLC link connection method, HRF link connection method, HPLC and HRF link connection method; For the HPLC link connection method, on the set broadband carrier frequency band, construct a periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the meter reading controller and the dual-mode communication unit; For the HRF link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed at the set wireless frequency point to achieve frequency offset synchronization between the meter reading controller and the dual-mode communication unit; For the HPLC and HRF link connection modes, periodic automatic frequency offset synchronization mechanisms are respectively constructed at the set broadband carrier frequency band and wireless frequency point to achieve frequency offset synchronization between the meter reading controller and the dual-mode communication unit.
6. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 5, characterized in that For the HPLC link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed at the set broadband carrier frequency band to achieve frequency offset synchronization between the meter reading controller and the dual-mode communication unit, specifically including: At the set broadband carrier frequency band, the dual-mode meter reading controller sends a custom frequency offset synchronization message through the HPLC link channel with a period of 1 second. The initial frequency offset value in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is set to 1 second; If the dual-mode meter reading controller does not receive the frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value remains unchanged when re-sending the frequency offset synchronization message until it stops re-sending the message after re-sending 2 times and still not receiving the frequency offset synchronization return code message. Instead, the frequency offset value of the dual-mode meter reading controller is set successively as ±n*10 ppm, and then the frequency offset synchronization message is sent, where n is the order and the value range of n is 0 to 15; If the dual-mode communication unit receives the frequency offset synchronization message, it parses and sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message; When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, it means that the currently set frequency offset value of the dual-mode meter reading controller is reasonable. When sending the frequency offset synchronization message in the next 1-second cycle, the frequency offset value set by the dual-mode meter reading controller itself and the frequency offset value filled in the frequency offset synchronization message are both the same as the current frequency offset value.
7. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 5, characterized in that For the HRF link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed at the set wireless frequency point to achieve frequency offset synchronization between the meter reading controller and the dual-mode communication unit, specifically including: When the HRF link connection mode is selected, at the set wireless frequency point, the dual-mode meter reading controller sends a custom frequency offset synchronization message through the HRF link channel with a period of 1 second. The initial frequency offset value in the frequency offset synchronization message is set to 0 ppm, and the frequency offset synchronization timeout is 1 second; If the dual-mode meter reading controller does not receive the frequency offset synchronization return code message within 1 second after each sending of the frequency offset synchronization message, the frequency offset value remains unchanged when re-sending the frequency offset synchronization message until it stops re-sending the message after re-sending 2 times and still not receiving the frequency offset synchronization return code message. Instead, the frequency offset of the dual-mode meter reading controller is set successively as ±n*10 ppm, and then the frequency offset synchronization message is sent, where n is the order and the value range of n is 0 to 15; If the dual-mode communication unit receives the frequency offset synchronization message, it parses and sends a frequency offset synchronization return code message, and the frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message; If the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, it indicates that the currently set frequency offset value of the dual-mode meter reading controller itself is appropriate. When sending the frequency offset synchronization message in the next 1-second cycle, both the frequency offset value set by the dual-mode meter reading controller itself and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
8. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 3, characterized in that when the dual-mode meter reading controller communicates with the dual-mode slave node module, a mechanism combining frequency locking and resetting the frequency locking countdown for interaction between the dual-mode meter reading controller and the dual-mode slave node module is established, specifically including: Step 2-3-1, construct a mechanism combining frequency locking and resetting the frequency locking countdown for each service message interaction between the dual-mode meter reading controller and the dual-mode slave node module; Step 2-3-2, after the dual-mode slave node module is synchronously frequency locked by the dual-mode meter reading controller, an independent control and independent management mechanism for the frequency locking countdown is adopted for the frequency locking functions of the broadband power line carrier and wireless two link channels.
9. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 8, characterized in that the specific content of step 2-3-1 includes: Step 2-3-1-1: Each time the slave node module receives a service message sent by the meter reading controller, if it determines that the service message is a qualified meter reading controller - slave node diagnostic message, it performs corresponding reply processing, locks the link channel corresponding to the received message according to the current frequency band, and resets the countdown of the frequency locking time to the initial value, and the initial value is set to 120 seconds; Step 2-3-1-2: If a certain working link channel of the slave node module is frequency locked and no qualified service message is received on this link channel before the frequency locking countdown reaches 0, the slave node exits the frequency locking state on this link channel when the frequency locking countdown reaches 0.
10. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 8, characterized in that the specific content of step 2-3-2 includes: Step 2-3-2-1, support the dual-mode slave node to lock only the frequency band of the broadband power line carrier channel or only the frequency point of the wireless channel separately; Step 2-3-2-2, use two independent variables to manage the frequency locking countdown of the broadband power line carrier channel and the wireless two link channels respectively, so as to realize the asynchronous time-sharing management of the frequency locking countdown of the broadband power line carrier channel and the wireless channel by the dual-mode slave node.
11. The method for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 1, characterized in that in step 3, the service communication process between the dual-mode meter reading controller and the master node module specifically includes: Step 3-1, the dual-mode meter reading controller supports parsing the meter reading controller - master node diagnostic message of the Q / GDW 376.2 protocol type sent by the upper computer, and packages this service message in a newly defined meter reading controller application protocol message for sending down, for sending down the meter reading controller - master node diagnostic message; Step 3-2: The dual-mode data collector supports parsing the response code message received by the application layer for the application layer protocol message of the newly defined Q / GDW 376.2 protocol type. When it is determined that the inner packet message is a Q / GDW 376.2 protocol type message when the application layer receives the response code, the Q / GDW 376.2 protocol type message is stripped and forwarded to the host computer for parsing and processing through the serial port, and the processing and forwarding of the response code for the data collector - master node diagnosis are performed.
12. The method for a dual-mode data collector to communicate with multiple types of dual-mode communication units in multiple scenarios according to claim 1, wherein: In step 3, the business communication process between the dual-mode data collector and the slave node module specifically includes: Step 3-1: The dual-mode data collector supports parsing the data collector - slave node diagnosis message of the DL / T645-2007 or DL / T698.45 protocol sent by the host computer, and packages this service message in the application layer meter reading protocol message for downward transmission, and performs the downward transmission of the data collector - slave node diagnosis message. Step 3-2: When the application layer of the dual-mode data collector receives the response code message, it supports parsing the application layer meter reading protocol message. When it is determined that the inner packet message is a DL / T645-2007 or DL / T698.45 protocol type message and the destination TEI is the data collector TEI when the application layer receives the response code, the DL / T645-2007 or DL / T698.45 protocol type message is stripped and forwarded to the host computer for parsing and processing through the serial port, and the processing and forwarding of the response code for the data collector - slave node diagnosis are performed.
13. A communication system for a dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios, using the method for a dual-mode meter reading controller to communicate with multiple types of dual-mode communication units in multiple scenarios according to any one of claims 1-12, characterized in that, It includes: A dual-mode data collector, a dual-mode communication unit, a host computer, a link connection synchronization unit, and a service communication unit; Among them, the host computer is used to send or receive the message data sent by the dual-mode data collector; The dual-mode data collector performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode data collector and the node to be measured establish a connection on the specified link channel and frequency point; The service communication unit is used to construct the business communication process between the dual-mode data collector and the master node module or the slave node module, and realize the communication between the dual-mode data collector and the dual-mode communication unit.
14. A terminal, including a processor and a storage medium; wherein: The storage medium is used to store instructions; The processor is used to operate according to the instructions to execute the steps of the method according to any one of claims 1-12.
15. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, the steps of the method according to any one of claims 1-12 are implemented.
Citation Information
Patent Citations
Clock frequency offset calibration method and device
CN107947889A
Method compatible with multiple communication access modes of broadband power line carrier meter reading controller
CN111131118A
HPLC module rapid detection device and method based on copying controller
CN111697997A
Communication module remote maintenance method based on HPLC and HRF dual-mode communication mode
CN116743657A
Dual-mode communication network identity authentication method based on HPLC and HRF
CN119696893A