[go: up one dir, main page]

CN120224050B - Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene - Google Patents

Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene

Info

Publication number
CN120224050B
CN120224050B CN202510685600.4A CN202510685600A CN120224050B CN 120224050 B CN120224050 B CN 120224050B CN 202510685600 A CN202510685600 A CN 202510685600A CN 120224050 B CN120224050 B CN 120224050B
Authority
CN
China
Prior art keywords
dual
mode
frequency offset
message
controller
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202510685600.4A
Other languages
Chinese (zh)
Other versions
CN120224050A (en
Inventor
何成建
史蒙云
杨柳
孙延
赵伟
张海滨
卢金星
庄哲寅
陆汇文
周游
郭镭
陈大鹏
温富景
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanjing Youneng Te Electric Power Technology Co ltd
Nanjing Mite Technology Co ltd
Yangtze Delta Region Institute of Tsinghua University Zhejiang
Suzhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Original Assignee
Nanjing Youneng Te Electric Power Technology Co ltd
Nanjing Mite Technology Co ltd
Yangtze Delta Region Institute of Tsinghua University Zhejiang
Suzhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nanjing Youneng Te Electric Power Technology Co ltd, Nanjing Mite Technology Co ltd, Yangtze Delta Region Institute of Tsinghua University Zhejiang, Suzhou Power Supply Co of State Grid Jiangsu Electric Power Co Ltd filed Critical Nanjing Youneng Te Electric Power Technology Co ltd
Priority to CN202510685600.4A priority Critical patent/CN120224050B/en
Publication of CN120224050A publication Critical patent/CN120224050A/en
Application granted granted Critical
Publication of CN120224050B publication Critical patent/CN120224050B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)
  • Selective Calling Equipment (AREA)

Abstract

A method and a system for communicating with multiple types of dual-mode communication units under multiple scenes of a dual-mode meter-reading controller are provided, wherein the method comprises the steps of designing the dual-mode meter-reading controller to be in a master-like node role for communicating with the dual-mode communication units, enabling the dual-mode meter-reading controller to be in link connection synchronization with the dual-mode communication units, enabling the dual-mode meter-reading controller and a node to be tested to establish connection on a designated link channel and a frequency point, respectively constructing a flow of executing service communication between the dual-mode meter-reading controller and the master node module or between the dual-mode meter-reading controller and the dual-mode communication units, and realizing communication between the dual-mode meter-reading controller and the dual-mode communication units based on the flow. The invention can realize the functions of link synchronization and communication on the appointed link channel and the appointed frequency band by constructing a precise and perfect frequency offset synchronization mechanism of the dual-mode meter reading controller, and can realize the management of the communication idle maximum duration of the dual-mode meter reading controller and the slave node module at the same time, thereby avoiding the long-term influence on the original communication network.

Description

Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene
Technical Field
The invention belongs to the technical field of dual-mode communication application of smart power grids, and particularly relates to a method for communicating with multiple types of dual-mode communication units under multiple scenes of a dual-mode meter reading controller.
Background
With the comprehensive popularization and bidding of the dual-mode communication module, the dual-mode communication module starts to supply goods gradually and is applied to the low-voltage electricity consumption information acquisition station area. The function detection of the scenes of the production line of the dual-mode communication module, the arrival and inspection pipeline of the dual-mode communication module of the national electric department and the field of the low-voltage electricity consumption information acquisition station area is not separated from the dual-mode copy controller.
Before the dual-mode communication technology is not formally popularized, the shoveling controllers used in the low-voltage power consumption information acquisition station area or the production line of each module manufacturer are broadband power line carrier (HPLC) shoveling controllers, and are hereinafter referred to as HPLC shoveling controllers for short. The HPLC meter reading controller can only diagnose and read the broadband power line carrier slave node module, if the HPLC meter reading controller is in adaptive communication with the dual-mode communication module, the communication problems of the following three major scenes exist:
(1) The HPLC controller cannot communicate with a dual-mode master node module (CCO)) by carrier waves;
(2) The HPLC controller cannot communicate wirelessly with a dual-mode master node module (CCO);
(3) The HPLC controller cannot communicate wirelessly with the dual mode slave node module (STA).
The communication problem of the three scenes is also the main reason for developing the dual-mode meter reading controller, and more comprehensive requirements are provided for the functions of the dual-mode meter reading controller, namely:
(a) Requiring the dual mode meter controller to be capable of carrier communication with a dual mode master node module (CCO);
(b) Requiring the dual mode meter controller to be capable of wireless communication with a dual mode master node module (CCO);
(c) Requiring the dual mode meter reading controller to be capable of carrier communication with a dual mode slave node module (STA);
(d) The dual mode meter controller is required to be able to communicate wirelessly with a dual mode slave node module (STA).
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 the situation that after the frequency offset synchronization, the communication success rate still does not reach the expected condition possibly occurs;
(2) The frequency offset synchronization mechanism is not perfect, a periodic frequency offset synchronization mechanism is not adopted, but only one frequency offset synchronization is carried out before initial communication, and after a period of communication, the frequency offset is not synchronized again in time after dynamic change, so that the stability of subsequent communication is affected;
(3) The functions of link synchronization and communication on the appointed link channel and the appointed frequency band cannot be realized;
(4) And the management of the communication idle maximum duration of the dual-mode meter reading controller and the slave node module is not realized, so that the slave node module in the frequency locking state is always in the frequency locking control state, and the original communication network is influenced for a long time.
Disclosure of Invention
In order to solve the defects in the prior art, the invention provides a method for communicating with multiple types of dual-mode communication units under multiple scenes of a dual-mode meter reading controller, which can solve the technical problems that a frequency offset synchronization mechanism of the dual-mode meter reading controller in the prior art is not fine and perfect enough and can not realize the functions of link synchronization and communication on a designated link channel and a designated frequency band.
The invention adopts the following technical scheme.
A method for communicating with multiple classes of dual-mode communication units in multiple scenarios of a dual-mode meter reading controller, comprising the steps of:
step 1, designing a dual-mode meter reading controller to be similar to a master node role to communicate with a dual-mode communication unit, wherein the dual-mode communication unit comprises a master node module and a slave node module;
step 2, link connection synchronization is carried out on the dual-mode shoveling controller and the dual-mode communication unit, so that the dual-mode shoveling controller and the node to be tested are connected on a designated link channel and a frequency point;
And step 3, respectively constructing a flow of executing service communication between the dual-mode meter reading controller and the master node module or the slave node module, and realizing communication between the dual-mode meter reading controller and the dual-mode communication unit based on the flow.
Preferably, the dual-mode meter reading controller is designed to be similar to a master node role to communicate with the dual-mode communication unit, and specifically comprises the following steps:
the hardware part of the dual-mode meter reading controller module adopts the slave node module as the hardware of the dual-mode meter reading controller 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.
Preferably, the link connection synchronization is performed 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 establish connection on a designated link channel and a frequency point, and the method specifically comprises the following steps:
step 2-1, configuring working communication parameters for the dual-mode meter reading controller according to a link channel scene;
step 2-2, constructing a periodic automatic frequency offset synchronization mechanism of a data link layer to realize frequency offset synchronization of the dual-mode copy controller and the dual-mode communication unit, and supporting frequency offset synchronization of a single-link channel or a dual-link channel;
and 2-3, when the dual-mode meter reading controller communicates with the dual-mode slave node module, establishing a mechanism combining interaction of the dual-mode meter reading controller and the dual-mode slave node module, namely frequency locking and resetting frequency locking countdown.
Preferably, the configuring the working communication parameters for the dual-mode meter reading controller according to the link channel scene specifically includes:
the parameters are sent to the dual-mode shoveling controller by the upper computer to configure the communication working parameters of the dual-mode shoveling controller by selecting a connecting link channel, a shoveling controller connecting mode, a broadband carrier frequency band, a wireless link Option mode, a wireless link channel number and a connecting target node address.
Preferably, the method for implementing frequency offset synchronization between the dual-mode copy controller and the dual-mode communication unit based on periodic automatic frequency offset synchronization of the data link layer and supporting frequency offset synchronization of a single-link channel or a dual-link channel specifically includes:
Respectively constructing corresponding periodic automatic frequency offset synchronization mechanisms according to the link connection mode of the dual-mode meter reading controller and the dual-mode communication unit, and realizing frequency offset synchronization of the dual-mode meter reading controller and the dual-mode communication unit;
The link connection mode of the dual-mode meter reading controller and the dual-mode communication unit comprises an HPLC link connection mode, an HRF link connection mode and an HPLC and HRF link connection mode:
For the HPLC link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed on a set broadband carrier frequency band to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit;
for the HRF link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed on a set wireless frequency point to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit;
for the connection mode of the HPLC and the HRF links, respectively constructing a periodic automatic frequency offset synchronization mechanism on the set broadband carrier frequency band and the wireless frequency point to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit.
Preferably, for the HPLC link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed on a set broadband carrier frequency band to realize frequency offset synchronization between the copy controller and the dual-mode communication unit, and the method specifically includes:
On a set broadband carrier frequency band, the dual-mode meter reading controller sends a self-defined frequency offset synchronous message through an HPLC link channel with a period of 1 second, wherein the initial frequency offset in the frequency offset synchronous message is set to be 0ppm, and the frequency offset synchronous timeout time is set to be 1 second;
If the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller each time, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset of the copy controller is set by +/-n 10ppm frequency offset in sequence, the frequency offset synchronization message is sent again, wherein n is the sequence, and the value range of n is 0-15;
If the dual-mode communication unit receives the frequency offset synchronous message, after analysis, a frequency offset synchronous code returning message is sent, and the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message;
The dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, and then the current frequency offset value set by the dual-mode meter reading controller is reasonable, and when the frequency offset synchronization message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
Preferably, for the HRF link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed on a set wireless frequency point to realize frequency offset synchronization between the copy controller and the dual-mode communication unit, and the method specifically includes:
When the HRF link connection mode is selected, on a set wireless frequency point, the dual-mode copy controller sends a self-defined frequency offset synchronous message through the HRF link channel with a period of 1 second, wherein initial frequency offset in the frequency offset synchronous message is set to be 0ppm, and the frequency offset synchronous timeout time is 1 second;
if the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller each time, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset of the copy controller is set to be +/-n 10ppm in sequence, the frequency offset of the copy controller is set, and then the frequency offset synchronization message is sent, wherein n is the sequence, and the value range of n is 0-15;
If the dual-mode communication unit receives the frequency offset synchronous message, after analysis, the dual-mode communication unit sends a frequency offset synchronous code returning message, wherein the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message;
When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, the current frequency offset value set by the dual-mode meter reading controller is proper, and when the frequency offset synchronization message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
Preferably, when the dual-mode meter controller communicates with the dual-mode slave node module, a mechanism for establishing interaction between the dual-mode meter controller and the dual-mode slave node module, that is, combining frequency locking and resetting frequency locking countdown, specifically includes:
Step 2-3-1, constructing a mechanism of combining frequency locking and resetting frequency locking countdown for each service message interaction of the dual-mode copy controller-slave node module;
And 2-3-2, after the slave node module is synchronously frequency-locked by the dual-mode copy controller, adopting an independent control and independent management frequency-locking countdown mechanism aiming at the frequency locking function of the broadband power line carrier and the wireless two link channels.
Preferably, the step 2-3-1 specifically comprises:
Step 2-3-1-1, after receiving the service message sent by the slave node module by the slave node, judging that the service message is a qualified slave node diagnosis message, carrying out corresponding reply processing, locking frequency of a link channel corresponding to the received message according to the current frequency band, and counting down the frequency locking time according to an initial value (120 seconds) again;
step 2-3-1-2, if after the slave node module locks the frequency of a certain working link channel, the link channel does not receive any qualified service message before the frequency locking countdown count down to 0, the slave node exits the frequency locking state on the link channel when the frequency locking countdown count down is 0.
Preferably, the step 2-3-2 specifically comprises:
Step 2-3-2-1, supporting the dual-mode slave node to independently 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 and meeting the requirement of the independence test of different link channels of the production line;
And 2-3-2-2, respectively managing the frequency locking countdown of the broadband power line carrier channel and the wireless two link channels by adopting two independent variables, thereby realizing 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.
Preferably, in the step 3, the service communication flow between the dual-mode meter reading controller and the master node module specifically includes:
Step 3-1, the dual-mode shoveling controller supports and analyzes the shoveling controller-main node diagnosis message of the Q/GDW 376.2 protocol type sent by the upper computer, and sends the service message packet in a newly defined shoveling controller application protocol message, so that the sending of the shoveling controller-main node diagnosis message is realized;
and 3-2, the dual-mode copy controller supports analysis of the application layer protocol message of the newly defined Q/GDW 376.2 protocol type, when the application layer receives the code, the dual-mode copy controller judges that the internal packet message is the Q/GDW 376.2 protocol type message, and strips the Q/GDW 376.2 protocol type message and forwards the message to an upper computer for analysis treatment through a serial port, so that the processing and forwarding of the copy controller-main node diagnosis code return are realized.
Preferably, in the step 3, the service communication flow between the dual-mode meter reading controller and the slave node module specifically includes:
step 3-1, the dual-mode meter reading controller supports and analyzes a meter reading controller-slave node diagnosis message of DL/T645-2007 or DL/T698.45 protocol sent by the upper computer, and sends the service message packet in an application layer meter reading protocol message, so that the meter reading controller-slave node diagnosis message is sent;
And 3-2, supporting analysis of the meter reading protocol message of the application layer when the application layer of the dual-mode meter reading controller receives the code recovery message, and stripping the DL/T645-2007 or the DL/T698.45 protocol type message and forwarding the message to an upper computer for analysis treatment through a serial port when the application layer receives the code recovery message, judging that the internal packet message is the DL/T645-2007 or the DL/T698.45 protocol type message and judging that the target TEI is the meter reading controller TEI, so as to realize processing and forwarding of the meter reading controller-slave node diagnosis code recovery.
The invention also provides a communication system of the dual-mode meter reading controller and the multi-class dual-mode communication units under the multi-scene, which is used for realizing the communication method of the dual-mode meter reading controller and the multi-class dual-mode communication units under the multi-scene, and comprises the dual-mode meter reading controller, the dual-mode communication units, an upper computer, a link connection synchronization unit and a service communication unit;
The upper computer is used for issuing or receiving message data sent by the dual-mode copy controller;
the dual-mode shoveling controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode shoveling controller and the node to be tested establish connection on a designated link channel and a frequency point;
The service communication unit is used for constructing the service communication flow between the dual-mode meter reading controller and the master node module or the slave node module to realize the communication between the dual-mode meter reading controller and the dual-mode communication unit.
The invention also provides a terminal, which comprises a processor and a storage medium;
the storage medium is used for storing instructions;
the processor is used for operating according to the instruction to execute the communication method between the dual-mode meter reading controller and the multi-type dual-mode communication units in the multi-scene.
The invention also provides a computer readable storage medium, on which a computer program is stored, which when being executed by a processor, implements the steps of the communication method with multi-class dual-mode communication units under the multi-scenario of the dual-mode meter reading controller.
Compared with the prior art, the invention has at least the following beneficial effects:
1. the invention provides a mechanism for defining a dual-mode copy controller as a master node-like role development to realize dual-mode communication between two major types of nodes, namely a master node or a slave node. The dual-mode slave node module is used as a dual-mode shoveling controller module on hardware, the dual-mode shoveling controller module uses a master node program on software, and turns off an inter-network coordination mechanism and a wireless channel coordination mechanism of a conventional master node, so that the problem that the shoveling controller with the role of the slave node cannot communicate with the master node module in the past is skillfully solved, the function of communication between the shoveling controller and the slave node module is compatible, and development cost, development complexity and development workload are greatly reduced;
2. The invention proposes that the dual-mode meter reading controller and the dual-mode communication unit are interactively designed into two large flows of link connection synchronization and service data communication, the link connection synchronization flow provides a stable network guarantee for the service data communication flow, and meanwhile, the link connection synchronization flow and the service data communication are managed independently, so that the stability of communication and the robustness of a system are greatly ensured;
3. the mechanism for preparing the connection and communication between different link channel scenes and the target node is realized by selectively configuring different working communication parameters of the shoveling controller, so that the requirement of a user for testing a link channel and a communication frequency band frequency point which want to be tested by the user by using the shoveling controller is greatly met, and diversified selection is provided for product testing and on-site maintenance diversification;
4. The periodic automatic frequency offset synchronization technology of the data link layer is introduced to realize the frequency offset synchronization of the dual-mode copy controller and the dual-mode communication unit, supports a frequency offset synchronization mechanism of a single-link channel or a dual-link channel, innovatively solves the problem that different link channels are connected synchronously, solves the problem that the old copy controller cannot read wirelessly, solves the requirement of selecting communication of the dual-link or the single-link as required, and provides great convenience for testing the single-link channel of a production line delivery;
5. The mechanism that the slave node performs frequency locking and frequency resetting countdown in each service message interaction is introduced, so that the stability of the slave node communication by the slave node is ensured, the independence of the slave node in the non-frequency locking state when the slave node is in a non-communication idle state with the slave node is ensured, and the influence on the original communication of the slave node after the slave node is accessed to the environment is greatly reduced;
6. The frequency locking function for the broadband power line carrier and the wireless two-link channel adopts an independent control and independent management frequency locking countdown mechanism, thereby meeting the independent diagnosis and test requirements of the meter controller on different channels of the dual-mode meter controller, and greatly reducing the coupling of communication control of different links of the slave node.
Drawings
FIG. 1 is a flow chart of a communication method with multiple types of dual-mode communication units in a multi-scenario of a dual-mode meter controller according to the present invention;
FIG. 2 is a block diagram of a communication flow between a dual-mode meter reading controller and a dual-mode master node module in a multi-scenario manner;
FIG. 3 is a block diagram of a communication flow between a dual-mode slave node module and a dual-mode meter reading controller in a multi-scenario in the present invention;
Fig. 4 is a block diagram of a communication system with multiple classes of dual mode communication units in a multi-scenario of the dual mode meter controller of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. The described embodiments of the application are only some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art without making any inventive effort, are within the scope of the present application.
As shown in fig. 1, the present invention provides a method for communicating with multiple types of dual-mode communication units under multiple scenarios of a dual-mode meter controller, where the dual-mode meter controller is used for communicating with multiple types of dual-mode communication units, such as a master node module, a slave node module (slave node STA, slave node collector), under multiple scenarios of broadband power line carrier link communication and wireless link communication, and the method includes the following steps:
step 1, designing a dual-mode meter reading controller as a master node-like role to realize the function of compatible dual-mode communication with two major types of nodes, namely a master node or a slave node;
specifically, the dual-mode slave node module is used as a dual-mode meter reading controller module in hardware, and the dual-mode meter reading controller module in software uses a master node module program.
On the software technology mechanism, the inter-network coordination mechanism of the dual-mode meter reading controller is turned off, so that the situation that communication cannot be carried out on the same beacon time slot or wireless channel due to the fact that the dual-mode meter reading controller and a main node module to be tested carry out bandwidth coordination and wireless channel coordination on a power line carrier channel is avoided.
Thus, the dual-mode meter reading controller on the data link layer can meet the communication conditions of two kinds of nodes, namely a master node or a slave node, on a power line carrier or a wireless channel.
The dual-mode communication unit includes a dual-mode master node module and a dual-mode slave node module.
Step 2, link connection synchronization is carried out on the dual-mode shoveling controller and the dual-mode communication unit, so that the dual-mode shoveling controller and the node to be tested are connected on a designated link channel and a frequency point;
specifically, the link connection synchronization flow specifically includes a configuration working parameter and a periodic frequency offset synchronization process, and specifically includes the following steps:
step 2-1, configuring working communication parameters for the dual-mode meter reading controller according to a link channel scene;
Different working communication parameters of the shoveling controller can be selectively configured to prepare for realizing connection and communication with a target node through different link channel scenes;
the configuration of the working communication parameters for the dual-mode meter reading controller according to the link channel connection scene comprises the following steps:
The method comprises the steps of selecting a connection link channel, a connection mode of a shoveling controller, a broadband carrier frequency band, a wireless link Option mode, a wireless link channel number and a connection target node address through an upper computer interface, sending the parameters to a dual-mode shoveling controller to configure different working parameters of the dual-mode shoveling controller, and preparing for realizing connection and communication with a target node through different connection scenes of the link channel, wherein the connection scenes of the link channel refer to a link connection mode of the dual-mode shoveling controller and a dual-mode communication unit.
Step 2-2, realizing frequency offset synchronization of the dual-mode copy controller and the dual-mode communication unit based on periodic automatic frequency offset synchronization of a data link layer, and supporting frequency offset synchronization of a single-link channel or a double-link channel;
According to the link connection mode of the dual-mode meter reading controller and the dual-mode communication unit, different periodic automatic frequency offset synchronization methods are respectively adopted to realize the frequency offset synchronization of the dual-mode meter reading controller and the dual-mode communication unit, wherein the link connection mode of the dual-mode meter reading controller and the dual-mode communication unit comprises an HPLC link connection mode, an HRF link connection mode and an HPLC+HRF link connection mode, and the method comprises the following specific steps:
when the HPLC link connection mode is selected, frequency offset synchronization between the dual-mode copy controller and the dual-mode communication unit is realized through periodic automatic frequency offset synchronization on a set broadband carrier frequency band:
On the set broadband carrier frequency band, the dual-mode meter reading controller sends a self-defined frequency offset synchronous message through an HPLC link channel with a period of 1 second, wherein the initial frequency offset in the frequency offset synchronous message is set to be 0ppm, the frequency offset synchronous timeout time is set to be 1 second, and ppm is a unit measurement symbol to represent parts per million.
If the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset of the copy controller is set according to the frequency offset of +/-n 10ppm (n is the order, and the value is 0-15) in sequence, and then the frequency offset synchronization message is sent.
If the dual-mode communication unit receives the frequency offset synchronous message, the dual-mode communication unit analyzes the frequency offset synchronous message and then sends a frequency offset synchronous code returning message, wherein the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message.
The dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, and then the current frequency offset value set by the dual-mode meter reading controller is reasonable, and when the frequency offset synchronization message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
When the connection mode of the HRF (high speed radio frequency) link is selected, the frequency offset synchronization of the shoveling controller and the dual-mode communication unit is realized through the periodic automatic frequency offset synchronization on the setting:
Further, when the HRF link connection mode is selected, on a set wireless frequency point, the dual-mode copy controller sends a self-defined frequency offset synchronous message through the HRF link channel with 1 second as a period, wherein the initial frequency offset in the frequency offset synchronous message is set to be 0ppm, and the frequency offset synchronous timeout time is 1 second.
If the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset of the copy controller is set according to the frequency offset of +/-n 10ppm (n is the order, and the value is 0-15) in sequence, and then the frequency offset synchronization message is sent.
If the dual-mode communication unit receives the frequency offset synchronous message, after analysis, the dual-mode communication unit sends a frequency offset synchronous code returning message, wherein the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message.
When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, the current frequency offset value set by the dual-mode meter reading controller is proper, and when the frequency offset synchronization message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
Further, when the connection mode of the HPLC+HRF link is selected, respectively constructing a periodic automatic frequency offset synchronization mechanism on the set broadband carrier frequency band and the wireless frequency point to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit, and specifically comprising the following steps:
when the HPLC+HRF link connection mode is adopted, the dual-mode copy controller respectively sends a self-defined frequency offset synchronous message through an HPLC and HRF link channel with a period of 1 second on a set wireless frequency point and a broadband carrier frequency band, wherein the initial frequency offset in the frequency offset synchronous message is set to be 0ppm, and the frequency offset synchronous timeout time is 1 second;
if the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller each time, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset of the copy controller is set to be +/-n 10ppm in sequence, the frequency offset of the copy controller is set, and then the frequency offset synchronization message is sent, wherein n is the sequence, and the value range of n is 0-15;
If the dual-mode communication unit receives the frequency offset synchronous message, after analysis, the dual-mode communication unit sends a frequency offset synchronous code returning message, wherein the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message;
When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, the current frequency offset value set by the dual-mode meter reading controller is proper, and when the frequency offset synchronization message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
Further, supporting frequency offset synchronization of a single link channel or a double link channel specifically includes:
1) The self-defined frequency offset synchronous message respectively comprises carrier frequency offset and wireless frequency offset parameters and is used for informing the current meter reading controller of setting own frequency offset parameters;
2) When only the single link channel is subjected to frequency offset synchronization, the frequency offset parameter of the other link channel is filled with 0 by default;
3) When the frequency offset synchronization of the dual-link channel is selected, the frequency offset synchronization is determined to be successful as long as one link channel is successful in frequency offset synchronization.
4) When the frequency offset synchronization of the dual-link channel is selected, even if the frequency offset synchronization of only one link channel is successful, the action of switching the frequency offset on the other link channel by the shoveling controller to send the synchronous message is still continuously performed.
Step 2-3, when the dual-mode meter reading controller communicates with the dual-mode slave node module, establishing a mechanism of interaction between the dual-mode meter reading controller and the dual-mode slave node module, namely combining frequency locking and resetting frequency locking countdown;
Step 2-3-1, constructing a mechanism of combining frequency locking and resetting frequency locking countdown for each service message interaction of a slave node module point;
Step 2-3-1-1, after receiving the service message sent by the slave node module by the slave node, judging that the service message is a qualified slave node diagnosis message, carrying out corresponding reply processing, locking frequency according to the current frequency band of the link channel corresponding to the received message, and counting down the frequency locking time again according to the initial value (120 seconds);
Step 2-3-1-2, if the link channel does not receive any qualified service message after the frequency locking of a certain working link channel of the slave node module before the frequency locking countdown count down to 0, the slave node exits the frequency locking state on the link channel when the frequency locking countdown count down is 0.
Step 2-3-2, after the slave node module is synchronously frequency-locked by the dual-mode copy controller, adopting an independent control and independent management frequency-locking countdown mechanism aiming at the frequency locking functions of the broadband power line carrier and the wireless two link channels;
Wherein, the step 2-3-2 specifically comprises the following steps:
Step 2-3-2-1, the dual-mode slave node is supported to independently lock only the frequency band of the broadband power line carrier channel or only the frequency point of the wireless channel, so that the function of independent frequency locking control of the two link channels is realized, and the requirement of the independence test of different link channels of the production line is met.
And 2-3-2-2, respectively managing the frequency locking countdown of the broadband power line carrier channel and the wireless two link channels by adopting two independent variables, thereby realizing 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.
And step 3, respectively constructing a service communication flow between the dual-mode meter reading controller and the master node module or the slave node module to realize the communication between the dual-mode meter reading controller and the dual-mode communication unit.
Specifically, the service data communication flow is used for realizing specific service data communication interaction between the dual-mode copy controller and the node to be tested and realizing expected service functions.
As shown in fig. 2, when the dual-mode meter reading controller performs service communication with the master node module, the communication flow specifically includes:
The dual-mode copy controller 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, and when the application layer receives the return code, the internal packet message is judged to be the Q/GDW 376.2 protocol type message, the Q/GDW 376.2 protocol type message is stripped and forwarded to the upper computer for analysis processing through the serial port, the specific flow is as follows:
Step 3-1, the dual-mode shoveling controller supports and analyzes the shoveling controller-main node diagnosis message of the Q/GDW 376.2 protocol type sent by the upper computer, and sends the service message packet in a newly defined shoveling controller application protocol message, so that the sending of the shoveling controller-main node diagnosis message is realized;
and 3-2, the dual-mode copy controller supports analysis of the application layer protocol message of the newly defined Q/GDW 376.2 protocol type, when the application layer receives the code, the dual-mode copy controller judges that the internal packet message is the Q/GDW 376.2 protocol type message, and strips the Q/GDW 376.2 protocol type message and forwards the message to an upper computer for analysis treatment through a serial port, so that the processing and forwarding of the copy controller-main node diagnosis code return are realized.
As shown in fig. 3, when the dual-mode meter reading controller performs service communication with the slave node module, the communication flow specifically includes:
The dual-mode meter reading controller supports to analyze DL/T645-2007 or DL/T698.45 protocol messages sent by the upper computer, and send the service message packet in an application layer meter reading protocol message, and when the application layer receives a code, the application layer judges that the inner packet message is a DL/T645-2007 or DL/T698.45 protocol type message, the DL/T645-2007 or DL/T698.45 protocol type message is stripped, and the service message packet is forwarded to the upper computer for analysis and processing through a serial port. The specific flow is as follows:
step 3-1, the dual-mode meter reading controller supports and analyzes a meter reading controller-slave node diagnosis message of DL/T645-2007 or DL/T698.45 protocol sent by the upper computer, and sends the service message packet in an application layer meter reading protocol message, so that the meter reading controller-slave node diagnosis message is sent;
And 3-2, supporting analysis of the meter reading protocol message of the application layer when the application layer of the dual-mode meter reading controller receives the code recovery message, and stripping the DL/T645-2007 or the DL/T698.45 protocol type message and forwarding the message to an upper computer for analysis treatment through a serial port when the application layer receives the code recovery message, judging that the internal packet message is the DL/T645-2007 or the DL/T698.45 protocol type message and judging that the target TEI is the meter reading controller TEI, so as to realize processing and forwarding of the meter reading controller-slave node diagnosis code recovery.
Further, the invention includes two general examples of communication with a dual-mode master node module (CCO) in a multi-scenario of the dual-mode meter controller and communication with a dual-mode slave node module (STA) in a multi-scenario of the dual-mode meter controller, and the two examples are specifically shown in fig. 1. The implementation processes of the two kinds of examples corresponding to the present invention are respectively described below in turn.
1. Communication with a dual-mode master node module (CCO) in multiple scenarios for a dual-mode meter controller
The communication system of the dual-mode meter reading controller and the dual-mode master node module (CCO) mainly comprises upper computer software, the dual-mode meter reading controller, the dual-mode master node module and the dual-mode slave node module (optionally). The communication between the dual-mode meter reading controller and the dual-mode main node module (CCO) under the multi-scene is specifically divided into two major flows of link connection synchronization and service data communication, and the two major flows are shown in figure 2 in detail.
The following describes the link connection synchronization execution steps in detail with reference to fig. 2:
And 1, selecting information such as a connection link channel, a working frequency band, a target node type, a target node address and the like of the shoveling controller on an upper computer interface, and sending a message for the upper computer unit to set the parameters in a self-defined manner through clicking a sending command to the shoveling controller through a serial port. The message uses 376.2 format conventions to custom extend afn=05h, fn=24, and the data unit format is shown in table 1 below.
TABLE 1 data unit format for setting working frequency band of copy controller
The connecting link channel is 0, the controller and the equipment are connected by an HPLC link, 1, the controller and the equipment are connected by an HRF link, and 2, the controller and the equipment are connected and communicated by an HPLC and HRF dual-mode link.
The connection mode of the controller is 0, the controller will establish connection with CCO 1, the controller will establish connection with STA and other is reserved
The broadband carrier frequency range is 0:1.953-11.96 MHz, and 1: 2.441~5.615 MHz;2:0.781~2.930 MHz;3:1.758~2.930 MHz;4~255 represents reservation. Only when the connection link is HPLC.
The radio link Option modes 1,2,3 are valid only when the connection link is HRF.
The wireless link channel number is configured according to the actual setting value, and is valid only when the connection link is HRF.
The shoveling controller is connected with the target node address, namely the address of the CCO or STA node to be connected by the shoveling controller, and the small ends are arranged.
And 2, after receiving the correct message for setting the working parameters of the controller, resetting the connecting link channel, the connecting mode, the broadband carrier frequency band, the wireless Option mode, the wireless link channel number and the connecting target node address of the controller according to the analysis result. And the group 376.2 standard acknowledgement frame is returned to the upper computer.
And 3, the copy controller automatically sends a frequency offset synchronous message with the target node address and the current frequency offset value (unit 10 ppm) of the copy controller by taking 1s as a period on a newly set link channel and a working frequency band according to the specific content of the mechanism 4.
And 4, if the dual-mode main node module (CCO) receives the frequency offset synchronous message, after analysis, sending a frequency offset synchronous code returning message, wherein the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message.
And 5, if the dual-mode copy controller receives the return code of the frequency offset synchronous message, after analysis is successful, storing the current frequency offset synchronous ppm customization, and then sending the frequency offset synchronous message with the period of 1 second, taking the stored ppm constant value from the frequency offset value, and when the return code is not received for 3 times by the frequency offset synchronous message at a certain moment, cutting the next frequency offset ppm value to perform frequency offset synchronization.
Note that the frequency offset synchronization message is extended by selecting a variable area of a beacon frame type of a data link layer, and the specific extended frequency offset synchronization protocol frame format is shown in the following tables 2 and 3:
TABLE 2 frequency offset synchronous downlink protocol frame format for data link layer extension
TABLE 3 frequency offset synchronous uplink protocol frame format for data link layer extension
Further, the detailed description of the flow of communication between the controller and CCO service data is shown in fig. 2, and the steps are performed:
Step 1, a user selects a certain diagnosis service according to the requirement in the CCO service diagnosis of an upper computer interface, for example, selects to read the CCO slave node information service, then the upper computer reads the CCO slave node information message according to a standard 376.2 protocol group, and when clicking and sending, the upper computer sends the message to a copying controller through a serial port.
Step 2, after the copy controller receives the diagnostic message of standard 376.2 protocol, the dual-mode copy controller analyzes the copy controller-main node diagnostic message of Q/GDW 376.2 protocol type sent by the upper computer, and sends the service message in a newly defined copy controller application layer protocol message, so as to realize the sending of the copy controller-main node diagnostic message;
and 3, after receiving the diagnostic message of the controller-master node, the application layer of the dual-mode master node module analyzes the diagnostic message and decides whether to continue forwarding to the STA, finally sets a code frame back according to 376.2 protocol format, and packages the code frame in the protocol message of the application layer of the controller, and replies through a corresponding link channel.
And 4, the dual-mode copy controller supports the analysis of the newly defined Q/GDW 376.2 protocol type application layer protocol message, when the application layer receives the return code, the dual-mode copy controller judges that the internal packet message is the Q/GDW 376.2 protocol type message, strips the Q/GDW 376.2 protocol type message, and forwards the Q/GDW 376.2 protocol type message to an upper computer for analysis and treatment through a serial port, thereby realizing the treatment and forwarding of the copy controller-main node diagnosis return code.
2. Communication with a dual mode slave node module (STA) in multiple scenarios of a dual mode meter reading controller
The communication system of the dual-mode meter reading controller and the dual-mode slave node module (STA) mainly comprises upper computer software, the dual-mode meter reading controller, the dual-mode slave node module and an electric energy meter. The communication between the dual-mode meter reading controller and the dual-mode slave node module (STA) under the multi-scene is specifically divided into a link connection synchronization flow, a frequency locking slave node flow and a service data communication flow, and the detailed description is shown in figure 3. The link connection synchronization flow of the slave node by the shoveling controller is very similar to that of the master node by the shoveling controller, and the description is omitted here. Only the frequency-locking slave node flow and the business data communication flow of the shoveling controller are described below.
The following details the execution steps of the frequency-locked slave node flow with reference to fig. 3:
Step 1, after the shoveling controller and the STA execute the link connection synchronization process, a user points a frequency locking button on an interface of the upper computer, and then the upper computer automatically selects a target slave node address and a link connection channel in the current shoveling controller link connection synchronization process, sets a message of a self-defined DL/T645-2007 protocol query working frequency band, and sends a message of querying the corresponding working frequency band to the shoveling controller through a serial port to be used as a frequency locking command message.
If the link connection channel is a broadband power line carrier, the group inquires a message of the broadband power line carrier band.
If the link connection channel is a micropower wireless, the group inquires the messages of the wireless Option and the channel number.
The extended custom DL/T645-2007 query slave node operating band protocol data format is as follows table 4:
TABLE 4 extended custom DL/T645-2007 query slave node operating band (frequency locked) protocol data format
And 2, after receiving the frequency locking command message, the meter reading controller transmits the message packet to the application layer concentrator through a corresponding working link channel (carrier wave/wireless) in the active meter reading message.
And 3, after receiving the application layer message from a certain link channel of the node, the dual mode analyzes the application layer message into a frequency locking command message, firstly, the link channel is locked into the current working frequency band again, the countdown is reset for 120 seconds, and then the packet of the current working frequency band 645-07 is recovered in the uplink message of the active meter reading format of the application layer concentrator through the corresponding working link channel.
And 4, after receiving the application layer message from a certain link channel of the node, the dual mode analyzes the application layer message into a frequency locking command message, firstly, the link channel is locked into the current working frequency band again, the countdown is reset for 120 seconds, and then the packet of the current working frequency band 645-07 is recovered in the uplink message of the active meter reading format of the application layer concentrator through the corresponding working link channel.
And step 5, the dual-mode copy controller receives the uplink message of the active meter reading format of the slave node reply application layer concentrator, and then strips the message packaged in the application layer and replies the message to the upper computer software through the serial port.
And 6, if the upper computer software receives the query working frequency band return code message within 1.5 seconds and the analysis format is normal, displaying that the frequency locking is successful STA bandx/the frequency locking is STA CHANNEL ID =x option=x is successful, otherwise, displaying that the frequency locking is failed.
Further, the executing steps of the traffic data communication flow of the slave-to-slave node of the controller are described in detail with reference to fig. 3:
Step 1, a user selects a certain diagnosis service from the slave node (STA) service according to the requirement in the interface diagnosis of the upper computer, for example, selects and reads the total forward active power energy of the slave node, the upper computer reads the total forward active power energy message of the slave node according to the corresponding protocol (645-07/698.45) group selected by the interface, and when clicking and transmitting, the upper computer transmits the message to a reading controller (the reading timeout time is 2 seconds) through a serial port.
Step 2, after the copy controller receives the diagnostic message of standard 645-07 or 698.45 protocol, the dual-mode copy controller analyzes the copy controller-slave node diagnostic message sent by the upper computer, and sends the service message packet in the active meter reading application layer protocol message of the concentrator through the current working link channel (carrier wave/wireless), thereby realizing the sending of the copy controller-slave node diagnostic message;
And 3, after receiving the copy controller-slave node diagnosis message, the application layer of the dual-mode slave node module firstly re-locks the frequency again for the current communication link channel, and resets for 120 seconds to count down, and then decides whether to continue forwarding to the downward ammeter or not after analysis, taking the total forward active power energy reading as an example, the slave node module needs to send 645-07 or 698.45 protocol meter reading message of the inner package to the ammeter through the STA serial port, and waits for the return code.
And 4, after the electric meter code return message received by the dual-mode slave node serial port is in normal format analysis, the electric meter code return message is packaged in the concentrator active meter reading application layer protocol uplink message and is sent back through the current working link channel (carrier wave/wireless).
And 5, after receiving the code message, the application layer of the dual-mode meter reading controller analyzes the application layer protocol message, peels off the meter reading message in the inner package, and forwards the meter reading message to the upper computer for analysis processing through the serial port.
And 6, if the upper computer receives the code returning message within 2 seconds of reading, analyzing, for example, reading the total code returning of the forward active power, analyzing the total forward active power value, displaying on an interface, and if the code returning message is not received within 2 seconds, displaying the diagnosis reading overtime. Thus, the diagnosis flow of the single-round shoveling controller-STA is completed.
The above embodiments are only illustrative of the execution steps of 1 example each based on the diagnosis of the dual-mode controller-CCO and the diagnosis of the controller-STA, and various abundant diagnosis functions of the dual-mode controller for communicating with various types of dual-mode communication units in multiple scenes can be realized after the method of the invention is actually adopted, which are not illustrated one by one.
As shown in fig. 4, the invention also provides a communication system of the dual-mode meter reading controller and multi-class dual-mode communication units in multiple scenes, which is used for realizing the communication method of the dual-mode meter reading controller and the multi-class dual-mode communication units in multiple scenes, and the system comprises the dual-mode meter reading controller, the dual-mode communication units, an upper computer, a link connection synchronization unit and a service communication unit;
The upper computer is used for transmitting or receiving message data sent by the dual-mode copy controller CKQ;
the dual-mode communication unit comprises a master node module CCO and a slave node module STA;
the dual-mode shoveling controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode shoveling controller and the node to be tested establish connection on a designated link channel and a frequency point;
The service communication unit is used for constructing the service communication flow between the dual-mode meter reading controller and the master node module or the slave node module to realize the communication between the dual-mode meter reading controller and the dual-mode communication unit.
Compared with the prior art, the invention has the beneficial effects that the function of link synchronization and communication on a specified link channel and a specified frequency band can be realized by constructing a fine and perfect frequency offset synchronization mechanism of the dual-mode copy controller, and meanwhile, the management of the communication idle maximum duration of the dual-mode copy controller and the slave node module can be realized, so that the long-term influence on the original communication network is avoided.
The present disclosure may be a system, method, and/or computer program product. The computer program product may include a computer readable storage medium having computer readable program instructions embodied thereon for causing a processor to implement aspects of the present disclosure.
The computer readable storage medium may be a tangible device that can hold and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic 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 diskette, 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 mechanical encoding device, punch cards or intra-groove protrusion structures such as those having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media, as used herein, are not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through waveguides or other transmission media (e.g., optical pulses through fiber optic cables), or electrical signals transmitted through wires.
The computer readable program instructions described herein may be downloaded from a computer readable storage medium to a respective computing/processing device or to an external computer or external storage device over a network, such as the internet, a local area network, a wide area network, and/or a wireless network. The network may include copper transmission cables, fiber optic transmissions, wireless transmissions, routers, firewalls, switches, gateway computers and/or edge servers. The network interface card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium in the respective computing/processing device.
The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction Set Architecture (ISA) instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source or object code written in any combination of one or more programming languages, including an object oriented programming language such as SMALLTALK, C ++ or the like and conventional procedural programming languages, such as the "C" programming 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, aspects of the present disclosure are implemented by personalizing electronic circuitry, such as programmable logic circuitry, field Programmable Gate Arrays (FPGAs), or Programmable Logic Arrays (PLAs), with state information of computer readable program instructions, which can execute the computer readable program instructions.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the specific embodiments of the present invention without departing from the spirit and scope of the present invention, and any modifications and equivalents are intended to be included in the scope of the claims of the present invention.

Claims (13)

1. A method for communicating with a dual mode communication unit in a multi-scenario of a dual mode meter reading controller, comprising the steps of:
step 1, designing a dual-mode meter reading controller to be similar to a master node role to communicate with a dual-mode communication unit, wherein the dual-mode communication unit comprises a master node module and a slave node module;
step 2, link connection synchronization is carried out on the dual-mode shoveling controller and the dual-mode communication unit, so that the dual-mode shoveling controller and the node to be tested are connected on a designated link channel and a frequency point;
The step 2 specifically includes:
step 2-1, configuring working communication parameters for the dual-mode meter reading controller according to a link channel scene;
step 2-2, constructing a periodic automatic frequency offset synchronization mechanism to realize frequency offset synchronization of the dual-mode copy controller and the dual-mode communication unit, and supporting frequency offset synchronization of a single-link channel or a double-link channel;
the step 2-2 specifically comprises the following steps:
Respectively constructing corresponding periodic automatic frequency offset synchronization mechanisms according to the link connection mode of the dual-mode meter reading controller and the dual-mode communication unit, and realizing frequency offset synchronization of the dual-mode meter reading controller and the dual-mode communication unit;
The link connection mode of the dual-mode meter reading controller and the dual-mode communication unit comprises an HPLC link connection mode, an HRF link connection mode and an HPLC and HRF link connection mode;
For the HPLC link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed on a set broadband carrier frequency band to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit;
for the HRF link connection mode, a periodic automatic frequency offset synchronization mechanism is constructed on a set wireless frequency point to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit;
For the connection mode of the HPLC and the HRF links, respectively constructing a periodic automatic frequency offset synchronization mechanism on the set broadband carrier frequency band and the wireless frequency point to realize the frequency offset synchronization of the copy controller and the dual-mode communication unit;
In the step 2-2, for the HPLC link connection mode, constructing a periodic automatic frequency offset synchronization mechanism on a set broadband carrier frequency band to realize frequency offset synchronization between the copy controller and the dual-mode communication unit specifically includes:
on a set broadband carrier frequency band, the dual-mode shoveling controller sends a self-defined frequency offset synchronous message through an HPLC link channel with a period of 1 second, wherein an initial frequency offset value in the frequency offset synchronous message is set to be 0ppm, and a frequency offset synchronous timeout time is set to be 1 second;
If the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller each time, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset value of the dual-mode copy controller is set with +/-n 10ppm in sequence, the frequency offset synchronization message is sent again, wherein n is the sequence, and the value range of n is 0-15;
If the dual-mode communication unit receives the frequency offset synchronous message, after analysis, a frequency offset synchronous code returning message is sent, and the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message;
The dual-mode meter reading controller receives the frequency offset synchronous return code replied by the dual-mode communication unit, and then the current frequency offset value set by the dual-mode meter reading controller is reasonable, and when the frequency offset synchronous message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronous message are consistent with the current frequency offset value;
And step 3, respectively constructing a flow of executing service communication between the dual-mode meter reading controller and the master node module or the slave node module, and realizing communication between the dual-mode meter reading controller and the dual-mode communication unit based on the flow.
2. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 1, wherein,
The step 1 specifically includes:
The hardware part of the dual-mode meter reading controller module adopts a slave node module, the software part of the dual-mode meter reading controller module adopts a master node module program, and an inter-network coordination mechanism of the dual-mode meter reading controller is closed.
3. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 1, wherein,
The step 2 specifically includes:
And 2-3, when the dual-mode meter reading controller communicates with the slave node module, establishing a mechanism combining interaction of the dual-mode meter reading controller and the dual-mode slave node module, namely frequency locking and resetting frequency locking countdown.
4. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 3, wherein,
The step 2-1 specifically comprises the following steps:
the upper computer transmits parameters of a connection link channel, a connection mode of the meter reading controller, a broadband carrier frequency band, a wireless link Option mode, a wireless link channel number and a connection target node address to the dual-mode meter reading controller to serve as communication working parameters of the dual-mode meter reading controller.
5. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 1, wherein,
In the step 2-2, for the HRF link connection mode, constructing a periodic automatic frequency offset synchronization mechanism on the set wireless frequency point to realize frequency offset synchronization between the copy controller and the dual-mode communication unit specifically includes:
When the HRF link connection mode is selected, on a set wireless frequency point, the dual-mode copy controller sends a self-defined frequency offset synchronous message through the HRF link channel with a period of 1 second, wherein the initial frequency offset value in the frequency offset synchronous message is set to be 0ppm, and the frequency offset synchronous timeout time is 1 second;
If the frequency offset synchronization code return message is not received within 1 second after the frequency offset synchronization message is sent by the dual-mode copy controller each time, the frequency offset value is kept unchanged when the frequency offset synchronization message is retransmitted, the retransmission of the message is stopped until the frequency offset synchronization code return message is retransmitted for 2 times, the frequency offset of the dual-mode copy controller is set with +/-n 10ppm in sequence, and then the frequency offset synchronization message is sent, wherein n is the sequence, and the value range of n is 0-15;
If the dual-mode communication unit receives the frequency offset synchronous message, after analysis, the dual-mode communication unit sends a frequency offset synchronous code returning message, wherein the frequency offset value in the code returning message is the same as the frequency offset value in the received frequency offset synchronous message;
When the dual-mode meter reading controller receives the frequency offset synchronization return code replied by the dual-mode communication unit, the current frequency offset value set by the dual-mode meter reading controller is proper, and when the frequency offset synchronization message is sent in the next 1 second period, the frequency offset value set by the dual-mode meter reading controller and the frequency offset value filled in the frequency offset synchronization message are consistent with the current frequency offset value.
6. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 3, wherein,
The step 2-3 specifically comprises the following steps:
Step 2-3-1, constructing a mechanism combining frequency locking and resetting frequency locking countdown for each service message interaction of the dual-mode copy controller and the dual-mode slave node module;
And 2-3-2, after the dual-mode slave node module is synchronously frequency-locked by the dual-mode copy controller, adopting a mechanism for independently controlling and independently managing frequency-locking countdown aiming at the frequency locking functions of the broadband power line carrier and the wireless two link channels.
7. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 6, wherein,
The step 2-3-1 specifically comprises the following steps:
step 2-3-1-1, after receiving the service message sent by the slave node module by the meter reading controller each time, judging that the service message is a qualified meter reading controller-slave node diagnosis message, carrying out corresponding reply processing, locking frequency of a link channel corresponding to the received message according to the current frequency band, and counting down the frequency locking time again according to an initial value, wherein the initial value is set to 120 seconds;
Step 2-3-1-2, if after the slave node module locks the frequency of a certain working link channel, the link channel does not receive any qualified service message before the frequency locking countdown is 0, the slave node exits the frequency locking state on the link channel when the frequency locking countdown is 0.
8. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 6, wherein,
The step 2-3-2 specifically comprises the following steps:
step 2-3-2-1, supporting the dual-mode slave node to independently lock only the frequency band of the HPLC channel or only the frequency point of the HRF channel;
And 2-3-2-2, respectively managing the frequency locking countdown of the HPLC channel and the HRF channel by adopting two independent variables, thereby realizing 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 a multiple scenario set forth in claim 1, wherein,
In the step 3, the service communication flow between the dual-mode meter reading controller and the master node module specifically includes:
Step 3-1, the dual-mode shoveling controller supports and analyzes a shoveling controller-main node diagnosis message of Q/GDW 376.2 protocol type sent by the upper computer, and sends the service message packet in a newly defined shoveling controller application protocol message to send the shoveling controller-main node diagnosis message;
And 3-2, the dual-mode copy controller supports analysis of the newly defined Q/GDW 376.2 protocol type application layer protocol message, and when the application layer receives the code, the dual-mode copy controller peels off the Q/GDW 376.2 protocol type copy controller-main node diagnosis message sent by the upper computer and forwards the message to the upper computer for analysis processing through a serial port, and the copy controller-main node diagnosis code is processed and forwarded when the application layer judges that the internal packet message is the Q/GDW 376.2 protocol type message.
10. The method for communicating with a dual mode communication unit in a multiple scenario set forth in claim 1, wherein,
In the step 3, the service communication flow between the dual-mode meter reading controller and the slave node module specifically includes:
Step 3-1, the dual-mode meter reading controller supports and analyzes a meter reading controller-slave node diagnosis message of DL/T645-2007 or DL/T698.45 protocol sent by the upper computer, and sends the service message packet in an application layer meter reading protocol message to send the meter reading controller-slave node diagnosis message;
And 3-2, supporting analysis of the meter reading protocol message of the application layer when the application layer of the dual-mode meter reading controller receives the code recovery message, and stripping the DL/T645-2007 or the DL/T698.45 protocol message and forwarding the message to an upper computer for analysis treatment through a serial port when the application layer receives the code recovery, judging that the internal packet message is the DL/T645-2007 or the DL/T698.45 protocol type message and judging that the target TEI is the meter reading controller TEI, and performing processing forwarding of the meter reading controller-slave node diagnosis code recovery.
11. A communication system of a dual-mode meter reading controller in multiple scenes and a dual-mode communication unit, which is characterized by comprising the dual-mode meter reading controller, the dual-mode communication unit, an upper computer, a link connection synchronization unit and a service communication unit;
The upper computer is used for issuing or receiving message data sent by the dual-mode copy controller;
the dual-mode shoveling controller performs link connection synchronization with the dual-mode communication unit through the link connection synchronization unit, so that the dual-mode shoveling controller and the node to be tested establish connection on a designated link channel and a frequency point;
The service communication unit is used for constructing the service communication flow between the dual-mode meter reading controller and the master node module or the slave node module to realize the communication between the dual-mode meter reading controller and the dual-mode communication unit.
12. A terminal comprises a processor and a storage medium, and is characterized in that:
the storage medium is used for storing instructions;
the processor being operative according to the instructions to perform the steps of the method according to any one of claims 1-10.
13. Computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements the steps of the method according to any of claims 1-10.
CN202510685600.4A 2025-05-27 2025-05-27 Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene Active CN120224050B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510685600.4A CN120224050B (en) 2025-05-27 2025-05-27 Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510685600.4A CN120224050B (en) 2025-05-27 2025-05-27 Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene

Publications (2)

Publication Number Publication Date
CN120224050A CN120224050A (en) 2025-06-27
CN120224050B true CN120224050B (en) 2025-08-26

Family

ID=96115610

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510685600.4A Active CN120224050B (en) 2025-05-27 2025-05-27 Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene

Country Status (1)

Country Link
CN (1) CN120224050B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131118A (en) * 2019-12-25 2020-05-08 深圳市利普信通科技有限公司 Method compatible with various communication access modes of broadband power line carrier copy controller
CN116743657A (en) * 2023-06-30 2023-09-12 中电华瑞技术有限公司 Communication module remote maintenance method based on HPLC and HRF dual-mode communication mode

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6236365B1 (en) * 1996-09-09 2001-05-22 Tracbeam, Llc Location of a mobile station using a plurality of commercial wireless infrastructures
CN107947889B (en) * 2017-12-18 2019-07-02 京信通信系统(中国)有限公司 A kind of method and apparatus of clock frequency deviation calibration
CN111697997B (en) * 2020-05-29 2021-08-17 国网河北省电力有限公司电力科学研究院 A kind of HPLC module rapid detection device and method based on copy controller
JP2023543182A (en) * 2020-09-19 2023-10-13 華為技術有限公司 Communication link initiation method and apparatus
CN219802497U (en) * 2023-04-24 2023-10-03 湖南思凌科信息技术有限公司 Multi-mode meter reading device
CN119696893A (en) * 2024-12-17 2025-03-25 江苏征途电气科技有限公司 A dual-mode communication network identity authentication method based on HPLC and HRF

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131118A (en) * 2019-12-25 2020-05-08 深圳市利普信通科技有限公司 Method compatible with various communication access modes of broadband power line carrier copy controller
CN116743657A (en) * 2023-06-30 2023-09-12 中电华瑞技术有限公司 Communication module remote maintenance method based on HPLC and HRF dual-mode communication mode

Also Published As

Publication number Publication date
CN120224050A (en) 2025-06-27

Similar Documents

Publication Publication Date Title
US20230090268A1 (en) Apparatus and method for supporting tsc
US11337274B2 (en) Method, apparatus and device for controlling dual-mode communication, and computer readable storage medium
CN112565351B (en) Mobile meter reading method based on WiSUN protocol
CN112995133B (en) Analysis method, device and system based on modbus protocol
CN109981668A (en) Common apparatus Internet of Things communication means based on the extensive agreement of MQTT
CN111131118B (en) Method compatible with various communication access modes of broadband power line carrier copy controller
US11419175B2 (en) Reconstructing a personal area network or system after a failure in the network or system
CN114640973B (en) Communication method and device
EP1830515A1 (en) A method for transferring the network management configuration information between the element management systems
CN120224050B (en) Communication method and system for multi-mode shoveling controller and multi-class dual-mode communication units under multi-scene
CN110336648A (en) A kind of Data Handling Equipment And Method based on NB-IOT
CN113543185B (en) Automatic-opening-assistance-based 5G high-density base station rapid operation method and system
CN115484321A (en) SVG interactive acquisition method and system capable of configuring multiple protocols and SVG device
US11592316B2 (en) Method for reading meters for fluids
CN113660309A (en) Ubiquitous power-based multi-system converged communication protocol adaptation system for Internet of things
CN110149398B (en) User management method for intelligent door lock of intelligent home
CN218920626U (en) 5G remote communication module
CN114501604B (en) Method for acquiring (or providing) clock synchronization information and communication device
CN113133097B (en) Wireless communication method and system
CN111465089B (en) Low-power-consumption communication system based on internet of things gateway
CN107820308A (en) Data communications method and device
CN112738245B (en) Method and device for determining equipment response information, storage medium and electronic device
WO2021138910A1 (en) Time synchronization method and apparatus, terminal, access point device, and storage medium
KR102840221B1 (en) Method and apparatus for detecting terminal in M2M communication unavailable state
CN114070546B (en) Method and system for synchronously uploading communication states of IEC61850 protocol device and dual gateway machine

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant