CN104065544B - A kind of communication means based on intelligent switch - Google Patents

A kind of communication means based on intelligent switch Download PDF

Info

Publication number
CN104065544B
CN104065544B CN201410298512.0A CN201410298512A CN104065544B CN 104065544 B CN104065544 B CN 104065544B CN 201410298512 A CN201410298512 A CN 201410298512A CN 104065544 B CN104065544 B CN 104065544B
Authority
CN
China
Prior art keywords
data
node
frame
scene
communication means
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201410298512.0A
Other languages
Chinese (zh)
Other versions
CN104065544A (en
Inventor
林世端
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujian Light Speed Things Polytron Technologies Inc
Original Assignee
Fujian Light Speed Things Polytron Technologies Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujian Light Speed Things Polytron Technologies Inc filed Critical Fujian Light Speed Things Polytron Technologies Inc
Priority to CN201410298512.0A priority Critical patent/CN104065544B/en
Publication of CN104065544A publication Critical patent/CN104065544A/en
Application granted granted Critical
Publication of CN104065544B publication Critical patent/CN104065544B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention provides a kind of communication means based on intelligent switch, and the communication means is based on a real-time performance for being provided with multiple switch panel, it is characterised in that:The switch panel is provided with least one set of button, every group of button individually controls same different conditions in kind, it can be set and mutually controlled by the communication means between any scene button, a kind of each self-defined scene mode of scene button, each switch panel on each switch panel;The communication means includes physical network topology module, bus collision processing module and node data processing module.The present invention realizes being in communication with each other between intelligent switch node, meanwhile, the present invention each Node distribution processing, individual reception, storage and is controlled using reversely record, substantially increases communication efficiency, performance and the flexibility of intelligent switch.

Description

A kind of communication means based on intelligent switch
Technical field
The present invention relates to a kind of communication protocol, more particularly to a kind of communication means based on intelligent switch.
Background technology
RS485 communication bus only defines the electrical equipment specification of physical layer, without collision detection or arbitration mechanism.Therefore, it is traditional , it is necessary to define upper layer communication agreement when being communicated using RS485, such as MODBUS agreements can only use one master and multiple slaves structure, and And can not be communicated between slave, row information exchange can only be entered by host computer polls, indirect control is reached, in this one master and multiple slaves In structure, once host fails, network paralysis can not normal work, and multiple targets control record be stored on main frame, make Must control, allocating time it is long, underaction.All answered between each switch control node in household field relatively independent, it is impossible to because Damage for a host node destroys whole system.The communication protocol majority for being currently based on RS485 is only suitable for one-way data and adopted The application such as collection, it is impossible to the requirement for meeting double-direction control and node disjoint is switched for household field.
The content of the invention
The technical problem to be solved in the present invention, is to provide a kind of communication means based on intelligent switch, the communication means Be based on RS485 serial communications design it is a kind of can realize it is much much more main from the means of communication.
What the present invention was realized in:A kind of communication means based on intelligent switch, the communication means need to provide physics Network topology structure module, bus collision processing module and node data processing module;
The physical network topology module includes all switch panels and bus in a region, and each switch panel leads to Bus connection is crossed, a switch panel is a node, and each node is in communication with each other;
The bus collision processing module includes clash handle hardware module and clash handle software module;
The node data processing module is responsible for setting and execution to scene, and the number in setting up procedure and implementation procedure Recorded according to using reverse, each Node distribution processing, individual reception, storage and control, data communication is based on broadcast communication, point Carried out supplemented by point to-point communication;
Methods described is comprised the following steps that:
All switch panels are connected by bus in step 1, a region, form the physical network topology module, The module is the unibus structure physical network of multinode, and each node is slave mode in the case where not sending data, place In listening state, data to be received are waited;
When any one node in step 2, slave needs scene set or triggering scene, sentenced by node data processing module Whether disconnected bus is in running order, if so, then waiting network idle;Otherwise, host mode is switched to;
Step 3, the node in host mode, seize bus, by the clash handle hardware in bus collision processing module Clash handle software module in module protection circuit, bus collision processing module reduces the data frame that will be broadcasted, main frame The data frame of broadcast transmission one, the data frame includes scene setting frame or scenario triggered frame;
The data frame sent from main frame is monitored and received to step 4, slave, if the data frame is scene setting frame, Selected slave is by the record of keys being selected in own node and is stored in own list;If the data frame received is Scenario triggered frame, then call and perform corresponding data instruction in own list.
Further, the switch panel is included in light panel, curtain panel and light modulation panel, and each switch panel Provided with least one set of button, the same different conditions in kind of every group of button independent control set any on each switch panel Individual scene button, a kind of each self-defined scene mode of scene button.
Further, the clash handle hardware module is realized by RS485 interfaces improvement design, is connect in RS485 2 grades of protections are devised on mouthful:Interface high-pressure electrostatic that first class of protection is made up of unidirectional TVS pipe etc. is protected;Second class protection be by The protection of the MCU signal ends of two-way TVS pipe composition, protects MCU from the destruction of overcurrent-overvoltage level electrostatic, is come from so as to solve The destruction of network-external high-voltage pulse or electrostatic.
Further, the specific design circuit of the RS485 interfaces:The circuit include RS485 communication chips, periphery TVS pipe, resistance and electric capacity, and RS485 communication chips, TVS pipe, resistance and the electric capacity of periphery pass through electrical connection.
Further, the clash handle software module reduces generation data by the length and size of design data frame The probability of conflict, improves communication efficiency.
Further, data frame includes frame head, destination address, source address, frame length, instruction, data, school in the step 3 Test and postamble, wherein, destination address is broadcast address, and source address is instructed as scene setting instruction or field to rise node address Scape triggering command, data record is to rise in node to rise key, is verified as LRC verifications or CRC check.
The invention has the advantages that:The present invention by provide it is a kind of it is much much more main from communication means, realize intelligence and open Being in communication with each other between artis, meanwhile, data are using reverse record, i.e., each node point in arrangement above process and trigger process Cloth processing, individual reception, storage and control, substantially increase communication efficiency, performance and the flexibility of intelligent switch.
Brief description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is physical network topology figure of the present invention.
Fig. 2 is Interface design schematic diagram of the present invention.
Fig. 3 is that data collision of the present invention analyzes schematic diagram.
Fig. 4 is node data process chart of the present invention.
Embodiment
Fig. 1 to Fig. 4, a kind of communication means based on intelligent switch are referred to, the communication means is provided with many based on one The real-time performance of individual switch panel, the switch panel includes light panel, curtain panel and light modulation panel, each switching surface Plate is provided with least one set of button, the same different conditions in kind of every group of button independent control, each switch panel and can set Put and pass through the communication means between any scene button, a kind of each self-defined scene mode of scene button, each switch panel Communicated;The communication means need to be provided at physical network topology module, bus collision processing module and node data Manage module;
As shown in figure 1, the physical network topology module includes all switch panels and bus in a region, each Switch panel is connected by bus, and a switch panel is a node, and each node can be in communication with each other;
The bus collision processing module includes clash handle hardware module and clash handle software module;
The clash handle hardware module is realized by RS485 interfaces improvement design, due to using bus physical net Network structure, is present from external high pressure pulse or electrostatic breakdown and excessively stream destruction etc. caused by internal bus conflict, may Destruction can be shone into RS485 communication interfaces.Therefore need to carry out RS485 interfaces to transform and protect accordingly.As shown in Fig. 2 The specific design circuit of RS485 interfaces of the present invention:The circuit includes RS485 communication chips, TVS pipe, resistance and the electric capacity of periphery, And RS485 communication chips, TVS pipe, resistance and the electric capacity of periphery are by electrical connection, to 2 grades of guarantors of RS485 interfaces improvement design point Shield, the protection such as interface high-pressure electrostatic that first class of protection is made up of D7, D8 and D9 unidirectional TVS pipe, second class protection be by DT2 and The MCU signal ends protection of DT3 two-way TVS pipe composition, to protect MCU from the destruction of overcurrent-overvoltage and electrostatic.Protection philosophy: If outside has thunderbolt or other high-pressure electrostatics or the high pressure to come in by inlet line, it can be absorbed and discharge by unidirectional TVS pipe To ground wire, by system ground wire to the earth, so that the external high pressure or electrostatic that slacken enter the peak value of second class protection.When by disappearing High-voltage pulse or electrostatic after weak are entered after the further clamper of the two-way TVS pipe of second class protection absorbs by R27, R28, the high pressure or The basic scope received in MCU of electrostatic, into inside MCU, from without being damaged to MCU.If this high pressure duration Long, after two grades of TVS pipe clampers, electric current just persistently increases, and causes R27, R28 because what is exceeded bears power and blow or resistance Become big, to receive substantially in MCU scope, into inside MCU, MCU will not also be damaged;
The clash handle software module reduces the probability clashed by reducing transmission data length, such as Fig. 3 institutes Show, when two panels are required for sending data, all go to detect bus, find now bus free, two panels will be sent out simultaneously Data are sent, data collision will be now there occurs.Assuming that data length is L, transmission data rate is B/bps, due to interface chip Control chip is just notified after a complete byte data can only be detected, it can be considered that being possible to hair during sending the data byte Raw collision, the probability of collision is 8/B.Data length is L+1 after destruction, that is, bus after (L+1) * 8/B times is needed after colliding Just recover communication.Analyzed more than:There is the risk for occurring data collision in this agreement, but appropriate raising sends data, Reduce and send data length, the probability clashed can be reduced, improve communication efficiency.The present invention is handled using data distribution, The size of data transmitted in network is substantially reduced, the data only artificially triggered just need broadcast transmission into network, but The probability very little that two controlling switches are concurrently depressed, meanwhile, the lost part data in domestic applications will not be caused to system Destruction;
The node data processing module is responsible for setting and execution to scene, and the number in setting up procedure and implementation procedure Recorded according to using reverse, each Node distribution processing, individual reception, storage and control, data communication is based on broadcast communication, point Carried out supplemented by point to-point communication;
Methods described is comprised the following steps that:
All switch panels are connected by bus in step 1, a region, form the physical network topology module, The module is the unibus structure physical network of multinode, and each node is slave mode in the case where not sending data, place In listening state, data to be received are waited;
When any one node in step 2, slave needs scene set or triggering scene, sentenced by node data processing module Whether disconnected bus is in running order, if so, then waiting network idle;Otherwise, host mode is switched to;
Step 3, the node in host mode, seize bus, by the clash handle hardware in bus collision processing module Clash handle software module in module protection circuit, bus collision processing module reduces the data frame that will be broadcasted, main frame The data frame of broadcast transmission one, the data frame includes scene setting frame or scenario triggered frame, and each data frame includes frame head, mesh Address, source address, frame length, instruction, data, verification and postamble are marked, as shown in table 1, wherein, destination address is broadcast address, source Address is rises node address, it is scene setting instruction or scenario triggered instruction to instruct, and data record is risen in node Key is risen, LRC verifications or CRC check is verified as;
Table 1
Frame head Destination address Source address Frame length Instruction Data Verification Postamble
0xFD 0x00-0xFF 0x00-0xFF 0-255 0-255 0-255 LRC/CRC 0xFE
The data frame sent from main frame is monitored and received to step 4, slave, if the data frame is scene setting frame, Selected slave is by the record of keys being selected in own node and is stored in own list;If the data frame received is Scenario triggered frame, then call and perform corresponding data instruction in own list.
As shown in table 2 and table 3, using light panel as node is risen, a scene S1 is set, the curtain of scenery control first is opened Closed with the second curtain;
The table 3 of table 2
Scene S1 on light panel D1 is configured:S1 is selected, bus free is monitored, network can use, into setting Put pattern, such as frame data of broadcast transmission one, table 4:
Table 4
Frame head Destination address Source address Frame length Instruction Data Verification Postamble
0xFD 0x00 0x01 0x08 0x85 0x10 0x00 0xFE
The button that the button and the second curtain control that selection upper first curtain controls of curtain panel C1 are opened are closed, curtain panel connects Data, record S1 values and the data by operating key are received, are stored in the storage list of curtain panel, curtain panel C1 is recorded such as Table 5:
Table 5
Initiate panel Initiate key By control key
0x85 0x10 0x21
0x85 0x10 0x26
When triggering scene S1:S1 is selected, bus free is monitored, network can use, into control model, the frame of broadcast transmission one Data, such as table 6:
Table 6
Frame head Destination address Source address Frame length Instruction Data Verification Postamble
0xFD 0x00 0x01 0x08 0x86 0x10 0x00 0xFE
Each panel searches itself storage list and does respective handling, and curtain panel is called out was stored in own list originally In the record on S1, control the first curtain open and the second curtain close.When needing change scene, setting S1 is re-started.
Data are using reverse record in arrangement above process and trigger process, i.e., each Node distribution is handled, individual reception, Storage and control, a frame data can control any number of control nodes.
Although the foregoing describing the embodiment of the present invention, those familiar with the art should manage Solution, the specific embodiment described by us is merely exemplary, rather than for the restriction to the scope of the present invention, is familiar with this The equivalent modification and change that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's In scope of the claimed protection.

Claims (6)

1. a kind of communication means based on intelligent switch, it is characterised in that:The communication means need to provide physical network topology knot Structure module, bus collision processing module and node data processing module;
The physical network topology module includes all switch panels and bus in a region, and each switch panel passes through total Line is connected, and a switch panel is a node, and each node is in communication with each other;
The bus collision processing module includes clash handle hardware module and clash handle software module;
The node data processing module is responsible for setting and execution to scene, and data are adopted in setting up procedure and implementation procedure With reverse record, each Node distribution processing, individual reception, storage and control;
Methods described is comprised the following steps that:
All switch panels are connected by bus in step 1, a region, form the physical network topology module, the mould Block is the unibus structure physical network of multinode, and each node is slave mode in the case where not sending data, in prison State is listened, data to be received are waited;
When any one node in step 2, slave needs scene set or triggering scene, judge total by node data processing module Whether line is in running order, if so, then waiting network idle;Otherwise, host mode is switched to;
Step 3, the node in host mode, seize bus, by the clash handle hardware module in bus collision processing module Clash handle software module in protection circuit, bus collision processing module reduces the data frame that will be broadcasted, host broadcast A data frame is sent, the data frame includes scene setting frame or scenario triggered frame;
The data frame sent from main frame is monitored and received to step 4, slave, if the data frame is scene setting frame, is chosen In slave is by the record of keys being selected in own node and is stored in own list;If the data frame received is scene Trigger frame, then call and perform corresponding data instruction in own list.
2. a kind of communication means based on intelligent switch according to claim 1, it is characterised in that:The switch panel bag Light panel, curtain panel and light modulation panel are included, and each switch panel is provided with least one set of button, every group of button is independently controlled Make and any scene button, each scene button self-defined one are set on same different conditions in kind, each switch panel Plant scene mode.
3. a kind of communication means based on intelligent switch according to claim 1, it is characterised in that:The clash handle is hard Part module is realized by RS485 interfaces improvement design, and 2 grades of protections are devised on RS485 interfaces:First class of protection is by list The protection of the interface high-pressure electrostatic constituted to TVS pipe;The protection for the MCU signal ends that second class protection is made up of two-way TVS pipe.
4. a kind of communication means based on intelligent switch according to claim 3, it is characterised in that:The RS485 interfaces Specific design circuit:The circuit includes RS485 communication chips, TVS pipe, resistance and the electric capacity of periphery, and RS485 communication cores Piece, TVS pipe, resistance and the electric capacity of periphery pass through electrical connection.
5. a kind of communication means based on intelligent switch according to claim 1, it is characterised in that:The clash handle is soft Part module reduces the probability for occurring data collision by the length and size of design data frame.
6. a kind of communication means based on intelligent switch according to claim 1, it is characterised in that:Number in the step 3 Include frame head, destination address, source address, frame length, instruction, data, verification and postamble according to frame, wherein, destination address is broadcast ground Location, source address is rises node address, and it is that scene setting instruction or scenario triggered are instructed to instruct, and data record is to rise node In rise key, be verified as LRC verification or CRC check.
CN201410298512.0A 2014-06-27 2014-06-27 A kind of communication means based on intelligent switch Expired - Fee Related CN104065544B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410298512.0A CN104065544B (en) 2014-06-27 2014-06-27 A kind of communication means based on intelligent switch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410298512.0A CN104065544B (en) 2014-06-27 2014-06-27 A kind of communication means based on intelligent switch

Publications (2)

Publication Number Publication Date
CN104065544A CN104065544A (en) 2014-09-24
CN104065544B true CN104065544B (en) 2017-09-01

Family

ID=51553085

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410298512.0A Expired - Fee Related CN104065544B (en) 2014-06-27 2014-06-27 A kind of communication means based on intelligent switch

Country Status (1)

Country Link
CN (1) CN104065544B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394044B (en) * 2014-10-29 2018-02-02 小米科技有限责任公司 The method and apparatus of self-defined smart machine scene mode
CN104765291B (en) * 2015-02-10 2019-06-04 海尔优家智能科技(北京)有限公司 A kind of method, apparatus and gateway controlling smart machine

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404839A (en) * 2008-05-16 2009-04-08 上海大峡谷光电科技有限公司 Enhancement type DMX512 light control system added with auxiliary collocation channel
CN101742774A (en) * 2009-12-09 2010-06-16 惠州大景照明控制有限公司 Intelligent illumination bus system and control method thereof
CN102625554A (en) * 2012-03-20 2012-08-01 浙江大学 Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404839A (en) * 2008-05-16 2009-04-08 上海大峡谷光电科技有限公司 Enhancement type DMX512 light control system added with auxiliary collocation channel
CN101742774A (en) * 2009-12-09 2010-06-16 惠州大景照明控制有限公司 Intelligent illumination bus system and control method thereof
CN102625554A (en) * 2012-03-20 2012-08-01 浙江大学 Distributed DALI (Digital Addressable Lighting Interface) lighting control system and method thereof

Also Published As

Publication number Publication date
CN104065544A (en) 2014-09-24

Similar Documents

Publication Publication Date Title
CN110971115B (en) Lightning surge protection circuit, method, system, storage medium and electronic device
CN104505890B (en) Mobile terminal
CN103199832A (en) Insulated gate bipolar transistor (IGBT) driving protection circuit and system
CN104065544B (en) A kind of communication means based on intelligent switch
CN104656515B (en) The long-range control method and system of dual system smart machine
CN106452856A (en) Traffic flow statistics method and device, and wireless access equipment with traffic flow statistics function
CN204928095U (en) Protection circuit of intelligence power module
CN202424663U (en) IGBT (insulated gate bipolar transistor) driving protection circuit and IGBT driving protection system
CN206294300U (en) A kind of set CARPLAY communications and the device of USB transmission
CN103731172B (en) Roadside unit equipment and radio-frequency receiving-transmitting method
CN107817690A (en) A kind of smart home switch panel
CN105306223A (en) Power supply method, power supply device and power supply system
CN103200110A (en) Data multicasting method and device applied to intelligent substation local area network
CN110880746A (en) Passive flexible direct-current power grid fault current limiter and control method thereof
CN110224464A (en) Robot power supply control system and robot
CN103402039B (en) A kind of remote control system of household electrical appliance and method
CN206115185U (en) Digital signal collecting circuit, digital signal collecting integrated circuit board
CN204687867U (en) A kind of battery management system
CN205123978U (en) Audio signal treatment circuit and have electronic equipment of this circuit
CN210270884U (en) Cascade expansion system based on SW-ICH2 chip
CN204258649U (en) A kind of intelligent building management device
CN103457882A (en) Intelligent substation secure access method
CN103888384B (en) The network switch
CN208890822U (en) It is a kind of with the RFID electronic wiring frame system identified safely
CN104102180B (en) Intelligent switch, control method and apparatus thereof, and intelligent control network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 350100 Fuzhou hi tech Zone, Fujian hi tech Industrial Park, Haixi hi tech park, phase I, building No. 7, building No.

Applicant after: Fujian light speed things Polytron Technologies Inc

Address before: 350100 Fujian City, Minhou Province town of science and technology on the east side of the Road West hi tech Industrial Park Venture Building B District, layer 4,

Applicant before: FUJIAN GAKATO IOT TECHNOLOGY CO., LTD.

COR Change of bibliographic data
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20170901

Termination date: 20210627