CN107147743A - Communication means based on the Internet of things system for simplifying Internet of Things communication protocol - Google Patents

Communication means based on the Internet of things system for simplifying Internet of Things communication protocol Download PDF

Info

Publication number
CN107147743A
CN107147743A CN201710517256.3A CN201710517256A CN107147743A CN 107147743 A CN107147743 A CN 107147743A CN 201710517256 A CN201710517256 A CN 201710517256A CN 107147743 A CN107147743 A CN 107147743A
Authority
CN
China
Prior art keywords
telegon
internet
terminal device
network
data
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
Application number
CN201710517256.3A
Other languages
Chinese (zh)
Other versions
CN107147743B (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.)
Shenzhen City Lauwe Intelligent Technology Co Ltd
Original Assignee
Shenzhen City Lauwe Intelligent Technology Co Ltd
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 Shenzhen City Lauwe Intelligent Technology Co Ltd filed Critical Shenzhen City Lauwe Intelligent Technology Co Ltd
Priority to CN201710517256.3A priority Critical patent/CN107147743B/en
Publication of CN107147743A publication Critical patent/CN107147743A/en
Application granted granted Critical
Publication of CN107147743B publication Critical patent/CN107147743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content

Abstract

The invention discloses a kind of communication means based on the Internet of things system for simplifying Internet of Things communication protocol, including:Network ID is distributed to telegon;Terminal device is registered;The APP of mobile terminal sends to route to router rewrites order, then sends the order for including device id, after needing the terminal device by route to add, router is terminated rewriting process;Control instruction is sent to telegon by the APP of mobile terminal, and telegon converts thereof into physical layer data and is dealt into aerial;Terminal device judges whether device id is oneself, in this way, then performs corresponding operating, sends back and answers packet to telegon, telegon converts thereof into the data for meeting AT command set data format, from UART interface output;Otherwise, MAC layer data are abandoned.The present invention can save transmission and processing time, reliability is preferable, job stability is higher, it is effective the problem of reduce repeated code in application process, low-power consumption can be realized.

Description

Communication means based on the Internet of things system for simplifying Internet of Things communication protocol
Technical field
It is more particularly to a kind of based on the Internet of things system for simplifying Internet of Things communication protocol the present invention relates to Internet of Things field Communication means.
Background technology
ZIGBEE communication protocols adapt to the requirement of low cost, low energy, the high fault tolerance of wireless senser etc..ZIGBEE's Basis is IEEE 802.15.4.But IEEE only handles low level MAC layer and PHY, therefore ZIGBEE alliances extend IEEE, is standardized to its network layer protocol and API.ZIGBEE is a kind of emerging short distance, the wireless network of low rate Network technology, is mainly used near radio connection.It has the consensus standard of oneself, between thousands of small sensors mutually Coordinate to realize communication.In Internet of Things or intelligent domestic system, current ZIGBEE communication protocols product is more, but this agreement Itself is more complicated, it is necessary to run on an operating system, leads to not accomplish real low-power consumption, ZIGBEE agreements are necessarily needed in addition Want telegon could networking work.
The content of the invention
The technical problem to be solved in the present invention is, the drawbacks described above for prior art there is provided one kind can save transmission And processing time, reliability preferably, job stability it is higher, it is effective reduction application process in repeated code the problem of, low work(can be realized The communication means based on the Internet of things system for simplifying Internet of Things communication protocol of consumption.
The technical solution adopted for the present invention to solve the technical problems is:Construction is a kind of to be based on simplifying Internet of Things communication protocol Internet of things system communication means, applied to Internet of things system, the Internet of things system include the APP of mobile terminal, gateway, Telegon, multiple routers and multiple terminal devices, the telegon are connected by UART interface with the gateway, described to coordinate Device is also directly connected with multiple routers and multiple terminal devices, and the telegon also passes through the router and its His router or terminal device connection, methods described comprises the following steps:
A) APP of the mobile terminal sequentially passes through the gateway and UART interface and sent to the telegon and meets AT and refer to The network ID distribution instruction of order collection data format, a network ID is distributed to the telegon;The AT command set data format Including beginning character, address, separator, designator, numerical value and end mark, the beginning character for=, the end mark is #, The network ID is 9 decimal numbers, is converted into data then for 4 bytes, high 6 digit of the network ID after hexadecimal number Word represents password, and low 3 of the network ID represent wireless physical channel, and the network ID is to change;
B) APP of the mobile terminal sequentially passes through the gateway and UART interface and sent to the telegon and meets AT and refer to The registration of order collection data format starts order;
C) any button of terminal device described in long-press, the terminal device is sent by the wireless physical channel of agreement and reported Data give the telegon, and the telegon is received after the reported data is added to the registration table by the terminal device, Then current network ID is sent to the terminal device, notifies the terminal device modification network ID, and exit registration mode;
D) terminal device is received after the current network ID according to the current network ID and the current network ID Included in wireless physical channel work;
E) repeat the above steps B) to step D) registration process, register and complete until all terminal devices;
F) when the telegon directly can not control the terminal device, the APP of the mobile terminal gives corresponding institute State router and send the route rewriting order comprising node ID, and the corresponding router is entered route rewrites status, so Send afterwards and include the order of device id, after the terminal device in need by route adds, to the corresponding router The end order for including the node ID is sent, and the corresponding router is terminated rewriting process;The device id is 9 Decimal number, be converted into after hexadecimal be 4 bytes data, the device id dispatches from the factory fixed, and the device id is at least Including type, pattern and parameter, the device id represents big type with the numeral started, and numeral thereafter represents small type;Institute State the address that network ID constitutes 8 bytes with the device id;
G) APP of the mobile terminal, which passes sequentially through the gateway and UART interface, will meet the AT command set data lattice The control instruction of formula is sent to the telegon, and the control instruction is converted into physical layer data and is dealt into sky by the telegon In;The guidance code of the physical layer data including 4 bytes, the synchronous code of 4 bytes, the data length of 1 byte, 1 byte Packet number, the CRC check position of the MAC layer data of n bytes and 2 bytes, the n is the integer more than 1;The MAC layer Data include frame head, network ID, data format, the device id, operational order and numerical value;
H) terminal device is received after the physical layer data, is judged in the MAC layer data in the physical layer data Comprising device id whether be oneself, in this way, the terminal device according to included in the MAC layer data operation order Order performs corresponding operation, answers packet to the telegon while sending back, the telegon receives the response data bag The data for meeting the AT command set data format are will convert into afterwards, and are exported from the UART interface;Otherwise, the thing is abandoned Manage layer data.
In the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol, the network ID distribution instructions are=XXXXXXYYY, and ID# orders are described to register startup order as=999999999, R1# orders.
It is each described in the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol The network ID of telegon is generated with the APP generations of the mobile terminal or by the MAC Address of the gateway, network ID identical Terminal device can be communicated.
In the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol, the AT refers to The order that order is concentrated is capitalization or lowercase, and it is downlink data that the capitalization, which is represented, and the lowercase is represented It is upstream data, 0-64 is as reservation, and the numerical value in the AT command set is 0-127, into 0X80-0XFF after A2R is changed.
In the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol, the terminal Equipment obtains the network ID by the form of registration, and the telegon is introduced into registration mode, waits the terminal device to enter Row registration, after the terminal device registration, the telegon storage equipment registration table, the telegon and the end during registration Using the wireless physical channel of agreement between end equipment.
In the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol, the synchronization The byte length of code is packet number of the MAC layer data length plus 1 byte.
In the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol, the route The routing function of device can be closed, it is necessary to during routing function, in advance after the APP of the mobile terminal chooses, sequentially pass through described Routing function is written to the corresponding router after gateway and telegon.
In the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol, according to described Device id is the distribution that the terminal device enters row address.
It is described to coordinate in the communication means of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol Device id in the down order that device is sent is the ID of target terminal equipment, and the terminal device is actively sent or response telegon Device id during order is source address.
Implement the communication means based on the Internet of things system for simplifying Internet of Things communication protocol of the present invention, with following beneficial Effect:By using the AT command set simplified, all characters that traditional AT is instructed " AT " are changed to "=", new line character are changed For " # ", transmission and processing time can be thus saved, it is shorter due to encoding, in the system that low-consumption wireless wakes up (WOR) Power consumption can be substantially reduced, network ID is 9 decimal numbers, be converted into after 16 system numbers being then 4 bytes, network ID can be repaiied Change, high 6 bit digital of network ID represents password, and low 3 represent wireless physical channel, due to there are 256 wireless physical channels, adopt With the mode of artificial selection channel, preferably, job stability is higher for its reliability, and network ID constitutes 8 bytes with device id Address, network ID can change by user, and device id dispatches from the factory fixed, can not change, in this way can be with Effectively in reduction application process the problem of repeated code, thus can save send and processing time, reliability be preferable, job stability compared with It is high, effectively in reduction application process the problem of repeated code, low-power consumption can be realized.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is in communication means one embodiment of the invention based on the Internet of things system for simplifying Internet of Things communication protocol Flow chart;
Fig. 2 is the schematic diagram of symmetrical network topological structure in the embodiment;
Fig. 3 is converted into the schematic diagram of hexadecimal data for AT command set in the embodiment;
Fig. 4 is AT command set data format figure in the embodiment;
Fig. 5 turns the schematic diagram of MAC layer data for AT command set in the embodiment;
Fig. 6 turns the schematic diagram of AT command set for MAC data in the embodiment;
Fig. 7 is the data format figure of physical layer data in the embodiment.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
, should be based on essence in communication means embodiment of the present invention based on the Internet of things system for simplifying Internet of Things communication protocol The communication means of the Internet of things system of simple Internet of Things communication protocol is applied to Internet of things system, and the Internet of things system includes mobile whole APP, gateway, telegon, multiple routers and the multiple terminal devices at end, telegon are connected by UART interface with gateway, association Device is adjusted also directly to be connected with multiple routers and multiple terminal devices, telegon also passes through router and other routers or end End equipment is connected.Symmetrical network topological structure, schematic diagram such as Fig. 2 of the symmetrical network topological structure during the Internet of things system is used It is shown, from figure 2 it can be seen that each system only one of which telegon, telegon passes through with gateway (being specifically the MCU of gateway) UART interface is connected, and telegon is responsible for setting up network, and is responsible for the conversion and forwarding of packet.Registration table is provided with inside telegon (i.e. equipment list), registration table is set up in registration.It is noted that the APP of mobile terminal title can be logical for Internet of Things Letter.
Router is the node with data forwarding function, and the node of every charged can serve as router (route Node).End node is battery powered equipment, does not possess routing function.In order to lower network delay, forwarded only with one-level. The routing function of router can be closed, it is necessary to, it is necessary to the node of route needs write-in router in advance during routing function, this Process is usually after being chosen on the APP of mobile terminal, to be written to routing function accordingly after sequentially passing through gateway and telegon Router.
In the present embodiment, the flow chart of the communication means based on the Internet of things system for simplifying Internet of Things communication protocol is somebody's turn to do as schemed Shown in 1.In Fig. 1, it is somebody's turn to do the communication means based on the Internet of things system for simplifying Internet of Things communication protocol and comprises the following steps:
The APP of step S01 mobile terminals, which sequentially passes through gateway and UART interface and sent to telegon, meets AT command set number Instruction is distributed according to the network ID of form, a network ID is distributed to telegon:In this step, the APP of mobile terminal is sequentially passed through Gateway and UART interface meet the network ID distribution instruction of AT command set data format (for example to telegon transmission:= XXXXXXYYY, ID# order), and distribute a network ID to telegon.Above-mentioned AT command set data format figure as shown in figure 4, In Fig. 4, the AT command set data format includes beginning character, address, separator, designator, numerical value and end mark, beginning character For=, end mark is #, and this simplifies Internet of Things communication protocol using the AT command set simplified, all characters that traditional AT is instructed " AT " is changed to "=", and new line character is changed into " # ", and which offers a saving transmission and processing time.This AT instructions can To support more than 80% internet of things equipment, the table 1 (table 1 can be described later) described below is may refer to, so may be used To greatly simplify development difficulty.For example:The APP of mobile terminal is by UART interface to telegon transmission=XXXXXXYYY, ID# Order is (for example:=641223170, ID#), distribute a network ID to telegon.It is required that and other associations in Internet of things system Adjust the network ID of device different, the radio communication channel of short range otherwise it is same.For security, the assignment principle of network ID It is to try at random, it is discrete.
It is noted that in the present embodiment, network ID is 9 decimal number xxxxxxyyy, is converted into hexadecimal number Be then the data of 4 bytes afterwards, the high 6 bit digital xxxxxx of network ID can define arbitrarily, represent password, network ID it is low 3 Yyy is 0-255, represents wireless physical channel, due to there is 256 wireless physical channels, by the way of artificially selection channel, this The reliability of individual mode preferably, works relatively stable, and the present invention and ZIGBEE take energy scan to determine the method for channel not Together.This definition of network ID so that password is combined with radio communication channel, it is possible to which the length with 4 bytes is whole Count to represent.The network ID of each telegon is generated with the APP generations of mobile terminal or by the MAC Address of gateway, only net Network ID identicals terminal device could communicate.Worth one is mentioned that network ID is to change.
The APP of step S02 mobile terminals, which sequentially passes through gateway and UART interface and sent to telegon, meets AT command set number Start order according to the registration of form:In this step, the APP of mobile terminal sequentially passes through gateway and UART interface and sent to telegon The registration for meeting AT command set data format starts order, registers startup order as=999999999, R1# orders.
Any button of step S03 long-press terminal devices, terminal device sends upper count off by the wireless physical channel of agreement According to telegon, telegon is received after reported data is added to registration table by terminal device, then sends current network ID to end End equipment, notifies terminal device modification network ID, and exit registration mode:In this step, any button of long-press terminal device, Terminal device sends reported data to telegon by the wireless physical channel of agreement, and telegon receives after reported data and to set terminal It is standby to be added to registration table, current network ID is then sent to terminal device, notifies terminal device modification network ID, and exit registration Pattern.
Step S04 terminal devices are received after current network ID according to the nothing included in current network ID and current network ID Line physical channel works:In this step, terminal device is received after current network ID, according in current network ID and current network ID Comprising wireless physical channel be operated.
Step S05 repeats the above steps S02 to step S04 registration process, registers and completes until all terminal devices: In this step, the S02 that repeats the above steps is registered until all terminal devices and completed to step S04 registration process.
Step S06 when telegon can not directly control terminal equipment when, the APP of mobile terminal gives corresponding router to send Route comprising node ID rewrites order, and corresponding router is entered route rewrites status, then sends and includes device id Order, after the terminal device addition in need by route, sent to corresponding router and include the end of node ID Order, and corresponding router is terminated rewriting process:In this step, when telegon can not directly control terminal equipment when, move The APP of dynamic terminal sends the route comprising node ID to corresponding router and rewrites order, and corresponding router is entered approach By rewrites status, the order for include device id is then sent, after institute's terminal device in need by route is added, to correspondingly Router send and include the end order of node ID, and corresponding router is terminated rewriting process.Assuming that telegon is with setting The terminal device that standby ID is 730000222 can not directly be controlled farther out, it is necessary to the router that node ID is 730000111, then Need an operating process that 730000222 this device id are written to 730000111 routing table.Detailed process is:It is mobile The APP of terminal first sends out=730000111, ZY# orders to router, into route rewrites status, then send= 730000222, WA# orders (send=730000222, WM# orders) if removing to router, institute's process in need After the router addition of route, send=730000111, ZX# orders to router and terminate rewriting process.
It is noted that equipment has a device id in each terminal, device id is 9 decimal numbers, is converted into Be the data of 4 bytes after hexadecimal, device id dispatches from the factory fixed, can not change, device id at least include type, pattern and Parameter, device id represents big type with the numeral started, and numeral thereafter represents small type;That is, different types of end End equipment is distinguished with the numeral started, and telegon obtains the device id of terminal device after terminal device registration, and is stored in Registration table.
Traditional communication protocol includes source device address and destination device address, and of the invention simplifies Internet of Things communication protocol By simplification, the two addresses are used when different, only with an address, the address when data downstream is destination device address, And address during data uplink is the address of source device.That is, the device id in the down order that telegon is sent is mesh Device id when marking the ID of terminal device, terminal device active transmission or response telegon order is source address.In the present embodiment, It is that terminal device enters row address distribution according to device id.The allocation tables of terminal device as shown in table 1, should in table 1 Simplify Internet of Things communication protocol and done address distribution to various kinds of equipment for smart home and Internet of Things, so only need to device id It just can recognize that device type and major parameter.The content of table 1 is specific as follows:
Table 1
In the present embodiment, network ID constitutes the address of 8 bytes with device id.Network ID is can be changed by user , device id dispatches from the factory fixed, can not change.The problem of effectively can reducing repeated code in application process in this way. Even if device id is identical, as long as network ID is different, does not result in yet and control by mistake.
The APP of step S07 mobile terminals passes sequentially through the control that gateway and UART interface will meet AT command set data format Instruction processed is sent to telegon, and control instruction is converted into physical layer data and is dealt into aerial by telegon:In this step, work as terminal , just can be with control terminal equipment by telegon after the completion of facility registration.Specifically, the APP of mobile terminal passes sequentially through net Close and the control instruction for meeting AT command set data format is sent to telegon by UART interface, telegon changes control instruction Into physical layer data and it is dealt into aerial, Fig. 3 is the schematic diagram that AT command set is converted into hexadecimal data in the present embodiment, example Such as:When to control a three-position switch, the APP of mobile terminal sends=735000133, M7# orders to telegon, and telegon will The form that=735000133, M7# order are converted into physical layer data (air-data bag) is FE AA CA 5B 07 54 45 36 CF 2B 4D 87, are subsequently sent to aerial.
Fig. 7 is the data format figure of physical layer data in the present embodiment, in Fig. 7, and the physical layer data includes drawing for 4 bytes Leading code, the synchronous code of 4 bytes, the data length of 1 byte, the packet number of 1 byte, the MAC layer data and 2 of n bytes The CRC check position of individual byte, n is the integer more than 1;Wherein, MAC layer data include frame head, network ID, data format, equipment ID, operational order and numerical value.The characteristics of this simplifies Internet of Things communication protocol is using AT command set communication, by being converted into MAC The length of layer data only has 12 bytes, and this AT command set can support more than 80% internet of things equipment, can be significantly simple Change development difficulty.It is shorter due to encoding, power consumption can be substantially reduced in the system that low-consumption wireless wakes up (WOR), by reality Border is tested, and power consumption of the invention only has 1/5th of ZIGBEE power consumptions.
In physical layer, aerial speed can be defined freely, preferably use 10K speed.Synchronous code can be defined freely, synchronous The byte length of code is packet number of the MAC layer data length plus 1 byte.Sent 1 time when every, packet number is automatic Plus 1, circulated between 0-255.The multinomial of CRC check position can select CRC-CCITT or CRC-IBM, if hardware is not propped up Hold, take software to calculate.
It is noted that in the present embodiment, telegon when receiving AT command set, to be converted into MAC layer data and with RF modes are sent, and refer to Fig. 5.Conversely, receiving the RF data of MAC layer, then convert it into AT command set and connect from UART Mouth output, refers to Fig. 6.
Step S08 terminal devices are received after physical layer data, are judged included in the MAC layer data in physical layer data Whether device id is oneself:In this step, terminal device is received after physical layer data, judges the MAC layer in physical layer data Whether the device id included in data is oneself, if it is determined that result be yes, then perform step S09;Otherwise, step is performed Rapid S10.
Step S09 terminal devices perform corresponding operation according to the operational order included in MAC layer data, send simultaneously Response data bag gives the telegon, and telegon receives the number that will convert into after response data bag and meet AT command set data format According to, and exported from UART interface:If above-mentioned steps S08 judged result is yes, this step is performed.In this step, terminal Equipment performs corresponding operation according to the operational order included in MAC layer data, and packet is answered to telegon while sending back, Telegon receives the data that will convert into after response data bag and meet AT command set data format, and is exported from UART interface.Example Such as:Three lamps are lighted, the CF 2B 6D 87 of packet FE AA CA 5B 07 54 45 36 are answered to coordination while sending back Packet is converted into AT orders=735000133, m7# after receiving and exported from UART interface by device, telegon.
Step S10 abandons physical layer data:If above-mentioned steps S08 judged result is no, this step is performed.This step In rapid, physical layer data is abandoned, processing of tabling look-up is carried out.The present invention can save transmission and processing time, reliability is preferable, work steady It is qualitative it is higher, it is effective reduction application process in repeated code the problem of, low-power consumption can be realized.
It is worth mentioning, in the present embodiment, the order in AT command set is generally capitalization or lowercase, capital letter It is downlink data that mother, which represents, and it is upstream data that lowercase, which is represented, and 0-64 is used as reservation.Numerical value in AT command set is 0-127, Into 0X80-0XFF after A2R is changed.In AT command set, order is 1 byte, and data are also 1 byte.
In the present embodiment, terminal device obtains network ID by the form of registration, and telegon is introduced into registration mode, waits Terminal device is registered, and after terminal device registration, telegon storage equipment registration table, the terminal device only registered could be controlled System.During registration, using the wireless physical channel of agreement between telegon and terminal device, wireless physical channel can freely about It is fixed.
In a word, the characteristics of Internet of Things communication protocol has low-power consumption is simplified in the present invention, in the case of without telegon, Can be to code control between terminal device, this simplifies Internet of Things communication protocol can be with Internet of product, and this simplifies Internet of Things Network Communication agreement can be named as AllGo agreements.The present invention, which can be saved, to be sent and processing time, reliability be preferable, working stability Property it is higher, it is effective reduction application process in repeated code the problem of, low-power consumption can be realized.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention God is with principle, and any modification, equivalent substitution and improvements made etc. should be included in the scope of the protection.

Claims (9)

1. a kind of communication means based on the Internet of things system for simplifying Internet of Things communication protocol, it is characterised in that applied to Internet of Things Net system, the Internet of things system includes APP, gateway, telegon, multiple routers and the multiple terminal devices of mobile terminal, The telegon is connected by UART interface with the gateway, the telegon also directly with multiple routers and multiple institutes Terminal device connection is stated, the telegon is also connected by the router with the other routers or terminal device, institute The method of stating comprises the following steps:
A) APP of the mobile terminal, which sequentially passes through the gateway and UART interface and sent to the telegon, meets AT command set The network ID distribution instruction of data format, a network ID is distributed to the telegon;The AT command set data format includes Beginning character, address, separator, designator, numerical value and end mark, the beginning character for=, the end mark be #, it is described Network ID is 9 decimal numbers, is converted into data then for 4 bytes, the high 6 bit digital generation of the network ID after hexadecimal number Table password, low 3 of the network ID represent wireless physical channel, and the network ID is to change;
B) APP of the mobile terminal, which sequentially passes through the gateway and UART interface and sent to the telegon, meets AT command set The registration of data format starts order;
C) any button of terminal device described in long-press, the terminal device sends reported data by the wireless physical channel of agreement To the telegon, the telegon is received after the reported data is added to the registration table by the terminal device, then Current network ID is sent to the terminal device, the terminal device modification network ID is notified, and exit registration mode;
D) terminal device is received after the current network ID according to institute in the current network ID and the current network ID Comprising wireless physical channel work;
E) repeat the above steps B) to step D) registration process, register and complete until all terminal devices;
F) when the telegon directly can not control the terminal device, the APP of the mobile terminal gives the corresponding road Route comprising node ID is sent by device and rewrites order, and the corresponding router is entered route rewrites status, Ran Houfa Send the order for including device id, after the terminal device addition in need by route, sent to the corresponding router End order comprising the node ID, and the corresponding router is terminated rewriting process;The device id is 9 ten and entered Number processed, be converted into after hexadecimal be 4 bytes data, the device id dispatches from the factory fixed, and the device id at least includes Type, pattern and parameter, the device id represent big type with the numeral started, and numeral thereafter represents small type;The net Network ID constitutes the address of 8 bytes with the device id;
G) APP of the mobile terminal, which passes sequentially through the gateway and UART interface, to meet the AT command set data format Control instruction is sent to the telegon, and the control instruction is converted into physical layer data and is dealt into aerial by the telegon; The guidance code of the physical layer data including 4 bytes, the synchronous code of 4 bytes, the data length of 1 byte, the bag of 1 byte The CRC check position of sequence number, the MAC layer data of n bytes and 2 bytes, the n is the integer more than 1;The MAC layer data Including frame head, network ID, data format, the device id, operational order and numerical value;
H) terminal device is received after the physical layer data, judges to be wrapped in the MAC layer data in the physical layer data Whether the device id contained is oneself, in this way, and the terminal device is held according to the operational order included in the MAC layer data The corresponding operation of row, packet is answered to the telegon while sending back, and the telegon is received will after the response data bag It is converted into meeting the data of the AT command set data format, and is exported from the UART interface;Otherwise, the physical layer is abandoned Data.
2. the communication means according to claim 1 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, the network ID distribution instruction is=XXXXXXYYY, ID# orders are described to register startup order as=999999999, R1# orders.
3. the communication means according to claim 2 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, the network ID of each telegon is with the APP generations of the mobile terminal or by the MAC Address next life of the gateway Into network ID identical terminal device can be communicated.
4. the communication based on the Internet of things system for simplifying Internet of Things communication protocol according to claims 1 to 3 any one Method, it is characterised in that the order in the AT command set is capitalization or lowercase, the capitalization is represented under being Row data, it is upstream data that the lowercase, which is represented, and 0-64 is as reservation, and the numerical value in the AT command set is 0-127, warp Cross after A2R is changed as 0X80-0XFF.
5. the communication means according to claim 4 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, the terminal device obtains the network ID by the form of registration, the telegon is introduced into registration mode, waits institute Terminal device is stated to be registered, after the terminal device registration, the telegon storage equipment registration table, the association during registration Adjust the wireless physical channel using agreement between device and the terminal device.
6. the communication means according to claim 1 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, the byte length of the synchronous code is packet number of the MAC layer data length plus 1 byte.
7. the communication means according to claim 4 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, the routing function of the router can be closed, it is necessary to during routing function, in advance after the APP of the mobile terminal chooses, Sequentially pass through after the gateway and telegon and routing function is written to the corresponding router.
8. the communication means according to claim 1 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, is the distribution that the terminal device enters row address according to the device id.
9. the communication means according to claim 1 based on the Internet of things system for simplifying Internet of Things communication protocol, its feature It is, the device id in the down order that the telegon is sent is the ID of target terminal equipment, the terminal device is actively sent out Device id when sending or respond telegon order is source address.
CN201710517256.3A 2017-06-29 2017-06-29 Communication method of Internet of things system based on simplified Internet of things communication protocol Active CN107147743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710517256.3A CN107147743B (en) 2017-06-29 2017-06-29 Communication method of Internet of things system based on simplified Internet of things communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710517256.3A CN107147743B (en) 2017-06-29 2017-06-29 Communication method of Internet of things system based on simplified Internet of things communication protocol

Publications (2)

Publication Number Publication Date
CN107147743A true CN107147743A (en) 2017-09-08
CN107147743B CN107147743B (en) 2020-04-03

Family

ID=59784628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710517256.3A Active CN107147743B (en) 2017-06-29 2017-06-29 Communication method of Internet of things system based on simplified Internet of things communication protocol

Country Status (1)

Country Link
CN (1) CN107147743B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337308A (en) * 2018-01-31 2018-07-27 深圳市中兴物联科技有限公司 LWM2M clients and host computer data communications method, device and its system
CN112261679A (en) * 2020-10-22 2021-01-22 常熟开关制造有限公司(原常熟开关厂) ZigBee network rapid networking configuration method and ZigBee network
CN113055449A (en) * 2021-03-02 2021-06-29 福建钰辰微电子有限公司 Wireless autonomous networking method and system for sensor based on Internet of things, and computer equipment
CN113127486A (en) * 2021-04-13 2021-07-16 山东英信计算机技术有限公司 Information collection and storage method, device, equipment and storage medium
CN113207097A (en) * 2021-04-29 2021-08-03 深圳市欧瑞博科技股份有限公司 Networking method and device for intelligent equipment, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736599A (en) * 2012-06-14 2012-10-17 华北电力大学(保定) Real-time interaction intelligent terminal control system based on internet of things technology
CN103312546A (en) * 2013-06-14 2013-09-18 杭州沃云科技有限公司 Method for automatically configuring and managing ZigBee network
US20160100014A1 (en) * 2014-01-16 2016-04-07 1More Inc. Method and Terminal for Controlling Internet of Things and Controlled Electronic Device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102736599A (en) * 2012-06-14 2012-10-17 华北电力大学(保定) Real-time interaction intelligent terminal control system based on internet of things technology
CN103312546A (en) * 2013-06-14 2013-09-18 杭州沃云科技有限公司 Method for automatically configuring and managing ZigBee network
US20160100014A1 (en) * 2014-01-16 2016-04-07 1More Inc. Method and Terminal for Controlling Internet of Things and Controlled Electronic Device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
包春兰: "基于ZigBee技术的智能家居测控系统的实现", 《河北工业大学》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108337308A (en) * 2018-01-31 2018-07-27 深圳市中兴物联科技有限公司 LWM2M clients and host computer data communications method, device and its system
CN108337308B (en) * 2018-01-31 2021-08-10 高新兴物联科技有限公司 Data communication method, device and system for LWM2M client and upper computer
CN112261679A (en) * 2020-10-22 2021-01-22 常熟开关制造有限公司(原常熟开关厂) ZigBee network rapid networking configuration method and ZigBee network
CN113055449A (en) * 2021-03-02 2021-06-29 福建钰辰微电子有限公司 Wireless autonomous networking method and system for sensor based on Internet of things, and computer equipment
CN113127486A (en) * 2021-04-13 2021-07-16 山东英信计算机技术有限公司 Information collection and storage method, device, equipment and storage medium
CN113207097A (en) * 2021-04-29 2021-08-03 深圳市欧瑞博科技股份有限公司 Networking method and device for intelligent equipment, electronic equipment and storage medium
CN113207097B (en) * 2021-04-29 2023-05-30 深圳市欧瑞博科技股份有限公司 Intelligent equipment networking method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN107147743B (en) 2020-04-03

Similar Documents

Publication Publication Date Title
CN107147743A (en) Communication means based on the Internet of things system for simplifying Internet of Things communication protocol
CN106302787B (en) A kind of internet of things networking method based on cloud configuration
Duquennoy et al. Orchestra: Robust mesh networks through autonomously scheduled TSCH
CN102449983B (en) Method and system for no buffered traffic indication for wireless local area network (wlan) power save
CN106998582A (en) Consult method, access point and the website of target wakeup time
CN105634902A (en) Hardware In The Loop simulation system and communication method therefor
CN105050288B (en) A kind of lamp control method based on bluetooth dynamic group net
JP2009514466A (en) Topology configuration method and system
CN104540180B (en) A kind of Android multihop routing implementation method without root authority
CN109996345A (en) Session establishing method, equipment and system
CN109788444A (en) Applied to the node networking method in high density multihop network
CN109617812B (en) Greedy embedding-based RPL routing method and device and network topology
Han et al. Achieving energy efficiency and reliability for data dissemination in duty-cycled WSNs
CN112152884B (en) Equipment control method and device and household appliance
CN109819524A (en) Message processing method and device
CN103619045A (en) Route establishing method and system of low-consumption lossy network
CN103765819B (en) A kind of data configuration method and network management server
Vasiljević et al. Performance evaluation of OpenWSN operating system on open mote platform for industrial IoT applications
CN107959631A (en) A kind of implementation method of the 6LoWPAN border routers based on OpenWrt operating systems
WO2021102694A1 (en) Ble mesh device access method and apparatus, device and storage medium
Chen et al. Scheduling for data collection in multi-hop IEEE 802.15. 4e TSCH networks
Kumar et al. Performance study of beacon-enabled IEEE 802.15. 4 standard in WSNs with clustering
CN108632795A (en) A kind of wireless sense network concealed nodes conflict dissemination method
Shang et al. A smart home system based on ZigBee and iOS software
Huang et al. Simulation and analysis of protocols in ad hoc network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant