CN115149984B - PLC Internet of things equipment networking method - Google Patents
PLC Internet of things equipment networking method Download PDFInfo
- Publication number
- CN115149984B CN115149984B CN202211066348.1A CN202211066348A CN115149984B CN 115149984 B CN115149984 B CN 115149984B CN 202211066348 A CN202211066348 A CN 202211066348A CN 115149984 B CN115149984 B CN 115149984B
- Authority
- CN
- China
- Prior art keywords
- plc
- sub
- gateway
- network
- equipment
- 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
Images
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
-
- G—PHYSICS
- G16—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
- G16Y—INFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
- G16Y30/00—IoT infrastructure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Power Engineering (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Small-Scale Networks (AREA)
- Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)
Abstract
The invention discloses a PLC Internet of things equipment networking method, relates to the technical field of Internet of things, and comprises the following steps: step one, selecting a gateway and a sub-device with a PLC communication function to participate in networking; step two, installing the gateway and the sub-equipment in the same circuit to form the same PLC network; step three, powering off and powering on all gateways and sub-devices for a plurality of times at a specified time interval, so that all gateways and sub-devices generate a synchronous signal; step four, all gateways and sub-equipment use the last power-on time as a parameter to regenerate a PLC network identifier to cover the original network identifier; and step five, starting an automatic discovery function of a PLC bottom layer, so that the gateway and the sub-equipment really establish communication to form a PLC network.
Description
Technical Field
The invention relates to the technical field of Internet of things, in particular to a PLC Internet of things equipment networking method.
Background
In the typical application of the 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 arranged or the isolation effect of the power line signal isolator is poor, an efficient and reliable equipment networking scheme does not exist at present, and the two existing networking schemes have defects: the operation is more complicated and the efficiency is low by adding the white list; networking is performed in a mode of automatic discovery of a PLC bottom layer, the situation that a target device group is connected to other networks may exist, under the background condition, the applicant aims to research and provide an efficient and reliable PLC networking scheme, and the efficiency and reliability of PLC device networking are improved.
Disclosure of Invention
The invention aims to provide an efficient and reliable PLC networking scheme, and the efficiency and reliability of PLC equipment networking are improved.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a PLC Internet of things equipment networking method comprises the following steps:
selecting a gateway with a PLC communication function and a sub-device to participate in networking, wherein the sub-device comprises a PLC switch and a PLC socket;
step two, the gateway and the sub-equipment are installed in the same circuit, so that the same PLC network is formed;
after confirming that each device works normally, powering off and powering on all gateways and sub-devices for a plurality of times at a specified time interval, and enabling all gateways and sub-devices to generate a synchronous signal;
step four, all gateways and sub-equipment use last power-on time as a parameter to regenerate a PLC network identifier to cover the original network identifier, so that all gateways and sub-equipment have the same network identifier;
and step five, starting an automatic discovery function of the PLC bottom layer, so that the gateway and the sub-equipment really establish communication to form a PLC network.
Furthermore, in the second step, one PLC network has one and only one gateway.
Further, in step two, one PLC network includes a plurality of sub-devices.
Furthermore, each PLC network has a unique network identifier, and the sub-equipment only allows to join the PLC networks with the same network identifier.
Further, the factory default network identifier of the gateway is 0, and the factory default network identifier of the sub-device is 255.
Further, in the third step, the power is continuously supplied for two times, and then the power is cut off; and thirdly, electrifying for the third time, and calculating the network identification to synchronize the network identifications of the gateway and all the sub-devices.
Further, in the fourth step, the gateway is powered on for the fourth time, starts the automatic discovery function of the device, and completes networking communication with all the sub-devices in sequence.
The invention has the beneficial effects that: the networking scheme of the PLC equipment provided by the invention sets the default network identification of the sub-equipment, so that the sub-equipment cannot be randomly added into the PLC network, and simultaneously, the gateway and the sub-equipment to be networked are subjected to regular power-on and power-off operations to produce the same network identification, thereby achieving the aim of completing pairing before communication is not established between the gateway and the sub-equipment; the whole process is efficient and reliable, and the condition of wrong networking of equipment can not occur even when a plurality of people operate simultaneously.
Drawings
FIG. 1 is a schematic overall flow diagram of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below; in the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention; this invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; either directly or indirectly through intervening media, or may be interconnected between two elements or in a relationship wherein two elements interact, unless expressly limited otherwise; the specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations; it will be understood that when an element is referred to as being "secured to" or "disposed on" another element, it can be directly on the other element or intervening elements may also be present; when an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may be present; as used herein, the terms "upper," "lower," "left," "right," and the like are used for descriptive purposes only and are not intended to represent the only embodiments in which the present invention is further described below.
Example one
As shown in fig. 1, a PLC internet of things device networking method includes the following steps:
step one, selecting a gateway with a PLC communication function and a sub-device to participate in networking, wherein the sub-device comprises a PLC switch, a PLC socket and other sub-devices.
Step two, the gateway and the sub-equipment are installed in the same circuit, so that the same PLC network is formed; one PLC network is provided with only one gateway, and the PLC network comprises a plurality of sub-devices; each PLC network has a unique network identification.
The sub-equipment only allows to join the PLC network with the same network identifier, and the factory default of the sub-equipment is set as a special network identifier.
The factory default network identifier of the gateway is 0, and the factory default network identifier of the sub-device is 255.
After confirming that each device works normally, powering off and powering on all gateways and sub-devices for a plurality of times at a specified time interval, and enabling all gateways and sub-devices to generate a synchronous signal; specifically, the power is continuously supplied for 5 seconds twice, and then the power is cut off; for a third power-on time of 22 seconds, the network identifier is calculated to be 2 according to the formula of routdown ((n-10)/5, 0), and the network identifier of the gateway and all the child devices is set to be 2, it should be specifically noted that the above time parameter is merely an example for the purpose of more clearly describing and understanding the present embodiment, and the modification of the time parameter does not affect the whole process and the design idea of the present invention.
The ROUNDDOWN ((n-10)/5, 0) formula is a functional formula, and ROUNDDOWN (x, 0) represents rounding down, leaving 0 decimal place.
Step four, all gateways and sub-equipment use last power-on time as a parameter to regenerate a PLC network identifier to cover the original network identifier, so that all gateways and sub-equipment have the same network identifier; specifically, the gateway is powered on for the fourth time, starts the automatic discovery function of the device, and completes networking communication with all the sub-devices in sequence.
And step five, starting an automatic discovery function of a PLC bottom layer, so that the gateway and the sub-equipment really establish communication to form a PLC network.
The networking scheme of the PLC equipment provided by the invention sets the default network identification of the sub-equipment, so that the sub-equipment cannot be randomly added into the PLC network, and simultaneously, the gateway and the sub-equipment to be networked are subjected to regular power-on and power-off operations to produce the same network identification, thereby achieving the aim of completing pairing before communication is not established between the gateway and the sub-equipment; the whole process is efficient and reliable, and the condition of wrong networking of equipment can not occur even when a plurality of persons operate simultaneously.
Example two
As shown in fig. 1, a PLC internet of things device networking method includes the following steps:
step one, selecting a gateway with a PLC communication function and a sub-device to participate in networking, wherein the sub-device comprises a PLC switch, a PLC socket and other sub-devices.
Step two, the gateway and the sub-equipment are installed in the same circuit, so that the same PLC network is formed; one PLC network is provided with only one gateway, and the other PLC network comprises a plurality of sub-devices; each PLC network has a unique network identification.
The sub-equipment only allows to join the PLC network with the same network identifier, and the factory default of the sub-equipment is set as a special network identifier.
The factory default network identifier of the gateway is 0, and the factory default network identifier of the sub-device is 255.
After confirming that each device works normally, powering off and powering on all gateways and sub-devices for a plurality of times at a specified time interval, and enabling all gateways and sub-devices to generate a synchronous signal; specifically, the power is continuously supplied for 5 seconds twice, and then the power is cut off; for a third power-on for 34 seconds, the network identifier is calculated to be 4 according to the formula of routdown ((n-10)/5, 0), and the network identifier of the gateway and all the sub-devices is set to be 4, it should be specifically noted that the above time parameter is only an example for the purpose of more clearly describing and understanding the present embodiment, and the modification of the time parameter does not affect the whole process and the design idea of the present invention.
The ROUNDDOWN ((n-10)/5, 0) formula is a functional formula, and ROUNDDOWN (x, 0) represents rounding down, leaving 0 decimal place.
Step four, all gateways and sub-equipment use last power-on time as a parameter to regenerate a PLC network identifier to cover the original network identifier, so that all gateways and sub-equipment have the same network identifier; specifically, the gateway starts the automatic discovery function of the device when powering on for the fourth time, and completes networking communication with all the sub-devices in sequence.
And step five, starting an automatic discovery function of the PLC bottom layer, so that the gateway and the sub-equipment really establish communication to form a PLC network.
The networking scheme of the PLC equipment provided by the invention sets the default network identification of the sub-equipment, so that the sub-equipment cannot be randomly added into a PLC network, and meanwhile, the gateway and the sub-equipment to be networked are subjected to regular power-on and power-off operations to produce the same network identification, thereby achieving the aim of completing pairing before communication is not established between the gateway and the sub-equipment; the whole process is efficient and reliable, and the condition of wrong networking of equipment can not occur even when a plurality of people operate simultaneously.
Therefore, the equivalent changes made on the claims of the present invention still belong to the scope covered by the present invention, and the technical scope of the present invention is not limited by the above claims, and any modifications, equivalent changes and modifications made on the above embodiments according to the technical spirit of the present invention still belong to the technical scope of the present invention.
Claims (7)
1. A PLC Internet of things equipment networking method is characterized by comprising the following steps: the method comprises the following steps:
step one, selecting a gateway with a PLC communication function and a sub-device to participate in networking, wherein the sub-device comprises a PLC switch and a PLC socket;
step two, the gateway and the sub-equipment are installed in the same circuit, so that the same PLC network is formed;
after confirming that each device works normally, powering off and powering on all gateways and sub-devices for a plurality of times at a specified time interval, and enabling all gateways and sub-devices to generate a synchronous signal;
step four, all gateways and sub-equipment use last power-on time as a parameter to regenerate a PLC network identifier to cover the original network identifier, so that all gateways and sub-equipment have the same network identifier;
and step five, starting an automatic discovery function of a PLC bottom layer, so that the gateway and the sub-equipment really establish communication to form a PLC network.
2. The PLC Internet of things equipment networking method according to claim 1, wherein: in the second step, one PLC network has one and only one gateway.
3. The PLC Internet of things equipment networking method according to claim 1, wherein: in the second step, one PLC network includes a plurality of sub-devices.
4. The PLC Internet of things equipment networking method according to claim 1, wherein: each PLC network has a unique network identifier, and the sub-equipment only allows to join the PLC networks with the same network identifiers.
5. The PLC Internet of things equipment networking method according to claim 1, characterized in that: the factory default network identifier of the gateway is 0, and the factory default network identifier of the sub-device is 255.
6. The PLC IOT device networking method according to any one of claims 1 to 5, wherein: in the third step, the power is continuously supplied for two times and then is cut off; and thirdly, electrifying, calculating the network identification, and synchronizing the network identifications of the gateway and all the sub-devices.
7. The PLC Internet of things equipment networking method according to claim 6, characterized in that: in the fourth step, the gateway is powered on for the fourth time, starts the automatic discovery function of the device, and completes networking communication with all the sub-devices in sequence.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211066348.1A CN115149984B (en) | 2022-09-01 | 2022-09-01 | PLC Internet of things equipment networking method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211066348.1A CN115149984B (en) | 2022-09-01 | 2022-09-01 | PLC Internet of things equipment networking method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115149984A CN115149984A (en) | 2022-10-04 |
CN115149984B true CN115149984B (en) | 2022-11-08 |
Family
ID=83415610
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211066348.1A Active CN115149984B (en) | 2022-09-01 | 2022-09-01 | PLC Internet of things equipment networking method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115149984B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116300587A (en) * | 2023-02-20 | 2023-06-23 | 广东金朋科技有限公司 | Hardware modularization processing method and device, electronic equipment and storage medium |
CN116318258B (en) * | 2023-03-10 | 2023-10-10 | 广东金朋科技有限公司 | Networking method of PLC (programmable logic controller) equipment |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007336174A (en) * | 2006-06-14 | 2007-12-27 | Matsushita Electric Ind Co Ltd | Power line communication terminal device and power line communication circuit |
CN103052032B (en) * | 2012-12-25 | 2016-01-27 | 上海桑锐电子科技股份有限公司 | The networking of broadcast wireless networks and data communication method |
CN105681146B (en) * | 2016-03-18 | 2018-12-11 | 宁波三星医疗电气股份有限公司 | A kind of Multi net voting internetwork coordination method for power wire broadband carrier communication network |
CN109861891B (en) * | 2019-01-10 | 2022-06-24 | 上海亚明照明有限公司 | Intelligent control network system, cloud platform and intelligent gateway equipment |
CN111031544B (en) * | 2019-12-24 | 2022-06-03 | 重庆邮电大学 | Multi-network coexisting multi-frequency-point wireless communication networking method |
-
2022
- 2022-09-01 CN CN202211066348.1A patent/CN115149984B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN115149984A (en) | 2022-10-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115149984B (en) | PLC Internet of things equipment networking method | |
KR101503626B1 (en) | Method and system for identifying at least one electrically powered device by a power supply device via a powerline connection | |
KR20140009070A (en) | Network, master, hub, and method for providing a bluetooth infrastructure | |
CN102905396A (en) | Device networking and network-accessing management method for intelligent housing system | |
CN104954105A (en) | Receiver network component, communication network and method for operating communication network | |
CN104201776A (en) | Wireless IPV6 (Internet Protocol Version 6) ad-hoc network communication system for intelligent ring main unit | |
CN105450422A (en) | Wireless access point fault remote automatic recovery system based on access controller and POE switch | |
CN106506046A (en) | A kind of electricity saving method of bandwidth carrier communication system terminal node | |
US11083027B2 (en) | Point to point communication with low-power device | |
CN204989807U (en) | Home automation control system who integrates | |
CN106027346A (en) | Indoor electric appliance management system and control method thereof | |
CN213937951U (en) | Intelligent home gateway | |
CN113259893A (en) | System and method for network node authentication, reconfiguration and data transmission | |
CN113472763A (en) | Control instruction sending method and device, storage medium and electronic device | |
CN107493575A (en) | ZIGEBEE network-building methods and its system based on Quick Response Code | |
CN106406176B (en) | Hotel guest room Zigbee network control system | |
CN105246128A (en) | Intelligent terminal networking method and device | |
CN211630468U (en) | Three-color lamp signal acquisition device and monitoring equipment | |
CN110336589B (en) | Power line carrier communication method | |
CN113543428A (en) | Automatic networking method of intelligent lighting system | |
CN110809276B (en) | Household wireless communication system without mutual interference and networking method thereof | |
CN217883919U (en) | Intelligent lighting platform based on multi-network integration | |
JP6234848B2 (en) | Wireless communication system, wireless communication device, and wireless device | |
CN103346832B (en) | A kind of detection method of Fiber connection state and device | |
CN114124600B (en) | Power line broadband carrier system supporting home subnetwork and application method thereof |
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 |