CN104579428A - PLC equipment automatic pairing method - Google Patents

PLC equipment automatic pairing method Download PDF

Info

Publication number
CN104579428A
CN104579428A CN201510015024.9A CN201510015024A CN104579428A CN 104579428 A CN104579428 A CN 104579428A CN 201510015024 A CN201510015024 A CN 201510015024A CN 104579428 A CN104579428 A CN 104579428A
Authority
CN
China
Prior art keywords
plc
main control
control module
pairing
node
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.)
Granted
Application number
CN201510015024.9A
Other languages
Chinese (zh)
Other versions
CN104579428B (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.)
Shanghai Hongya Communication Technology Co Ltd
Original Assignee
Shanghai Hongya Communication Technology 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 Shanghai Hongya Communication Technology Co Ltd filed Critical Shanghai Hongya Communication Technology Co Ltd
Priority to CN201510015024.9A priority Critical patent/CN104579428B/en
Publication of CN104579428A publication Critical patent/CN104579428A/en
Application granted granted Critical
Publication of CN104579428B publication Critical patent/CN104579428B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
  • Programmable Controllers (AREA)

Abstract

The invention relates to the technical field of power lien communication, in particular to a PLC equipment automatic pairing method. First, through a main node main control module and a child node main control module, the facts that PLC modules connected with the modules are in the normal state are detected respectively, and MAC addresses are obtained; then the main node main control module and the child node main control module receive unicast pairing information sent by the opposite sides respectively and send the information to the PLC modules connected with the modules. After the main node PLC modules and the child node PLC modules receive the unicast pairing information, pairing operation is carried out. After pairing, a main node is used as a network control center, and the data information including network secret keys and data encryption keys of a child node is configured. According to the technical scheme, the problem that through a manual key pressing mode, time and labor are consumed, and errors can happen easily is effectively solved, the pairing state of equipment can be distinguished intelligently, then equipment pairing operation is completed automatically, under the environment which is not suitable for operation of an engineer, a simple networking method is provided, and the problem of networking of a large amount of equipment can be effectively solved.

Description

A kind of PLC device automatic matching method
Technical field
The present invention relates to power line communication technology field, particularly relate to a kind of PLC device automatic matching method.
Background technology
PLC (Power Line Communication, power line communication, be called for short PLC) all need before use to carry out matching operation to child node PLC module and host node PLC module, the mode of current employing manual key is a kind of progressive before triggering and realizing host node PLC module and the pairing comparatively of child node PLC module, and the mode of button adds the controllability of user to node.
But, this method is when network node is more, only go by manual operation the pairing controlling each node, a lot of time can be wasted, and artificial processing ease causes some mistakes due to misoperation, therefore, how the efficiently correct pairing completing PLC device a great problem that those skilled in the art face can be become.
Summary of the invention
For the problems referred to above, the present invention proposes a kind of PLC device automatic matching method, send pairing control command respectively by the main control module of host node and the main control module of child node and receive the feedback information comprising its MAC Address sent after described PLC module receives described pairing control command to connected PLC module, then host node master control mould sends the first clean culture pairing message to child node main control module, child node main control module sends the second clean culture pairing message to host node main control module simultaneously, the main control module of host node and the main control module of child node send to connected PLC module after receiving the clean culture pairing message that the other side sends, PLC module performs matching operation after receiving clean culture pairing message, what after pairing, host node synchronously configured child node as network control center comprises netkey, the data message of data encryption key, after synchronous configuration successful, child node just can communicate with host node and other child nodes, concrete grammar is:
A kind of PLC automatic matching method, be applied to the networking of equipment in power line communication network, described power line communication network comprises the some nodes be positioned under same ammeter, and each described node includes the main control module with editing equipment management function and has the PLC module realizing electric-power wire communication signal translation function, wherein, described method comprises:
Step S1, after described power line communication network powers on, the connected described PLC module of described main control module detecting whether normal operation, and the MAC Address of the PLC module of normal operation is given record;
Step S2, described main control module initiates clean culture pairing message to described PLC module according to recorded MAC Address, and this PLC module carries out matching operation according to the described pairing message received;
Step S3: described main control module sends unicast networks information query message to described PLC module, to detect the whether successful matching of this PLC module;
If the non-successful matching of described PLC module, returns step S1;
If described PLC module successful matching, this PLC module is utilized to carry out power line communication.
Above-mentioned PLC automatic matching method, wherein, described method also comprises:
Step S11, if the connected described PLC module of described main control module detecting is run abnormal or detects less than connected PLC module, then detects described PLC module again.
Above-mentioned PLC automatic matching method, wherein, described some nodes comprise multiple host node, and are also provided with several child nodes under each host node, and are also preset with network configuration parameters in the main control module of each described host node, and described method also comprises:
Step S21, described node is while carrying out described matching operation, and the network configuration parameters that the main control module in described host node is preset is synchronized in the main control module of the child node be connected with this host node.
Above-mentioned PLC automatic matching method, wherein, described method also comprises:
Step S31, after successful matching before power communication, host node synchronously configures the netkey of child node, data encryption key data message makes it mate with master node network configuration parameter and the message synchronously configured is sent to child node main control module, carries out power line communication after the message that child node receives synchronous configuration comes into force.
Above-mentioned PLC automatic matching method, wherein, is provided with overtime timer in described main control module, and when pairing time-out, described node exits pairing state.
Above-mentioned PLC automatic matching method, wherein, PLC module is provided with agent software, to complete PLC pairing.
Above-mentioned PLC automatic matching method, wherein, host node main control module adopts SHA256 algorithm to calculate netkey in the configuration parameter of networking number and described data encryption key.
The advantage that the present invention has and the beneficial effect brought:
The present invention proposes a kind of PLC device automatic matching method, automatically the pairing of host node PLC module and child node PLC module is completed, host node is as the netkey of network control center to child node simultaneously, the parameters such as data encryption key synchronously configure, after synchronous configuration, child node just can communicate with host node and other child nodes, effectively overcome manual key mode by the technical program and take time and effort the problem of easily makeing mistakes, can the pairing state of intelligent sesolution apparatus, then finishing equipment matching operation automatically, easy network-building method is provided under the environment that engineer should not operate, effectively can solve the problem of large number quipments networking.
Accompanying drawing explanation
Fig. 1 is the flow chart of the embodiment of the present invention.
Execution mode
Central idea of the present invention proposes a kind of PLC device automatic matching method, comprise host node and child node, host node and child node include for the main control module of editing equipment management and the PLC module for electric-power wire communication signal conversion, pass through the technical program, automatically the pairing of host node PLC module and child node PLC module is completed, host node synchronously configures the parameter such as netkey, data encryption key of child node as control centre simultaneously, and after synchronous configuration successful, child node just can communicate with host node and can communicate with other child nodes.
Below in conjunction with accompanying drawing and specific embodiment, the present invention is further illustrated, but not as limiting to the invention.
With reference to flow chart described in Fig. 1, first host node and child node be energized and be linked into the power line network under same ammeter, main control module i.e. first main control module of host node and child node and the second main control module are powered on and complete initialization, host node first main control module sends pairing control information Get_version and sends Get_version information to the second PLC module be attached thereto to being attached thereto the first PLC module, child node second main control module that connect, and the message of promoter node and host node sends overtime timer respectively simultaneously, if when the first PLC module is normally run, the first PLC module can be fed back Get_version immediately, records its MAC Address, Mac1 after the first main control module receives the feedback information of the first PLC module, if when the first PLC module occurs extremely can not feeding back Get_version message, message is sent overtime timer and surpasses by the first main control module, if in the scope that overtime timer specifies, first main control module does not receive the feedback information that the first PLC module sends, then the first main control module continues to send Get_version information to the first PLC module, until the first main control module receives PLC module feedack, in like manner, if when the second PLC module is normally run, 2nd LC module can be fed back Get_version immediately, its MAC Address is recorded after second main control module receives the feedback information of the second PLC module, Mac2, if when the second PLC module occurs extremely can not feeding back Get_version message, message is sent overtime timer and surpasses by the second main control module, if in the scope that overtime timer specifies, second main control module does not receive the feedback information that the second PLC module sends, then the second main control module continues to send Get_version information to the second PLC module, until the second main control module receives PLC module feedack.
After first main control module receives the first PLC module feedack, send the first clean culture pairing message including Mac1; After second main control module receives the second PLC module feedack, send the second clean culture pairing message including Mac2.First main control module receiving package gives the first PLC module containing the second clean culture pairing information and sending of Mac2, and the second main control module receiving package contains the first clean culture pairing information and sending of Mac1 to the second PLC module clean culture; First PLC module receive second clean culture pairing message and the second PLC module on agent software receive first clean culture pairing message after clean culture, perform the matching operation of the first PLC module and the second PLC module, namely matching operation is performed to PLC chip, start pairing overtime timer simultaneously.If pairing time-out, then the second PLC module exits current pairing state, be returned to initial condition otherwise, perform subsequent operation.
Main control module detects and records pairing state, second main control module sends unicast networks query messages Netinfo_req to the second PLC module, the Netinfo_req message that the agent software process that second PLC module is run receives, and return network status messages Netinfo_resp to the second main control module; Second main control module receives and processes Netinfo_resp message: if the second PLC module returns is the effective network information, then the second main control module stops transmission second clean culture pairing message.If the network information that PLC module returns is invalid or for empty, the second main control module continues to send pairing control command (unicast control message), proceeds pairing process; If the first PLC module and the second PLC module are successfully matched, then the second main control module puts pairing state for " matching ", so no longer sends matched order when equipment is restarted next time.
First PLC module and people's PLC module matched after, state that second PLC module exits " matching ", concrete steps are: the second main control module sends clean culture Netinfo_req message to the second PLC module, the agent software that second PLC module is run receives and after processing Netinfo_req message, returns network status messages Netinfo_resp to the second main control module; Second main control module receives and processes the network status messages Netinfo_resp that the second PLC module returns.If the network status messages Netinfo_resp that the second PLC module returns is the effective network information, the second main control module stops sending pairing control command; If the network status messages Netinfo_resp that the second PLC module returns is invalid network information or is sky, the main control module of child node continues to send pairing control command.
After having matched, host node synchronously configures netkey, the data encryption key data message of child node, host node powers on, SHA256 algorithm is adopted to calculate netkey number and transfer of data key according to self MAC Address and the information comprising netkey number and transfer of data key parameter of the child node of synchronous configuration successful matching, and configuration take-effective immediately, this configuration is preserved in memory simultaneously, and child node just can communicate with host node and other child nodes.
When implementing the communication of many host nodes, first first realize the PLC module pairing between host node according to the present embodiment, the automatic matching of the PLC module of the child node under then realizing each host node respectively and being positioned at host node.
In sum, pairing control information is sent respectively to connected PLC module by the main control module of host node and the main control module of child node, PLC module receive information that main control module sends and feedback packet contain MAC Address feed back to connected main control module, then main control module transmission comprises the clean culture unpaired message of MAC Address to the main control module of the node with its pairing, this main control module sends to connected PLC module after receiving information, and perform matching operation, automatically the matching operation of host node PLC module and child node PLC module is completed and host node calculates the netkey of oneself as network control center SHA256 algorithm from the network configuration parameters be provided with by above-mentioned steps, data encryption key netkey to child node, the parameters such as data encryption key synchronously configure, after configuration successful, child node can communicate with host node, and can communicate with other child nodes.
It should be appreciated by those skilled in the art that those skilled in the art are realizing described change case in conjunction with prior art and above-described embodiment, do not repeat at this.Such change case does not affect flesh and blood of the present invention, does not repeat them here.
Above preferred embodiment of the present invention is described.It is to be appreciated that the present invention is not limited to above-mentioned particular implementation, the equipment wherein do not described in detail to the greatest extent and structure are construed as to be implemented with the common mode in this area; Any those of ordinary skill in the art, do not departing under technical solution of the present invention ambit, the Method and Technology content of above-mentioned announcement all can be utilized to make many possible variations and modification to technical solution of the present invention, or being revised as the Equivalent embodiments of equivalent variations, this does not affect flesh and blood of the present invention.Therefore, every content not departing from technical solution of the present invention, according to technical spirit of the present invention to any simple modification made for any of the above embodiments, equivalent variations and modification, all still belongs to the scope of technical solution of the present invention protection.

Claims (7)

1. a PLC automatic matching method, it is characterized in that, be applied to the networking of equipment in power line communication network, described power line communication network comprises the some nodes be positioned under same ammeter, and each described node includes the main control module with editing equipment management function and has the PLC module realizing electric-power wire communication signal translation function, described method comprises:
Step S1, after described power line communication network powers on, the connected described PLC module of described main control module detecting whether normal operation, and the MAC Address of the PLC module of normal operation is given record;
Step S2, described main control module initiates clean culture pairing message to described PLC module according to recorded MAC Address, and this PLC module carries out matching operation according to the described pairing message received;
Step S3: described main control module sends unicast networks information query message to described PLC module, to detect the whether successful matching of this PLC module;
If the non-successful matching of described PLC module, returns step S1;
If described PLC module successful matching, this PLC module is utilized to carry out power line communication.
2. PLC automatic matching method as claimed in claim 1, it is characterized in that, described method also comprises:
Step S11, if the connected described PLC module of described main control module detecting is run abnormal or detects less than connected PLC module, then detects described PLC module again.
3. PLC automatic matching method as claimed in claim 1, it is characterized in that, described some nodes comprise multiple host node, and are also provided with several child nodes under each host node, and be also preset with network configuration parameters in the main control module of each described host node, described method also comprises:
Step S21, described node is while carrying out described matching operation, and the network configuration parameters that the main control module in described host node is preset is synchronized in the main control module of the child node be connected with this host node.
4. PLC automatic matching method as claimed in claim 3, it is characterized in that, described method also comprises:
Step S31, after successful matching before power communication, host node synchronously configures the netkey of child node, data encryption key data message makes it mate with master node network configuration parameter and the message synchronously configured is sent to child node main control module, carries out power line communication after the message that child node receives synchronous configuration comes into force.
5. PLC automatic matching method as claimed in claim 1, is characterized in that, be provided with overtime timer in described main control module, and when pairing time-out, described node exits pairing state.
6. PLC automatic matching method as claimed in claim 1, it is characterized in that, PLC module is provided with agent software, to complete PLC pairing.
7. PLC automatic matching method as claimed in claim 1, is characterized in that, host node main control module adopts SHA256 algorithm to calculate netkey in the configuration parameter of networking number and described data encryption key.
CN201510015024.9A 2015-01-12 2015-01-12 A kind of PLC device automatic matching method Expired - Fee Related CN104579428B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510015024.9A CN104579428B (en) 2015-01-12 2015-01-12 A kind of PLC device automatic matching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510015024.9A CN104579428B (en) 2015-01-12 2015-01-12 A kind of PLC device automatic matching method

Publications (2)

Publication Number Publication Date
CN104579428A true CN104579428A (en) 2015-04-29
CN104579428B CN104579428B (en) 2017-06-09

Family

ID=53094757

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510015024.9A Expired - Fee Related CN104579428B (en) 2015-01-12 2015-01-12 A kind of PLC device automatic matching method

Country Status (1)

Country Link
CN (1) CN104579428B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124208A (en) * 2017-05-03 2017-09-01 深圳市百广纵横技术有限公司 Privatization network creating method and contrast means based on broadband power line communication technology
WO2018152982A1 (en) * 2017-02-22 2018-08-30 华为技术有限公司 Electric power modem pairing method and electric power modem
CN109565298A (en) * 2017-03-03 2019-04-02 华为技术有限公司 The connection method and PLC device of PLC device
US10841118B2 (en) 2016-11-09 2020-11-17 Sercomm Corporation Automatic pairing method and server

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201557111U (en) * 2009-06-12 2010-08-18 贵州天能电力高科技有限公司 Broadband network communication device for medium voltage power line
CN103338111A (en) * 2013-07-15 2013-10-02 海信集团有限公司 Electronic equipment, electronic equipment pairing system and electronic equipment pairing method
CN103595596A (en) * 2012-08-14 2014-02-19 海尔集团公司 An Internet of Things household electrical appliance interconnection system based on PLC
CN103634028A (en) * 2012-08-23 2014-03-12 海尔集团公司 PLC household electrical appliance communication terminal system
US20140328157A1 (en) * 2011-09-13 2014-11-06 Voltalis Optimization of a home automation system using a local power line communication network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201557111U (en) * 2009-06-12 2010-08-18 贵州天能电力高科技有限公司 Broadband network communication device for medium voltage power line
US20140328157A1 (en) * 2011-09-13 2014-11-06 Voltalis Optimization of a home automation system using a local power line communication network
CN103595596A (en) * 2012-08-14 2014-02-19 海尔集团公司 An Internet of Things household electrical appliance interconnection system based on PLC
CN103634028A (en) * 2012-08-23 2014-03-12 海尔集团公司 PLC household electrical appliance communication terminal system
CN103338111A (en) * 2013-07-15 2013-10-02 海信集团有限公司 Electronic equipment, electronic equipment pairing system and electronic equipment pairing method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10841118B2 (en) 2016-11-09 2020-11-17 Sercomm Corporation Automatic pairing method and server
WO2018152982A1 (en) * 2017-02-22 2018-08-30 华为技术有限公司 Electric power modem pairing method and electric power modem
CN109565298A (en) * 2017-03-03 2019-04-02 华为技术有限公司 The connection method and PLC device of PLC device
CN107124208A (en) * 2017-05-03 2017-09-01 深圳市百广纵横技术有限公司 Privatization network creating method and contrast means based on broadband power line communication technology

Also Published As

Publication number Publication date
CN104579428B (en) 2017-06-09

Similar Documents

Publication Publication Date Title
CN104270273B (en) A kind of self-configuring communication manager
CN104579428A (en) PLC equipment automatic pairing method
CN103595768B (en) A kind of method that realizes configuration synchronization between virtual equipment
CN104901858A (en) System communication method based on CAN bus
EP4243511A2 (en) Standby control method and terminal device and relay device
CN105992317B (en) Wireless communication module management method and wireless communication module managing device
CN106302536B (en) The method and apparatus communicated between all-in-one machine multisystem based on interchanger
CN104468854A (en) Vertical converged framework constructing method and device
CN111064552B (en) Intelligent device control method and device, electronic device and storage medium
US10037253B2 (en) Fault handling methods in a home service system, and associated household appliances and servers
CN107567107A (en) A kind of method and device for transmitting data
CN105812292A (en) Switching equipment stacking method and device
WO2018098639A1 (en) Method and device for power outage handling and acquiring connection relations
CN112398661B (en) Equipment dormancy processing method and device, ioT equipment and storage medium
CN102064605A (en) Method for realizing mutual hot backup of electric energy acquisition systems
CN105960817B (en) Communication equipment and the method for configuration of communications device, storage medium
CN108123826A (en) A kind of interactive system and method for transregional data
CN103731294A (en) Method, device and system for two-machine hot-standby communication
CN104251536A (en) One-to-many current loop communication method and communication device
CN105406955A (en) Data output control method and system
CN102291303B (en) Single board and method for determining primary and standby states for the same
CN107888426A (en) A kind of configuration of network-termination device, device, batch processing equipment and storage medium
CN106874150A (en) A kind of virtual machine High Availabitity disaster recovery method and its system
CN104796973B (en) Radio reception device control method and radio reception device
CN109673044A (en) Communication control method, chip, the gateway apparatus of chip

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170609

Termination date: 20200112