CN104579428B - A kind of PLC device automatic matching method - Google Patents

A kind of PLC device automatic matching method Download PDF

Info

Publication number
CN104579428B
CN104579428B CN201510015024.9A CN201510015024A CN104579428B CN 104579428 B CN104579428 B CN 104579428B CN 201510015024 A CN201510015024 A CN 201510015024A CN 104579428 B CN104579428 B CN 104579428B
Authority
CN
China
Prior art keywords
plc
main control
module
control module
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.)
Expired - Fee Related
Application number
CN201510015024.9A
Other languages
Chinese (zh)
Other versions
CN104579428A (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

Abstract

The present invention relates to power line communication technology field, more particularly to a kind of PLC device automatic matching method, connected PLC module is detected by host node main control module and child node main control module first respectively and is in normal condition and is obtained its MAC Address;Then host node master control mould and child node main control module receive the unicast pairing information and sending of other side's transmission to connected PLC module respectively, and host node PLC module and child node PLC module perform matching operation after receiving unicast pairing message;Host node synchronously configures the data message including netkey, data encryption key of child node as network control center after pairing, the technical program effectively overcomes manual key mode and takes time and effort error-prone problem, it is capable of the pairing state of intelligent sesolution apparatus, then it is automatically performed device pairing operation, easy network-building method is provided in the environment of engineer should not operate, large number quipments networking can be effectively solved the problems, such as.

Description

A kind of PLC device automatic matching method
Technical field
The present invention relates to power line communication technology field, more particularly to a kind of PLC device automatic matching method.
Background technology
PLC (Power Line Communication, power line communication, abbreviation PLC) is using being preceding required to antithetical phrase section Point PLC module and host node PLC module carry out matching operation, triggered by the way of manual key realize host node PLC at present It is a kind of progress before module and the pairing relatively of child node PLC module, and the mode of button increased user to the controllable of node Property.
But, this method, only by the manually operated pairing for going to control each node, can be wasted when network node is more Many time, and artificial operation easily causes some mistakes due to maloperation, therefore, it is how efficiently correct complete Into a great problem that those skilled in the art face that is paired as of PLC device.
The content of the invention
Regarding to the issue above, the present invention proposes a kind of PLC device automatic matching method, by the main control module of host node and The main control module of child node sends pairing control command to connected PLC module and receives the PLC module and receive respectively The feedback information comprising its MAC Address sent after the pairing control command, then the first unicast of host node master control mould transmission Pairing message gives child node main control module, while child node main control module sends the second unicast pairing message gives host node master control mould Block, the main control module of host node and the main control module of child node are sent to and it after receiving the unicast pairing message that other side sends The PLC module of connection, PLC module performs matching operation after receiving unicast pairing message, and host node is controlled as networking after pairing Central synchronous processed configure the data message including netkey, data encryption key of child node, son section after synchronous configuration successful Point can just communicate with host node and other child nodes, and specific method is:
A kind of PLC automatic matchings method, is applied to the networking of equipment in power line communication network, the power line communication network Network includes some nodes under same ammeter, and each described node includes the master control with editing equipment management function Module and with the PLC module for realizing electric-power wire communication signal translation function, wherein, methods described includes:
Step S1, on the power line communication network after electricity, the main control module detects the connected PLC module Whether normal operation, and the MAC Address of the PLC module of normal operation is recorded;
Step S2, the main control module is initiated unicast and matches message to the PLC module according to the MAC Address for being recorded, And the PLC module carries out matching operation according to the pairing message for receiving;
Step S3:The main control module sends unicast networks information query message to the PLC module, to detect the PLC Module whether successful matching;
The return to step S1 if the unpaired success of the PLC module;
If the PLC module successful matching power line communication is carried out using the PLC module.
Above-mentioned PLC automatic matchings method, wherein, methods described also includes:
Step S11, if the connected PLC module operation of main control module detecting is abnormal or detects not To connected PLC module, then the PLC module is detected again.
Above-mentioned PLC automatic matchings method, wherein, some nodes include multiple host nodes, and under each host node also It is provided with several child nodes, and the main control module of each host node and is also preset with network configuration parameters, the side Method also includes:
Step S21, the node while matching operation is carried out, main control module in the host node by its Default network configuration parameters are synchronized in the main control module of the child node being connected with the host node.
Above-mentioned PLC automatic matchings method, wherein, methods described also includes:
Step S31, in before power communication after successful matching, synchronously the netkey of configuration child node, data add host node Key data information makes it be matched with master node network configuration parameter and the message of synchronous configuration is sent into child node master control Module, child node is received after the synchronous message for configuring comes into force and carries out power line communication.
Above-mentioned PLC automatic matchings method, wherein, overtime timer is provided with the main control module, when pairing time-out, institute State node and exit pairing state.
Above-mentioned PLC automatic matchings method, wherein, PLC module is provided with agent software, to complete PLC pairings.
Above-mentioned PLC automatic matchings method, wherein, host node main control module calculates networking configuration parameter using SHA256 algorithms In netkey number and the data encryption key.
The beneficial effect that the present invention has the advantage that and brings:
The present invention proposes a kind of PLC device automatic matching method, is automatically performed host node PLC module and child node PLC moulds The pairing of block, while host node is carried out as network control center to parameters such as netkey, the data encryption keys of child node Synchronous configuration, it is synchronous just to be communicated with host node and other child nodes with postponing child node, it is effective by the technical program Overcome manual key mode and take time and effort error-prone problem, be capable of the pairing state of intelligent sesolution apparatus, it is then automatic complete Forming apparatus matching operation, easy network-building method is provided in the environment of engineer should not operate, and can effectively solve large number quipments The problem of networking.
Brief description of the drawings
Fig. 1 is the flow chart of the embodiment of the present invention.
Implementation method
Central idea of the invention is to propose a kind of PLC device automatic matching method, including host node and child node, main section Point and child node include the main control module and the PLC module for electric-power wire communication signal conversion for editing equipment management, By the technical program, the pairing of host node PLC module and child node PLC module is automatically performed, while host node is used as control The parameters such as netkey, the data encryption key of central synchronous configuration child node, child node is with regard to energy and master after synchronous configuration successful Node communicates and can be communicated with other child nodes.
The present invention is further illustrated with specific embodiment below in conjunction with the accompanying drawings, but not as limit of the invention It is fixed.
, be powered for host node and child node first and be linked into the power line under same ammeter by flow chart described in reference picture 1 Network;Main control module by host node and child node is electric on the first main control module and the second main control module and completes to initialize; The main control module of host node first sends pairing control information Get_version to connected the first PLC module, child node Second main control module sends Get_version information to the second PLC module being attached thereto, while being respectively started child node and master The message of node sends overtime timer;If the first PLC module is normally run, the first PLC module can immediately to Get_ Version is fed back, and the first main control module is received after the feedback information of the first PLC module and records its MAC Address, Mac1; If the first PLC module appearance exception can not feed back Get_version message, message is sent time-out timing by the first main control module Device surpasses, if in the range of overtime timer regulation, the first main control module does not receive the feedback letter of the first PLC module transmission Breath, then the first main control module continuation sends Get_version information to the first PLC module, until the first main control module is received PLC module feedack;Similarly, if the second PLC module is normally run, the 2nd LC modules can immediately to Get_version Fed back, the second main control module is received after the feedback information of the second PLC module and records its MAC Address, Mac2, if second When PLC module appearance exception can not feed back Get_version message, the second main control module surpasses message transmission overtime timer, If in the range of overtime timer regulation, the second main control module does not receive the feedback information of the second PLC module transmission, then Second main control module continues to send Get_version information to the second PLC module, until the second main control module receives PLC moulds Block feedack.
After first main control module receives the first PLC module feedack, the first unicast that transmission includes Mac1 is matched somebody with somebody To message;After second main control module receives the second PLC module feedack, transmission includes the second unicast pairing of Mac2 Message.First main control module receives the second unicast pairing information and sending comprising Mac2 to the first PLC module, the second master control mould Block receives the first unicast pairing information and sending for including Mac1 to the second PLC module unicast;First PLC module receives The agent software that two unicasts are matched in message and the second PLC module receives unicast after the first unicast pairing message, performs the One PLC module and the matching operation of the second PLC module, i.e., perform matching operation to PLC chip, while starting pairing time-out timing Device.If pairing time-out, the second PLC module exits current pairing state, is returned to original state otherwise, follow-up behaviour is performed Make.
Main control module is detected and records pairing state, and the second main control module sends unicast networks and inquires about to the second PLC module Message Netinfo_req, the Netinfo_req message that the agent software treatment run in the second PLC module is received, and to Second main control module returns to network status messages Netinfo_resp;Second main control module is received and processes Netinfo_resp and disappears Breath:If what the second PLC module returned is the effective network information, the second main control module stops sending the second unicast with offseting Breath.If the network information that PLC module is returned is invalid or be sky, the second main control module continues to send pairing control instruction (unicast Control message), proceed pairing process;If the first PLC module and the second PLC module are successfully matched, the second master control mould Block puts pairing state for " pairing ", then do not retransmit matched order when equipment is restarted next time.
After the completion of people's PLC module pairing of the first PLC module sum, the second PLC module exits " pairing " state, specific step Suddenly it is:Second main control module sends unicast Netinfo_req message to the second PLC module, the agency run in the second PLC module After software is received and processes Netinfo_req message, network status messages Netinfo_resp is returned to the second main control module;The Two main control modules are received and process the network status messages Netinfo_resp of the second PLC module return.If the second PLC module The network status messages Netinfo_resp of return is the effective network information, and the second main control module stops sending pairing control life Order;If the network status messages Netinfo_resp that the second PLC module is returned is invalid network information or is sky, child node Main control module continues to send pairing control instruction.
After the completion of pairing, host node synchronously configures netkey, the data encryption key data message, host node of child node Upper electricity, the MAC Address according to itself calculates netkey number and data transfer key and synchronously configures using SHA256 algorithms The information including netkey number He data transfer key parameter of the child node of successful matching, and configuration take-effective immediately, this is matched somebody with somebody Put and preserve in memory simultaneously, child node can just be communicated with host node and other child nodes.
When many host nodes communications are implemented, the PLC module pairing that the present embodiment is realized between host node first is first according to, Then the automatic matching of each host node and the PLC module of the child node being located under host node is realized respectively.
In sum, by the main control module of host node and the main control module of child node send respectively pairing control information to Connected PLC module, PLC module receives the information of main control module transmission and feeds back the feedback information for including MAC Address To connected main control module, the unicast unpaired message that then main control module transmission includes MAC Address gives the section of its pairing The main control module of point, the main control module is sent to connected PLC module after receiving information, and performs matching operation, leads to Cross above-mentioned steps be automatically performed host node PLC module and child node PLC module matching operation and host node as networking control Center calculates the netkey of oneself, data encryption key and antithetical phrase with SHA256 algorithms from the network configuration parameters being provided with The parameters such as netkey, the data encryption key of node synchronize configuration, and after configuration successful, child node can be logical with host node Letter, it is possible to communicated with other child nodes.
It should be appreciated by those skilled in the art that those skilled in the art combine prior art and above-described embodiment can be with The change case is realized, be will not be described here.Such change case has no effect on substance of the invention, not superfluous herein State.
Presently preferred embodiments of the present invention is described above.It is to be appreciated that the invention is not limited in above-mentioned Particular implementation, wherein the equipment and structure that do not describe in detail to the greatest extent are construed as giving reality with the common mode in this area Apply;Any those of ordinary skill in the art, in the case where technical solution of the present invention ambit is not departed from, all using the disclosure above Methods and techniques content make many possible variations and modification to technical solution of the present invention, or be revised as equivalent variations etc. Effect embodiment, this has no effect on substance of the invention.Therefore, every content without departing from technical solution of the present invention, foundation Technical spirit of the invention still falls within the present invention to any simple modification, equivalent variation and modification made for any of the above embodiments The scope of technical scheme protection.

Claims (7)

1. a kind of PLC automatic matchings method, it is characterised in that be applied to the networking of equipment in power line communication network, the electricity Line of force communication network includes some nodes under same ammeter, and each described node includes thering is editing equipment management The main control module of function and with the PLC module for realizing electric-power wire communication signal translation function, methods described includes:
Step S1, on the power line communication network after electricity, whether the main control module detects the connected PLC module Normal operation, and the MAC Address of the PLC module of normal operation is recorded;
Step S2, the main control module is initiated unicast and matches message to the PLC module according to the MAC Address for being recorded, and should PLC module carries out matching operation according to the pairing message for receiving;
Step S3:The main control module sends unicast networks information query message to the PLC module, to detect the PLC module Whether successful matching;
The return to step S1 if the unpaired success of the PLC module;
If the PLC module successful matching power line communication is carried out using the PLC module.
2. PLC automatic matchings method as claimed in claim 1, it is characterised in that methods described also includes:
Step S11, if the connected PLC module operation of main control module detecting is abnormal or detecting less than with The PLC module of its connection, then detect the PLC module again.
3. PLC automatic matchings method as claimed in claim 1, it is characterised in that some nodes include multiple host nodes, and It is additionally provided with each host node in several child nodes, and the main control module of each host node and is also preset with network and matches somebody with somebody Parameter is put, methods described also includes:
Step S21, the host node is while the matching operation is carried out, and the main control module in the host node is pre- by its If network configuration parameters be synchronized in the main control module of the child node being connected with the host node.
4. PLC automatic matchings method as claimed in claim 3, it is characterised in that methods described also includes:
Step S31, in before power communication after successful matching, synchronously the netkey of configuration child node, data encryption are close for host node Key data message makes it be matched with master node network configuration parameter and the message of synchronous configuration is sent into child node main control module, Child node is received after the synchronous message for configuring comes into force and carries out power line communication.
5. PLC automatic matchings method as claimed in claim 1, it is characterised in that overtime timing is provided with the main control module Device, when pairing time-out, the node exits pairing state.
6. PLC automatic matchings method as claimed in claim 1, it is characterised in that PLC module is provided with agent software, to complete PLC is matched.
7. PLC automatic matchings method as claimed in claim 1, it is characterised in that host node main control module uses SHA256 algorithms Calculate the netkey number and data encryption key in the configuration parameter of networking.
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 CN104579428A (en) 2015-04-29
CN104579428B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106502113B (en) 2016-11-09 2020-05-29 中磊电子(苏州)有限公司 Automatic pairing method and server
CN108886383B (en) * 2017-02-22 2021-05-04 荣耀终端有限公司 Pairing method for electric cats and electric cats
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

Citations (4)

* 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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2980060B1 (en) * 2011-09-13 2013-10-04 Voltalis OPTIMIZATION OF A DOMOTIC SYSTEM UTILIZING A LOCAL NETWORK OF LINE CARRIER CURRENT

Patent Citations (4)

* 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
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

Also Published As

Publication number Publication date
CN104579428A (en) 2015-04-29

Similar Documents

Publication Publication Date Title
CN104579428B (en) A kind of PLC device automatic matching method
CN104935615B (en) Realize the system and method for voice control household appliance
CN106878923A (en) The quick method of network entry of ultra-low power consumption intelligent equipment and intelligent domestic system
US5870680A (en) Method and an apparatus for placing devices on standby in a system including a portable mobile telephone connected to a peripheral device
CN105142135B (en) Based on the method for connecting the networking of agreement rapid configuration smart machine soon
CN101702690A (en) Method for carrying out human-computer interaction by embedded equipment through internet instant messaging system
CN104883656B (en) A kind of method and its system for setting up stable state piconet based on bluetooth
CN105992317B (en) Wireless communication module management method and wireless communication module managing device
CN102104893B (en) Method, device and wireless access point equipment for realizing hot backup of wireless controller
CN104202832A (en) Wireless accessing method and device of WIFI terminal
CN103595768B (en) A kind of method that realizes configuration synchronization between virtual equipment
CN104468854A (en) Vertical converged framework constructing method and device
CN104754502B (en) A kind of device pairing method and system for supporting multi-protocols
CN104244244B (en) A kind of data transmission method and device
CN104270273B (en) A kind of self-configuring communication manager
WO2014169589A1 (en) Intelligent terminal synchronous operation method and device
CN106341468B (en) Remote awakening method, device and system of intelligent equipment
CN106412960A (en) Control method for realizing Wi-Fi (Wireless-Fidelity) network configuration
CN107888426A (en) A kind of configuration of network-termination device, device, batch processing equipment and storage medium
WO2016165430A1 (en) Data transfer method and apparatus, communication system, and computer storage medium
CN209344479U (en) A kind of socket and jack system
CN106533934A (en) Border gateway applicable to all interconnected manufacturing networks
CN108389329A (en) A kind of shared massage armchair
CN104703250A (en) Method for configuring PANID (personal area network identifier) on ZigBee terminal
CN103973502A (en) Wireless program updating method for devices of intelligent housing system

Legal Events

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

Granted publication date: 20170609

Termination date: 20200112

CF01 Termination of patent right due to non-payment of annual fee