CN105243812A - Method and system for forwarding data package - Google Patents

Method and system for forwarding data package Download PDF

Info

Publication number
CN105243812A
CN105243812A CN201510695854.0A CN201510695854A CN105243812A CN 105243812 A CN105243812 A CN 105243812A CN 201510695854 A CN201510695854 A CN 201510695854A CN 105243812 A CN105243812 A CN 105243812A
Authority
CN
China
Prior art keywords
packet
package identification
forwarding
time
described packet
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
Application number
CN201510695854.0A
Other languages
Chinese (zh)
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.)
Beijing Zhongke's Chinese Is Electron Technology Co Ltd All Over World
Original Assignee
Beijing Zhongke's Chinese Is Electron Technology Co Ltd All Over World
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 Beijing Zhongke's Chinese Is Electron Technology Co Ltd All Over World filed Critical Beijing Zhongke's Chinese Is Electron Technology Co Ltd All Over World
Priority to CN201510695854.0A priority Critical patent/CN105243812A/en
Publication of CN105243812A publication Critical patent/CN105243812A/en
Pending legal-status Critical Current

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention provides a method and system for forwarding a data package. The method includes the steps that the data package, with data package identification, sent by a remote control unit is received; the data package is analyzed, the data package identification is compared with locally-cached data package identification, and whether the data package is a new data package or not is judged; when it is judged that the data package is the new data package, the data package is forwarded out after time delay of random forwarding time, and the data package identification of the data package is locally cached. According to the method, based on existing dimming lamp hardware, a dimming lamp is used for forwarding the received data package sent by the remote control unit, the aim of increasing the communication distance is achieved, cost is reduced, and higher intelligence requirements are met.

Description

The method and system that a kind of packet forwards
Technical field
The application relates to wireless remote control light modulation lamp technical field, particularly relates to the method and system that a kind of packet forwards.
Background technology
In recent years, along with the rise of Smart Home concept, illuminating lamp has also developed "smart" products gradually as the electrical equipment that frequency of utilization indispensable in household is high again, and wireless remote control light modulation lamp is one of them important directions.
At present, the communication plan of wireless remote control light modulation lamp product mainly contains WIFI, bluetooth, zigbee and nonstandard 2.4G etc., wherein, nonstandard 2.4G communication plan due to chip cost low, the features such as scheme is simple, flexible design occupy important share in Wireless Light modulating lamp field.
But the shortcoming such as the communication distance also existed due to 2.4G desk lamp with dimmer switch is short, cannot meet higher intelligent requirement, so just constrain 2.4G desk lamp with dimmer switch and apply widely.
Summary of the invention
In view of this, this application provides the method and system that a kind of packet forwards, to overcome in prior art due to shortcomings such as 2.4G desk lamp with dimmer switch communication distance are short, higher intelligent requirement cannot be met, constrain the problem that it is applied widely.
For achieving the above object, this application provides following technical scheme:
The method that packet forwards, the method comprises:
Receive the packet with package identification that telepilot sends;
Described packet is resolved, and is compared with the package identification of local cache by described package identification, judge whether described packet is new data packets;
When judging that obtaining described packet is new data packets, forwarding after described packet being carried out the time delay of random forwarding time, and the package identification of described packet is carried out local cache.
Preferably, the method also comprises: according to the destination address in described packet, judges that whether described destination address is corresponding to the destination address of self, if corresponding, then performs the dimming commands in described packet.
Preferably, described described packet is carried out the time delay of random forwarding time after forward and comprise:
The random forwarding time is generated according to the received signal strength read;
After the time delay carrying out the described random forwarding time, described packet is forwarded.
Preferably, described described packet is carried out the time delay of random forwarding time after forward and comprise:
Randomizer is utilized to generate the random forwarding time;
After the time delay carrying out the described random forwarding time, described packet is forwarded.
Preferably, also comprise: when the quantity of the package identification of local cache exceedes preset value, delete the package identification exceeding the buffer memory at first of described preset value.
The system that packet forwards, this system comprises:
Receiving element, for receiving the packet with package identification that telepilot sends;
Resolution unit, is resolved for the described packet received by described receiving element, and is compared with the package identification of local cache by described package identification, judges whether described packet is new data packets;
Retransmission unit, during for judging that obtaining described packet is new data packets when described resolution unit, forwards after described packet being carried out the time delay of random forwarding time;
Buffer unit, the package identification for the packet forwarded by described retransmission unit carries out local cache.
Preferably, this system also comprises: performance element, for according to the destination address in described packet, judges that whether described destination address is corresponding to the destination address of self, if corresponding, then performs the dimming commands in described packet.
Preferably, described retransmission unit comprises:
First generation unit, for generating the random forwarding time according to the received signal strength read;
First retransmission unit, for after the time delay carrying out the described random forwarding time, forwards described packet.
Preferably, described retransmission unit comprises:
Second generation unit, generates the random forwarding time for utilizing randomizer;
Second retransmission unit, for after the time delay carrying out the described random forwarding time, forwards described packet.
Preferably, also comprise: delete cells, when the quantity for the package identification when described buffer unit local cache exceedes preset value, delete the package identification exceeding the buffer memory at first of described preset value.
From above technical scheme, this application provides a kind of data forwarding method and system, described method comprises: receive the packet with package identification that telepilot sends; Described packet is resolved, and is compared with the package identification of local cache by described package identification, judge whether described packet is new data packets; When judging that obtaining described packet is new data packets, forwarding after described packet being carried out the time delay of random forwarding time, and the package identification of described packet is carried out local cache.The method is on existing desk lamp with dimmer switch hardware foundation, and desk lamp with dimmer switch is forwarded by the packet sent the telepilot received, and reaches the object increasing communication distance, has not only saved cost, and met higher intelligent demand.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of a kind of data packet forwarding method that Fig. 1 provides for the embodiment of the present application one;
The process flow diagram of a kind of data packet forwarding method that Fig. 2 provides for the embodiment of the present application two;
The process flow diagram of the another kind of data packet forwarding method that Fig. 3 provides for the embodiment of the present application two;
The structural representation of a kind of packet that Fig. 4 provides for the embodiment of the present application two;
The structural representation of a kind of packet repeater system that Fig. 5 provides for the embodiment of the present application three;
The structural representation of a kind of packet repeater system that Fig. 6 provides for the embodiment of the present application four;
The structural representation of the another kind of packet repeater system that Fig. 7 provides for the embodiment of the present application four.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
For overcoming due to shortcomings such as 2.4G desk lamp with dimmer switch communication distance are short in prior art, cannot meet higher intelligent requirement, constrain the problem that it is applied widely, this application provides the method and apparatus that a kind of packet forwards, concrete scheme is as described below:
The present invention relates generally to 2.4G Wireless Light modulating lamp, and institute's extracting method of the present invention and device also can be applicable to the field such as wireless data transmission module, wireless control module simultaneously.Wireless data transmission module is the modular product of data radio station.Refer to the high-performance expert data transmission radio station realized by DSP technology and radiotelegraphy.
Embodiment one
The embodiment of the present application one provides a kind of method that packet forwards, as shown in Figure 1, and the process flow diagram of a kind of data packet forwarding method that Fig. 1 provides for the embodiment of the present application one.The method comprises:
S101: receive the packet with package identification that telepilot sends;
In this application, when desk lamp with dimmer switch opened by needs, telepilot is utilized to send the packet including No. PID, package identification (PacketIdentification, package identification).The receiving element control RF (RadioFrequency of Wireless Light modulating lamp, radio frequency) module receives the packet sent of telepilot, PID in packet is produced by telepilot, for ensureing that PID upgrades in order, telepilot before being powered off should by No. ID, the bag preservation of current use, after powering, No. ID that used when shutting down last time should be read from storage medium.Concrete, because Wireless Light modulating lamp needs to judge that whether the packet that receives is a new packet by No. PID of packet, if each telepilot powers on and sends packet is all be 0 from No. ID, telepilot only have sent a packet and has just shut down, power on next time and also can send the packet that ID is 0, such Wireless Light modulating lamp will be identified as a duplicate packages and not go to forward, and causes operation to go wrong.
Wherein, the packet that telepilot sends comprise No. PID can be continuous print, increases progressively, and successively decreases or loop cycle.Namely No. PID refer to that No. PID of packet is close to continuously, such as 1,2,3,4 ... increase progressively, to successively decrease or loop cycle refers to that No. PID ascendingly can increase progressively and also can descendingly successively decrease, such as No. ID is added to 65535 from 0, or reduce to 0 from 65535, again start again to take turns in time being added to 65535 or reducing to 0, be circulation.Concrete, increase progressively, to successively decrease or loop cycle can set according to actual needs, do not limit in this application.
S102: packet is resolved, and compared with the package identification of local cache by package identification, judge whether packet is new data packets;
The packet received is resolved by Wireless Light modulating lamp, and the package identification of the package identification in the packet of parsing and local cache is compared, judge that whether received packet is forwarded over by oneself, namely judge whether packet is new data packets, if forwarded over, for avoiding unnecessary packet to collide, this packet will be dropped.
S103: when judging that obtaining packet is new data packets, forwarding after packet being carried out the time delay of random forwarding time, and the package identification of packet is carried out local cache.
When judging that obtaining packet is new data packets, when not carrying out forwarding namely, forward after packet being carried out the time delay of random forwarding time, be transmitted to other Wireless Light modulating lamps, and the package identification of packet carried out local cache so that as the reference of the package identification received afterwards.In theory, the forwarding travel path of packet should be from the close-by examples to those far off.
Before packet forwards, desk lamp with dimmer switch can lead to generation one random forwarding time, i.e. timing from receiving this packet, after a random time delay, packet is forwarded, to ensure that packet can forward in different time points by the desk lamp with dimmer switch receiving packet, avoid occurring in packet repeating process colliding.
In the application, telepilot sends the packet with No. PID, by the PID received in packet, desk lamp with dimmer switch judges whether received data packet is new bag, if the new data that receives is a newly bag, then after the time delay of a random-length time, received packet is forwarded.In wireless communications, two equipment being in cochannel can produce interference when transmitting simultaneously, cause receiver cannot receive correct signal, and in the application, pass through random forwarding, order outwards sends signal when carrying out the equipment difference of instruction forwarding, solves the collision problem in packet repeating process.In addition, because the command range of telepilot is limited, when desk lamp with dimmer switch is distant time, telepilot just can not control, by the forwarding of data steering order can be made to pass farther, the desk lamp with dimmer switch that originally can not receive instruction is made to receive instruction, when the equipment in network is more, remote equipment receives the packet of telepilot transmission by multi-level forwarding.
Embodiment two
On the basis of embodiment one, the embodiment of the present application two provides another kind of data packet forwarding method, as shown in Figure 2, and the process flow diagram of a kind of data packet forwarding method that Fig. 2 provides for the embodiment of the present application two.The method comprises:
S101: receive the packet with package identification that telepilot sends;
S102: packet is resolved, and compared with the package identification of local cache by package identification, judge whether packet is new data packets;
It may be noted that, for prevent the packet that there is multiple different PID from forwarding simultaneously and produce message concussion, multiple package identifications of package identification and local cache can be compared, when the current packet received and the PID received in a period of time are not identical, just be considered to a newly bag.
S103: when judging that obtaining packet is new data packets, forwarding after packet being carried out the time delay of random forwarding time, and the package identification of packet is carried out local cache;
The application can preserve 20 the new PID received before, and concrete quantity does not limit, and can set according to actual needs.
Concrete, in this application, the method forwarded after packet is carried out the time delay of random forwarding time comprises:
The random forwarding time is generated according to the received signal strength read;
After the time delay carrying out the random forwarding time, packet is forwarded.
Or in this application, the method forwarded after packet is carried out the time delay of random forwarding time comprises:
Randomizer is utilized to generate the random forwarding time;
After the time delay carrying out the random forwarding time, packet is forwarded.
In this application, for preventing multiple desk lamp with dimmer switch message when forwarding from mutually colliding, a random time can be generated for Forwarding Latency.Should in use-case, due to RSSI (ReceivedSignalStrengthIndication, the signal intensity instruction received) signal has randomness, and therefore can generate random number with RSSI signal value as random seed, namely the random number of random delay can come from the reading of RSSI signal.Such as creating a random number is 4, then think that this time forwarded is 4ms.Certainly this is not certain, can think that random number 4 correspond to 8ms yet, and this will determine according to actual needs design.
In some hardware plan, include randomizer, randomizer also can be used to generate the random forwarding time.Therefore, the random delay time in the present invention is not limited to read RSSI and produces.
It should be noted that, the random number range of generation is larger, then the probability collided when multiple desk lamp with dimmer switch carries out message forwarding is lower, but accordingly, forwards the time delay produced also longer.Therefore, need to average out between collision probability and Forwarding Latency, the random delay time namely produced should be not excessive or too small.In the application, divide and have read RSSI data four times, each data reading a rear generation bit, can produce 4bit data four times altogether, and the Forwarding Latency of correspondence is 0 ~ 15ms.
When Forwarding Latency is 0 ~ 15ms, the embodiment of the present invention is carried out probability P that when packet forwards, packet can send out and can be obtained by formula below:
P = 1 16 n &Sigma; a = 1 n x a , 0 < n &le; 16 P = 1 15 n &Sigma; a = 1 15 x a , n > 16
Wherein, x afor the situation only having a desk lamp with dimmer switch data retransmission can be gone out.The situation that data retransmission is gone out can add up to by desk lamp with dimmer switch: only have 1 can send+only have 2 can send+only have three can send+... + only have n to send, be namely the probability that can send by these situations divided by the n power of total combination 16, x acan be tried to achieve by listed formula system of equations below:
C n m C 16 m A m m ( 16 - m ) n - m = x m + &Sigma; i = m n - 1 C i + 1 m x i + 1 ,
Wherein, n is for participating in forwarding unit quantity, and m is the number only having m device forwards to go out.In such as network, total n equipment outwards forwards simultaneously, 1 equipment may be only had to forward successfully, two equipment also may be only had to forward successfully, x mbe and only have m equipment to forward successful number of combinations, wherein m is the equipment number only having m device forwards to go out.
For reduce because of produce random delay too short and forward collision probability increase, the application also uses following mechanism: after judging that packet is new data packets, then opening timing device, and timing length is 15ms, this timing as one forwarding the cycle.Within a forwarding cycle, calculate a random delay and forward a secondary data.The time delay that the number in forwarding cycle should can bear according to system and determining, forward periodicity more, then the probability repeatedly forwarding collision is less, employs two forwarding cycles in the application altogether, namely every 15ms forwarded according to the random forwarding time generated, and corotation sends out twice.
Detect through experiment, employ twice forwarding and substantially increase the successful probability of forwarding, when place capacity is at 50, still have the probability of 99.44% to be forwarded by packet.
S104: when the quantity of the package identification of local cache exceedes preset value, deletes the package identification exceeding the buffer memory at first of preset value.
Concrete, due to may exist a upper packet forward in a network also do not terminate completely and next bag data enters network thus produce packet forward concussion, when carrying out PID and comparing, can not the PID of only more last forwarding, but compare with the some historical data bags before this packet, namely local cache has multiple package identification.
In order to alleviate storage pressure, 20 historical data bags can be preset in this application, can certainly be other data, not limit in this application.When the quantity of the package identification of local cache exceedes preset value, delete the package identification exceeding the buffer memory at first of preset value.
The embodiment of the present application two additionally provides the method that another kind of packet forwards, as shown in Figure 3, the process flow diagram of the another kind of data packet forwarding method that Fig. 3 provides for the embodiment of the present application two, this retransmission method comprises:
S101: receive the packet with package identification that telepilot sends;
S102: resolved by packet, according to the destination address in packet, judges that whether destination address is corresponding to the destination address of self, if corresponding, then performs the dimming commands in packet, otherwise, perform step S103;
In network, all desk lamps with dimmer switch that can receive remote-control data are after receiving data, the destination address of first resolution data bag, if destination address conforms to self, then perform the dimming commands in packet, do not forward this packet; If destination address does not conform to self, then forward this packet.Each desk lamp with dimmer switch receiving equipment possesses the function of forwarding data, and therefore, remote command can be sent to those via several intermediate equipments and be in desk lamp with dimmer switch outside telepilot range of control, realizes the far distance controlled of desk lamp with dimmer switch.Intermediate equipment only forwards packet, does not do any more changed handling to packet.
In actual applications, by being different groups by the desk lamp with dimmer switch layout be within zones of different scope, distributing different units number to the desk lamp with dimmer switch in same group, thus realizing the networking operation of desk lamp with dimmer switch.The destination address of packet can be made up of the group number of equipment and unit number.The structure of concrete packet as shown in Figure 4, the structural representation of a kind of packet that Fig. 4 provides for the embodiment of the present application two.Wherein, the packet that telepilot sends at every turn has different PID, and it is new or for having received packet that receiving equipment distinguishes this packet according to PID.If the packet that desk lamp with dimmer switch receives is new bag, complete subsequent action with regard to the instruction in resolution data bag.Otherwise, abandon this bag and turn back to the reception that accepting state continues next bag data.
As shown in Figure 4, Paket_Kind specifies the type of packet, and its type comprises: to code bag or dimming commands packet;
Group number Group_Number and unit Unit_Number constitutes the destination address of packet, according to destination address, receiving equipment judges whether packet issues oneself, and determines whether forward this packet thus;
Com_Address refers to mailing address, fixedly accounts for the size of 5 bytes;
Com_Channel refers to communication frequency, occupies 1 byte space;
Command part specifies the dimming commands that telepilot sends, desk lamp with dimmer switch with this complete lamp bright, go out or Dimming operation.
In addition, reliably can be sent to receiving equipment in order to ensure remote command, increase the probability that instruction is passed on, should ensure that when networking adjacent two receiving equipments are within reliable communication distance.
S103: compared with the package identification of local cache by package identification, judges whether packet is new data packets;
S104: when judging that obtaining packet is new data packets, forwarding after packet being carried out the time delay of random forwarding time, and the package identification of packet is carried out local cache.
In order to alleviate storage pressure, the method can also comprise: when the quantity of the package identification of local cache exceedes preset value, deletes the package identification exceeding the buffer memory at first of preset value.
From above technical scheme, the method is on existing desk lamp with dimmer switch hardware foundation, desk lamp with dimmer switch is forwarded by the packet sent the telepilot received, reach the object increasing communication distance, not only saved cost, and met higher intelligent demand, by forwarding, achieve the control to a large amount of desk lamp with dimmer switch, and then by the configuration of destination address, achieve the networking operation to desk lamp with dimmer switch.
It should be noted that, embodiment two and embodiment one can references mutually, and same or analogous place repeats no more.
Embodiment three
On the basis of embodiment one, the embodiment of the present application three provides a kind of corresponding packet repeater system.As shown in Figure 5, a kind of structural representation of packet repeater system that provides for the embodiment of the present application three of Fig. 5.This system comprises: receiving element 401, resolution unit 402, retransmission unit 403 and buffer unit 404, wherein,
Receiving element 401, for receiving the packet with package identification that telepilot sends;
Resolution unit 402, resolves for the packet received by receiving element 401, and is compared with the package identification of local cache by package identification, judges whether packet is new data packets;
Retransmission unit 403, during for judging that obtaining packet is new data packets when resolution unit 402, forwards after packet being carried out the time delay of random forwarding time;
Buffer unit 404, the package identification for the packet forwarded by retransmission unit 403 carries out local cache.
Embodiment four
On the basis of embodiment three, the embodiment of the present application department provides another kind of packet repeater system, as shown in Figure 6, and the structural representation of a kind of packet repeater system that Fig. 6 provides for the embodiment of the present application four.This system comprises: receiving element 401, resolution unit 402, retransmission unit 403, buffer unit 404 and delete cells 405, wherein,
Receiving element 401, for receiving the packet with package identification that telepilot sends;
Receiving element control RF radio-frequency module receives the packet with package identification that telepilot sends.
Resolution unit 402, resolves for the packet received by receiving element 401, and is compared with the package identification of local cache by package identification, judges whether packet is new data packets;
Retransmission unit 403, during for judging that obtaining packet is new data packets when resolution unit 402, forwards after packet being carried out the time delay of random forwarding time;
Packet is transmitted to other Wireless Light modulating lamps by RF module by retransmission unit.
Wherein, retransmission unit can comprise in the present embodiment:
First generation unit, for generating the random forwarding time according to the received signal strength read;
First retransmission unit, for after the time delay carrying out the random forwarding time, forwards packet.
Retransmission unit can also comprise in the present embodiment:
Second generation unit, generates the random forwarding time for utilizing randomizer;
Second retransmission unit, for after the time delay carrying out the random forwarding time, forwards packet.
Concrete, do not limit in this application, can arrange according to actual needs.
Buffer unit 404, the package identification for the packet forwarded by retransmission unit 403 carries out local cache.
Delete cells 405, when the quantity for the package identification when buffer unit 404 local cache exceedes preset value, deletes the package identification exceeding the buffer memory at first of preset value.
In order to alleviate storage pressure, 20 historical data bags can be preset in this application, can certainly be other data, not limit in this application.When the quantity of the package identification of local cache exceedes preset value, delete the package identification exceeding the buffer memory at first of preset value.
The embodiment of the present application four additionally provides another kind of packet repeater system, as shown in Figure 7, and the structural representation of the another kind of packet repeater system that Fig. 7 provides for the embodiment of the present application four.This system comprises: receiving element 401, resolution unit 402, performance element 403, retransmission unit 404 and buffer unit 405, wherein,
Receiving element 401, for receiving the packet with package identification that telepilot sends;
Resolution unit 402, resolves for the packet received by receiving element 401, and is compared with the package identification of local cache by package identification, judges whether packet is new data packets;
Performance element 403, for the destination address in the packet of resolving according to resolution unit 402, judges that whether destination address is corresponding to the destination address of self, if corresponding, then performs the dimming commands in packet.
Wherein, in this application, the destination address of packet can be made up of the group number of equipment and unit number.In actual applications, by being different groups by the desk lamp with dimmer switch layout be within zones of different scope, the desk lamp with dimmer switch in same group distributes different units number, thus realizes the networking operation of desk lamp with dimmer switch.
In addition, reliably can be sent to receiving equipment in order to ensure remote command, increase the probability that instruction is passed on, should ensure that when networking adjacent two receiving equipments are within reliable communication distance.
Retransmission unit 404, for judging that when resolution unit 402 obtaining packet is new data packets, and when performance element 403 judges that destination address and self destination address are not corresponding, forwards after packet being carried out the time delay of random forwarding time;
Buffer unit 405, the package identification for the packet forwarded by retransmission unit 404 carries out local cache.
In order to alleviate storage pressure, this system can also comprise: delete cells, when the quantity for the package identification when buffer unit local cache exceedes preset value, deletes the package identification exceeding the buffer memory at first of preset value.
From above technical scheme, this repeater system provided by the present invention, on existing desk lamp with dimmer switch hardware foundation, desk lamp with dimmer switch is forwarded by the packet sent the telepilot received, and reaches the object increasing communication distance, not only save cost, and meet higher intelligent demand, by forwarding, achieve the control to a large amount of desk lamp with dimmer switch, and then by the configuration of destination address, achieve the networking operation to desk lamp with dimmer switch.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the application.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. a method for packet forwarding, it is characterized in that, the method comprises:
Receive the packet with package identification that telepilot sends;
Described packet is resolved, and is compared with the package identification of local cache by described package identification, judge whether described packet is new data packets;
When judging that obtaining described packet is new data packets, forwarding after described packet being carried out the time delay of random forwarding time, and the package identification of described packet is carried out local cache.
2. method according to claim 1, it is characterized in that, after described packet is resolved, the method also comprises: according to the destination address in described packet, judge that whether described destination address is corresponding to the destination address of self, if corresponding, then perform the dimming commands in described packet.
3. method according to claim 1, is characterized in that, described described packet is carried out the time delay of random forwarding time after forward and comprise:
The random forwarding time is generated according to the received signal strength read;
After the time delay carrying out the described random forwarding time, described packet is forwarded.
4. method according to claim 1, is characterized in that, described described packet is carried out the time delay of random forwarding time after forward and comprise:
Randomizer is utilized to generate the random forwarding time;
After the time delay carrying out the described random forwarding time, described packet is forwarded.
5. method according to claim 1, is characterized in that, also comprises: when the quantity of the package identification of local cache exceedes preset value, deletes the package identification exceeding the buffer memory at first of described preset value.
6. a system for packet forwarding, it is characterized in that, this system comprises:
Receiving element, for receiving the packet with package identification that telepilot sends;
Resolution unit, is resolved for the described packet received by described receiving element, and is compared with the package identification of local cache by described package identification, judges whether described packet is new data packets;
Retransmission unit, during for judging that obtaining described packet is new data packets when described resolution unit, forwards after described packet being carried out the time delay of random forwarding time;
Buffer unit, the package identification for the packet forwarded by described retransmission unit carries out local cache.
7. system according to claim 6, is characterized in that, this system also comprises: performance element, for according to the destination address in described packet, judge that whether described destination address is corresponding to the destination address of self, if corresponding, then perform the dimming commands in described packet.
8. system according to claim 6, is characterized in that, described retransmission unit comprises:
First generation unit, for generating the random forwarding time according to the received signal strength read;
First retransmission unit, for after the time delay carrying out the described random forwarding time, forwards described packet.
9. system according to claim 6, is characterized in that, described retransmission unit comprises:
Second generation unit, generates the random forwarding time for utilizing randomizer;
Second retransmission unit, for after the time delay carrying out the described random forwarding time, forwards described packet.
10. system according to claim 6, is characterized in that, also comprises: delete cells, when the quantity for the package identification when described buffer unit local cache exceedes preset value, deletes the package identification exceeding the buffer memory at first of described preset value.
CN201510695854.0A 2015-10-23 2015-10-23 Method and system for forwarding data package Pending CN105243812A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510695854.0A CN105243812A (en) 2015-10-23 2015-10-23 Method and system for forwarding data package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510695854.0A CN105243812A (en) 2015-10-23 2015-10-23 Method and system for forwarding data package

Publications (1)

Publication Number Publication Date
CN105243812A true CN105243812A (en) 2016-01-13

Family

ID=55041438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510695854.0A Pending CN105243812A (en) 2015-10-23 2015-10-23 Method and system for forwarding data package

Country Status (1)

Country Link
CN (1) CN105243812A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105682324A (en) * 2016-02-24 2016-06-15 浙江生辉照明有限公司 Light adjusting data report method, intelligent lighting equipment and gateway
CN105792477A (en) * 2016-02-23 2016-07-20 毛琦 Two-way networking method and device for 2.4G wireless dimming lamp
CN107707534A (en) * 2017-09-22 2018-02-16 深圳市盛路物联通讯技术有限公司 A kind of data forwarding method and device
CN107734793A (en) * 2017-09-11 2018-02-23 宁波天明照明有限公司 A kind of control method and system of Wireless Light modulating lamp
CN114095876A (en) * 2021-11-08 2022-02-25 青岛海尔科技有限公司 Broadcast data processing method and device, storage medium and electronic device
CN114138196A (en) * 2021-11-26 2022-03-04 南方电网大数据服务有限公司 Power system data storage method and device, computer equipment and storage medium
CN116700989A (en) * 2023-07-03 2023-09-05 中科驭数(北京)科技有限公司 Data transmission method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1929420A (en) * 2006-09-22 2007-03-14 东南大学 Wireless sensing unit network broadcast route method based on hops count
KR20070066441A (en) * 2005-12-22 2007-06-27 주식회사 와이더맥스 Multifunctional remote monitoring device, remote monitoring method using the same, and remote monitoring system using the same
CN101052258A (en) * 2006-04-07 2007-10-10 刘晓光 Lamp light controlled network and control method
CN102098336A (en) * 2011-01-18 2011-06-15 中国钓具技术标准化(北仑海伯)研究中心 Networking and communicating methods for wireless internet of things (IOT) system
CN102300378A (en) * 2010-06-22 2011-12-28 弘进电子股份有限公司 Wireless remote controller and remotely-controlled dimming power-saving bulb device with signal responding and forwarding functions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20070066441A (en) * 2005-12-22 2007-06-27 주식회사 와이더맥스 Multifunctional remote monitoring device, remote monitoring method using the same, and remote monitoring system using the same
CN101052258A (en) * 2006-04-07 2007-10-10 刘晓光 Lamp light controlled network and control method
CN1929420A (en) * 2006-09-22 2007-03-14 东南大学 Wireless sensing unit network broadcast route method based on hops count
CN102300378A (en) * 2010-06-22 2011-12-28 弘进电子股份有限公司 Wireless remote controller and remotely-controlled dimming power-saving bulb device with signal responding and forwarding functions
CN102098336A (en) * 2011-01-18 2011-06-15 中国钓具技术标准化(北仑海伯)研究中心 Networking and communicating methods for wireless internet of things (IOT) system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105792477A (en) * 2016-02-23 2016-07-20 毛琦 Two-way networking method and device for 2.4G wireless dimming lamp
CN105682324A (en) * 2016-02-24 2016-06-15 浙江生辉照明有限公司 Light adjusting data report method, intelligent lighting equipment and gateway
CN105682324B (en) * 2016-02-24 2019-07-26 浙江生辉照明有限公司 Dim data reporting method, Intelligent illumination device and gateway
CN107734793A (en) * 2017-09-11 2018-02-23 宁波天明照明有限公司 A kind of control method and system of Wireless Light modulating lamp
CN107707534A (en) * 2017-09-22 2018-02-16 深圳市盛路物联通讯技术有限公司 A kind of data forwarding method and device
CN114095876A (en) * 2021-11-08 2022-02-25 青岛海尔科技有限公司 Broadcast data processing method and device, storage medium and electronic device
CN114138196A (en) * 2021-11-26 2022-03-04 南方电网大数据服务有限公司 Power system data storage method and device, computer equipment and storage medium
CN116700989A (en) * 2023-07-03 2023-09-05 中科驭数(北京)科技有限公司 Data transmission method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105243812A (en) Method and system for forwarding data package
Gao et al. Towards energy-fairness in lora networks
Zucchetto et al. Uncoordinated access schemes for the IoT: Approaches, regulations, and performance
US6256478B1 (en) Dynamic packet sizing in an RF communications system
CN102781080B (en) Power self-adaptive method of network access and operation of nodes of wireless sensor network
CN103118414B (en) Wireless access control and timeslot allocation method applicable to ultra-wideband
CN102857327A (en) Data transmission method and apparatus
CN103023567A (en) Visible light communication method, device and system
AU2003276512A8 (en) Method, system and communication node for enhancing the throughput in a wireless communication network
CN107105474A (en) A kind of accidental access method limited in arrowband Internet of Things based on dynamic access
US11303350B2 (en) Method and system for electromagnetic wave data transmission
CN103198276B (en) Electronic goods shelf label system communication method
CN110536439A (en) Method, apparatus, user equipment, base station and the storage medium of resource distribution
CA2945253C (en) Methods for encoding and decoding frames in a telecommunication network
CN103501531B (en) A kind of Ad Hoc network MAC layer method for channel allocation controlled based on power
CN104601211A (en) Transmission device and method for energy efficiency multi-mode hybrid beam formation in wireless communication system
CN103546201A (en) Adaptive secrete data transmission system on basis of Bluetooth technology
US10367602B2 (en) Data modulation method for IEEE 802.11 devices to generate low frequency signals
CN105636022A (en) RSSI-based low-power consumption passive wireless node networking method
CN105282785A (en) Method of Period Allocation for Medium and Wireless Communication System Thereof
Zhao et al. Towards energy-fairness in LoRa networks
Thomas et al. Performance evaluation of chirp spread spectrum as used in LoRa physical layer
CN108039938A (en) Electric power Internet of Things low-power consumption concurrent data frame coding method and system
CN109495389A (en) A kind of double-channel mixed logic dynamic algorithm based on water heater intelligent control application
CN202798716U (en) Intermediate range data transmission repeater

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: 20160113