CN107426714B - Method and system for intelligent sectional networking of frequency bands of similar 2.4G devices - Google Patents
Method and system for intelligent sectional networking of frequency bands of similar 2.4G devices Download PDFInfo
- Publication number
- CN107426714B CN107426714B CN201710812576.1A CN201710812576A CN107426714B CN 107426714 B CN107426714 B CN 107426714B CN 201710812576 A CN201710812576 A CN 201710812576A CN 107426714 B CN107426714 B CN 107426714B
- Authority
- CN
- China
- Prior art keywords
- networking
- equipment
- rssi
- packet
- sending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
- H04W48/14—Access restriction or access information delivery, e.g. discovery data delivery using user query or user detection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/16—Discovering, processing access restriction or access information
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/18—Self-organising networks, e.g. ad-hoc networks or sensor networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/309—Measuring or estimating channel quality parameters
- H04B17/318—Received signal strength
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B17/00—Monitoring; Testing
- H04B17/30—Monitoring; Testing of propagation channels
- H04B17/382—Monitoring; Testing of propagation channels for resource allocation, admission control or handover
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W72/00—Local resource management
- H04W72/50—Allocation or scheduling criteria for wireless resources
- H04W72/54—Allocation or scheduling criteria for wireless resources based on quality criteria
- H04W72/542—Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to a method and a system for intelligent segmented networking of frequency bands of similar 2.4G equipment, wherein the method comprises the steps of sending a networking request, and acquiring a reply packet for replying the networking request; performing statistical filtering sequencing on R-RSSI of receiving equipment in the reply packet, and selecting a maximum frequency band for UID (user identification) memory mapping; sending a pairing request packet; and according to the pairing request packet, carrying out frequency band information identifier allocation to form networking allocation. The invention obtains the reply packet containing the UID of the receiving equipment, the T-RSSI of the sending equipment and the frequency band information identifier by sending the networking request packet containing the UID of the sending equipment and the packet request type, carries out RSSI statistical filtering sequencing on the content of the reply packet, selects the maximum frequency band, UID storage mapping, and carries out frequency band information identifier distribution according to the pairing request packet of the two-frequency-band request, thereby realizing intelligent segmentation, avoiding the interference of the similar equipment, having high real-time performance, lower cost, better effect, simple networking and equipment information intercommunication.
Description
Technical Field
The invention relates to a method for networking equipment frequency bands, in particular to a method and a system for intelligently networking similar 2.4G equipment frequency bands in a segmented mode.
Background
2.4G is a wireless technology, and since the frequency band is between 2.400GHz to 2.4835GHz, the 2.4G wireless technology is for short, and is one of three major wireless technologies (including Bluetooth, 27M, and 2.4G) on the market. The 2.4G equipment comprises industrial data transmission, wireless remote control, a wireless mouse, a wireless keyboard, a wireless electronic tag, a remote control toy, a 2.4G wireless loudspeaker, a wireless microphone, a wireless sound box and the like.
In the process of networking of traditional similar 2.4G devices, the problem of wireless mutual interference can be caused due to the imperfect frequency hopping technology, specifically, the problem that the real-time performance of the frequency hopping speed is not high, which causes wireless interference and interference of frequency-free 2.4G devices.
Therefore, it is necessary to design a method for intelligent segmented networking of frequency bands of similar 2.4G devices, so as to realize intelligent segmentation, avoid interference of similar devices, and have high real-time performance, lower cost and better effect.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a system for intelligent segmented networking of frequency bands of similar 2.4G equipment.
In order to achieve the purpose, the invention adopts the following technical scheme: the method for intelligent segmented networking of frequency bands of similar 2.4G devices comprises the following steps:
sending a networking request, and acquiring a reply packet for replying the networking request;
performing statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet, and selecting the maximum frequency band for UID (user identification) memory mapping;
sending a pairing request packet;
and according to the pairing request packet, carrying out frequency band information identifier distribution to form networking distribution.
The step of performing statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet and selecting the maximum frequency band for UID memory mapping comprises the following specific steps:
acquiring the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
calculating the average value of the T-RSSI of the sending equipment according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
calculating the average value of the R-RSSI of the receiving equipment in the reply packet according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
acquiring the sum of the average value of the T-RSSI of the sending equipment and the average value of the R-RSSI of the receiving equipment in the reply packet, and storing the corresponding UID of the sum;
acquiring equipment of which the sum is smaller than a set value to form a reserve equipment set;
acquiring equipment with the largest frequency band information identification in a reserve equipment group to form candidate equipment;
saving the corresponding UID of the candidate device;
according to the pairing request packet, frequency band information identifier allocation is carried out to form a networking allocation step, and the method comprises the following specific steps:
acquiring a pairing request packet according to the same UID;
dividing the frequency band information identifier of the candidate equipment into two sections to form subsections of the two sections of frequency band information identifiers;
respectively sending the subsections of the two sections of frequency band information identifications to corresponding equipment to form networking distribution;
R-RSSI is the signal strength indication of the receiving equipment, T-RSSI is the signal strength indication of the sending equipment, and UID is the unique ID of the equipment.
The further technical scheme is as follows: the method comprises the following steps of sending a networking request and acquiring a reply packet for replying the networking request:
forming a networking request packet of the sending equipment through 2.4G, and sending the networking request packet;
and acquiring a networking request packet and feeding back a reply packet corresponding to the networking request packet.
The further technical scheme is as follows: and forming a networking request packet of the sending device through 2.4G, and sending the networking request packet, wherein the networking request packet comprises the UID of the sending device and a packet request type.
The further technical scheme is as follows: and acquiring a networking request packet and feeding back a reply packet corresponding to the networking request packet, wherein the reply packet comprises the UID of the receiving equipment, the T-RSSI of the sending equipment and the frequency band information identifier.
The further technical scheme is as follows: a step of sending a pairing request packet, the pairing request packet including a corresponding UID of the candidate device and a corresponding UID of the receiving device.
The invention also provides a system for intelligent segmented networking of the frequency band of the same 2.4G equipment, which comprises a reply packet acquisition unit, a mapping unit, a request packet sending unit and a networking distribution unit;
the reply packet acquisition unit is used for sending the networking request and acquiring a reply packet for replying the networking request;
the mapping unit is used for carrying out statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet and selecting the maximum frequency band for UID storage mapping;
the request packet sending unit is used for sending a pairing request packet;
the networking allocation unit is used for allocating frequency band information identification according to the pairing request packet to form networking allocation;
the mapping unit comprises a number acquisition module, a T-RSSI average value calculation module, an R-RSSI average value calculation module, a sum acquisition module, a reserve equipment group forming module, a candidate equipment forming module and a UID storage module;
the number acquisition module is used for acquiring the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
the T-RSSI average value calculating module is used for calculating the average value of the T-RSSI of the sending equipment according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
the R-RSSI average value calculating module is used for calculating the average value of the R-RSSI of the receiving equipment in the reply packet according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
the sum acquisition module is used for acquiring the sum of the average value of the T-RSSI of the sending equipment and the average value of the R-RSSI of the receiving equipment in the reply packet and storing the corresponding UID of the sum;
the reserve equipment group forming module is used for obtaining equipment of which the sum is less than a set value to form a reserve equipment group;
the candidate device forming module is used for obtaining the device with the largest frequency band information identifier in the reserve device group to form a candidate device;
and the UID storage module is used for storing corresponding UIDs of the candidate equipment.
The networking distribution unit comprises a pairing request packet acquisition module, a segmentation module and a sub-segment sending module;
the pairing request packet acquisition module is used for acquiring a pairing request packet according to the same UID;
the segmentation module is used for dividing the frequency band information identifier of the candidate device into two segments to form subsegments of the two segments of frequency band information identifiers;
the sub-segment sending module is used for respectively sending the sub-segments of the two segments of frequency band information identifications to corresponding equipment to form networking distribution;
R-RSSI is the signal strength indication of the receiving equipment, T-RSSI is the signal strength indication of the sending equipment, and UID is the unique ID of the equipment.
The further technical scheme is as follows: the reply packet acquisition unit comprises a networking request packet acquisition module and a reply packet feedback module;
the networking request packet acquisition module is used for forming a networking request packet of the sending equipment through 2.4G and sending the networking request packet;
and the reply packet feedback module is used for acquiring the networking request packet and feeding back a reply packet corresponding to the networking request packet.
Compared with the prior art, the invention has the beneficial effects that: the method for intelligent segmented networking of frequency bands of similar 2.4G equipment acquires a reply packet comprising a UID of a sending device and a packet request type by sending a networking request packet comprising the UID of the sending device and a packet request type, performs RSSI statistical filtering sequencing on the content of the reply packet, selects a maximum frequency band, carries out UID memory mapping, performs frequency band information identifier distribution according to a pairing request packet of a two-frequency-band request, completes networking distribution, realizes intelligent segmentation, avoids interference of similar equipment, and has the advantages of high real-time performance, lower cost, better effect, simple networking and equipment information intercommunication.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
Fig. 1 is a flowchart of a method for intelligent segment networking of frequency bands of similar 2.4G devices according to an embodiment of the present invention;
fig. 2 is a flowchart of acquiring a reply packet for replying to a networking request according to an embodiment of the present invention;
fig. 3 is a flowchart for performing statistical filtering sorting on the R-RSSI of the reply packet and selecting a maximum frequency band for UID memory mapping according to an embodiment of the present invention;
fig. 4 is a flowchart of forming a networking assignment according to an embodiment of the present invention;
fig. 5 is a block diagram of a system for intelligent segmented networking of frequency bands of similar 2.4G devices according to a specific embodiment of the present invention;
fig. 6 is a block diagram of a reply packet obtaining unit according to an embodiment of the present invention;
fig. 7 is a block diagram of a mapping unit according to an embodiment of the present invention;
fig. 8 is a block diagram of a networking allocation unit according to an embodiment of the present invention;
fig. 9 is a usage scenario diagram of a method for intelligent segment networking of frequency bands of similar 2.4G devices according to a specific embodiment of the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
As shown in specific embodiments of fig. 1 to 9, the method for intelligent segmented networking of frequency bands of similar 2.4G devices provided in this embodiment can be applied to a networking process of a 2.4G wireless device, so as to implement intelligent segmentation, avoid interference of similar devices, and have high real-time performance, lower cost and better effect.
As shown in fig. 1, this embodiment provides a method for intelligent segment networking of frequency bands of similar 2.4G devices, where the method includes:
s1, sending a networking request, and acquiring a reply packet for replying the networking request;
s2, performing statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet, and selecting the maximum frequency band for UID storage mapping;
s3, sending a pairing request packet;
and S4, according to the pairing request packet, carrying out frequency band information identification distribution to form networking distribution.
Further, as for the step S1, the step of sending the networking request and obtaining the reply packet for replying the networking request includes the following specific steps:
s11, forming a networking request packet of the sending equipment through 2.4G, and sending the networking request packet;
and S12, acquiring the networking request packet, and feeding back a reply packet corresponding to the networking request packet.
In the step S11, specifically, when the receiving device is powered on, the receiving device forms a networking request packet W-SRP1000ms of the sending device through 2.4G. The networking request packet described above includes the UID of the sending device and the packet request type.
In the step S12, after receiving the networking request packet W-SRP, the multiple receiving devices only reply with the reply packet W-RRP of the receiving device of 50ms, and the started receiving device receives the reply packets W-RRP replied by all the receiving devices within 1000 ms. The reply packet comprises the UID of the receiving device, the T-RSSI of the sending device and the identification of the frequency band information.
Further, in the step S2, the step of performing statistical filtering sorting on the R-RSSI of the receiving device in the reply packet, and selecting the largest frequency band for UID memory mapping includes the following specific steps:
s21, acquiring the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
s22, calculating the average value of the T-RSSI of the sending equipment according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
s23, calculating the average value of the R-RSSI of the receiving equipment in the reply packet according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
s24, acquiring the sum of the average value of the T-RSSI of the sending equipment and the average value of the R-RSSI of the receiving equipment in the reply packet, and storing the corresponding UID of the sum;
s25, acquiring equipment of which the sum is smaller than a set value to form a reserve equipment group;
s26, obtaining the equipment with the largest frequency band information identification in the reserve equipment group to form candidate equipment;
and S27, storing the corresponding UID of the candidate device.
In the above step S21, the R-RSSI of the receiving device in the reply packet and the number R-N of the reply packets are obtained, specifically, to calculate the average value, and in addition, the T-RSSI and the frequency band information identifier of the sending device included in the reply packet are also obtained to be used for calculating the average value and for segment networking, specifically, the R-RSSI of the receiving device in the reply packet may be obtained by the UID of the receiving device.
The foregoing steps S22 and S23 are to calculate the average T-RSSI of the sending device and the average R-RSSI of the receiving device in the reply packet, specifically to perform RSSI statistical filtering of the receiving device during power-on, specifically to calculate the average T-RSSI: T-RSSI-AVG ═ T-RSSI-sum/R-N; the average R-RSSI-AVG ═ R-RSSI-sum/R-N of the R-RSSI of the receiving device was calculated.
For the steps from S24 to S27, the sum of T-RSSI-AVG and R-RSSI-AVG is TRsum-RSSI-AVG, and then the UID corresponding to TRsum-RSSI-AVG is saved; and for all TRsum-RSSI-AVG, finding out the equipment with the TRsum-RSSI-AVG smaller than a set value to form a reserved equipment group, finding out the equipment with the maximum Pn-Pm from the reserved equipment group meeting the equipment conditions to form candidate equipment, recording the UID (user identifier) corresponding to the candidate equipment as UID-Z, performing statistical filtering sorting on the RSSI of the started receiving equipment, selecting the maximum frequency band, and performing UID memory mapping.
In addition, in the step S3, a step of transmitting a pairing request packet including the corresponding UID of the candidate device and the corresponding UID of the receiving device is performed. The sending equipment sends a pairing request packet PAIR-P, the request packet contains a corresponding UID of the receiving equipment, if other receiving equipment is matched with different UIDs, the request packet is directly ignored, and compared with equipment without frequency hopping, the cost is lower and the effect is better.
Further, for the step S4, the step of performing frequency band information identifier allocation according to the pairing request packet to form networking allocation includes the following specific steps:
s41, acquiring a pairing request packet according to the same UID;
s42, dividing the frequency band information identifier of the candidate device into two segments to form sub-segments of the two segments of frequency band information identifiers;
and S43, respectively sending the sub-segments of the two segments of frequency band information identifications to corresponding equipment to form networking distribution.
The step S41 is to obtain the pairing request packet by the receiving device according to the UID number of the receiving device, so as to receive the pairing request packet PAIR-P containing the same UID, thereby avoiding interference of similar devices.
In the step S42, specifically, the receiving device considers that a packet intelligent segmented frequency request packet is received, and the receiving device divides the frequency band information identifier Pn-Pm into two segments, which are: subsections Pn-P (m/2) and P (m/2) -Pm.
For the step S43, the first half (sub-segment Pn-P (m/2)) is reserved for the started device, and the second half (P (m/2) -Pm) is returned to the started receiving device, so as to intelligently segment, avoid the interference of the similar devices, achieve high real-time performance, and achieve the effect of successful network allocation.
The frequency band information identifier Pn-Pm describes which frequency band, such as P0-P5, the current device belongs to in the 2.4G frequency band, which means 2400-2410 frequency band; the 2400-2410 frequency band belongs to a wireless frequency band, and a 2.4G frequency band 2400 MHZ-2480 MHZ described below is divided into 40 frequency bands, and each frequency band has a bandwidth of 2 MHZ. Respectively as follows: 2400mhz, 2402 mhz, 2404mhz, 2406mhz, 2408mhz, 2410mhz, 2412 mhz, 2414mhz, 2416mhz, 2418 mhz; 2420mhz, 2422mhz, 2424mhz, 2426mhz, 2428mhz, 2430mhz, 2432mz, 2434mhz, 2436mhz, 2438 mhz; 2440mhz, 2442mhz, 2444mhz, 2446mhz, 2448mhz, 2450mhz, 2452 mhz, 2454mhz, 2456mhz, 2458 mhz; 2460mhz, 2462mhz, 2464mhz, 2466mhz, 2468mhz, 2470mhz, 2472 mhz, 2474mhz, 2476mhz, 2478 mhz; the frequency band index is from 0 to 39.
The RSSI mentioned above refers to the Signal Strength Indication Received by the Received Signal Strength Indication, and it is possible for the receiving device to identify the distance of the transmitting device by detecting the Signal Strength.
The UID is a device unique ID, specifically, an ID having a globally unique 32 bit.
The method for intelligent segmented networking of frequency bands of similar 2.4G devices obtains a reply packet comprising a UID of a sending device and a packet request type by sending a networking request packet comprising the UID of the sending device and a packet request type, conducts RSSI statistical filtering sequencing on the content of the reply packet, selects a maximum frequency band, carries out UID storage mapping, conducts frequency band information identifier distribution according to a pairing request packet of a two-frequency-band request, completes networking distribution, realizes intelligent segmentation, avoids interference of similar devices, and is high in real-time performance, lower in cost, better in effect, simple in networking and intercommunicating device information.
As shown in fig. 5, this embodiment further provides a system for intelligent segment networking of frequency bands of similar 2.4G devices, which includes a reply packet obtaining unit 1, a mapping unit 2, a request packet sending unit 3, and a networking allocating unit 4.
And the reply packet acquisition unit 1 is used for sending the networking request and acquiring a reply packet for replying the networking request.
And the mapping unit 2 is used for performing statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet, and selecting the maximum frequency band for UID storage mapping.
A request packet sending unit 3, configured to send a pairing request packet.
And the networking distribution unit 4 is used for performing frequency band information identifier distribution according to the pairing request packet to form networking distribution.
The reply packet obtaining unit 1 includes a networking request packet obtaining module 11 and a reply packet feedback module 12.
And the networking request packet obtaining module 11 is configured to form a networking request packet of the sending device through 2.4G, and send the networking request packet. Specifically, when the receiving device is powered on, the receiving device forms a networking request packet W-SRP1000ms of the sending device through 2.4G. The networking request packet described above includes the UID of the sending device and the packet request type.
And a reply packet feedback module 12, configured to obtain the networking request packet and feed back a reply packet corresponding to the networking request packet. Specifically, when the receiving device is powered on, the receiving device forms a networking request packet W-SRP1000ms of the sending device through 2.4G. The networking request packet described above includes the UID of the sending device and the packet request type.
Further, the mapping unit 2 includes a number obtaining module 21, a T-RSSI average value calculating module 22, an R-RSSI average value calculating module 23, a sum obtaining module 24, a reserved device group forming module 25, a candidate device forming module 26, and a UID storing module 27.
A number obtaining module 21, configured to obtain R-RSSI of the receiving device in the reply packet and the number of the reply packets; and acquiring the R-RSSI and the number R-N of the reply packets of the receiving equipment in the reply packet, specifically for calculating an average value, and acquiring the T-RSSI and the frequency band information identifier of the sending equipment included in the reply packet for calculating the average value and using for segmented networking, specifically, the R-RSSI of the receiving equipment in the reply packet can be acquired by the UID of the receiving equipment.
A T-RSSI average value calculation module 22, configured to calculate an average value of T-RSSI of the sending device according to the R-RSSI of the receiving device in the reply packet and the number of the reply packets;
an R-RSSI average value calculation module 23, configured to calculate an average value of R-RSSI of the receiving device in the reply packet according to the R-RSSI of the receiving device in the reply packet and the number of the reply packets;
a sum obtaining module 24, configured to obtain a sum of an average value of T-RSSI of the sending device and an average value of R-RSSI of the receiving device in the reply packet, and store a corresponding UID of the sum;
a reserve equipment group forming module 25, configured to obtain equipment whose sum is smaller than a set value, and form a reserve equipment group;
a candidate device forming module 26, configured to obtain a device with the largest frequency band information identifier in the reserved device group, and form a candidate device;
and the UID saving module 27 is used for saving the corresponding UID of the candidate device.
The average T-RSSI calculation module 22 and the average R-RSSI calculation module 23 calculate the average T-RSSI of the sending device and the average R-RSSI of the receiving device in the reply packet, specifically, for performing RSSI statistical filtering of the receiving device during startup, specifically, calculate the average T-RSSI: T-RSSI-AVG ═ T-RSSI-sum/R-N; the average R-RSSI-AVG ═ R-RSSI-sum/R-N of the R-RSSI of the receiving device was calculated.
For the sum obtaining module 24, the reserve device group forming module 25, the candidate device forming module 26, and the UID storing module 27, the sum of T-RSSI-AVG and R-RSSI-AVG is TRsum-RSSI-AVG, and then the UID corresponding to TRsum-RSSI-AVG is stored; and for all TRsum-RSSI-AVG, finding out the equipment with the TRsum-RSSI-AVG smaller than a set value to form a reserved equipment group, finding out the equipment with the maximum Pn-Pm from the reserved equipment group meeting the equipment conditions to form candidate equipment, recording the UID (user identifier) corresponding to the candidate equipment as UID-Z, performing statistical filtering sorting on the RSSI of the started receiving equipment, selecting the maximum frequency band, and performing UID memory mapping.
In addition, the request packet sending unit 3 sends a pairing request packet, where the pairing request packet includes the corresponding UID of the candidate device and the corresponding UID of the receiving device. The sending equipment sends a pairing request packet PAIR-P, the request packet contains a corresponding UID of the receiving equipment, if other receiving equipment is matched with different UIDs, the request packet is directly ignored, and compared with equipment without frequency hopping, the cost is lower and the effect is better.
Further, the networking allocating unit 4 includes a pairing request packet obtaining module 41, a segmenting module 42, and a sub-segment sending module 43.
The pairing request packet obtaining module 41 is configured to obtain a pairing request packet according to the same UID, specifically, the receiving device obtains the pairing request packet according to its own UID number, and thus receives the pairing request packet PAIR-P including the same UID, so as to avoid interference of similar devices.
The segmentation module 42 is configured to divide the frequency band information identifier of the candidate device into two segments to form a sub-segment of the two-segment frequency band information identifier, specifically, the receiving device considers that a packet intelligent segmented frequency request packet is received, and the receiving device divides the frequency band information identifier Pn-Pm into two segments, where: subsections Pn-P (m/2) and P (m/2) -Pm.
The sub-segment sending module 43 is configured to send the sub-segments identified by the two segments of frequency band information to corresponding devices, so as to form networking distribution, specifically, the first half segment (the sub-segment Pn-P (m/2)) is reserved for the started device, and the second half segment (P (m/2) -Pm) is returned to the started receiving device, so that the device can be intelligently segmented, interference of similar devices is avoided, the real-time performance is high, and the effect of successful networking distribution is achieved.
The frequency band information identifier Pn-Pm describes which frequency band, such as P0-P5, the current device belongs to in the 2.4G frequency band, which means 2400-2410 frequency band; the 2400-2410 frequency band belongs to a wireless frequency band, and a 2.4G frequency band 2400 MHZ-2480 MHZ described below is divided into 40 frequency bands, and each frequency band has a bandwidth of 2 MHZ. Respectively as follows: 2400mhz, 2402 mhz, 2404mhz, 2406mhz, 2408mhz, 2410mhz, 2412 mhz, 2414mhz, 2416mhz, 2418 mhz; 2420mhz, 2422mhz, 2424mhz, 2426mhz, 2428mhz, 2430mhz, 2432mz, 2434mhz, 2436mhz, 2438 mhz; 2440mhz, 2442mhz, 2444mhz, 2446mhz, 2448mhz, 2450mhz, 2452 mhz, 2454mhz, 2456mhz, 2458 mhz; 2460mhz, 2462mhz, 2464mhz, 2466mhz, 2468mhz, 2470mhz, 2472 mhz, 2474mhz, 2476mhz, 2478 mhz; the frequency band index is from 0 to 39.
The RSSI mentioned above refers to the Signal Strength Indication Received by the Received Signal Strength Indication, and it is possible for the receiving device to identify the distance of the transmitting device by detecting the Signal Strength.
The UID is a device unique ID, specifically, an ID having a globally unique 32 bit.
The system for intelligent segmented networking of the frequency bands of the similar 2.4G devices obtains a reply packet comprising the UID of the sending device and the packet request type by sending the networking request packet comprising the UID of the sending device and the packet request type, conducts RSSI statistical filtering sequencing on the content of the reply packet, selects the maximum frequency band, carries out UID memory mapping, conducts frequency band information identifier distribution according to the pairing request packet of the two-frequency-band request, completes networking distribution, realizes intelligent segmentation, avoids the interference of the similar devices, and has the advantages of high real-time performance, lower cost, better effect, simple networking and device information intercommunication.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.
Claims (7)
1. The method for intelligent segmented networking of frequency bands of similar 2.4G devices is characterized by comprising the following steps:
sending a networking request, and acquiring a reply packet for replying the networking request;
performing statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet, and selecting the maximum frequency band for UID (user identification) memory mapping;
sending a pairing request packet;
according to the pairing request packet, frequency band information identifier allocation is carried out to form networking allocation;
the step of performing statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet and selecting the maximum frequency band for UID memory mapping comprises the following specific steps:
acquiring the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
calculating the average value of the T-RSSI of the sending equipment according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
calculating the average value of the R-RSSI of the receiving equipment in the reply packet according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
acquiring the sum of the average value of the T-RSSI of the sending equipment and the average value of the R-RSSI of the receiving equipment in the reply packet, and storing the corresponding UID of the sum;
acquiring equipment of which the sum is smaller than a set value to form a reserve equipment set;
acquiring equipment with the largest frequency band information identification in a reserve equipment group to form candidate equipment;
saving the corresponding UID of the candidate device;
according to the pairing request packet, frequency band information identifier allocation is carried out to form a networking allocation step, and the method comprises the following specific steps:
acquiring a pairing request packet according to the same UID;
dividing the frequency band information identifier of the candidate equipment into two sections to form subsections of the two sections of frequency band information identifiers;
respectively sending the subsections of the two sections of frequency band information identifications to corresponding equipment to form networking distribution;
R-RSSI is the signal strength indication of the receiving equipment, T-RSSI is the signal strength indication of the sending equipment, and UID is the unique ID of the equipment.
2. The method for intelligent segmented networking of frequency bands of similar 2.4G devices according to claim 1, wherein the step of sending a networking request and obtaining a reply packet for replying the networking request comprises the following specific steps:
forming a networking request packet of the sending equipment through 2.4G, and sending the networking request packet;
and acquiring a networking request packet and feeding back a reply packet corresponding to the networking request packet.
3. The method for intelligent segmented networking of frequency bands of similar 2.4G devices according to claim 2, wherein a networking request packet of a sending device is formed by 2.4G, and the networking request packet is sent, wherein the networking request packet comprises the UID of the sending device and a packet request type.
4. The method for intelligent segmented networking of frequency bands of similar 2.4G devices according to claim 3, wherein the step of obtaining a networking request packet and feeding back a reply packet corresponding to the networking request packet is performed, and the reply packet includes the UID of the receiving device, the T-RSSI of the transmitting device, and the frequency band information identifier.
5. The method for intelligent segment networking of frequency bands of similar 2.4G devices according to claim 4, wherein the step of sending a pairing request packet comprises the corresponding UID of the candidate device and the corresponding UID of the receiving device.
6. The system for intelligent segmented networking of the frequency bands of the similar 2.4G devices is characterized by comprising a reply packet acquisition unit, a mapping unit, a request packet sending unit and a networking distribution unit;
the reply packet acquisition unit is used for sending the networking request and acquiring a reply packet for replying the networking request;
the mapping unit is used for carrying out statistical filtering sequencing on the R-RSSI of the receiving equipment in the reply packet and selecting the maximum frequency band for UID storage mapping;
the request packet sending unit is used for sending a pairing request packet;
the networking allocation unit is used for allocating frequency band information identification according to the pairing request packet to form networking allocation;
the mapping unit comprises a number acquisition module, a T-RSSI average value calculation module, an R-RSSI average value calculation module, a sum acquisition module, a reserve equipment group forming module, a candidate equipment forming module and a UID storage module;
the number acquisition module is used for acquiring the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
the T-RSSI average value calculating module is used for calculating the average value of the T-RSSI of the sending equipment according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
the R-RSSI average value calculating module is used for calculating the average value of the R-RSSI of the receiving equipment in the reply packet according to the R-RSSI of the receiving equipment in the reply packet and the number of the reply packets;
the sum acquisition module is used for acquiring the sum of the average value of the T-RSSI of the sending equipment and the average value of the R-RSSI of the receiving equipment in the reply packet and storing the corresponding UID of the sum;
the reserve equipment group forming module is used for obtaining equipment of which the sum is less than a set value to form a reserve equipment group;
the candidate device forming module is used for obtaining the device with the largest frequency band information identifier in the reserve device group to form a candidate device;
the UID storage module is used for storing corresponding UIDs of the candidate equipment;
the networking distribution unit comprises a pairing request packet acquisition module, a segmentation module and a sub-segment sending module;
the pairing request packet acquisition module is used for acquiring a pairing request packet according to the same UID;
the segmentation module is used for dividing the frequency band information identifier of the candidate device into two segments to form subsegments of the two segments of frequency band information identifiers;
the sub-segment sending module is used for respectively sending the sub-segments of the two segments of frequency band information identifications to corresponding equipment to form networking distribution;
R-RSSI is the signal strength indication of the receiving equipment, T-RSSI is the signal strength indication of the sending equipment, and UID is the unique ID of the equipment.
7. The system for intelligent segmented networking of frequency bands of similar 2.4G devices according to claim 6, wherein the reply packet acquisition unit comprises a networking request packet acquisition module and a reply packet feedback module;
the networking request packet acquisition module is used for forming a networking request packet of the sending equipment through 2.4G and sending the networking request packet;
and the reply packet feedback module is used for acquiring the networking request packet and feeding back a reply packet corresponding to the networking request packet.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710812576.1A CN107426714B (en) | 2017-09-11 | 2017-09-11 | Method and system for intelligent sectional networking of frequency bands of similar 2.4G devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710812576.1A CN107426714B (en) | 2017-09-11 | 2017-09-11 | Method and system for intelligent sectional networking of frequency bands of similar 2.4G devices |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107426714A CN107426714A (en) | 2017-12-01 |
CN107426714B true CN107426714B (en) | 2020-05-15 |
Family
ID=60432273
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710812576.1A Active CN107426714B (en) | 2017-09-11 | 2017-09-11 | Method and system for intelligent sectional networking of frequency bands of similar 2.4G devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107426714B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881917A (en) * | 2005-06-13 | 2006-12-20 | 海尔集团公司 | Household network wireless netting and communication method |
CN103002463A (en) * | 2012-11-29 | 2013-03-27 | 北京工业大学 | A zigbee indoor positioning network design and corresponding simplification method |
CN104038397A (en) * | 2014-07-01 | 2014-09-10 | 广州合立正通信息科技有限公司 | Automatic networking method of intelligent device |
CN105636022A (en) * | 2015-12-30 | 2016-06-01 | 广东顺德中山大学卡内基梅隆大学国际联合研究院 | RSSI-based low-power consumption passive wireless node networking method |
-
2017
- 2017-09-11 CN CN201710812576.1A patent/CN107426714B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1881917A (en) * | 2005-06-13 | 2006-12-20 | 海尔集团公司 | Household network wireless netting and communication method |
CN103002463A (en) * | 2012-11-29 | 2013-03-27 | 北京工业大学 | A zigbee indoor positioning network design and corresponding simplification method |
CN104038397A (en) * | 2014-07-01 | 2014-09-10 | 广州合立正通信息科技有限公司 | Automatic networking method of intelligent device |
CN105636022A (en) * | 2015-12-30 | 2016-06-01 | 广东顺德中山大学卡内基梅隆大学国际联合研究院 | RSSI-based low-power consumption passive wireless node networking method |
Also Published As
Publication number | Publication date |
---|---|
CN107426714A (en) | 2017-12-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11696207B2 (en) | Data transmission method, electronic device, and computer readable storage medium | |
KR101030353B1 (en) | Apparatus and method for searching a path of a mobile terminal in a local area communication environment | |
CN111830844B (en) | Intelligent equipment control method and device and intelligent home control panel | |
US11277828B2 (en) | Method, device and system for resource allocation, and computer-readable storage medium | |
JP2013538525A (en) | Sharing resources between secondary users | |
US12156201B2 (en) | Resource indication methods and apparatus | |
CN110572306B (en) | Wired intelligent home system with ad hoc network and ad hoc network method thereof | |
CN113766520A (en) | Networking method, networking device, storage medium and networking nodes of power Internet of things | |
JP2018117376A (en) | Electronic device and radio communication method | |
CN116017551A (en) | BSC terminal capability reporting method and device, terminal and network equipment | |
US20230107204A1 (en) | Communication method and device, and storage medium | |
CN108934046B (en) | Method and device for reducing mutual interference between WiFi and ZigBee | |
CN107426714B (en) | Method and system for intelligent sectional networking of frequency bands of similar 2.4G devices | |
CN110198533B (en) | Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device | |
CN106465189A (en) | Resource scheduling method, device and system | |
US10050930B2 (en) | Multi-radio single internet protocol address wireless local area network apparatus and method | |
CN107257563B (en) | Remote low-power-consumption network system and networking method | |
CN105357078A (en) | Detection method and system of network state of intelligent equipment | |
CN110704128B (en) | Identification allocation method and device, identification allocation equipment and storage medium | |
CN105264828A (en) | Channel scan method and apparatus | |
CN105282753A (en) | Intelligent network method | |
CN111061355B (en) | Power supply data acquisition method and equipment | |
CN107370519B (en) | RSSI-based 2.4G multi-device recent pairing method and system | |
CN117751527A (en) | Frequency hopping communication method for short-range wireless communication and related equipment | |
WO2020196183A1 (en) | Base station and communication method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |