CN105515674B - Implementation method for the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes - Google Patents
Implementation method for the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes Download PDFInfo
- Publication number
- CN105515674B CN105515674B CN201510857066.7A CN201510857066A CN105515674B CN 105515674 B CN105515674 B CN 105515674B CN 201510857066 A CN201510857066 A CN 201510857066A CN 105515674 B CN105515674 B CN 105515674B
- Authority
- CN
- China
- Prior art keywords
- centroid
- equipment
- communication
- layer
- networking
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/27—Arrangements for networking
- H04B10/272—Star-type networks or tree-type networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Abstract
The present invention is used for the implementation method of the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes, belongs to Internet of Things communication technique field, including physical layer, link communication layer and application layer three parts;Physical layer realizes basic reception and sending function, and the data frame sent to needs guides the addition of head and end mark automatically, and is stripped when receiving;Link communication layer realizes the normal communication between communication equipment, reduces communication contention aware to the greatest extent, ensures the complete errorless of information;Application layer completes networking, synchronous, heartbeat transmission, inquiry, the function such as control.The present invention is used for the implementation method of the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes, employs wireless communication technique, refer to IEEE 802.15.4 technical specifications;By this agreement have full Wireless both-way communication, can arrange net on a large scale, state is visible, it is compatible strong to interconnect, and product is stablized, user DIY etc. the advantages of.
Description
Technical field
The present invention relates to a kind of communications protocol, and in particular to a kind of for star-like centered on zigbee global function nodes
The implementation method of infrared terminal subnet communications protocol, belongs to Internet of Things communication technique field.
Background technology
In the equipment Internet of Things under using Internet of Things construction as overall situation, the information of each equipment is developed, ambient condition letter
Breath, device control message etc., the transmission capacity of various information is big, uses and is communicated with the proprietary Internet of Things module such as zigbee, tool
Have node more, ad hoc network, network structure is various, energy consumption it is small wait the features such as.But substantial amounts of application terminal is that do not have in Internet of Things
Traditional application apparatus that multi information needs to transmit is crossed, they are in the terminal of network, and the information to be transmitted is single, information content
Few, data processing is simple, and more requirements are had no outside the requirement and the transmission of control signal for meeting basic network communication.
Infrared and radio signal transmission has the characteristics that to be not easy the electromagnetic interference by wireless device, and obtains extensively should
With.Current infrared ray application scheme, mainly there is two kinds:First, have the infrared remote control equipment application scheme being widely used,
With the characteristics of of low cost, scheme is ripe, but amount of transmitted information is small, and speed is slow, and coded format is fixed, it is impossible to meets networking
More complicated application requirement.Another is for communication Design, meets that IRDA standards carry out the special infrared of infrared communication
Communication module application scheme, is connected by serial ports, easy to use, and speed is fast, can meet the requirement of large information capacity communication and each
The application of class complexity, but to take serial ports, and the powerful computing capability of matched microcontroller uses ring what this case was set
It is idle sufficiently to use in border.
The content of the invention
The present invention needs networking for terminal, but amount of transmitted information is few, it is not necessary to which the Internet of Things equipment of high speed communication uses, and carries
Go out a kind of implementation method for the star-like infrared terminal subnet communications protocol being used for centered on zigbee global function nodes, including thing
Manage layer, link communication layer and application layer three parts;
The physical layer realizes basic reception and sending function, the data frame that sends of needs is guided automatically head and
The addition of end mark, and be stripped when receiving;
The link communication layer realizes the normal communication between communication equipment, reduces communication contention aware to the greatest extent, ensures information
It is complete errorless;
The application layer completes heartbeat transmission, synchronous, inquires about, control, networking and networking function.
Preferably, the application layer concrete function and specific implementation means are as follows,
Heartbeat transmits:The frame of set form content is transmitted to Centroid by fixed time interval, to reflect application
The situation and network communication state of equipment;
It is synchronous:Centroid starts time error according to heartbeat, and networking requirements determine synchronization time, send synchronic command,
It is subject to Centroid synchronization time, it is synchronous synchronous step by step from Centroid to subnet end;
Inquiry:Remote control sends inquiry instruction by Internet of Things or host computer from Centroid, and the equipment specified obtains
To instruction reverting equipment situation;
Control:Remote control sends control instruction by Internet of Things or host computer from Centroid, and the equipment specified obtains
Equipment is controlled according to control requirement to instruction, and to Centroid reverting equipment situation;
Networking:Equipment installs, set device state, and networking instruction is sent by Centroid, and each equipment is instructed,
Confirm central node equipment, and frame acknowledgment is sent to Centroid;Centroid establishes first order equipment list according to the frame of reception;
Networking instruction downwards is sent one by one then to equipment in equipment list;Each equipment sends networking and instructs and pass response back to Centroid
Information, Centroid establish second level equipment list according to response message and first order equipment list;Required according to network response speed
Applicable cases determine the final number of levels of subnet, and maximum level is no more than 3 grades;
Networking:Centroid sends networking instruction, determines the transmission upper layer device and infrastructure devices of each node, determines every
The information transmission line of a node, forms final, the Star Network under Centroid control.
Preferably, the physical layer process flow includes receive process and transmission process;It is infrared in the receive process
Received signal is delivered to signal processing circuit by reception pipe, and microcontroller obtains infrared from the process circuit with bandreject filtering
Decoded signal, triggers IR signal reception service routine, microcontroller carries out letter to pin using the external interrupt pin of microcontroller
Number sampling, is reduced to the signal sent, according to the requirement of signal, carries out equipment control, status inquiry, networking operation;Operation
Result information carries out Software Coding by microcontroller, is sent through I/O pins by infrared transmitting tube, is occupy star-like terminal network
The upper layer device of network receives, and transparent transmission, and final signal is delivered to the center of Star Network, and the microcontroller of Centroid passes through parallel
I/0 mouthfuls or the progress information interchange of the zigbee global functions one-chip computer module of serial ports and Centroid.
Preferably, the link establishment flow of the link communication layer is application layer link request → probe generation → physical layer
Probe life is replied in transmission → physical layer reception → probe differentiation → target device differentiation → system processing request → link prepares →
Into → physical layer transmission → physical layer reception → link-layer acknowledgment → formal frame generation → physical layer transmission → physical layer reception →
System task determines that link is formally established;Carry out after above-mentioned target device differentiation or carry out system processing request or carry out at transparent transmission
Reason, probe is forwarded to after transparent transmission processing;Prepare after the processing request of carry out system or into line link or abandon probe.
Due to the utilization of above-mentioned technical proposal, the present invention has following advantages compared with prior art:
The present invention is used for the realization side of the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes
Method, employs wireless communication technique, refer to IEEE 802.15.4 technical specifications;There is full Wireless two-way by this agreement
Interrogate, can arrange net on a large scale, the advantages of state is visible, it is compatible strong to interconnect, and product is stablized, user DIY etc..
Brief description of the drawings
Technical solution of the present invention is described further below in conjunction with the accompanying drawings:
Attached drawing 1 for the present invention igbee global function nodes centered on star-like infrared terminal subnet communications protocol network
Form figure;
Attached drawing 2 is the flow chart of the physical layer process flow of the present invention;
Attached drawing 3 is the flow chart of the link establishment flow of the link communication layer of the present invention;
Attached drawing 4 is the flow chart of the formal frame process flow of the present invention.
Embodiment
As shown in Figure 1, the star-like infrared terminal subnet that the present invention is used for centered on zigbee global function nodes leads to
The implementation method of agreement is interrogated, there is Centroid, upper layer node, infrared communication node, 51 microcontrollers, zigbee Internet of Things modules;
Infrared communication node realizes the intercommunication that communicates with Centroid by upper layer node;Zigbee Internet of Things module and 51 single-chip machine informations are mutual
Centroid is accessed while logical;After application apparatus and 51 single chip communication intercommunications, signal access infrared communication node;Centromere
Point and Internet of Things/WWW/network management host.
Communications protocol of the present invention includes physical layer, link communication layer and application layer three parts;Physical layer realizes basic connect
Receipts and sending function, the data frame sent to needs guides the addition of head and end mark automatically, and is shelled when receiving
Remove;Link communication layer realizes the normal communication between communication equipment, reduces communication contention aware to the greatest extent, ensures the complete errorless of information;
Application layer completes networking, synchronous, heartbeat transmission, inquiry, the function such as control.
Physical layer:Physical layer process flow includes receive process and transmission process;Infrared receiver in the receive process
Received signal is delivered to signal processing circuit by pipe, and microcontroller obtains infrared decoding from the process circuit with bandreject filtering
Signal, triggers IR signal reception service routine, microcontroller carries out signal to pin and adopts using the external interrupt pin of microcontroller
Sample, is reduced to the signal sent, according to the requirement of signal, carries out the operation such as equipment control, status inquiry, networking;The knot of operation
Fruit information carries out Software Coding by microcontroller, is sent through common I/O pins by infrared transmitting tube, is occupy star-like terminal
The upper layer device of network receives, and transparent transmission, final signal are delivered to the center of Star Network, and the microcontroller of Centroid passes through simultaneously
The zigbee global functions one-chip computer module of I/0 mouthfuls of row or serial ports and Centroid carries out information interchange.
The Signal coding form of this case, does not use existing infrared signal root, separately sets;Physical layer as shown in Figure 2
Process flow:Wherein, receive process:After demodulation signal → reception down trigger → sampling → boot symbol identifies → read data →
End mark identifies;Transmission process:Data frame → Signal coding → carrier modulation → additional seeker → additional end mark → modulation
Signal afterwards.
Link communication layer:
Frame format used in this case agreement, does not use existing infrared communication frame format, separately sets;As shown in Figure 3,
The link establishment flow of link communication layer is:Application layer link request → probe generation → physical layer transmission → physical layer reception →
Probe generation → physical layer transmission → thing is replied in probe differentiation → target device differentiation → system processing request → link prepares →
Reason layer reception → link-layer acknowledgment → formal frame generation → physical layer transmission → physical layer reception → system task determines link just
Formula is established;The another way that above-mentioned target device differentiates forwards probe after being handled for transparent transmission;Enter chain all the way after system processing request
Road prepares, and another way is discarding probe.
As shown in Figure 4, formal frame process flow:Application layer data → frame sequence → target device → intermediate equipment → frame
Length → check code generation → physical layer transmission → physical layer reception → intermediate equipment differentiation → target device differentiation → frame length is examined
→ verification code check → frame sequence identification → application layer process.In flow, target device differentiation is entered after intermediate equipment differentiates
Data are abandoned after or;Enter frame length verification or transparent transmission processing after target device differentiates, carried out after transparent transmission is handled middle
Equipment selects, and physical layer is sent after generating check code.
Application layer concrete function and specific implementation means are as follows,
Heartbeat:The frame of set form content is transmitted to Centroid by fixed time interval, to reflect application apparatus
Situation and network communication state;
It is synchronous:Centroid starts the definite synchronization time such as time error, networking requirements according to heartbeat, sends and synchronously refers to
Order, is subject to Centroid synchronization time, synchronous synchronous step by step from Centroid to subnet end;
Inquiry:Remote control sends inquiry instruction by Internet of Things or host computer from Centroid, and the equipment specified obtains
To instruction reverting equipment situation;
Control:Remote control sends control instruction by Internet of Things or host computer from Centroid, and the equipment specified obtains
Equipment is controlled according to control requirement to instruction, and to Centroid reverting equipment situation;
Networking:Equipment installs, set device state, and networking instruction is sent by Centroid, and each equipment is instructed,
Confirm central node equipment, and frame acknowledgment is sent to Centroid;Centroid establishes first order equipment list according to the frame of reception;
Networking instruction downwards is sent one by one then to equipment in equipment list;Each equipment sends networking and instructs and pass response back to Centroid
Information, Centroid establish second level equipment list according to response message and first order equipment list;Required according to network response speed
Etc. the final number of levels that applicable cases determine subnet, maximum level is no more than 3 grades;
Networking:Centroid sends networking instruction, determines the transmission upper layer device and infrastructure devices of each node, determines every
The information transmission line of a node, forms final, the Star Network under Centroid control.
It the above is only the concrete application example of the present invention, protection scope of the present invention be not limited in any way;All uses
Equivalent transformation or equivalent replacement and the technical solution formed, all fall within rights protection scope of the present invention.
Claims (3)
1. for the implementation method of the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes, its feature
It is:Including physical layer, link communication layer and application layer three parts;
The physical layer realizes basic reception and sending function, and the data frame sent to needs guides head and end automatically
The addition of symbol, and be stripped when receiving;
The link communication layer realizes the normal communication between communication equipment, reduces communication contention aware to the greatest extent, ensures the complete of information
It is errorless;
The application layer completes heartbeat transmission, synchronous, inquires about, control, networking and networking function;
The link establishment flow of the link communication layer is application layer link request → probe generation → physical layer transmission → physics
Probe generation → physical layer is replied in layer reception → probe differentiation → target device differentiation → system processing request → link prepares →
Transmission → physical layer reception → link-layer acknowledgment → formal frame generation → physical layer transmission → physical layer reception → system task is true
Determine link formally to establish;Carry out after above-mentioned target device differentiation or carry out system processing request or carry out transparent transmission processing, at transparent transmission
Probe is forwarded to after reason;Prepare after the processing request of carry out system or into line link or abandon probe.
2. the star-like infrared terminal subnet communication association according to claim 1 being used for centered on zigbee global function nodes
The implementation method of view, it is characterised in that:The application layer concrete function and specific implementation means are as follows,
Heartbeat transmits:The frame of set form content is transmitted to Centroid by fixed time interval, to reflect application apparatus
Situation and network communication state;
It is synchronous:Centroid starts time error according to heartbeat, and networking requirements determine synchronization time, send synchronic command, synchronous
Time is subject to Centroid, synchronous synchronous step by step from Centroid to subnet end;
Inquiry:Remote control sends inquiry instruction by Internet of Things or host computer from Centroid, and the equipment specified is referred to
Make reverting equipment situation;
Control:Remote control sends control instruction by Internet of Things or host computer from Centroid, and the equipment specified is referred to
Order is controlled equipment according to control requirement, and to Centroid reverting equipment situation;
Networking:Equipment installs, set device state, sends networking instruction by Centroid, each equipment is instructed, and is confirmed
Central node equipment, and send frame acknowledgment to Centroid;Centroid establishes first order equipment list according to the frame of reception;Then
Into equipment list, equipment sends networking instruction downwards one by one;Each equipment sends networking instruction and passes response letter back to Centroid
Breath, Centroid establish second level equipment list according to response message and first order equipment list;Should according to the requirement of network response speed
The final number of levels of subnet is determined with situation, maximum level is no more than 3 grades;
Networking:Centroid sends networking instruction, determines the transmission upper layer device and infrastructure devices of each node, determines each section
The information transmission line of point, forms final, the Star Network under Centroid control.
3. the star-like infrared terminal subnet communication association according to claim 1 being used for centered on zigbee global function nodes
The implementation method of view, it is characterised in that:The physical layer process flow includes receive process and transmission process;The receive process
In infrared receiving tube received signal is delivered to signal processing circuit, microcontroller is from the signal processing electricity with bandreject filtering
Infrared decoding signal is obtained in road, IR signal reception service routine, microcontroller are triggered using the external interrupt pin of microcontroller
Signal sampling is carried out to pin, is reduced to the signal sent, according to the requirement of signal, carries out equipment control, status inquiry, networking
Operation;The result information of operation carries out Software Coding by microcontroller, is sent, is occupied by infrared transmitting tube through I/O pins
Received in the upper layer device of Star Network, and transparent transmission, final signal are delivered to the center of Star Network, the microcontroller of Centroid
Information interchange is carried out by the zigbee global functions one-chip computer module of Parallel I/0 mouthful or serial ports and Centroid.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510857066.7A CN105515674B (en) | 2015-11-30 | 2015-11-30 | Implementation method for the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510857066.7A CN105515674B (en) | 2015-11-30 | 2015-11-30 | Implementation method for the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105515674A CN105515674A (en) | 2016-04-20 |
CN105515674B true CN105515674B (en) | 2018-05-15 |
Family
ID=55723378
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510857066.7A Active CN105515674B (en) | 2015-11-30 | 2015-11-30 | Implementation method for the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105515674B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101502074A (en) * | 2006-08-09 | 2009-08-05 | 西门子公司 | Network for wireless data transmission |
CN102761941A (en) * | 2011-04-28 | 2012-10-31 | 北京云天创科技有限公司 | Wireless intelligent network protocol with ultra-low power consumption |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7649875B2 (en) * | 2005-12-23 | 2010-01-19 | Beecher Phillip E | Networking layer extension |
US8077802B2 (en) * | 2008-03-17 | 2011-12-13 | Intel Corporation | Device, system, and method of resource allocation in a wireless network |
-
2015
- 2015-11-30 CN CN201510857066.7A patent/CN105515674B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101502074A (en) * | 2006-08-09 | 2009-08-05 | 西门子公司 | Network for wireless data transmission |
CN102761941A (en) * | 2011-04-28 | 2012-10-31 | 北京云天创科技有限公司 | Wireless intelligent network protocol with ultra-low power consumption |
Non-Patent Citations (1)
Title |
---|
基于低功耗Zigbee协议栈分析与设计;王凯峰;《中国优秀硕士学位论文全文数据库 信息科技辑》;20121015;I136-1076页 * |
Also Published As
Publication number | Publication date |
---|---|
CN105515674A (en) | 2016-04-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN203827378U (en) | Serial server | |
CN107819659B (en) | Intelligent cascade communication network based on SPI | |
CN103825883A (en) | Multi-protocol conversion equipment based on wireless ZigBee, CAN bus and MODBUS/TCP and realization method thereof | |
CN106341292A (en) | Multi-point networking communication system | |
CN105099844B (en) | Media releasing method, media data acquisition methods and media issuing system | |
CN110417649A (en) | A kind of multiplex roles Intelligent internet of things data gateway | |
CN106131028B (en) | A kind of data transmission method of Free-port communication gateway | |
CN101729572B (en) | Protocol conversion device between MODBUS industrial field bus and wireless ZIGBEE and method thereof | |
CN104156334A (en) | Serial port self-adaption data transparent transmission protocol for multimachine communication | |
CN201571081U (en) | CAN bus and serial port bus protocol converter | |
CN103179054B (en) | For control panel and the control method of optical network unit | |
CN107196707A (en) | Distributed light-carried wireless WiFi ZigBee-networks | |
CN102937944B (en) | A kind of based on Arcnet serial server | |
CN202190413U (en) | Bar code acquisition system based on wireless sensor network | |
CN108039041A (en) | A kind of high speed 4G concentrators communication module, power information acquisition system and method | |
CN202111737U (en) | Network management enhanced E1/ETH protocol converter | |
CN105515674B (en) | Implementation method for the star-like infrared terminal subnet communications protocol centered on zigbee global function nodes | |
CN202661192U (en) | Wireless temperature measurement system of internet of things and based on ZigBee technique | |
CN105955902A (en) | Serial-to-wireless communicator | |
CN207677744U (en) | A kind of data transmission device based on NBIoT networks | |
CN106453004A (en) | Smart home system control system based on Zigbee wireless communication technology | |
CN202916008U (en) | Multichannel optical power meter | |
CN103064810B (en) | A kind of method that realizes satellite serial communication | |
CN101860410B (en) | Communication system of cross station spread cable interface | |
CN104735821B (en) | A kind of wireless network card and its implementation turning serial port function with USB |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |