CN116318258B - Networking method of PLC (programmable logic controller) equipment - Google Patents
Networking method of PLC (programmable logic controller) equipment Download PDFInfo
- Publication number
- CN116318258B CN116318258B CN202310227120.4A CN202310227120A CN116318258B CN 116318258 B CN116318258 B CN 116318258B CN 202310227120 A CN202310227120 A CN 202310227120A CN 116318258 B CN116318258 B CN 116318258B
- Authority
- CN
- China
- Prior art keywords
- gateway
- equipment
- networking
- sub
- network
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/54—Systems for transmission via power distribution lines
- H04B3/544—Setting up communications; Call and signalling arrangements
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Power Engineering (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
Abstract
The invention provides a PLC equipment networking scheme, which comprises the following steps of: the gateway starts networking, allows a plurality of pieces of sub-equipment to apply for networking, and simultaneously broadcasts gateway network messages to a plurality of pieces of sub-equipment; step 2: the sub-equipment is powered on and receives a plurality of gateway network messages; step 3: the sub-equipment calculates the signal quality of each gateway, and compares the gateway with the optimal signal quality, namely, calls an application networking interface to initiate a request network access message to the corresponding selected gateway; step 4: the corresponding gateway knows the networking request of the sub-equipment according to the networking request message, and carries out confirmation reply and networking. The sub-equipment evaluates the signal quality of a plurality of PLC network gateways, only applies for adding the network gateway with the optimal signal quality, so that the sub-equipment cannot be added into the PLC network gateway at will, the whole process is efficient and reliable, and a complex networking process is not needed.
Description
Technical Field
The invention relates to the field of PLC, in particular to a networking method of PLC equipment.
Background
In a typical application of PLC technology, signals of a plurality of PLC networks are transmitted in a power line at the same time, and under the condition that a power line signal isolator is not provided or the isolation effect of the power line signal isolator is poor, no efficient and reliable equipment networking scheme exists at present.
Two networking schemes exist:
1. the whitelist is a collection of MAC addresses that allow access to the network device. The gateway can manage and authenticate the equipment requesting to access the network through the white list. Different communication networks may have different whitelists. The gateway receives the request of the equipment to access the network, compares the MAC address of the site requesting to access the network with a white list locally stored in the gateway, and allows the equipment to access the network when the MAC address of the equipment requesting to access the network is in the gateway white list; when the MAC address of the device requesting network access is not in the white list, the gateway denies the device to join. Disadvantages: complicated operation: the gateway needs to start the white list function, needs to configure the white list items, and has obvious defects when the number of the devices is large.
2. The bottom automatic networking mode means that the gateway can disable the white list function, and does not manage and authenticate the equipment requesting to access the network. The gateway receives the request of the device to access the network, and the gateway allows the device to join the network. Disadvantages: the device cannot accurately access the network where the signal is best. The network access is generally random, and theoretically, the network access is performed to the network discovered first, and the gateway disables the white list function.
Disclosure of Invention
In order to solve the problems, the invention provides a networking method of PLC equipment, which is efficient and reliable and improves the networking efficiency and reliability of the PLC equipment.
In order to achieve the above purpose, the invention adopts the following technical scheme: a networking method of PLC equipment comprises the following steps:
step 1: the gateway starts networking, allows a plurality of pieces of sub-equipment to apply for networking, and simultaneously broadcasts gateway network messages to a plurality of pieces of sub-equipment;
step 2: the sub-equipment is powered on and receives a plurality of gateway network messages;
step 3: the sub-equipment calculates the signal quality of each gateway, and compares the gateway with the optimal signal quality, namely, calls an application networking interface to initiate a request network access message to the corresponding selected gateway;
step 4: the corresponding gateway knows the networking request of the sub-equipment according to the networking request message, and carries out confirmation reply and networking.
As a further illustration, in step 2, the gateway network packet includes the network identifier, the signal-to-noise ratio, the physical layer clock bias, and the reception success rate of the corresponding gateway.
By way of further illustration, in step 3, the gateway signal quality calculation formula: x is 0.5+ (1/y) is 0.3+z is 0.2; wherein x is a signal to noise ratio value; y is the physical layer clock bias; z is the reception success rate.
As a further illustration, step 5: the sub-equipment judges whether the network access is successful according to the reply result, if the reply is not received or the reply result is failure, the sub-equipment can request the network access again until the network access request is successful.
By way of further illustration: further comprising step 6: the sub-equipment continues to receive the gateway network message and analyzes the gateway network message; if the gateway is a new gateway, adding the gateway into a network identification list, and updating the signal quality of the gateway; if the gateway is old, only the signal quality of the gateway is updated.
As a further explanation, if the sub-device in step 6 does not receive the gateway already in the network identifier list within the validity period, the sub-device deletes the gateway from the identifier list; if the deleted gateway belongs to the gateway with the optimal signal quality, the sub-device will restart the new application networking.
To further illustrate, in step 6, the validity period is started for 60 seconds, and the validity period is incremented by 30 seconds and is 300 seconds at the maximum each time the gateway network message is normally received.
As a further illustration, in step 3, after a signal processing stabilization time of 50 seconds has elapsed after the power-on of the sub-device, the application networking interface is then invoked to join the PLC network of optimal signal quality.
By way of further illustration, the kid device includes a PLC switch, a PLC outlet.
The invention has the beneficial effects that: according to the networking scheme of the PLC equipment, the sub-equipment evaluates the signal quality of a plurality of PLC network gateways, and only applies for adding the network gateway with the optimal signal quality, so that the PLC network gateway cannot be added at will, the whole process is efficient and reliable, and a complex networking process is not needed.
Drawings
Fig. 1 is a schematic diagram of the PLC device networking method involving the respective modules.
Fig. 2 is a logic diagram of networking in a PLC device networking method.
Detailed Description
Referring to fig. 1-2, the present invention relates to a method for networking PLC devices, comprising the following steps:
step 1: the gateway starts networking, allows a plurality of pieces of sub-equipment to apply for networking, and simultaneously broadcasts gateway network messages to a plurality of pieces of sub-equipment;
step 2: the sub-equipment is powered on and receives a plurality of gateway network messages;
step 3: the sub-equipment calculates the signal quality of each gateway, and compares the gateway with the optimal signal quality, namely, calls an application networking interface to initiate a request network access message to the corresponding selected gateway;
step 4: the corresponding gateway knows the networking request of the sub-equipment according to the networking request message, and carries out confirmation reply and networking.
According to the networking scheme of the PLC equipment, the sub-equipment evaluates the signal quality of a plurality of PLC network gateways, and only applies for adding the network gateway with the optimal signal quality, so that the PLC network gateway cannot be added at will, the whole process is efficient and reliable, and a complex networking process is not needed.
The gateway and the sub-equipment refer to equipment with the PLC communication capability; the equipment participating in networking comprises a gateway (one PLC network has only one gateway) and sub-equipment (refer to equipment such as a PLC switch, a PLC socket and the like; one PLC network can comprise a plurality of sub-equipment); each PLC network has a unique network identification, the network identification is maintained by a gateway, and the sub-equipment can call an application networking interface through a network identification number to apply for joining a designated gateway network; the gateway of the PLC network broadcasts a gateway network message into the network, and the sub-equipment can analyze and calculate and obtain necessary information such as network identification, signal-to-noise ratio, clock deviation, receiving success rate and the like according to the received gateway network message; before networking, the PLC equipment is installed, and after each equipment is confirmed to work normally, the networking process is started;
as a further illustration, in step 2, the gateway network packet includes the network identifier, the signal-to-noise ratio, the physical layer clock bias, and the reception success rate of the corresponding gateway.
By way of further illustration, in step 3, the gateway signal quality calculation formula: x is 0.5+ (1/y) is 0.3+z is 0.2; wherein x is a signal to noise ratio value; y is the physical layer clock bias; z is the reception success rate.
As a further illustration, step 5: the sub-equipment judges whether the network access is successful according to the reply result, and if the reply is not received or the reply result is failure, the sub-equipment requests the network access again until the network access request is successful.
As a further illustration, step 6: the sub-equipment continues to receive the gateway network message and analyzes the gateway network message; if the gateway is a new gateway, adding the gateway into a network identification list, and updating the signal quality of the gateway; if the gateway is old, only the signal quality of the gateway is updated.
As a further explanation, if the sub-device in step 6 does not receive the gateway already in the network identifier list within the validity period, the sub-device deletes the gateway from the identifier list; if the deleted gateway belongs to the gateway with the optimal signal quality, the sub-device will restart the new application networking.
To further illustrate, in step 6, the validity period is started for 60 seconds, and the validity period is incremented by 30 seconds and is 300 seconds at the maximum each time the gateway network message is normally received.
As a further illustration, in step 3, after a signal processing stabilization time of 50 seconds has elapsed after the power-on of the sub-device, the application networking interface is then invoked to join the PLC network of optimal signal quality.
The above embodiments are merely illustrative of the preferred embodiments of the present invention and are not intended to limit the scope of the present invention, and various modifications and improvements made by those skilled in the art to the technical solution of the present invention should fall within the scope of protection defined by the claims of the present invention without departing from the spirit of the design of the present invention.
Claims (6)
1. The networking method of the PLC equipment is characterized by comprising the following steps of:
step 1: the gateway starts networking, allows a plurality of pieces of sub-equipment to apply for networking, and simultaneously broadcasts gateway network messages to a plurality of pieces of sub-equipment;
step 2: the sub-equipment is powered on and receives a plurality of gateway network messages;
step 3: the sub-equipment calculates the signal quality of each gateway, and compares the gateway with the optimal signal quality, namely, calls an application networking interface to initiate a request network access message to the corresponding selected gateway;
step 4: the corresponding gateway knows the networking request of the sub-equipment according to the networking request message, and carries out confirmation reply and networking;
in step 2, the gateway network message includes the network identifier, signal-to-noise ratio, physical layer clock bias, and receiving success rate of the corresponding gateway;
in step 3, the gateway signal quality calculation formula: x is 0.5+ (1/y) is 0.3+z is 0.2; wherein x is a signal to noise ratio value; y is the physical layer clock bias; z is the reception success rate.
2. The method for networking PLC equipment according to claim 1, wherein: further comprising the step 5: the sub-equipment judges whether the network access is successful according to the reply result, and if the reply is not received or the reply result is failure, the sub-equipment requests the network access again until the network access request is successful.
3. The method for networking PLC equipment according to claim 1, wherein: further comprising step 6: the sub-equipment continues to receive the gateway network message and analyzes the gateway network message; if the gateway is a new gateway, adding the gateway into a network identification list, and updating the signal quality of the gateway; if the gateway is old, only the signal quality of the gateway is updated.
4. A method for networking PLC devices according to claim 3, wherein: step 6, if the sub-equipment can not always receive the gateway in the network identification list within the validity period, deleting the gateway from the identification list; if the deleted gateway belongs to the gateway with the optimal signal quality, the sub-device will restart the new application networking.
5. The method for networking PLC equipment according to claim 4, wherein: in step 6, the validity period is started for 60 seconds, and the validity period is incremented by 30 seconds each time the gateway network message is normally received, and the maximum value of the validity period is 300 seconds.
6. The method for networking PLC equipment according to claim 5, wherein: the sub-equipment comprises a PLC switch and a PLC socket.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310227120.4A CN116318258B (en) | 2023-03-10 | 2023-03-10 | Networking method of PLC (programmable logic controller) equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310227120.4A CN116318258B (en) | 2023-03-10 | 2023-03-10 | Networking method of PLC (programmable logic controller) equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116318258A CN116318258A (en) | 2023-06-23 |
CN116318258B true CN116318258B (en) | 2023-10-10 |
Family
ID=86837403
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310227120.4A Active CN116318258B (en) | 2023-03-10 | 2023-03-10 | Networking method of PLC (programmable logic controller) equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116318258B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016026347A1 (en) * | 2014-08-20 | 2016-02-25 | 国家电网公司 | Micropower wireless network self-networking method and micropower wireless network |
WO2017190414A1 (en) * | 2016-05-06 | 2017-11-09 | 重庆邮电大学 | Mobile device network-access authentication mechanism in wia-pa wireless networks for industrial automation |
CN110430587A (en) * | 2019-08-13 | 2019-11-08 | 北京百佑科技有限公司 | Rapid networking method, internet-of-things terminal and computer readable storage medium |
CN112260780A (en) * | 2019-07-03 | 2021-01-22 | 杭州萤石软件有限公司 | Network access method, device and system |
CN114126000A (en) * | 2021-12-07 | 2022-03-01 | 施耐德电气(中国)有限公司 | Networking method and device for intelligent equipment |
CN115149984A (en) * | 2022-09-01 | 2022-10-04 | 广东金朋科技有限公司 | PLC Internet of things equipment networking method |
-
2023
- 2023-03-10 CN CN202310227120.4A patent/CN116318258B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016026347A1 (en) * | 2014-08-20 | 2016-02-25 | 国家电网公司 | Micropower wireless network self-networking method and micropower wireless network |
WO2017190414A1 (en) * | 2016-05-06 | 2017-11-09 | 重庆邮电大学 | Mobile device network-access authentication mechanism in wia-pa wireless networks for industrial automation |
CN112260780A (en) * | 2019-07-03 | 2021-01-22 | 杭州萤石软件有限公司 | Network access method, device and system |
CN110430587A (en) * | 2019-08-13 | 2019-11-08 | 北京百佑科技有限公司 | Rapid networking method, internet-of-things terminal and computer readable storage medium |
CN114126000A (en) * | 2021-12-07 | 2022-03-01 | 施耐德电气(中国)有限公司 | Networking method and device for intelligent equipment |
CN115149984A (en) * | 2022-09-01 | 2022-10-04 | 广东金朋科技有限公司 | PLC Internet of things equipment networking method |
Also Published As
Publication number | Publication date |
---|---|
CN116318258A (en) | 2023-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102077633B (en) | Radio base station device, radio relay station device, and radio terminal device | |
CN109525939B (en) | NVR and IPC automatic pairing method and wireless video monitoring automatic networking system | |
CN107743154B (en) | Tracking and attendance system based on Wi-Fi intelligent terminal and method thereof | |
CN103582156B (en) | Method and device for establishing connection | |
WO2021143956A2 (en) | Rat acquisition and indication methods and apparatuses for serving cell, and device | |
CN102938898A (en) | Multiple-board unified configuration system in ATCA (advanced telecom computing architecture) | |
CN112839310A (en) | Wireless communication method and Mesh device | |
CN102130832B (en) | Terminal registration method in coaxial network and system | |
CN112202877A (en) | Gateway linkage method, gateway, cloud server and user terminal | |
CN116318258B (en) | Networking method of PLC (programmable logic controller) equipment | |
EP2446661A1 (en) | Harq adaptation for acquisition of neighbor cell system information | |
CN105245695A (en) | Method and system for improving WeChat AirKiss compatibility | |
CN112055341B (en) | Networking method, device and equipment of low-power-consumption Bluetooth Mesh network | |
CN113132988B (en) | Wireless networking link access method of street lamp controller based on token verification | |
CN101026889A (en) | Method, system and base station for locking illegal copy mobile terminal | |
CN110113175B (en) | Network security access method and home network equipment | |
CN104507175B (en) | A kind of method of WIA PA network hand-holds equipment Network with Random Multiple Access System | |
CN110336589B (en) | Power line carrier communication method | |
CN113853005A (en) | Signaling connection self-establishing method between base stations | |
CN113556787A (en) | Private network service data transmission method and device | |
CN106455120B (en) | Method for processing interface between different systems, base station and wireless equipment | |
CN116033365B (en) | Communication method, device, electronic equipment and storage medium | |
WO2023226731A1 (en) | System information sending method and apparatus, and wireless communication system access method and apparatus | |
CN107087312A (en) | Full-mesh network creating method and device | |
US20230050614A1 (en) | A method of and a coordinator device for selectively commissioning a node device in network |
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 |