Communication method and system for dual-mode copy controller and multiple types of dual-mode communication units in multiple scenarios
By designing the dual-mode controller as a master node role, using slave node hardware and master node software, combining link connection synchronization and service data communication processes, the frequency bias synchronization and frequency lock management problems of the dual-mode controller and the dual-mode communication unit are solved, and a stable and flexible communication solution is realized, reducing development costs and complexity.
Patent Information
- Application Number
- CN202510685600.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-27
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2045-05-27
AI Technical Summary
In the prior art, the dual-mode controller cannot perform effective carrier and wireless communication with the dual-mode master node module and slave node module. The frequency bias synchronization mechanism is not fine enough to be able to link and synchronize on the specified link channel and frequency band, and fail to manage the frequency lock state of the slave node module, affecting communication stability.
The dual-mode scribe controller is designed as a master node-like role, adopts slave node module hardware and uses master node module programs to turn off the inter-network coordination mechanism, connect synchronization and service data communication processes through links, introduces the data link layer periodic automatic frequency bias synchronization mechanism, supports single-link or dual-link frequency bias synchronization, and adopts the lock frequency and reset lock frequency countdown mechanism to independently manage the lock frequency of broadband power lines and wireless link channels.
It realizes stable communication between dual-mode controller and multi-class communication units, reduces development costs and complexity, ensures the stability and robustness of communication, meets the testing needs of different link channels, reduces the impact on slave node communication, and provides a diverse test choice.
Smart Images

Figure CN120224050B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of dual-mode communication applications in smart grids, and particularly 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 widespread promotion and bidding of dual-mode communication modules, they are gradually becoming available and being used in low-voltage power consumption information collection stations. Functional testing in these scenarios, including on-site inspection of dual-mode communication modules at the State Grid Electric Power Research Institute (EPRI) and on-site at low-voltage power consumption information collection stations, relies on dual-mode communication meters.
[0003] Before the official launch of dual-mode communication technology, the meters used by low-voltage electricity consumption information collection stations or module manufacturers' production lines were all broadband power line carrier (HPLC) meters, hereinafter referred to as HPLC meters. HPLC meters can only diagnose and read broadband power line carrier slave node modules. When used with dual-mode communication modules, communication issues arise in the following three scenarios:
[0004] (1) The HPLC reader cannot communicate with the dual-mode master node module (CCO) through carrier wave communication;
[0005] (2) The HPLC reader cannot communicate wirelessly with the dual-mode master node module (CCO);
[0006] (3) The HPLC reader cannot communicate wirelessly with the dual-mode slave node module (STA).
[0007] The communication issues in the above three scenarios are also the main reason for developing dual-mode meter reading controllers, and put forward more comprehensive requirements for the functions of dual-mode meter reading controllers, namely:
[0008] (a) The dual-mode copy controller is required to be able to communicate with the dual-mode master node module (CCO) through carrier wave communication;
[0009] (b) The dual-mode reader is required to be able to communicate wirelessly with the dual-mode master node module (CCO);
[0010] (c) The dual-mode reader is required to be able to communicate with the dual-mode slave node module (STA) via carrier wave.
[0011] (d) The dual-mode reader is required to be able to communicate wirelessly with the dual-mode slave node module (STA).
[0012] The communication mechanism scheme of the dual-mode copy controller in the prior art has at least the following disadvantages:
[0013] (1) The frequency offset value synchronized by the frequency offset synchronization mechanism is not precise enough. It may happen that after frequency offset synchronization, the communication success rate still does not meet the expected situation.
[0014] (2) The frequency offset synchronization mechanism is not perfect. Instead of adopting a periodic frequency offset synchronization mechanism, the frequency offset synchronization is only performed once before the initial communication. After a period of communication, the frequency offset may change dynamically and the synchronization may not be carried out again in time, affecting the stability of subsequent communications.
[0015] (3) Failure to achieve link synchronization and communication functions on the designated link channel and designated frequency band;
[0016] (4) The management of the maximum idle time of the dual-mode communication controller and the slave node module was not implemented, resulting in the slave node module in the frequency-locked state being in the frequency-locked control state all the time, thus affecting the original communication network for a long time. Summary of the Invention
[0017] To address 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. This method can solve the technical problem in the prior art that the frequency deviation synchronization mechanism of the dual-mode copy controller is not sophisticated and perfect enough, and cannot realize the functions of link synchronization and communication on a specified link channel and a specified frequency band.
[0018] The present invention adopts the following technical solutions.
[0019] 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:
[0020] Step 1: Design the dual-mode copy controller as a master node to communicate with the dual-mode communication unit, which includes a master node module and a slave node module;
[0021] Step 2: synchronize the link connection between the dual-mode copy controller and the dual-mode communication unit, so that the dual-mode copy controller and the node to be tested are connected on the specified link channel and frequency point;
[0022] Step 3: construct a process for the dual-mode meter reading device to perform business communication with the master node module or the slave node module, and realize the communication between the dual-mode meter reading device and the dual-mode communication unit based on the process.
[0023] Preferably, the dual-mode copy controller is designed to act as a master node to communicate with the dual-mode communication unit, specifically including:
[0024] The hardware part of the dual-mode copy controller module adopts 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 turns off the inter-network coordination mechanism of the dual-mode copy controller.
[0025] Preferably, the link connection synchronization between the dual-mode copy controller and the dual-mode communication unit is performed so that the dual-mode copy controller and the node to be measured are connected on a designated link channel and frequency point, specifically including:
[0026] Step 2-1: Configure the working communication parameters for the dual-mode reader based on the link channel scenario;
[0027] Step 2-2: Build a data link layer periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the dual-mode communication unit and the dual-mode communication unit, and support frequency offset synchronization of single-link channels or dual-link channels;
[0028] Step 2-3: When the dual-mode copy controller communicates with the dual-mode slave node module, a mechanism combining interaction between the dual-mode copy controller and the dual-mode slave node module, ie, frequency locking and resetting the frequency locking countdown, is established.
[0029] Preferably, configuring the working communication parameters for the dual-mode copy controller according to the link channel scenario specifically includes:
[0030] The host computer selects the connection link channel, the communication controller connection mode, the broadband carrier frequency band, the wireless link option mode, the wireless link channel number, and the connection target node address, and sends the above parameters to the dual-mode communication controller to configure its communication working parameters.
[0031] Preferably, the periodic automatic frequency offset synchronization based on the data link layer realizes the frequency offset synchronization between the dual-mode communication unit and the dual-mode communication unit, and supports the frequency offset synchronization of a single link channel or a dual link channel, specifically including:
[0032] According to the link connection mode between the dual-mode copy controller and the dual-mode communication unit, a corresponding periodic automatic frequency deviation synchronization mechanism is constructed to achieve frequency deviation synchronization between the dual-mode copy controller and the dual-mode communication unit;
[0033] The link connection modes between the dual-mode meter reader and the dual-mode communication unit include: HPLC link connection mode, HRF link connection mode, and HPLC and HRF link connection mode:
[0034] For the HPLC link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed on the set broadband carrier frequency band to achieve frequency deviation synchronization between the reading controller and the dual-mode communication unit;
[0035] For the HRF link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed at the set wireless frequency point to achieve frequency deviation synchronization between the meter reader and the dual-mode communication unit;
[0036] For the HPLC and HRF link connection modes, a periodic automatic frequency deviation synchronization mechanism is constructed on the set broadband carrier frequency band and wireless frequency point to achieve frequency deviation synchronization between the meter reader and the dual-mode communication unit.
[0037] Preferably, for the HPLC link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed on a set broadband carrier frequency band to achieve frequency deviation synchronization between the copy controller and the dual-mode communication unit, specifically including:
[0038] On the set broadband carrier frequency band, the dual-mode reader sends a custom frequency deviation synchronization message via the HPLC link channel with a period of 1 second. The initial frequency deviation in the frequency deviation synchronization message is set to 0ppm, and the frequency deviation synchronization timeout is set to 1 second.
[0039] If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message will remain unchanged until it stops resending the message and sets the frequency deviation of the copy controller itself with ±n*10ppm frequency deviation in sequence, and then sends the frequency deviation synchronization message again, where n is the order and the value range of n is 0~15;
[0040] If the dual-mode communication unit receives a frequency offset synchronization message, it will analyze and send a frequency offset synchronization return code message. The frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message.
[0041] When the dual-mode copy controller receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode copy controller itself is reasonable. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode copy controller itself and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value.
[0042] Preferably, for the HRF link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed at the set wireless frequency point to achieve frequency deviation synchronization between the reading controller and the dual-mode communication unit, specifically including:
[0043] When the HRF link connection mode is selected, at the set wireless frequency, the dual-mode reader sends a custom frequency deviation synchronization message via the HRF link channel with a period of 1 second. The initial frequency deviation in the frequency deviation synchronization message is set to 0ppm, and the frequency deviation synchronization timeout period is 1 second.
[0044] If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message will remain unchanged until it stops resending the message and sets its own frequency deviation in sequence with ±n*10ppm frequency deviation, and then sends the frequency deviation synchronization message again. Among them, n is the order, and the value range of n is 0~15;
[0045] If the dual-mode communication unit receives a frequency offset synchronization message, it will parse it and send a frequency offset synchronization reply message. The frequency offset value in the reply message is the same as the frequency offset value in the received frequency offset synchronization message.
[0046] When the dual-mode communication unit receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode communication unit is appropriate. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode communication unit and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value.
[0047] Preferably, when the dual-mode copy controller communicates with the dual-mode slave node module, a mechanism is established for interaction between the dual-mode copy controller and the dual-mode slave node module, namely, a mechanism combining frequency locking and resetting the frequency locking countdown, specifically including:
[0048] Step 2-3-1, build a dual-mode meter reading controller - a mechanism that combines frequency locking and resetting the frequency locking countdown in each business message interaction of the slave node module;
[0049] In step 2-3-2, after the slave node module is synchronously frequency-locked by the dual-mode meter reading controller, the frequency-locking functions of the broadband power line carrier and wireless link channels adopt an independent control and independent management mechanism for the frequency-locking countdown.
[0050] Preferably, the step 2-3-1 specifically includes:
[0051] Step 2-3-1-1: Each time the slave node module receives a service message from the reader, it determines whether the service message is a qualified reader-slave node diagnostic message, and then performs corresponding reply processing. It also locks the link channel corresponding to the received message according to the current frequency band, and the frequency locking time counts down to the initial value (120 seconds);
[0052] Step 2-3-1-2: If a working link channel of the slave node module is frequency locked, and this link channel does not receive any qualified business message before the frequency lock countdown reaches 0, the slave node will exit the frequency lock state on this link channel when the frequency lock countdown reaches 0.
[0053] Preferably, the step 2-3-2 specifically includes:
[0054] Step 2-3-2-1 supports 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, thereby realizing the function of independent frequency locking control of the two link channels, meeting the requirements of independent testing of different link channels of the production line;
[0055] In step 2-3-2-2, two independent variables are used to manage the frequency locking countdown of the broadband power line carrier channel and the wireless link channel 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.
[0056] Preferably, in step 3, the service communication process between the dual-mode copy controller and the master node module specifically includes:
[0057] In step 3-1, the dual-mode copy controller supports parsing the copy controller-master node diagnostic message of the Q / GDW 376.2 protocol type sent by the host computer, and sends this service message package in the newly defined copy controller application protocol message, thereby implementing the sending of the copy controller-master node diagnostic message;
[0058] In step 3-2, the dual-mode meter reader supports parsing the newly defined Q / GDW 376.2 protocol type application layer protocol message for the return code message received by the application layer. When the application layer receives the return code and determines that the inner message is a Q / GDW 376.2 protocol type message, it will be stripped off and forwarded to the host computer through the serial port for parsing and processing, thereby realizing the processing and forwarding of the meter reader-master node diagnostic return code.
[0059] Preferably, in step 3, the service communication process between the dual-mode copy controller and the slave node module specifically includes:
[0060] Step 3-1: The dual-mode meter reader supports parsing the meter reader-slave node diagnostic message in accordance with the DL / T645-2007 or DL / T698.45 protocol sent by the host computer, and sends this service message package in the application layer meter reading protocol message, thereby implementing the sending of the meter reader-slave node diagnostic message;
[0061] In step 3-2, the dual-mode meter reading device application layer supports parsing the meter reading protocol message upon receiving the return code message. Upon receiving the return code, if the application layer determines that the message contained in the message is a DL / T645-2007 or DL / T698.45 protocol message and that the destination TEI is the meter reading device TEI, the DL / T645-2007 or DL / T698.45 protocol message is stripped off and forwarded to the host computer via the serial port for parsing and processing. This implements the processing and forwarding of the meter reading device-slave node diagnostic return code.
[0062] The present invention also proposes a communication system for a dual-mode copy controller and multiple types of dual-mode communication units in multiple scenarios, which is used to implement a communication method for the dual-mode copy controller and multiple types of dual-mode communication units in multiple scenarios, including: a dual-mode copy controller, a dual-mode communication unit, a host computer, a link connection synchronization unit and a service communication unit;
[0063] Among them, the host computer is used to send or receive message data sent by the dual-mode copy controller;
[0064] The dual-mode copy controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode copy controller and the node to be tested establish a connection on the specified link channel and frequency point;
[0065] The business communication unit is used to build a business communication process between the dual-mode meter reader and the master node module or the slave node module to realize the communication between the dual-mode meter reader and the dual-mode communication unit.
[0066] The present invention also provides a terminal, comprising a processor and a storage medium;
[0067] The storage medium is used to store instructions;
[0068] The processor is configured to operate according to the instructions to execute the steps of the method for communicating with multiple types of dual-mode communication units in multiple scenarios of the dual-mode copy controller.
[0069] The present invention also proposes a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for communicating with multiple types of dual-mode communication units in multiple scenarios using the dual-mode copy controller.
[0070] The beneficial effects of the present invention are that, compared with the prior art, the present invention has at least the following beneficial effects:
[0071] 1. The present invention proposes a mechanism for defining a dual-mode copy controller as a master-node-like role to achieve dual-mode communication compatibility with both master and slave nodes. In terms of hardware, a dual-mode slave node module acts as a dual-mode copy controller module. In terms of software, the dual-mode copy controller module uses the master node program and disables the inter-network coordination mechanism and wireless channel coordination mechanism of the conventional master node. This cleverly solves the problem of slave-like copy controllers being unable to communicate with the master node module, while also enabling communication between the copy controller and the slave node module, significantly reducing development costs, complexity, and workload.
[0072] 2. This invention proposes designing the interaction between the dual-mode meter reading controller and the dual-mode communication unit into two major processes: link connection synchronization and business data communication. The link connection synchronization process provides a stable network for the business data communication process. At the same time, the management of the link connection synchronization process and business data communication process is independent, which greatly ensures the stability of communication and the robustness of the system.
[0073] 3. The present invention proposes a mechanism that allows users to configure different communication parameters of the communication controller to prepare for communication with the target node via different link channel scenarios. This greatly meets the user's needs to use the communication controller to test the link channel and communication frequency band they want, providing diversified options for product testing and on-site maintenance.
[0074] 4. This invention introduces periodic automatic frequency offset synchronization technology at the data link layer to achieve frequency offset synchronization between the dual-mode meter reader and the dual-mode communication unit. This technology supports frequency offset synchronization for both single-link and dual-link channels, innovatively solving the problem of stable link connection synchronization between different channels. This addresses the issue of wireless meter reading failures in older meter readers, and addresses the need for on-demand selection of dual-link or single-link communication. This greatly facilitates single-link channel testing before production.
[0075] 5. The present invention introduces a mechanism that combines frequency locking and resetting the frequency locking countdown for each service message interaction between the control unit and the slave node. This not only ensures the stability of the control unit's communication with the slave node, but also ensures the independence of the slave node in an idle state without frequency locking. This greatly reduces the impact of the control unit's access to the environment on the original communication of the slave node.
[0076] 6. The frequency locking function proposed in the present invention for the broadband power line carrier and wireless link channels adopts an independent control and independent management mechanism for the frequency locking countdown, which meets the needs of the meter reading controller for separate diagnosis and testing of 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, which greatly reduces the coupling of the communication control of different links from the node. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 This is a flow chart of a method for communicating with multiple types of dual-mode communication units in multiple scenarios of the dual-mode copy controller in the present invention;
[0078] Figure 2 This is a flowchart of the communication process between the dual-mode copy controller and the dual-mode master node module in multiple scenarios in the present invention;
[0079] Figure 3 This is a flowchart of the communication process between the dual-mode copy controller and the dual-mode slave node module in multiple scenarios in the present invention;
[0080] Figure 4 This is a structural diagram of the communication system of the dual-mode copy controller in multiple scenarios and multiple types of dual-mode communication units in the present invention. DETAILED DESCRIPTION
[0081] To make the objectives, technical solutions, and advantages of the present invention more clear, 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 part of the embodiments of the present invention, not all of them. Based on the spirit of the present invention, other embodiments obtained by ordinary technicians in this field without making creative efforts are all within the scope of protection of the present invention.
[0082] like Figure 1As 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. The method is used for the dual-mode meter reading controller to communicate with multiple types of dual-mode communication units such as master node modules and slave node modules (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:
[0083] Step 1: Design the dual-mode copy controller as a master-like node to achieve dual-mode communication with both master and slave nodes.
[0084] Specifically, the dual-mode slave node module is used as the dual-mode copy controller module in hardware, and the dual-mode copy controller module uses the master node module program in software.
[0085] In terms of software technology mechanism, the inter-network coordination mechanism of the dual-mode meter is turned off to avoid the dual-mode meter and the main node module to be tested from performing bandwidth coordination and wireless channel coordination on the power line carrier channel, which may result in the inability to communicate on the same beacon time slot or wireless channel.
[0086] In this way, the dual-mode meter reading controller can meet the communication conditions with the master node or the slave node on the power line carrier or wireless channel at the data link layer.
[0087] The dual-mode communication unit includes a dual-mode master node module and a dual-mode slave node module.
[0088] Step 2: synchronize the link connection between the dual-mode copy controller and the dual-mode communication unit, so that the dual-mode copy controller and the node to be tested are connected on the specified link channel and frequency point;
[0089] Specifically, the link connection synchronization process includes configuring working parameters and periodic frequency offset synchronization, as follows:
[0090] Step 2-1: Configure the working communication parameters for the dual-mode reader based on the link channel scenario;
[0091] You can choose to configure different working communication parameters of the communication controller to prepare for connecting and communicating with the target node through different link channel scenarios;
[0092] Configuring the working communication parameters for the dual-mode communication controller based on the link channel connection scenario includes:
[0093] Through the host computer interface, select the connection link channel, wireless controller connection mode, broadband carrier frequency band, wireless link option mode, wireless link channel number, and connection target node address. These parameters are sent to the dual-mode wireless controller to configure its different working parameters, preparing for communication 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 wireless controller and the dual-mode communication unit.
[0094] Step 2-2: Implement frequency offset synchronization between the dual-mode communication controller and the dual-mode communication unit based on periodic automatic frequency offset synchronization at the data link layer, and support frequency offset synchronization for single-link channels or dual-link channels.
[0095] According to the link connection mode between the dual-mode meter reader and the dual-mode communication unit, different periodic automatic frequency deviation synchronization methods are used to achieve frequency deviation synchronization between the dual-mode meter reader and the dual-mode communication unit. The link connection modes between the dual-mode meter reader and the dual-mode communication unit include: HPLC link connection mode, HRF link connection mode, and HPLC+HRF link connection mode. The details are as follows:
[0096] When the HPLC link connection mode is selected, the frequency deviation synchronization between the dual-mode communication unit and the dual-mode communication unit is achieved through periodic automatic frequency deviation synchronization on the set broadband carrier frequency band:
[0097] On the set broadband carrier frequency band, the dual-mode reader sends a custom frequency deviation synchronization message via the HPLC link channel with a period of 1 second. The initial frequency deviation in the frequency deviation synchronization message is set to 0ppm, the frequency deviation synchronization timeout is set to 1 second, and ppm is the unit of measurement symbol, representing one part per million.
[0098] If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message remains unchanged until the frequency deviation synchronization reply message is not received after resending twice. At this time, the copy controller stops resending the message and sets its own frequency deviation in sequence with ±n*10ppm frequency deviation (n is the order, the value is 0~15) before sending the frequency deviation synchronization message again.
[0099] If the dual-mode communication unit receives the frequency offset synchronization message, it will send a frequency offset synchronization return code message after analysis, 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.
[0100] When the dual-mode copy controller receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode copy controller itself is reasonable. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode copy controller itself and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value.
[0101] When the HRF (High Speed Radio Frequency) link connection mode is selected, the frequency deviation synchronization between the reader and the dual-mode communication unit is achieved through periodic automatic frequency deviation synchronization:
[0102] Furthermore, when the HRF link connection mode is selected, at the set wireless frequency, the dual-mode reader sends a customized frequency deviation synchronization message through the HRF link channel with a period of 1 second. The initial frequency deviation in the frequency deviation synchronization message is set to 0ppm, and the frequency deviation synchronization timeout is 1 second.
[0103] If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message remains unchanged until the frequency deviation synchronization reply message is not received after resending twice. At this time, the copy controller stops resending the message and sets its own frequency deviation in sequence with ±n*10ppm frequency deviation (n is the order, the value is 0~15) before sending the frequency deviation synchronization message again.
[0104] If the dual-mode communication unit receives a frequency offset synchronization message, it will parse and send a frequency offset synchronization reply message. The frequency offset value in the reply message is the same as the frequency offset value in the received frequency offset synchronization message.
[0105] When the dual-mode communication unit receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode communication unit is appropriate. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode communication unit and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value.
[0106] Furthermore, when the HPLC+HRF link connection mode is selected, a periodic automatic frequency deviation synchronization mechanism is constructed on the set broadband carrier frequency band and wireless frequency point to achieve frequency deviation synchronization between the reading controller and the dual-mode communication unit, specifically including:
[0107] When the HPLC+HRF link connection mode is used, the dual-mode reader sends a customized frequency deviation synchronization message via the HPLC and HRF link channels at a period of 1 second at the set wireless frequency and broadband carrier frequency band respectively. The initial frequency deviation in the frequency deviation synchronization message is set to 0ppm, and the frequency deviation synchronization timeout period is 1 second.
[0108] If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message will remain unchanged until it stops resending the message and sets its own frequency deviation in sequence with ±n*10ppm frequency deviation, and then sends the frequency deviation synchronization message again. Among them, n is the order, and the value range of n is 0~15;
[0109] If the dual-mode communication unit receives a frequency offset synchronization message, it will parse it and send a frequency offset synchronization reply message. The frequency offset value in the reply message is the same as the frequency offset value in the received frequency offset synchronization message.
[0110] When the dual-mode communication unit receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode communication unit is appropriate. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode communication unit and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value.
[0111] Furthermore, frequency offset synchronization of single-link or dual-link channels is supported, specifically including:
[0112] 1) The customized frequency deviation synchronization message contains the carrier frequency deviation and wireless frequency deviation parameters, which are used to inform the current reading controller to set its own frequency deviation parameters;
[0113] 2) When frequency offset synchronization is performed on only a single link channel, the frequency offset parameter of the other link channel is set to 0 by default;
[0114] 3) When dual-link channel frequency offset synchronization is selected, the frequency offset synchronization is considered successful as long as the frequency offset synchronization of one link channel is successful.
[0115] 4) When dual-link channel frequency offset synchronization is selected, even if only one link channel frequency offset synchronization is successful, the copy controller will continue to switch the frequency offset and send synchronization messages on the other link channel.
[0116] Step 2-3: When the dual-mode copy controller communicates with the dual-mode slave node module, a mechanism combining frequency locking and resetting the frequency locking countdown is established between the dual-mode copy controller and the dual-mode slave node module;
[0117] Step 2-3-1, build a mechanism for combining frequency lock and frequency reset countdown in each business message interaction of slave module.
[0118] Step 2-3-1-1: Each time the slave node module receives a service message from the reader, it determines whether the service message is a qualified reader-slave node diagnostic message, and then performs corresponding reply processing. It also locks the frequency of the link channel corresponding to the received message according to the current frequency band, and the frequency locking time counts down to the initial value (120 seconds);
[0119] Step 2-3-1-2: If a working link channel of the slave node module is frequency locked, and this link channel does not receive any qualified business message before the frequency lock countdown reaches 0, the slave node will exit the frequency lock state on this link channel when the frequency lock countdown reaches 0.
[0120] Step 2-3-2: After the slave node module is synchronously frequency-locked by the dual-mode meter reading controller, the frequency-locking functions of the broadband power line carrier and wireless link channels are independently controlled and managed with a frequency-locking countdown mechanism;
[0121] Among them, step 2-3-2 specifically includes:
[0122] Step 2-3-2-1 supports the dual-mode slave node to lock only the frequency band of the broadband power line carrier channel or only the frequency of the wireless channel, thereby realizing the function of independent frequency locking control of the two link channels and meeting the requirements of independent testing of different link channels of the production line.
[0123] In step 2-3-2-2, two independent variables are used to manage the frequency locking countdown of the broadband power line carrier channel and the wireless link channel 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.
[0124] Step 3: construct the dual-mode meter reading device and the master node module or the slave node module to execute the business communication process, thereby realizing the communication between the dual-mode meter reading device and the dual-mode communication unit.
[0125] Specifically, the business data communication process is used to realize the communication interaction of specific business data between the dual-mode meter reader and the node to be tested, thereby realizing the expected business functions.
[0126] like Figure 2 As shown in the figure, when the dual-mode copy controller communicates with the main node module, the communication process specifically includes:
[0127] The dual-mode reader parses the Q / GDW 376.2 protocol type message sent by the host computer and sends the business message package in the newly defined application layer protocol message. When the application layer receives the return code and determines that the inner message is a Q / GDW 376.2 protocol type message, it strips the Q / GDW 376.2 protocol type message and forwards it to the host computer through the serial port for parsing and processing. The specific process is as follows:
[0128] In step 3-1, the dual-mode copy controller supports parsing the copy controller-master node diagnostic message of the Q / GDW 376.2 protocol type sent by the host computer, and sends this service message package in the newly defined copy controller application protocol message, thereby implementing the sending of the copy controller-master node diagnostic message;
[0129] In step 3-2, the dual-mode meter reader supports parsing the newly defined Q / GDW 376.2 protocol type application layer protocol message for the return code message received by the application layer. When the application layer receives the return code and determines that the inner message is a Q / GDW 376.2 protocol type message, it will be stripped off and forwarded to the host computer through the serial port for parsing and processing, thereby realizing the processing and forwarding of the meter reader-master node diagnostic return code.
[0130] like Figure 3 As shown in the figure, when the dual-mode copy controller communicates with the slave node module, the communication process specifically includes:
[0131] The dual-mode meter reading controller supports parsing the DL / T645-2007 or DL / T698.45 protocol messages sent by the host computer and encapsulates the business message in the application layer meter reading protocol message for transmission. When the application layer receives the return code and determines that the encapsulated message is a DL / T645-2007 or DL / T698.45 protocol type message, it will strip the DL / T645-2007 or DL / T698.45 protocol type message and forward it to the host computer for parsing and processing via the serial port. The specific process is as follows:
[0132] Step 3-1: The dual-mode meter reader supports parsing the meter reader-slave node diagnostic message in accordance with the DL / T645-2007 or DL / T698.45 protocol sent by the host computer, and sends this service message package in the application layer meter reading protocol message, thereby implementing the sending of the meter reader-slave node diagnostic message;
[0133] In step 3-2, the dual-mode meter reading device application layer supports parsing the meter reading protocol message upon receiving the return code message. Upon receiving the return code, if the application layer determines that the message contained in the message is a DL / T645-2007 or DL / T698.45 protocol message and that the destination TEI is the meter reading device TEI, the DL / T645-2007 or DL / T698.45 protocol message is stripped off and forwarded to the host computer via the serial port for parsing and processing. This implements the processing and forwarding of the meter reading device-slave node diagnostic return code.
[0134] Furthermore, the present invention includes two major examples: dual-mode copy controller communicating with dual-mode master node module (CCO) in multiple scenarios, and dual-mode copy controller communicating with dual-mode slave node module (STA) in multiple scenarios, as shown in the attached figure. Figure 1 The following describes the implementation process of these two types of examples corresponding to the present invention.
[0135] 1. Dual-mode reader communicates with the dual-mode master node module (CCO) in multiple scenarios
[0136] The communication system between the dual-mode copy controller and the dual-mode master node module (CCO) mainly includes the host computer software, dual-mode copy controller, dual-mode master node module, and dual-mode slave node module (optional). The communication between the dual-mode copy controller and the dual-mode master node module (CCO) in multiple scenarios is divided into two major processes: link connection synchronization and business data communication. Figure 2 shown.
[0137] The following is combined with Figure 2 Detailed description of the link connection synchronization execution steps:
[0138] Step 1: On the host computer interface, select the link channel, operating frequency band, target node type, and target node address for the controller. Click Send. The host computer will then send a message with these parameters to the controller via the serial port. The message uses the 376.2 format with the custom extensions AFN=05H and Fn=24. The data unit format is shown in Table 1 below.
[0139] Table 1: Data unit format for setting the working frequency band of the reading controller
[0140]
[0141] Connection link channel: 0: The meter and device are connected via HPLC link; 1: The meter and device are connected via HRF link; 2: The meter and device are connected and communicated via HPLC+HRF dual-mode link.
[0142] Controller connection mode: 0: Controller will establish connection with CCO 1: Controller will establish connection with STA Others: Reserved
[0143] Wideband 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 are reserved. Valid only when the link is HPLC.
[0144] Wireless link option mode: 1, 2, or 3. This option is valid only when the link is HRF.
[0145] Wireless link channel number: Configure according to the actual setting value. It is valid only when the connection link is HRF.
[0146] Target node address of the controller: The address of the CCO or STA node to which the controller is about to connect, in little-endian format.
[0147] Step 2: After receiving the correct message for setting its own working parameters, the controller resets its own connection link channel, connection mode, broadband carrier frequency band, wireless option mode, wireless link channel number, and connection target node address based on the parsed results. It then forms a 376.2 standard confirmation frame and responds to the host computer.
[0148] Step 3: The controller automatically sends a frequency deviation synchronization message according to the specific content of mechanism 4 on the newly set link channel and working frequency band at a period of 1s. The frequency deviation synchronization message contains the destination node address and the current frequency deviation value of the controller (unit: 10ppm).
[0149] Step 4: If the dual-mode master node module (CCO) receives a frequency offset synchronization message, it parses it and sends a frequency offset synchronization return code message. The frequency offset value in the return code message is the same as the frequency offset value in the received frequency offset synchronization message.
[0150] Step 5: If the dual-mode reader receives a frequency deviation synchronization message and successfully parses it, it saves the current frequency deviation synchronization PPM setting and subsequently sends frequency deviation synchronization messages at a 1-second period. The frequency deviation value uses the stored PPM setting until a certain moment when no response code is received for the frequency deviation synchronization message three times. Then, the next frequency deviation PPM value is cut to perform frequency deviation synchronization.
[0151] Note: The frequency offset synchronization message is extended using the variable area of the beacon frame type of the data link layer. The specific extended frequency offset synchronization protocol frame format is shown in Tables 2 and 3 below:
[0152] Table 2: Data link layer extended frequency offset synchronization downlink protocol frame format
[0153]
[0154] Table 3: Data link layer extended frequency offset synchronization uplink protocol frame format
[0155]
[0156] Further, still with the attached Figure 2 Detailed description of the execution steps of the data communication process between the meter reader and the CCO:
[0157] Step 1: The user selects a diagnostic service as needed in the CCO service diagnosis on the host computer interface. For example, if the user selects the CCO slave node information reading service, the host computer reads the CCO slave node information message according to the standard 376.2 protocol group. When the user clicks Send, the host computer sends the message to the reading controller via the serial port.
[0158] Step 2: After receiving the diagnostic message of the standard 376.2 protocol, the dual-mode controller parses the diagnostic message of the controller to the master node in the Q / GDW 376.2 protocol type sent by the host computer and sends this service message package in the newly defined controller application layer protocol message, thereby implementing the sending of the diagnostic message of the controller to the master node;
[0159] Step 3: After receiving the diagnostic message from the master node to the master node, the dual-mode master node module application layer parses and decides whether to continue forwarding it to the STA. It then assembles the code frame according to the 376.2 protocol format, encapsulates it in the master node application layer protocol message, and replies through the corresponding link channel.
[0160] Step 4: The dual-mode meter reader supports parsing the newly defined Q / GDW 376.2 protocol type application layer protocol message for the return code message received by the application layer. When the application layer receives the return code and determines that the inner message is a Q / GDW 376.2 protocol type message, it will be stripped off and forwarded to the host computer through the serial port for parsing and processing, thereby realizing the processing and forwarding of the meter reader-master node diagnostic return code.
[0161] 2. Dual-mode reader communicates with dual-mode slave node modules (STA) in multiple scenarios
[0162] The communication system between the dual-mode meter reader and the dual-mode slave node module (STA) mainly includes the host computer software, dual-mode meter reader, dual-mode slave node module, and energy meter. The communication between the dual-mode meter reader and the dual-mode slave node module (STA) in multiple scenarios is divided into three major processes: link connection synchronization process, frequency locking slave node process, and business data communication process. Figure 3 The link connection synchronization process between the slave node and the master node is very similar to that between the slave node and the master node, so it will not be repeated here. The following only describes the slave node frequency locking process and business data communication process of the slave node.
[0163] The following is combined with Figure 3 Detailed description of the execution steps of the frequency locking slave node process:
[0164] Step 1: After the copy controller and STA complete the link connection synchronization process, the user clicks the frequency lock button on the host computer interface. The host computer automatically selects the target slave node address and link connection channel in the current copy controller link connection synchronization process, assembles 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 copy controller through the serial port as the frequency lock command message.
[0165] If the link connection channel is a broadband power line carrier, the group queries the message of the broadband power line carrier band.
[0166] If the link connection channel is micro-power wireless, the group queries the wireless option and channel number message.
[0167] The extended custom DL / T645-2007 query slave node working frequency band protocol data format is as follows Table 4:
[0168] Table 4: Extended custom DL / T645-2007 query slave node operating frequency band (locked frequency) protocol data format
[0169]
[0170] Step 2: After receiving the frequency lock command message, the meter reading controller sends the message package in the active meter reading message of the application layer concentrator through the corresponding working link channel (carrier / wireless).
[0171] Step 3: After receiving the application layer message on a link channel of the dual-mode slave node, it is parsed as a frequency lock command message. First, the link channel is re-locked to the current working frequency band and the 120-second countdown is reset. Then, the current working frequency band 645-07 message packet is replied in the application layer concentrator active meter reading format uplink message through the corresponding working link channel.
[0172] Step 4: After receiving the application layer message on a link channel of the dual-mode slave node, it is parsed as a frequency lock command message. First, the link channel is re-locked to the current working frequency band and the 120-second countdown is reset. Then, the current working frequency band 645-07 message packet is replied in the application layer concentrator active meter reading format uplink message through the corresponding working link channel.
[0173] Step 5: When the dual-mode meter reading controller receives the uplink message in the active meter reading format from the node replying to the application layer concentrator, it will strip the message enclosed in the application layer and reply to the host computer software through the serial port.
[0174] Step 6: If the host computer software receives the query working frequency band code message within 1.5 seconds and the parsed format is normal, it will display "Frequency locked STA bandx successful" or "Frequency locked STA channel id=x option=x successful". Otherwise, it will display "Frequency locked failed".
[0175] Furthermore, combined with Figure 3 Detailed description of the execution steps of the communication process between the controller and the slave node:
[0176] Step 1: The user selects a diagnostic service as needed in the diagnostic slave node (STA) service on the host computer interface. For example, if the user selects to read the total forward active energy of the slave node, the host computer reads the message of the total forward active energy of the slave node according to the protocol (645-07 / 698.45) group selected on the interface. When the user clicks "Send", the host computer sends this message to the reading controller via the serial port (the reading timeout is 2 seconds).
[0177] Step 2: After receiving the diagnostic message of the standard 645-07 or 698.45 protocol, the dual-mode meter reader parses the meter reader-slave node diagnostic message sent by the host computer and encloses this service message in the active meter reading application layer protocol message of the concentrator and sends it down through the current working link channel (carrier / wireless), thereby implementing the sending of the meter reader-slave node diagnostic message;
[0178] Step 3: After receiving the diagnostic message from the meter reader to the slave node, the dual-mode slave node module application layer first relocks the frequency of the current communication link channel and resets the 120-second countdown. After analysis, it decides whether to continue forwarding to the meter. Taking the current reading of total forward active energy as an example, the slave node module needs to send the enclosed 645-07 or 698.45 protocol meter reading message to the meter via the STA serial port and wait for its return code.
[0179] Step 4: After receiving the meter code message from the dual-mode slave node serial port, the format is parsed normally and then included in the concentrator active meter reading application layer protocol uplink message and sent back through the current working link channel (carrier / wireless).
[0180] Step 5: After receiving the return code message, the dual-mode meter reading controller application layer parses the application layer protocol message, strips the inner meter reading message, and forwards it to the host computer for parsing and processing via the serial port.
[0181] Step 6: If the host computer receives a response code within 2 seconds of reading, it will analyze it. For example, if it reads the total forward active energy response code, it will parse the total forward active energy value and display it on the interface. Otherwise, if it does not receive a response code within 2 seconds, it will display a diagnostic reading timeout. This completes a single round of the controller-STA diagnostic process.
[0182] The above implementation examples are merely descriptions of the execution steps based on one example each of dual-mode card reader-CCO diagnosis and card reader-STA diagnosis. The actual adoption of the patented method of the present invention can realize a variety of rich diagnostic functions for dual-mode card readers communicating with multiple types of dual-mode communication units in multiple scenarios. This article will not further illustrate each one of them.
[0183] like Figure 4 As shown, the present invention also proposes a communication system between a dual-mode copy controller and multiple types of dual-mode communication units in multiple scenarios, which is used to implement the above-mentioned communication method between a dual-mode copy controller and multiple types of dual-mode communication units in multiple scenarios. The system includes: a dual-mode copy controller, a dual-mode communication unit, a host computer, a link connection synchronization unit and a service communication unit;
[0184] Among them, the host computer is used to send or receive message data sent by the dual-mode copy controller CKQ;
[0185] The dual-mode communication unit includes a master node module CCO and a slave node module STA;
[0186] The dual-mode copy controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode copy controller and the node to be tested establish a connection on the specified link channel and frequency point;
[0187] The business communication unit is used to build a business communication process between the dual-mode meter reader and the master node module or the slave node module to realize the communication between the dual-mode meter reader and the dual-mode communication unit.
[0188] The beneficial effect of the present invention is that, compared with the prior art, the present invention can realize the functions of link synchronization and communication on a specified link channel and a specified frequency band by constructing a sophisticated and complete frequency deviation synchronization mechanism for the dual-mode copy controller, and can also realize the management of the maximum idle time of communication between the dual-mode copy controller and the slave node module, thereby avoiding long-term impact on the original communication network.
[0189] The present disclosure may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.
[0190] 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 can 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 thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punched card or raised structure in a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as 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., a light pulse passing through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
[0191] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The 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 to be stored in the computer-readable storage medium in each computing / processing device.
[0192] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent 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++, and conventional procedural programming languages such as "C" or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via 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., via the Internet using an Internet service provider). In some embodiments, the state information of the computer-readable program instructions is used to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), so that the electronic circuit can execute the computer-readable program instructions, thereby implementing various aspects of the present disclosure.
[0193] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered by the scope of protection of the claims of the present invention.
Claims
1. A method for a dual-mode copy controller to communicate with a dual-mode communication unit in multiple scenarios, characterized in that: The steps include: Step 1: Design the dual-mode copy controller as a master node to communicate with the dual-mode communication unit, which includes a master node module and a slave node module; Step 2: synchronize the link connection between the dual-mode copy controller and the dual-mode communication unit, so that the dual-mode copy controller and the node to be tested are connected on the specified link channel and frequency point; The step 2 specifically includes: Step 2-1: Configure the working communication parameters for the dual-mode communication controller according to the link channel scenario; Step 2-2: Build a periodic automatic frequency offset synchronization mechanism to achieve frequency offset synchronization between the dual-mode communication unit and the dual-mode communication unit, and support frequency offset synchronization of single-link channels or dual-link channels; The step 2-2 specifically includes: According to the link connection mode between the dual-mode copy controller and the dual-mode communication unit, a corresponding periodic automatic frequency deviation synchronization mechanism is constructed to achieve frequency deviation synchronization between the dual-mode copy controller and the dual-mode communication unit; The link connection modes between the dual-mode meter reader and the dual-mode communication unit include: HPLC link connection mode, HRF link connection mode, and HPLC and HRF link connection mode; For the HPLC link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed on the set broadband carrier frequency band to achieve frequency deviation synchronization between the reading controller and the dual-mode communication unit; For the HRF link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed at the set wireless frequency point to achieve frequency deviation synchronization between the meter reader and the dual-mode communication unit; For HPLC and HRF link connection modes, a periodic automatic frequency deviation synchronization mechanism is constructed on the set broadband carrier frequency band and wireless frequency point to achieve frequency deviation synchronization between the reading controller and the dual-mode communication unit; In step 2-2, for the HPLC link connection mode, a periodic automatic frequency deviation synchronization mechanism is constructed on the set broadband carrier frequency band to achieve frequency deviation synchronization between the communication controller and the dual-mode communication unit, specifically including: On the set broadband carrier frequency band, the dual-mode reader sends a custom frequency deviation synchronization message via the HPLC link channel with a period of 1 second. The initial frequency deviation value in the frequency deviation synchronization message is set to 0ppm, and the frequency deviation synchronization timeout is set to 1 second. If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message will remain unchanged until it stops resending the message after it still does not receive a frequency deviation synchronization reply message after resending twice. Instead, the dual-mode copy controller sets its own frequency deviation value in sequence with ±n*10ppm and then sends the frequency deviation synchronization message again, where n is the order and the value range of n is 0~15; If the dual-mode communication unit receives a frequency offset synchronization message, it will analyze and send a frequency offset synchronization return code message. 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 copy controller receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode copy controller itself is reasonable. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode copy controller itself and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value. Step 3: construct a process for the dual-mode meter reading device to perform business communication with the master node module or the slave node module, and realize the communication between the dual-mode meter reading device and the dual-mode communication unit based on the process.
2. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 1, characterized in that: The step 1 specifically includes: The hardware part of the dual-mode copy controller module adopts the slave node module, the software part of the dual-mode copy controller module adopts the master node module program, and the inter-network coordination mechanism of the dual-mode copy controller is closed.
3. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 1, characterized in that: The step 2 specifically includes: In step 2-3, when the dual-mode copy controller communicates with the slave node module, a mechanism combining interaction between the dual-mode copy controller and the dual-mode slave node module, ie, frequency locking and resetting the frequency locking countdown, is established.
4. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 3, characterized in that: The step 2-1 specifically includes: The host computer sends the parameters of the connection link channel, the copy 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 copy controller as the communication working parameters of the dual-mode copy controller.
5. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 1, characterized in that: In step 2-2, for the HRF link connection mode, at the set wireless frequency point, a periodic automatic frequency deviation synchronization mechanism is constructed to achieve frequency deviation synchronization between the reading controller and the dual-mode communication unit, specifically including: When the HRF link connection mode is selected, at the set wireless frequency, the dual-mode reader sends a custom frequency deviation synchronization message via the HRF link channel with a period of 1 second. The initial frequency deviation value in the frequency deviation synchronization message is set to 0ppm, and the frequency deviation synchronization timeout period is 1 second. If the dual-mode copy controller does not receive a frequency deviation synchronization reply message within 1 second after sending a frequency deviation synchronization message, the frequency deviation value when resending the frequency deviation synchronization message remains unchanged until it stops resending the message after it still does not receive a frequency deviation synchronization reply message after resending twice. Instead, it sets the frequency deviation of the dual-mode copy controller itself to ±n*10ppm in sequence and then sends the frequency deviation synchronization message. Among them, n is the order and the value range of n is 0~15; If the dual-mode communication unit receives a frequency offset synchronization message, it will parse it and send a frequency offset synchronization reply message. The frequency offset value in the reply message is the same as the frequency offset value in the received frequency offset synchronization message. When the dual-mode communication unit receives the frequency deviation synchronization reply code from the dual-mode communication unit, it indicates that the current frequency deviation value set by the dual-mode communication unit is appropriate. When the frequency deviation synchronization message is sent in the next 1-second period, the frequency deviation value set by the dual-mode communication unit and the frequency deviation value filled in the frequency deviation synchronization message are consistent with the current frequency deviation value.
6. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 3, characterized in that: The steps 2-3 specifically include: Step 2-3-1: Build a mechanism that combines frequency locking and resetting the frequency locking countdown for each business message interaction between the dual-mode copy controller and the dual-mode slave node module; In step 2-3-2, after the dual-mode slave node module is synchronously frequency-locked by the dual-mode meter reading controller, the frequency-locking functions of the broadband power line carrier and wireless link channels adopt an independent control and independent management mechanism for the frequency-locking countdown.
7. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 6, characterized in that: The step 2-3-1 specifically includes: Step 2-3-1-1: Each time the slave node module receives a service message from the reader, it determines whether the service message is a qualified reader-slave node diagnostic message, and then performs corresponding reply processing. It also locks the link channel corresponding to the received message according to the current frequency band, and resets the frequency lock time to the initial value, which is set to 120 seconds. Step 2-3-1-2: If a working link channel of the slave node module is frequency locked, and this link channel does not receive any qualified business message before the frequency lock countdown reaches 0, the slave node will exit the frequency lock state on this link channel when the frequency lock countdown reaches 0.
8. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 6, characterized in that: The step 2-3-2 specifically includes: Step 2-3-2-1: support dual-mode slave node to lock only the frequency band of HPLC channel or only the frequency point of HRF channel; In step 2-3-2-2, two independent variables are used to manage the frequency locking countdown of the HPLC channel and the HRF link channel respectively, so as to realize the asynchronous time-sharing management of the frequency locking countdown of the HPLC channel and the HRF channel by the dual-mode slave node.
9. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 1, characterized in that: In step 3, the service communication process between the dual-mode copy controller and the master node module specifically includes: Step 3-1: The dual-mode copy controller supports parsing the copy controller-master node diagnostic message of the Q / GDW 376.2 protocol type sent by the host computer, and sends this service message package in the newly defined copy controller application protocol message to send the copy controller-master node diagnostic message; In step 3-2, the dual-mode reader supports parsing the newly defined Q / GDW 376.2 protocol type application layer protocol message for the return code message received by the application layer. When the application layer receives the return code and determines that the inner message is a Q / GDW 376.2 protocol type message, it strips the Q / GDW 376.2 protocol type reader-master node diagnostic message sent by the host computer and forwards it to the host computer through the serial port for parsing and forwarding. The reader-master node diagnostic return code is then processed and forwarded.
10. The method for communicating with a dual-mode communication unit in multiple scenarios of a dual-mode copy controller according to claim 1, characterized in that: In step 3, the service communication process between the dual-mode copy controller and the slave node module specifically includes: Step 3-1: The dual-mode meter reader supports parsing the meter reader-slave node diagnostic message in accordance with the DL / T645-2007 or DL / T698.45 protocol sent by the host computer, and sends this service message package in the application layer meter reading protocol message to send the meter reader-slave node diagnostic message; In step 3-2, the dual-mode meter reading device application layer supports parsing the meter reading protocol message upon receiving the return code message. When the application layer receives the return code and determines that the enclosed message is a DL / T645-2007 or DL / T698.45 protocol type message and the destination TEI is the meter reading device TEI, it strips the DL / T645-2007 or DL / T698.45 protocol type message and forwards it to the host computer via the serial port for parsing and forwarding of the meter reading device-slave node diagnostic return code.
11. A communication system between a dual-mode copy controller and a dual-mode communication unit in multiple scenarios, utilizing the communication method between a dual-mode copy controller and a dual-mode communication unit in multiple scenarios according to any one of claims 1 to 10, characterized in that: include: Dual-mode copy controller, dual-mode communication unit, host computer, link connection synchronization unit and business communication unit; Among them, the host computer is used to send or receive message data sent by the dual-mode copy controller; The dual-mode copy controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode copy controller and the node to be tested establish a connection on the specified link channel and frequency point; The business communication unit is used to build a business communication process between the dual-mode meter reader and the master node module or the slave node module to realize the communication between the dual-mode meter reader and the dual-mode communication unit.
12. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1 to 10.
13. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
Citation Information
Patent Citations
Method compatible with multiple communication access modes of broadband power line carrier meter reading controller
CN111131118A
Communication module remote maintenance method based on HPLC and HRF dual-mode communication mode
CN116743657A