CN103997493A - Wireless device forwarding and networking method - Google Patents
Wireless device forwarding and networking method Download PDFInfo
- Publication number
- CN103997493A CN103997493A CN201410216420.3A CN201410216420A CN103997493A CN 103997493 A CN103997493 A CN 103997493A CN 201410216420 A CN201410216420 A CN 201410216420A CN 103997493 A CN103997493 A CN 103997493A
- Authority
- CN
- China
- Prior art keywords
- field
- forwarding
- equipment
- operate
- byte
- 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.)
- Pending
Links
Abstract
The invention discloses a wireless device forwarding and networking method. By adding forwarding control bytes in a communication protocol, the forwarding frequency is controlled. The method includes the specific operating processes that when forwarding operation is performed, data packets are sent from START, a type field represents the type of a device to which the data packets are forwarded, an ID field represents the ID number of the device, the forwarding frequency in an OPERATE field can be set to range from 1 to 15, the ID number of the forwarding device is appointed by an INFO field, a length field accounts for the forwarding ID and the number of bytes of control codes, a verification field is used for calculating the cumulative sum from START to the INFO field, and forwarding ends with an END field. The method has the advantages that under the condition that no obvious delay occurs, the effective communication distance of an RFID in low-power-consumption use is increased, and meanwhile, the wall penetrating effect is enhanced.
Description
Technical field
The present invention relates to a kind of method of wireless device forwarding and networking, the wireless device that is applied to internet of things intelligent household control system forwards networking RFID control technology.
Background technology
The equipment end that intelligent home control system is controlled, domestic general employing radio frequency 315MHz, 433MHz low-power consumption transmitting, indoor wireless communication actual measurement effective communication distance is in 60 meters, and communication distance is short and exist control time delay, and poor effect through walls.
Therefore, be badly in need of a kind of improved technology and solve existing this problem in prior art.
Summary of the invention
The invention provides a kind of method of wireless device forwarding and networking.
The technical solution used in the present invention is:
A method for wireless device forwarding and networking, controls hop count by increase forwarding control byte in communication protocol, and specific operation process is as follows:
When forwarding operation, sending packet is started by START, the device type that type field indicates to be forwarded to, id field represents No. ID of this equipment, and field OPERATE repeating number of times byte can set point number 1-15, and forwarding unit is specified by INFO field for No. ID, length field specifies forwards the byte number of ID+ control code, check field is calculated START to the cumulative sum of INFO field, with END field, finishes
Equipment receives after packet, with the device id of device id and this equipment in the high byte data assigned I NFO of field OPERATE repeating number of times, criticize and whether join, if do not criticized, do not join explanation and do not specify this equipment not in processing, if batch joined, again test after just the high byte of field OPERATE repeating number of times being added to 1 after cumulative sum to send after END field, after receiving this packet, also as above processes next equipment until the height byte data of field OPERATE repeating number of times has forwarded while equating, now equipment is received this forwarding data bag, with the device id of type field and id field and this equipment, criticize and join, equate to represent to forward successfully, with control code in INFO field, control, unequal not in processing.
Described forwarding data wraps in after target device receives and complete control, the reply data bag of responding will be by the equipment backspace response message that sends the appointment of forwarding data bag, the reply data package operation forwarding is as follows: target device changes the command code of field OPERATE in the forwarding data bag of receiving into response operation, the high byte of hop count is subtracted to 1 simultaneously, after verification, send, now equipment receives after this forwarding reply data bag, after the high byte of analysis field OPERATE hop count, draw hop count, with this, from INFO field, find out corresponding ID and the device id comparison of controlling oneself, if unequal this equipment of explanation is not the forwarding unit of appointment, not in processing, if equated, a hop count high position of field OPERATE is subtracted to 1, so until the high byte of field OPERATE hop count is 0, illustrate that this forwarding reply data bag has been sent out this packet side and has received, a complete repeating process completes.
The invention has the beneficial effects as follows: in the situation that not having obviously to postpone, increased the effective communication distance of RFID in low-power consumption is used, strengthened effect through walls simultaneously.
Accompanying drawing explanation
Below in conjunction with the drawings and specific embodiments, the present invention is described in further detail.
Fig. 1 is that the present invention forwards application drawing.
Fig. 2 is communication link figure of the present invention.
Embodiment
As illustrated in fig. 1 and 2, the method for a kind of wireless device forwarding of the present invention and networking, controls hop count by increase forwarding control byte in communication protocol, and specific operation process is as follows:
Low 4 bit0-bit3 of this agreement repeating number of times byte represent predetermined forwarding unit number (number of times) value 1-15, (being to represent not forward for 0 o'clock) bit4-bit7 represents actual forwarding counter. predetermined forwarding unit number is set by initiator, the actual counter that forwards is filled in by recipient, when forwarding once, numerical value increases by 1.The forwarding unit of appointment is specified and is then added control code by INFO field.
When forwarding operation, send packet by START(02) start, the device type that type field indicates to be forwarded to, id field represents No. ID of this equipment, field OPERATE repeating number of times byte can set point number 1-15, and forwarding unit is specified by INFO field for No. ID, and length field specifies forwards the byte number of ID+ control code, check field is calculated START to the cumulative sum of INFO field, with END field (03), finishes.
Equipment receives after packet, with the device id of device id and this equipment in the high byte data assigned I NFO of field OPERATE repeating number of times, criticize and whether join, if do not criticized, do not join explanation and do not specify this equipment not in processing, if batch joined, again test after just the high byte of field OPERATE repeating number of times being added to 1 after cumulative sum to send after END field (03), after receiving this packet, also as above processes next equipment until the height byte data of field OPERATE repeating number of times has forwarded while equating, now equipment is received this forwarding data bag, with the device id of type field and id field and this equipment, criticize and join, equate to represent to forward successfully, with control code in INFO field, control, unequal not in processing.
Forwarding data wraps in after target device receives and complete control, the reply data bag of responding will be by the equipment backspace response message that sends the appointment of forwarding data bag, the reply data package operation forwarding is as follows: target device changes the command code of field OPERATE in the forwarding data bag of receiving into response operation, the high byte of hop count is subtracted to 1 simultaneously, after verification, send, now equipment receives after this forwarding reply data bag, after the high byte of analysis field OPERATE hop count, draw hop count, with this, from INFO field, find out corresponding ID and the device id comparison of controlling oneself, if unequal this equipment of explanation is not the forwarding unit of appointment, not in processing, if equated, a hop count high position of field OPERATE is subtracted to 1, so until the high byte of field OPERATE hop count is 0, illustrate that this forwarding reply data bag has been sent out this packet side and has received, a complete repeating process completes.
Two forwarding units of take are example, are respectively that device type is that 01, ID is that equipment and the device type of 0x23456789 is that 02, ID is the equipment of 0x13456789, and the packet that main frame sends is as follows:
0x02?0x03?0x78?0x56?0x34?0x12?0x63?0x02?0x0B?0x01?0x89?0x67?0x45?0x23?0x02?0x89?0x67?0x45?0x13?0x05?0xCF?0x03,
Now device type is that 01, ID is that the equipment of 0x23456789 receives this packet, and judgement draws the 1st device number in INFO field and No. ID and batch joining of controlling oneself, then transmission:
0x02?0x03?0x78?0x56?0x34?0x12?0x63?0x12?0x0B?0x01?0x89?0x67?0x45?0x23?0x02?0x89?0x67?0x45?0x13?0x05?0xBF?0x03,
Now device type is that 02, ID is that the equipment of 0x13456789 receives this packet, and judgement draws the 2nd device number in INFO field and No. ID and batch joining of controlling oneself, then transmission:
0x02?0x03?0x78?0x56?0x34?0x12?0x63?0x22?0x0B?0x01?0x89?0x67?0x45?0x23?0x02?0x89?0x67?0x45?0x13?0x05?0xAF?0x03,
Now device type is 03, ID is that the equipment of 0x12345678 receives this packet, judgement show that high 4 of field POERATE repeating number of times byte equate with low 4, then with type field and id field and this device type and device id, criticize and join, the identical control code 05 of carrying out in INFO field, then sends following reply data bag:
0x02?0x03?0x78?0x56?0x34?0x12?0x62?0x22?0x0B?0x01?0x89?0x67?0x45?0x23?0x02?0x89?0x67?0x45?0x13?0x05?0XB0?0x03,
Now device type is that 02, ID is that the equipment of 0x13456789 receives this packet, and judgement draws the 2nd device number in INFO field and No. ID and batch joining of controlling oneself, then transmission:
0x02?0x03?0x78?0x56?0x34?0x12?0x62?0x12?0x0B?0x01?0x89?0x67?0x45?0x23?0x02?0x89?0x67?0x45?0x13?0x05?0XC0?0x03,
Now device type is that 01, ID is that the equipment of 0x23456789 receives this packet, and judgement draws the 1st device number in INFO field and No. ID and batch joining of controlling oneself, then transmission:
0x02?0x03?0x78?0x56?0x34?0x12?0x62?0x02?0x0B?0x01?0x89?0x67?0x45?0x23?0x02?0x89?0x67?0x45?0x13?0x05?0XD0?0x03,
Now main frame is received this reply data bag, once forwards and has communicated by letter.
In Fig. 2, main frame sends packet to equipment G, has A in network simultaneously, B, and C, D, E, F, 7 equipment of G, suppose that G equipment too far exceeds 433MHz apart from main frame, the communication distance of 315MHz RF.Now just need conversion link to remove to carry out letter.Set data that main frame is sent out by main frame → A → D → F → G.
In the situation that not having obviously to postpone, increase the effective communication distance of RFID in low-power consumption is used, strengthened effect through walls simultaneously.
Claims (2)
1. wireless device forwards and the method for networking, it is characterized in that: by increasing in communication protocol, forward control byte hop count is controlled, specific operation process is as follows:
When forwarding operation, sending packet is started by START, the device type that type field indicates to be forwarded to, id field represents No. ID of this equipment, and field OPERATE repeating number of times byte can set point number 1-15, and forwarding unit is specified by INFO field for No. ID, length field specifies forwards the byte number of ID+ control code, check field is calculated START to the cumulative sum of INFO field, with END field, finishes
Equipment receives after packet, with the device id of device id and this equipment in the high byte data assigned I NFO of field OPERATE repeating number of times, criticize and whether join, if do not criticized, do not join explanation and do not specify this equipment not in processing, if batch joined, again test after just the high byte of field OPERATE repeating number of times being added to 1 after cumulative sum to send after END field, after receiving this packet, also as above processes next equipment until the height byte data of field OPERATE repeating number of times has forwarded while equating, now equipment is received this forwarding data bag, with the device id of type field and id field and this equipment, criticize and join, equate to represent to forward successfully, with control code in INFO field, control, unequal not in processing.
2. a kind of wireless device according to claim 1 forwards and the method for networking, it is characterized in that: described forwarding data wraps in after target device receives and complete control, the reply data bag of responding will be by the equipment backspace response message that sends the appointment of forwarding data bag, the reply data package operation forwarding is as follows: target device changes the command code of field OPERATE in the forwarding data bag of receiving into response operation, the high byte of hop count is subtracted to 1 simultaneously, after verification, send, now equipment receives after this forwarding reply data bag, after the high byte of analysis field OPERATE hop count, draw hop count, with this, from INFO field, find out corresponding ID and the device id comparison of controlling oneself, if unequal this equipment of explanation is not the forwarding unit of appointment, not in processing, if equated, a hop count high position of field OPERATE is subtracted to 1, so until the high byte of field OPERATE hop count is 0, illustrate that this forwarding reply data bag has been sent out this packet side and has received, a complete repeating process completes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216420.3A CN103997493A (en) | 2014-05-22 | 2014-05-22 | Wireless device forwarding and networking method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410216420.3A CN103997493A (en) | 2014-05-22 | 2014-05-22 | Wireless device forwarding and networking method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN103997493A true CN103997493A (en) | 2014-08-20 |
Family
ID=51311500
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410216420.3A Pending CN103997493A (en) | 2014-05-22 | 2014-05-22 | Wireless device forwarding and networking method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103997493A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017124681A1 (en) * | 2016-01-20 | 2017-07-27 | 深圳Tcl数字技术有限公司 | Method and system for smart television identity recognition |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1385989A (en) * | 2001-05-16 | 2002-12-18 | 华为技术有限公司 | Method for conrolling short message retransmission time |
CN1491055A (en) * | 2003-09-15 | 2004-04-21 | 清华大学 | Method for constructing stabilized self-adaption self-organization network terminal |
CN1691672A (en) * | 2004-03-05 | 2005-11-02 | 株式会社东芝 | Method and apparatus for informatin processing |
US20070081486A1 (en) * | 2005-10-12 | 2007-04-12 | Canon Kabushiki Kaisha | Wireless communication apparatus and control method therefor |
CN101335724A (en) * | 2007-06-29 | 2008-12-31 | 华为技术有限公司 | Communication system, method and communication equipment based on household gateway |
CN102137342A (en) * | 2010-07-01 | 2011-07-27 | 华为软件技术有限公司 | Message sending control method and relevant device and system |
-
2014
- 2014-05-22 CN CN201410216420.3A patent/CN103997493A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1385989A (en) * | 2001-05-16 | 2002-12-18 | 华为技术有限公司 | Method for conrolling short message retransmission time |
CN1491055A (en) * | 2003-09-15 | 2004-04-21 | 清华大学 | Method for constructing stabilized self-adaption self-organization network terminal |
CN1691672A (en) * | 2004-03-05 | 2005-11-02 | 株式会社东芝 | Method and apparatus for informatin processing |
US20070081486A1 (en) * | 2005-10-12 | 2007-04-12 | Canon Kabushiki Kaisha | Wireless communication apparatus and control method therefor |
CN101335724A (en) * | 2007-06-29 | 2008-12-31 | 华为技术有限公司 | Communication system, method and communication equipment based on household gateway |
CN102137342A (en) * | 2010-07-01 | 2011-07-27 | 华为软件技术有限公司 | Message sending control method and relevant device and system |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2017124681A1 (en) * | 2016-01-20 | 2017-07-27 | 深圳Tcl数字技术有限公司 | Method and system for smart television identity recognition |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104811358B (en) | A kind of wireless communication method of network home appliance | |
CN106100955B (en) | Industrial internet field layer broadband bus data depth detection implementation method | |
CN108028841B (en) | Method and apparatus for transmitting and receiving data in a communication system | |
CN103826252A (en) | Method of acquiring and sending sequence numbers among main and slave devices and system | |
KR20140076626A (en) | A system and a method for chargingmultiple power receivers in a wireless charging environment | |
CN103023715A (en) | Fault monitoring method based on RS485 bus communication link | |
CN103442048B (en) | Downloading method of digital menu of cooking utensil | |
WO2011100911A3 (en) | Detection processing method, data transmitter, data receiver and communication system | |
CN104749996A (en) | Remote control method of ZigBee remote controller | |
CN106559177A (en) | The frame length and coding redundancy degree dynamic adjusting method of radio frequency charging sensing node | |
CN109587023A (en) | A kind of LoRa ad hoc network method and system | |
CN103514724A (en) | Adaptive configuration method of data acquisition unit | |
CN105634684A (en) | Method, apparatus and server for processing data packet | |
CN103997493A (en) | Wireless device forwarding and networking method | |
GB201209266D0 (en) | Method and system for communicating between devices | |
CN102970737B (en) | A kind of contention resolution of the wireless network transmissions based on constructive interference and system | |
CN105471660B (en) | A kind of data capture method suitable for novel low orbit satellite platform | |
CN104702371A (en) | Dual-link data transmission method based on network reliable transmission protocol | |
CN105739464A (en) | Main control communication method used for intelligent household electrical appliances | |
CN103581303A (en) | Method for controlling net-connected electric appliance by transmitting remote control instructions through server | |
CN104718710B (en) | It is suitable for the fast frequency-hopped of environment | |
JP2012151870A5 (en) | ||
CN105915456A (en) | Relay communication protocol method capable of changing header | |
CN105959979B (en) | Frame length system adaptive recognition method in wireless sensor network based on MAC protocol | |
CN107132824A (en) | A kind of Intelligent household network control system and method based on infrared and Bluetooth signal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20140820 |