CN108449117A - A kind of Internet of things system and method for network entry based on PLC - Google Patents
A kind of Internet of things system and method for network entry based on PLC Download PDFInfo
- Publication number
- CN108449117A CN108449117A CN201810442933.4A CN201810442933A CN108449117A CN 108449117 A CN108449117 A CN 108449117A CN 201810442933 A CN201810442933 A CN 201810442933A CN 108449117 A CN108449117 A CN 108449117A
- Authority
- CN
- China
- Prior art keywords
- plc controller
- plc
- control instruction
- internet
- sent
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 28
- 230000006855 networking Effects 0.000 claims description 48
- 238000004891 communication Methods 0.000 claims description 16
- 230000005540 biological transmission Effects 0.000 claims description 8
- 230000005611 electricity Effects 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 description 5
- 230000000694 effects Effects 0.000 description 3
- 238000005538 encapsulation Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- QVFWZNCVPCJQOP-UHFFFAOYSA-N chloralodol Chemical compound CC(O)(C)CC(C)OC(O)C(Cl)(Cl)Cl QVFWZNCVPCJQOP-UHFFFAOYSA-N 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005684 electric field Effects 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 238000012856 packing Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000006798 recombination Effects 0.000 description 1
- 238000005215 recombination Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B3/00—Line transmission systems
- H04B3/54—Systems for transmission via power distribution lines
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/05—Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
- G05B19/052—Linking several PLC's
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C19/00—Electric signal transmission systems
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
-
- 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
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/12—Plc mp multi processor system
- G05B2219/1215—Master slave system
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B2219/00—Program-control systems
- G05B2219/10—Plc systems
- G05B2219/15—Plc structure of the system
- G05B2219/15018—Communication, serial data transmission, modem
Abstract
This application discloses a kind of Internet of things system and method for network entry based on PLC, the system comprises at least two PLC controllers, at least two PLC control includes main PLC controller and at least one from PLC controller, and the main PLC controls device and is connected respectively with respectively from PLC controller by power line;When receiving the control instruction sent with wireless radio frequency mode from PLC controller, control instruction is sent to main PLC controller from PCL controllers by power carrier, control instruction is sent to respectively from PLC controller by main PLC control with the forms of broadcasting, and control instruction is sent to its corresponding controlled plant described in each PLC controller.The application has accessed radio frequency network to carry out data relay forwarding by the way that less radio-frequency net to be combined with PLC, by power-line carrier network so that the data that original radio frequency network is sent out are expanded;The switching of no wiring is increased on the basis of wireless device is without wiring again simultaneously, engineering is reduced and reequips cost.
Description
Technical field
This application involves internet of things field, more particularly to a kind of Internet of things system and method for network entry based on PLC.
Background technology
With the continuous promotion of scientific and technological level, the science and technology civilization of human society has stepped into the information to run at high speed
Epoch, meanwhile, under the background of economic globalization, modern communication technology is no longer limited to an a corner, obtains the breakthrough of bigger,
Twireless radio-frequency communication and power line carrier communication are wherein most commonly seen two kinds of communication technologys.
It is that transmission medium carries out data dissemination that twireless radio-frequency communication, which relies primarily on electromagnetic wave, its development speed is more next in recent years
It is faster.For example, Zigbee, Z-Wave etc. are integrated in application in Internet of Things consumer electronics due to its low-power consumption, stablizes, be convenient for system
It is integrated, and have mating interconnection agreement standard, have versatility, to have begun to answer extensively in the commercial house project
With;Lora above also begins to extensive use in hospitality business application;WiFi is more embodied on the single product of intelligence, and bluetooth is main
It is intelligent wearing.But in family's consumer field, twireless radio-frequency communication tranmitting frequency MHz generally uses 433MHz-5GHz,
Its electromagnetic wavelength is shorter, cut-through object be diffracted into further can power it is weak, and transmission power is by general to body effect
Be limited in 20DB hereinafter, to its transmission range it is shorter, need add routing node, which increase family's Internet of Things at
This, and it is vulnerable to the influence of electric field environment.
Invention content
In view of the deficiencies of the prior art, the application is intended to provide a kind of based on PLC Internet of things system.
In order to solve the above-mentioned technical problem, technical solution used by the application is as follows:
A kind of Internet of things system based on PLC comprising:At least two PLC controllers, at least two PLC controls include
One main PLC controller and at least one from PLC controller;The main PLC controller is by power line and respectively from PLC controller
It is connected;The main PLC controller is for receiving the control instruction respectively sent from PLC controller by power carrier, and by institute
Control instruction is stated to be sent to respectively from PLC controller by power carrier with the forms of broadcasting;Respectively from PLC controller for receiving master
The control instruction that PLC controller is sent, and the control instruction is sent to its corresponding controlled plant.
It is described to be based on PLC Internet of things system, wherein the PLC controller includes PLC unit and communication unit, described
The first control instruction that communication unit receiving terminal apparatus is sent, the control that the first control instruction is converted to preset format refer to
It enables, and the control instruction is sent to PLC unit in the form of serial data, PLC unit sends the control by power carrier
System instruction.
The Internet of things system based on PLC, wherein the preset format includes start bit, address bit, control code, number
According to length, data bit, check code and end code.
The Internet of things system based on PLC, wherein carried from PLC controller by electric power when main PLC controller is received
When the control instruction that wave is sent, the main PLC controller is additionally operable to obtain the device identification from PLC controller, and by institute
Control signal is stated to be sent to except the device identification is corresponding all from PLC controller in addition to PLC controller.
The Internet of things system based on PLC, wherein the corresponding PLC controller of the terminal device passes through network
Connection or corresponding PLC controller are connected by serial ports.
A kind of method of network entry of the Internet of things system based on PLC comprising:
Main PLC controller receives the networking request sent from PLC controller, wherein the networking request carrying is described to be controlled from PLC
The device identification of system;
The device identification is searched in default device identification list;
If finding the device identification, control is described to access the Internet of things system from PLC controller.
The method of network entry of the Internet of things system based on PLC further includes:
If not finding the device identification, the networking instruction for allowing to network is monitored;
When listening to the networking instruction, control is described to access the Internet of things system from PLC controller.
The method of network entry of the Internet of things system based on PLC, wherein described when listening to the networking instruction, control
Further include after the system Internet of things system from PLC controller access:
The device identification list is added to from the device identification of PLC controller, wherein the device identification is described by described
From the address of PLC controller.
The method of network entry of the Internet of things system based on PLC further includes:
Main PLC controller receives logout instruction, and exits the Internet of things system according to logout instruction, and empties described
Device identification list.
The method of network entry of the Internet of things system based on PLC further includes:
Receive the logout request sent from PLC controller, wherein the logout request carries the equipment from PLC controller
Mark;
Exit the Internet of things system from PLC controller according to logout request control is described, and by the device identification from
It is deleted in the device identification list.
The method of network entry of the Internet of things system based on PLC further includes:
When the PLC controller in the Internet of things system receives the control instruction sent with wireless radio frequency mode, read
The configuration information of the control instruction, wherein the configuration information includes at least start bit, data length and end code;
The configuration information is compared with preset configuration information;
When the two all same, the control instruction is converted to the first control instruction of preset format according to preset rules, and
By the first control instruction broadcast transmission in the form of power carrier;
First control instruction is split as the control instruction according to the preset rules, and by the control instruction with nothing
Line radio frequency form is sent to its corresponding controlled plant.
Advantageous effect:Compared with prior art, this application provides a kind of based on the Internet of things system of PLC and networking side
Method, the system comprises at least two PLC controllers, at least two PLC controls include main PLC controller and at least one
It is a from PLC controller, the main PLC controls device is connected from PLC controller respectively with respectively by power line, respectively from PLC controller
It is connected with main PLC controller by power line;When receiving the control instruction sent with wireless radio frequency mode from PLC controller
When, control instruction is sent to main PLC controller from PCL controllers by power carrier, main PLC controls will be controlled with the forms of broadcasting
System instruction is sent to respectively from PLC controller, and control instruction is sent to its corresponding controlled plant described in each PLC controller.This Shen
Less radio-frequency net is combined by PLC Internet of Things with PLC please, power-line carrier network has been accessed into radio frequency network to carry out
Data relay forwarding so that the data that original radio frequency network is sent out are expanded;Simultaneously cloth is not necessarily in wireless device again
On the basis of line, the switching of no wiring is increased, engineering is reduced and reequips cost.
Description of the drawings
Fig. 1 is a kind of structure principle chart of the Internet of things system preferred embodiment based on PLC provided by the present application.
Fig. 2 is the flow chart of the Internet of Things network method preferred embodiment provided by the present application based on PLC.
Specific implementation mode
The application provides a kind of Internet of things system and method for network entry based on PLC, to make purpose, the technical solution of the application
And effect is clearer, clear, the application is further described in the embodiment that develops simultaneously referring to the drawings.It should be appreciated that this
The described specific embodiment in place only to explain the application, is not used to limit the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one
It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the description of the present application arranges
It refers to there are the feature, integer, step, operation, element and/or component, but it is not excluded that presence or addition to take leave " comprising "
Other one or more features, integer, step, operation, element, component and/or their group.It should be understood that when we claim member
Part is " connected " or when " coupled " to another element, it can be directly connected or coupled to other elements, or there may also be
Intermediary element.In addition, " connection " used herein or " coupling " may include being wirelessly connected or wirelessly coupling.It is used herein to arrange
Diction "and/or" includes that the whole of one or more associated list items or any cell are combined with whole.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology art
Language and scientific terminology), there is meaning identical with the general understanding of the those of ordinary skill in the application fields.Should also
Understand, those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art
The consistent meaning of meaning, and unless by specific definitions as here, the meaning of idealization or too formal otherwise will not be used
To explain.
Below in conjunction with the accompanying drawings, by the description of the embodiment, being described further to application content.
It present embodiments provides one kind and being based on PLC Internet of things system, as shown in Figure 1 comprising at least two PLC are controlled
Device, at least two PLC control include a main PLC controller 100 and at least one from PLC controller 200.The master
PLC controller 100 respectively by power line be respectively connected from PLC controller 200, it is described from not phase between PLC controller 200
It connects.That is, the main PLC controller 100 is communicated from PLC controller 200 respectively with respectively, respectively controlled from PLC
It is not communicated mutually between device 200.It is described to receive the control instruction sent in a manner of radio wave from PLC controller 200, and
Control instruction will be received, main PLC controller 100 is sent to by power carrier, the main PLC controller 100 receives the control
System instruction, and the control instruction is sent to by power carrier respectively from PLC controller 200, respectively again from PLC controller 200
The control instruction is sent to its corresponding controlled plant, so that the controlled plant execution control instruction is corresponding
Operation.Wherein, the control instruction is passed through electricity by the main PLC controller when receiving control instruction in the form of broadcasting
Power carrier wave is sent to respectively from PLC controller, and being respectively sent to its by wireless radio frequency mode from PLC controller corresponding controlled sets
It is standby.
Further, the main PLC controller can receive described refers to from PLC controller by the control that power carrier is sent
It enables, can also directly receive the control instruction of exterior terminal transmission.That is, control instruction is monitored in main PLC controller control,
And the reception mode of the control instruction is judged after listening to control instruction, wherein reception mode includes power carrier form
And less radio-frequency form;When the reception mode of control instruction is power carrier form, obtains and send the control instruction
The control instruction is passed through into power carrier with the forms of broadcasting from the device identification of PLC controller, and according to the device identification
It is sent in the Internet of Things except the device identification is corresponding all from PLC controller in addition to PLC controller;When the control refers to
When the reception mode of order is less radio-frequency form, the control instruction is sent to the forms of broadcasting by power carrier by described
It is all from PLC controller in the Internet of Things.Certainly, after the main PLC controller receives control instruction, pass through less radio-frequency shape
Formula is sent to its corresponding controlled plant.To which the main PLC controller can be when receiving the control instruction, first
The control instruction is sent to its corresponding controlled plant, and detects the feedback information of the controlled plant;If listening to anti-
Feedforward information is not sent the control instruction respectively in the form of power carrier from PLC controller then;If not hearing feedback information,
Then the control instruction is sent in the form of power carrier respectively from PLC controller, the working efficiency of Internet of Things can be improved in this way.
It should illustrate, when main PLC controller is to configure corresponding controlled plant, main PLC controller is directly by the control instruction
It is sent respectively from PLC controller in the form of power carrier.In addition, when listening to feedback information, the feedback information can be sent out
The server-side being connected to the main PLC controller is sent, to be sent to the user for being associated with the server-side by the server-side
Notice, to tell the working condition residing for user's controlled plant by the notice.
Further, described when receiving control instruction from PLC controller, it is right can the control instruction to be first sent to its
The controlled plant answered, and whether feedback information is received in the preset monitored time, if listening to feedback information, not by the control
System instruction sends main PLC controller in the form of power carrier;If not hearing feedback information, by the control instruction with electric power
Carrier format sends main PLC controller, to reduce the expense of Internet of Things.Certainly, described to be sent out from PLC controller by control instruction
When sending to main PLC controller, can the device identification of its own be sent to main PLC controller simultaneously, in order to which main PLC is controlled
Device determines the slave PLC controller for sending the control instruction.
In addition, each PLC controller can be pre-configured with its operating mode, wherein the operational module host mode
And slave mode, that is to say, that each PLC controller is each equipped with two kinds of operational modules.And form the object in each PLC controller
When networking, the operating mode of the PLC controller as main PLC controller is set as host mode, as from each of PLC controller
The operating mode of PLC controller is set as slave mode.When each PLC controller receives control instruction, each PLC controls
Device obtains the sending method of the control instruction, when the sending method of control instruction is less radio-frequency form, obtains its own
Residing operating mode;If the operating mode is host mode, the control instruction is passed through into power carrier with the forms of broadcasting
It is sent to each PLC controller;If the operating mode is slave mode, will the operating mode be switched to host mould automatically
Formula, and the control instruction is sent to each PLC controller with the forms of broadcasting by power carrier, and in the control instruction
After being sent, its operating mode is switched into slave mode.Certainly, it is described be switched to host mode from PLC controller when,
Main PLC controller in host mode can automatically switch to slave mode, and described be switched to slave from PLC controller
When pattern, the main PLC controller automatically switches to host mode again.Main PLC controller is achieved and from PLC controller
Automatic switchover, improve the flexibility of Internet of things system.
In the present embodiment simultaneously, the PLC controller may include communication unit and PLC unit, and the communication is single
First control instruction is converted to the control instruction of preset format by the first control instruction that first receiving terminal apparatus is sent, and will
The control instruction is sent to PLC unit in the form of serial data, and PLC unit sends the control instruction by power carrier.
Wherein, the communication unit can be connected with the PLC unit by serial ports, can also be built in the PLC unit.
In addition, the first control instruction that the communication unit can be sent by network receiving terminal apparatus, and described first is controlled
Instruction is converted to the control instruction of preset format.For example, in the preferred embodiment of the application, the PLC controller can
With using the PLC controller of SR-PLC1000 models.
The preset format can be preset, and PLC controller receives the control instruction of the preset format, to institute
The control instruction for stating preset format is identified and sends the control instruction of the preset format by power carrier.In this implementation
In example, the preset format includes start bit, address bit, control code, data length, data bit, check code and end code,
In, bebinning character that the start bit instructs in order to control;Described address instructs the address of corresponding PLC controller in order to control,
For the unique identities identification code of PLC controller, for example, 00 00 00 00 00 01,00 00 00 00 00 02 indicate two
Different PLC controllers;Control code indicates the function type of control instruction, and such as 01 indicates to inquire, and 02 indicates to report, and 03 indicates to write
Data, 04 indicates to read data, and 05 indicates to delete data etc.;Data length indicates that control instruction carries the length that data occupy;
Data bit instructs the data of carrying in order to control;Check code is used for verifying control instruction, for example, odd parity or even parity check
Deng;The end scolding is for indicating that control instruction terminates.For example, in one embodiment of the application, the preset format
Control instruction is 68 68 C1 of A0 A1 A2 A3 A4 A5,05 00 00 01 02 03 6B 16, wherein 68 be initial code,
A0 A1 A2 A3 A4 A5 belong to address bit, and C1 is control code, and 05 data length, 00 00 01 02 03 be data bit, and 6B is
Check code, 16 be stop code.In addition, when each data of the address bit of the control instruction of preset format are identical as the data of control code
When, show that the control instruction of the preset format is in broadcast state, for example, when address bit is AA AA AA AA AA AA, control
When code processed is AA, then it represents that the control instruction is sent with the forms of broadcasting.
In addition, what the data packet format for the first control instruction that the terminal device is sent was negotiated with PLC controller in advance,
And it can be with after such PLC receives the first control instruction of the data packet format after negotiating using the data packet format after negotiating
It identifies first control instruction and is converted into the control instruction of preset format.For example, first control instruction can be with
Including bebinning character, data bit and termination character, wherein the bebinning character is to preset with the termination character, with
First control instruction is identified by the bebinning character and termination character, and first control instruction is converted to default
The control instruction of format.For example, setting bebinning character is 67H, data length position 8, termination character BB, then frame data can
To be expressed as 67 08 11 22 33 44 55 66 77 88 BB.In this way when RF networks are by a frame data 67 08 11 22 33
When 44 55 66 77 88 BB are sent to the internet of things, the first PLC controller in Internet of Things detect bebinning character with
The frame data are carried out packing encapsulation by termination character according to preset format, and the data frame after encapsulation can be 68 00 00 00
00 01 11 68 08 11 22 33 44 55 66 77 88 4E 16;First PLC controller carries data frame by electric power
Wave is sent, while can be decoupled to the data frame after encapsulation, and the frame data received originally are broken down into, i.e., can be by 68
00 00 00 00 01 11 68 08 11 22 33 44 55 66 77 88 4E 16, which are split out, switchs to 67 08 11 22 33
44 55 66 77 88 BB are sent to its corresponding controlled plant, and such PLC controller is realized through power carrier and net
Network sends frame data simultaneously.
Further, the controlled plant can be the equipment by being directly controlled from PLC controller, for example, intelligent lamp etc..Institute
It states and is connected by driving interface from PLC controller with the controlled plant, it is described directly to pass through the driving from PLC controller
The control instruction is sent to its corresponding controlled plant by interface, so that the controlled plant executes the control instruction pair
The operation answered.In addition, the controlled plant can with it is described from PLC controller by wired connection, i.e., controlled plant with from PLC
Controller is connected by serial ports, and controlled plant is sent in the form of serial data from PLC controller by the control instruction, with
So that the controlled plant executes the corresponding operation of the control instruction.In addition, the controlled plant can pass through wireless device
It is connected with from PLC controller, control instruction is sent to controlled plant from PLC controller with wireless radio frequency mode, so that
Controlled plant executes the corresponding operation of control instruction.That is, the Internet of things system may include with one from PLC
The first controlled plant that controller is connected by driving interface can also include being connected from PLC controller by serial ports with one
The second controlled plant connect can also include the third controlled plant communicated from PLC controller by wireless radio frequency mode with one.
Certainly, in practical applications, described to be led to from PLC controller with controlled plant by wireless network or cable network
News, wherein the communications protocol that the network may be used can be Zigbee, Z-wave, Bluetooth, DALI, WiFi, DMX
And KEX etc..
In addition, the Internet of things system based on PLC can also include a transmitting terminal, the transmitting terminal can be with one
PLC controller communicates, and the control instruction that the transmitting terminal is received or generated is sent with wireless radio frequency mode respectively, another
Aspect is broadcasted in the form of serial data.Wherein, control instruction is sent to and its its configured with identical communication by the transmitting terminal
His user terminal, and the control instruction is broadcasted in the form of serial data, so that can recognize that the PLC controls of the serial data
Device processed receives, and is broadcasted to other PLC controllers by power carrier, to realize resuming and extending for the control instruction.
Further, it is provided with networking button and logout button in the PLC controller, when networking button is triggered, PLC
Controller enters networking model;When logout button is triggered, PLC controller is into logout pattern.The networking button with it is described
Logout button can be mechanical key, or touch controlled key etc..In the present embodiment, the networking button and logout button
Using same mechanical key, and control PLC controller enters different states by the time of Crush trigger button difference,
For example, Crush trigger button 3s enters networking model, Crush trigger button 8s enters logout pattern etc..Certainly, in practical application
In, the networking button and logout button can one mechanical key of each correspondence, and be identified using different colours, for example,
Logout button is indicated using red button, using green using networking button etc..In addition, the PLC controller can also be arranged
Have indicator light, by the indicator light indicate PLC controller working condition, the working condition include at least group net state and
Logout state.
Simultaneously in the present embodiment, the server and user terminal, the server respectively with main PLC controller and use
Family end is connected, and the user terminal is used to receive the address of each PLC controller, and the address of each PLC controller is sent to clothes
Business device, the server are used to the device identification of the corresponding PLC controller in the address of each PLC controller being associated, with
Determine that it corresponds to the address of PLC controller according to the device identification.Wherein, described address refers to the installation of PLC controller
Address, i.e., the installation site of the described PLC controller.That is, user terminal receives the ground that user is the input of each PLC controller
Location(For example, bedroom, lavatory etc.), and by the device identification of the corresponding PLC controller of described address(Unique identity)
Binding, and the address information after binding is sent to server, so that the server can obtain and store each PLC controls
The correspondence of the corresponding address of device is receiving the inbound information or logout information that main PLC controller is sent in this way
When, it can be carried to the device identification of PLC controller according to inbound information and logout information, determine the address of the PLC controller,
In order to be preferably managed to the equipment in Internet of Things.In addition, in practical applications, for the ease of quickly determining each PLC
The name modifications of each PLC controller can be by the address of controller when user terminal receives the address of each PLC controller
Described address.For example, the PLC controller in bedroom can be named as bedroom etc..
Based on the above-mentioned Internet of Things based on PLC, present invention also provides a kind of networking sides of the Internet of things system based on PLC
Method, as shown in Figure 2 comprising:
S10, main PLC controller receive the networking request sent from PLC controller, wherein described in networkings request carrying from
The device identification of PLC controls.
Specifically, the networking request generates from PLC controller and is sent to main PLC controller, the networking to be described
Request can be automatically generated from PLC controller, can also be to receive external control instruction from PLC controller and generate.
In the present embodiment, when networking request generates to receive external control instruction, generating the process for networking and asking can be with
For:PLC controller is provided with control button, user enters 2 times/S quick flashings by short-press 3S, LED light, into search into
Net pattern, then by once, LED light becomes 1 time/2S slow flash, allows to be added pattern into networking, while controlling to main PLC
Device processed sends the request that networks.The networking request is the case where automatically generating:It is described to have been added to institute from PLC controller
Internet of Things is stated, and when Internet of Things or the power-down rebooting from PLC controller, from PLC controller automatically into networking pattern,
Generate and send networking request.
S20, the device identification is searched in default device identification list.
Specifically, the device identification list is pre-stored, records setting for each PLC controller in the Internet of Things
Standby mark and installation site.When receiving networking request, according to the device identification list and equipment can be received
It identifies to determine the corresponding PLC controller of the device identification whether in the Internet of Things.In practical applications, the equipment
Identification list can be stored in background server, and the main PLC controller can be connected with the background server, pass through institute
It states background server to check and accept the device identification, and receives the query result that the background server is sent, with basis
The query result executes corresponding operation.
If S30, finding the device identification, control is described to access the Internet of things system from PLC controller.
Specifically, it is described find the device identification and illustrate that the device identification is corresponding be in institute from PLC controller
It states in Internet of Things, it is described from the PLC controller access Internet of things system from that can control.Certainly, if not finding described set
Standby mark, then illustrate that the corresponding PLC controller of the device identification is not in the Internet of Things, to need main PLC to control
Device is also at networking pattern and just the PLC controller can be added in the Internet of things system.Accordingly.It is described to be based on PLC
The method of network entry of Internet of things system further include:
If S40, not finding the device identification, the networking instruction for allowing to network is monitored;
S50, when listening to networking instruction, control is described to access the Internet of things system from PLC controller.
Specifically, the networking instructs the main PLC controller to receive, and can be main PLC controller itself
It generates, can also be that main PLC controller receives what external equipment was sent.In embodiment, the networking instruction is main PLC
Controller itself generates.For example, the main short-press 3S, LED light 2 times/S quick flashings, into networking pattern, then click,
LED light enters 1 time/2S slow flash, and expression starts that slave networking request can be received, then clicks, and LED light is always on,
It exits in networking pattern and is provided with networking button and indicator light, pass through short-press 3S so that LED light 2 times/S quick flashings, it is main
PLC controller enters networking pattern, then clicks networking button, and LED light enters 1 time/2S slow flash, main PLC controller life
It is asked at networking to instruct and start to receive to network from PLC controller.In addition, described when listening to the networking instruction, control
Further include after the Internet of things system from PLC controller access:It is added to described from the device identification of PLC controller
The device identification list, wherein the device identification is described from the address of PLC controller.It can timely update and set in this way
Standby identification list, so that each PLC controller power down recombination is more accurate.
In addition, the Internet of things system, the main PLC respectively can also be exited from PLC controller in the Internet of things system
Controller can also exit the Internet of things system, correspondingly, the method for network entry of the Internet of things system based on PLC, also
Including:
S60, when main PLC controller receive logout instruction when, main PLC controller according to the logout instruction exit the Internet of Things
Net system, and empty the device identification list;
S70, receive the logout request sent from PLC controller when main controller, wherein logout request carry it is described from
The device identification of PLC controller;
S80 exits the Internet of things system according to logout request control is described from PLC controller, and by the device identification
It is deleted from the device identification list.
Specifically, the logout instruction of the main PLC controller can be the form of program instruction, can also be external signal and touch
The form of hair, i.e., the described logout instruction can be generated by triggering the button of main PLC controller, can also be outside receiving
What portion's equipment was sent.In the present embodiment, the logout instruction is generated by triggering the networking button of its configuration, for example,
Long-press networking button 8S or more, can the device identification list, LED light 8 times/S quick flashings extinguish after 2S.It is described from PLC
The logout request of controller can be by triggering its networking button 8S configured, and LED light enters 8 times/S quick flashings, is controlled from PLC
Device processed enters transmission request logout pattern, and sends logout and ask to main PLC controller.Main PLC controller receives the logout
Described blacklist will be added from PLC controller in request, and the LED light controlled from PLC is extinguished.
In one embodiment of the invention, the method for network entry of the Internet of things system based on PLC further includes:
When the PLC controller in the Internet of things system receives the control instruction sent with wireless radio frequency mode, read
The start bit and end code of the control instruction;
The start bit is compared with end code with default start bit and default end code respectively;
When the two all same, the control instruction is converted to the first control instruction of preset format according to preset rules, and
By the first control instruction broadcast transmission in the form of power carrier;
First control instruction is split as the control instruction according to the preset rules, and by the control instruction with nothing
Line radio frequency form is sent to its corresponding controlled plant.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;Although
The application is described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that:It still may be used
With technical scheme described in the above embodiments is modified or equivalent replacement of some of the technical features;
And these modifications or replacements, each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution spirit and
Range.
Claims (10)
1. a kind of Internet of things system based on PLC, which is characterized in that it includes:At least two PLC controllers, described at least two
A PLC control includes a main PLC controller and at least one from PLC controller;The main PLC controller by power line with
Respectively it is connected from PLC controller;The main PLC controller is for receiving the control respectively sent from PLC controller by power carrier
System instruction, and the control instruction is sent to respectively by power carrier from PLC controller with the forms of broadcasting;Respectively controlled from PLC
Device is used to receive the control instruction that main PLC controller is sent, and the control instruction is sent to its corresponding controlled plant.
2. being based on PLC Internet of things system according to claim 1, which is characterized in that the PLC controller includes PLC unit
And communication unit, the first control instruction that the communication unit receiving terminal apparatus is sent are converted to the first control instruction
The control instruction of preset format, and the control instruction is sent to PLC unit in the form of serial data, PLC unit passes through electricity
Power carrier wave sends the control instruction.
3. the Internet of things system based on PLC according to claim 1, which is characterized in that the preset format include start bit,
Address bit, control code, data length, data bit, check code and end code.
4. the Internet of things system based on PLC according to claim 1, which is characterized in that when main PLC controller receive from
When the control instruction that PLC controller is sent by power carrier, the main PLC controller is additionally operable to obtain described from PLC controls
The device identification of device, and by it is described control signal be sent to except the device identification it is corresponding in addition to PLC controller it is all from
PLC controller.
5. a kind of method of network entry of the Internet of things system based on PLC, which is characterized in that it includes:
Main PLC controller receives the networking request sent from PLC controller, wherein the networking request carrying is described to be controlled from PLC
The device identification of system;
The device identification is searched in default device identification list;
If finding the device identification, control is described to access the Internet of things system from PLC controller.
6. the method for network entry of the Internet of things system based on PLC according to claim 5, which is characterized in that it further includes:
If not finding the device identification, the networking instruction for allowing to network is monitored;
When listening to the networking instruction, control is described to access the Internet of things system from PLC controller.
7. the method for network entry of the Internet of things system based on PLC according to claim 6, which is characterized in that described to listen to
When the networking instruction, described accessed after the Internet of things system from PLC controller of control further includes:
The device identification list is added to from the device identification of PLC controller, wherein the device identification is described by described
From the address of PLC controller.
8. the method for network entry of the Internet of things system based on PLC according to claim 5, which is characterized in that it further includes:
Main PLC controller receives logout instruction, and exits the Internet of things system according to logout instruction, and empties described
Device identification list.
9. the method for network entry of the Internet of things system based on PLC according to claim 5, which is characterized in that it further includes:
Receive the logout request sent from PLC controller, wherein the logout request carries the equipment from PLC controller
Mark;
Exit the Internet of things system from PLC controller according to logout request control is described, and by the device identification from
It is deleted in the device identification list.
10. the method for network entry of the Internet of things system based on PLC according to claim 5, which is characterized in that it further includes:
When the PLC controller in the Internet of things system receives the control instruction sent with wireless radio frequency mode, read
The configuration information of the control instruction, wherein the configuration information includes at least start bit, data length and end code;
The configuration information is compared with preset configuration information;
When the two all same, the control instruction is converted to the first control instruction of preset format according to preset rules, and
By the first control instruction broadcast transmission in the form of power carrier;
First control instruction is split as the control instruction according to the preset rules, and by the control instruction with nothing
Line radio frequency form is sent to its corresponding controlled plant.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810442933.4A CN108449117B (en) | 2018-05-10 | Internet of things system based on PLC and network access method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810442933.4A CN108449117B (en) | 2018-05-10 | Internet of things system based on PLC and network access method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108449117A true CN108449117A (en) | 2018-08-24 |
CN108449117B CN108449117B (en) | 2024-04-26 |
Family
ID=
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669389A (en) * | 2018-12-27 | 2019-04-23 | 山西双环重工集团有限公司 | The wireless telecommunication system and method for industrial equipment |
CN110009895A (en) * | 2019-04-22 | 2019-07-12 | 重庆房地产职业学院 | Electrical control system based on power carrier communication |
CN110418362A (en) * | 2019-08-02 | 2019-11-05 | 深圳市无眼界科技有限公司 | The method and its system of a kind of key self-configuring and networking |
CN110636147A (en) * | 2019-09-12 | 2019-12-31 | 公牛集团股份有限公司 | Network distribution method and device of double-control switch, switch and intelligent switch system |
CN112039559A (en) * | 2020-08-27 | 2020-12-04 | 深圳市力合微电子股份有限公司 | Communication method of PLC-DALI intelligent lighting system based on power line carrier communication |
CN113301182A (en) * | 2021-05-26 | 2021-08-24 | 绵阳市维博电子有限责任公司 | Networking communication system based on PLC bus |
CN113518030A (en) * | 2021-06-23 | 2021-10-19 | 北京智芯微电子科技有限公司 | Dual-mode inter-mode cooperation method and electric power internet of things system |
CN113825122A (en) * | 2021-08-03 | 2021-12-21 | 中联重科股份有限公司 | Device for engineering machinery, communication method, controller and engineering machinery |
CN116033039A (en) * | 2023-02-14 | 2023-04-28 | 广东金朋科技有限公司 | Equipment access method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012157060A1 (en) * | 2011-05-16 | 2012-11-22 | 株式会社メガチップス | Communication system, and communication device |
US20150230006A1 (en) * | 2012-09-28 | 2015-08-13 | Panasonic Intellectual Property Management Co., Ltd. | Communication system, communication device, relay device, and program |
CN105024890A (en) * | 2015-05-29 | 2015-11-04 | 青岛海尔智能家电科技有限公司 | Intelligent household electrical appliance network access method and device and intelligent household electrical appliance |
CN105141342A (en) * | 2015-02-15 | 2015-12-09 | 美的集团股份有限公司 | Method and system used for adding power line carrier wave communication network to electric appliance equipment |
CN106325084A (en) * | 2015-06-25 | 2017-01-11 | 中兴通讯股份有限公司 | Intelligent home central controller, terminal, system and control method |
CN106899327A (en) * | 2017-02-24 | 2017-06-27 | 华为技术有限公司 | The method and apparatus of data transfer |
CN206517411U (en) * | 2016-12-30 | 2017-09-22 | 珠海慧信微电子有限公司 | A kind of dual-mode communication system wireless based on power line carrier and micropower |
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2012157060A1 (en) * | 2011-05-16 | 2012-11-22 | 株式会社メガチップス | Communication system, and communication device |
US20150230006A1 (en) * | 2012-09-28 | 2015-08-13 | Panasonic Intellectual Property Management Co., Ltd. | Communication system, communication device, relay device, and program |
CN105141342A (en) * | 2015-02-15 | 2015-12-09 | 美的集团股份有限公司 | Method and system used for adding power line carrier wave communication network to electric appliance equipment |
CN105024890A (en) * | 2015-05-29 | 2015-11-04 | 青岛海尔智能家电科技有限公司 | Intelligent household electrical appliance network access method and device and intelligent household electrical appliance |
CN106325084A (en) * | 2015-06-25 | 2017-01-11 | 中兴通讯股份有限公司 | Intelligent home central controller, terminal, system and control method |
CN206517411U (en) * | 2016-12-30 | 2017-09-22 | 珠海慧信微电子有限公司 | A kind of dual-mode communication system wireless based on power line carrier and micropower |
CN106899327A (en) * | 2017-02-24 | 2017-06-27 | 华为技术有限公司 | The method and apparatus of data transfer |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109669389A (en) * | 2018-12-27 | 2019-04-23 | 山西双环重工集团有限公司 | The wireless telecommunication system and method for industrial equipment |
CN110009895A (en) * | 2019-04-22 | 2019-07-12 | 重庆房地产职业学院 | Electrical control system based on power carrier communication |
CN110418362A (en) * | 2019-08-02 | 2019-11-05 | 深圳市无眼界科技有限公司 | The method and its system of a kind of key self-configuring and networking |
CN110636147A (en) * | 2019-09-12 | 2019-12-31 | 公牛集团股份有限公司 | Network distribution method and device of double-control switch, switch and intelligent switch system |
CN110636147B (en) * | 2019-09-12 | 2022-05-20 | 公牛集团股份有限公司 | Network distribution method and device with double-control switch, switch and intelligent switch system |
CN112039559A (en) * | 2020-08-27 | 2020-12-04 | 深圳市力合微电子股份有限公司 | Communication method of PLC-DALI intelligent lighting system based on power line carrier communication |
CN113301182A (en) * | 2021-05-26 | 2021-08-24 | 绵阳市维博电子有限责任公司 | Networking communication system based on PLC bus |
CN113518030A (en) * | 2021-06-23 | 2021-10-19 | 北京智芯微电子科技有限公司 | Dual-mode inter-mode cooperation method and electric power internet of things system |
CN113825122A (en) * | 2021-08-03 | 2021-12-21 | 中联重科股份有限公司 | Device for engineering machinery, communication method, controller and engineering machinery |
CN113825122B (en) * | 2021-08-03 | 2024-02-27 | 中联重科股份有限公司 | Device and communication method for engineering machinery, controller and engineering machinery |
CN116033039A (en) * | 2023-02-14 | 2023-04-28 | 广东金朋科技有限公司 | Equipment access method and device, electronic equipment and storage medium |
CN116033039B (en) * | 2023-02-14 | 2023-05-30 | 广东金朋科技有限公司 | Equipment access method and device, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105652676B (en) | A kind of intelligent home appliance remote control system and control method | |
EP2840455B1 (en) | Method, apparatus and system for intelligently controlling device, and plug-and-play device | |
CN102461288B (en) | The enhanced debugging of Radio Network System | |
CN111052687B (en) | Apparatus and method for controlling addition of network nodes to a multihop network | |
EP3326331A1 (en) | A centralized controlling system controlling interactions and cooperation between radio-operated devices operating in a mesh network supporting multiple radio communication protocols | |
CN105446305A (en) | Intelligent household gateway network configuration method and intelligent household system | |
US20110077788A1 (en) | Wireless Power Distribution System and Device | |
CN105069875A (en) | Electronic key, electronic devices and electronic device networking/pairing method | |
CN104238370A (en) | Smart home control method, device and system | |
CN110753331A (en) | Data transmission method, system, storage medium and networking device | |
KR101797032B1 (en) | Wireless router device with IoT gateway function | |
CN110771096A (en) | Fiber-enhanced PoE network | |
JP5687859B2 (en) | Network system and node device | |
CN105530268A (en) | Heterogeneous protocol interconnection method and controller | |
US20160330565A1 (en) | Z-wave controller shift in thermostats | |
US6721552B1 (en) | Low power radio network | |
CN108449117A (en) | A kind of Internet of things system and method for network entry based on PLC | |
US20130169345A1 (en) | Electronic relay, electronic system and method for switching a power current | |
CN105490901A (en) | Smart home full-house control device and control method thereof | |
CN114567547B (en) | Device networking method, system, device, communication management device and storage medium | |
CN108449117B (en) | Internet of things system based on PLC and network access method | |
CN104837146A (en) | Configuration parameter distribution method, configuration parameter reception method and configuration parameter reception device | |
CN107132801A (en) | A kind of remote switch device based on Arduino | |
JP2021530902A (en) | Interactive electronic label equipment communication system and method | |
CN114003294B (en) | Remote startup and shutdown and firmware updating device, server, system, method and medium |
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 |