CN117202250A - Method for judging packet congestion degree in air by using Bluetooth connection retransmission quantity - Google Patents
Method for judging packet congestion degree in air by using Bluetooth connection retransmission quantity Download PDFInfo
- Publication number
- CN117202250A CN117202250A CN202311240086.0A CN202311240086A CN117202250A CN 117202250 A CN117202250 A CN 117202250A CN 202311240086 A CN202311240086 A CN 202311240086A CN 117202250 A CN117202250 A CN 117202250A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- air
- packets
- ble
- retransmissions
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 25
- 230000006854 communication Effects 0.000 description 23
- 230000002093 peripheral effect Effects 0.000 description 23
- 238000004891 communication Methods 0.000 description 21
- 230000005540 biological transmission Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 244000062793 Sorghum vulgare Species 0.000 description 1
- 238000009825 accumulation Methods 0.000 description 1
- 230000004075 alteration Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 235000019713 millet Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
The invention relates to the technical field of packet congestion degree judgment, and discloses a method for judging the packet congestion degree in the air by using the retransmission quantity of Bluetooth connection lines. The method for judging the packet congestion degree in the air by using the Bluetooth connection retransmission quantity finally uses the vendor cmd/event to inquire the final retransmission quantity by the Bluetooth controller, and the larger the value is, the larger the interfered degree is, and the more devices transmit among CH0-CH 39.
Description
Technical Field
The invention relates to the technical field of packet congestion degree judgment, in particular to a method for judging the packet congestion degree in the air by using the retransmission quantity of Bluetooth connection lines.
Background
The current transmission of bluetooth packets is often affected by other wireless technology packets, especially wifi signals with larger bandwidth, so that the reception of bluetooth packets is easily affected, whether the packets are interfered or not is known at present, whether the packets are interfered or not needs to be analyzed by using a bluetooth packet capturing instrument, and the frequency bands are judged by energy, so that the instrument is expensive at present, and the patent evaluates the congestion degree of the packets in the current air in a simple way.
The existing method can use Sodera/Ellisys series Bluetooth packet grabbing instruments to see whether the beaten packets are knocked off, but the instruments are expensive at present and inconvenient to carry, and the patent uses 2 simple Bluetooth controllers to evaluate the interference degree in the current air, so that we propose a method for judging the congestion degree of the packets in the air by using the retransmission quantity of Bluetooth connection lines.
Disclosure of Invention
(one) solving the technical problems
In order to overcome the defects in the prior art, the invention provides a method for judging the congestion degree of a packet in the air by using the retransmission quantity of a Bluetooth connection, which has the advantages of simply evaluating the influence degree of BLE CH0-CH39 by other wireless devices without other expensive instruments, and solves the problems in the prior art.
(II) technical scheme
The invention provides the following technical scheme: a method for judging packet crowding degree in air by using retransmission number of Bluetooth connection wire includes using retransmission number of Bluetooth connection wire to judge packet crowding degree in air, using two Bluetooth controllers as BLE Master and using another as BLE Slave, forming a Master-Slave mechanism by two Bluetooth controllers, namely a thread being Master and being responsible for triggering task, triggering task by one or more Slave threads, generally, in base band of communication base station, being usually made into message or time to trigger, so Master thread is mainly responsible for handling message to receive message, if it is light-weight processing such as simple configuration, it is processed in Master thread directly, otherwise, it is processed by multiple Slave threads, and two Bluetooth controllers are used as BLE connection wire, BLE is low-power consumption Bluetooth, it is a wireless communication technology with low power consumption, short distance, safety and reliability, etc. it has been applied to various intelligent devices, and includes three basic scanning connection steps of low-power consumption communication, scanning connection and communication between them: scanning between devices is required before a bluetooth low energy connection is established. The scanning mode is two modes of active scanning and passive scanning. Active scanning refers to initiating a scan from a central device (e.g., a cell phone), searching for surrounding peripheral devices (e.g., a millet smart bracelet). Passive scanning is when the peripheral device is found by the central device while broadcasting its own information. Information such as a unique identifier (MAC address) of the device, a device name and the like can be obtained through scanning; and (3) connection: connection refers to the establishment of a communication link between the central device and the peripheral devices. The connection comprises the following steps: first, the central device transmits a connection request to the peripheral device. The peripheral device then replies with a connection response and begins to establish a communication link. The central device and the peripheral device then conduct service discovery to determine the services and feature values supported by each other. Finally, the central equipment and the peripheral equipment perform operations such as characteristic value reading, writing, subscription and the like; communication: after the connection is established, data transfer between the central device and the peripheral device is possible. Bluetooth low energy communication employs a "master-slave" architecture, i.e., a central device is responsible for controlling the communication flow, while peripheral devices are passively accepted and respond. In the communication process, the central device sends instructions to the peripheral device, including operations of reading, writing, subscribing and the like. The peripheral equipment performs corresponding processing according to the instruction and returns the result to the central equipment; chM of the Master when connecting specifies all channels, and after connecting, according to BLE spec, the Master/slave records the total number of retransmission packets according to whether the nesn/sn is the basis of retransmitting the packets.
Preferably, the ChM is a channel map field.
Preferably, the TX end fixes TX Power at-60 dbm, which can detect an intense signal, and TX represents the transmitting end and the transmitting end, and generally refers to the transmission output of data in serial communication.
Preferably, the last Host then inquires of the last retransmission number via vendor specic cmd with the bluetooth controller.
Preferably, the value obtained by adding the total number of Master and Slave packets is used as the interfered degree in the air, and the larger the value is, the larger the interfered degree is, and more devices transmit among CH0-CH 39.
Preferably, after two bluetooth controllers are connected to BLE, according to BLE spec, the nesn/sn is used as the basis for retransmitting the packet.
Preferably, the method can simply evaluate the extent to which BLE CH0-CH39 is affected by other wireless devices.
Compared with the prior art, the invention provides a method for judging the congestion degree of a packet in the air by using the retransmission quantity of Bluetooth connection lines, which has the following beneficial effects:
the method for judging the packet congestion degree in the air by using the retransmission quantity of the Bluetooth connection, judging the packet congestion degree in the air by using the retransmission times in the Bluetooth connection, and after using two Bluetooth controllers as BLE connection, according to BLE spec, recording the total quantity of the retransmission packets by Master/slave according to the nesn/sn as the basis of whether the retransmission packets are to be retransmitted or not, and finally, inquiring the final retransmission quantity by a Host cmd/event and the Bluetooth controllers, wherein the larger the value is, the larger the interfered degree is, and the more devices are transmitted among CH0-CH 39.
Drawings
FIG. 1 is a schematic diagram of the system principle of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a method for determining congestion of a packet in air by using a number of retransmissions of a bluetooth connection, and using two bluetooth controllers for BLE connection, according to BLE spec, using nesn/sn as a basis for whether to retransmit a packet, where nesn/sn is a next expected sequence number nesn (Next Expected Sequence Number) and a sequence sn (Sequence Number) in a bluetooth low energy specification. When BLE is used for data transmission, each data packet is provided with a sequence number in order to ensure the sequence and correctness of the data. These two sequence numbers are the next expected sequence number (nesn) and sequence number (sn) that together help ensure accurate transfer of data between the master and slave devices. The following is a more detailed explanation:
next expected sequence number (Next Expected Sequence Number): the nesn is a value between the master and slave devices that indicates the sequence number of the next packet that the master device expects to receive. For example, if the value of the next expected sequence number is 1, then the sequence number of the next data packet that the master-slave device expects to receive should be 2. If the sequence number of the received data packet does not match the next expected sequence number, the master-slave device can know that there is a data packet loss or error. After each successful reception of a data packet, the master and slave devices update the value of the next expected sequence number to equal the sequence number of the received data packet plus 1 in preparation for receiving the next data packet.
Sequence Number (Sequence Number): sn is the sequence number of the packet actually transmitted. Each transmitted packet has a unique sequence number that ensures the uniqueness and order of the packets during transmission. The master-slave device uses the sequence number to identify the packet and includes it in the header of the packet so that the recipient can identify the sequence number of the packet.
In summary, the next expected sequence number and sequence number are concepts used in bluetooth low energy communications to ensure accurate transmission of data. The next expected sequence number represents the sequence number of the next data packet that the master device expects to receive, and the sequence number is the sequence number of the data packet that was actually transmitted. The combination of these two sequence numbers helps ensure that the data packets are transmitted and received in the correct order.
Briefly, the transmitting end decides whether to retransmit the last transmitted packet according to the next expected sequence number and sequence number. The patent records the data packet which needs to be retransmitted each time and is transmitted last time, and performs accumulation record, and records how many times of retransmission.
The method comprises two Bluetooth controllers, one Bluetooth controller is used as a BLE Master, the other Bluetooth controller is used as a BLE Slave, the two controllers form a Master-Slave mechanism, namely, one thread is the Master and is responsible for triggering tasks, the tasks are completed by one or more Slave threads, generally, the tasks are triggered in a base band of a communication base station and are usually made into messages or are triggered in time, so that the Master thread is mainly responsible for handle message, a message is received, if the messages are simply configured and the like for lightweight processing, the messages are directly processed in the Master thread, the other messages are processed by a plurality of Slave threads, the two Bluetooth controllers are connected with each other by the BLE, the BLE is low-power Bluetooth, and the method is a wireless communication technology and has the advantages of low power consumption, short distance, safety, reliability and the like. Scanning between devices is required before a bluetooth low energy connection is established. The scanning mode is two modes of active scanning and passive scanning. Active scanning refers to initiating a scan from a central device (e.g., a cell phone) to search for surrounding peripheral devices. Passive scanning is when the peripheral device is found by the central device while broadcasting its own information. Information such as a unique identifier (MAC address) of the device, a device name and the like can be obtained through scanning; and (3) connection: connection refers to the establishment of a communication link between the central device and the peripheral devices. The connection comprises the following steps: first, the central device transmits a connection request to the peripheral device. The peripheral device then replies with a connection response and begins to establish a communication link. The central device and the peripheral device then conduct service discovery to determine the services and feature values supported by each other. Finally, the central equipment and the peripheral equipment perform operations such as characteristic value reading, writing, subscription and the like; communication: after the connection is established, data transfer between the central device and the peripheral device is possible. Bluetooth low energy communication employs a "master-slave" architecture, i.e., a central device is responsible for controlling the communication flow, while peripheral devices are passively accepted and respond. In the communication process, the central device sends instructions to the peripheral device, including operations of reading, writing, subscribing and the like. The peripheral equipment performs corresponding processing according to the instruction and returns the result to the central equipment; the low-power consumption Bluetooth connection flow comprises three steps of scanning, connection and communication; through the steps, a stable and efficient communication link can be established between the central equipment and the peripheral equipment, so that data transmission and control operation are realized; in daily life, bluetooth low energy has become the important means of smart machine interconnection, has brought more convenient, intelligent life experience for people. Such as lights, temperature, security, etc.; a user can control and manage the devices by using a smart phone or a voice assistant, so that the comfort and the safety of home life are improved; the method is characterized in that when a Master is connected, chM designates all channels, chM as Channel map columns, after the connection is completed, according to BLE spec, according to whether nesn/sn is used as a basis for retransmitting packets, the Master/Slave records the total number of the retransmitted packets, a TX end is fixed at-60 dbm, TX represents a transmitting end and a transmitting end, and generally refers to the transmission output of serial communication data, a strong signal can be detected, finally a Host inquires the final retransmission quantity through vendor specic cmd and a Bluetooth controller, the added value of the total number of the Master and Slave transmitted packets is used as the degree of interference in air, the larger the value represents the larger the degree of interference, and more devices transmit among CH0-CH 39.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.
Claims (7)
1. A method for judging packet congestion degree in air by using the retransmission quantity of Bluetooth connection is characterized in that: the method comprises the steps that two Bluetooth controllers are included, one Bluetooth controller is used as a BLE Master, the other Bluetooth controller is used as a BLE Slave, the two Bluetooth controllers are used as BLE connection lines, the Master designates all channels at ChM when the connection lines are connected, after the connection lines are connected, according to BLE spec, the number of retransmission packets is recorded according to the number of nesn/sn serving as a basis for whether the packets are to be retransmitted, and the number of nesn/sn is the next expected sequence number nesn and the sequence number sn in the Bluetooth low-power consumption specification.
2. The method of claim 1 wherein the determining the congestion level of the packets in the air is performed by using the number of retransmissions of bluetooth connections, wherein: the ChM is a channel map field.
3. The method of claim 1 wherein the determining the congestion level of the packets in the air is performed by using the number of retransmissions of bluetooth connections, wherein: the TX end fixes the TX Power at-60 dbm and can detect an intense signal.
4. The method of claim 1 wherein the determining the congestion level of the packets in the air is performed by using the number of retransmissions of bluetooth connections, wherein: finally, host inquires the last retransmission quantity through vendor specic cmd and the Bluetooth controller.
5. The method of claim 1 wherein the determining the congestion level of the packets in the air is performed by using the number of retransmissions of bluetooth connections, wherein: the added total number of Master and Slave packets is taken as the interfered degree in the air, and the larger the value is, the larger the interfered degree is, and more devices transmit among CH0-CH 39.
6. The method of claim 1 wherein the determining the congestion level of the packets in the air is performed by using the number of retransmissions of bluetooth connections, wherein: after two bluetooth controllers are used for BLE connection, according to BLE spec, according to the nesn/sn, the basis of whether to retransmit the packet is taken as the basis.
7. The method of claim 1 wherein the determining the congestion level of the packets in the air is performed by using the number of retransmissions of bluetooth connections, wherein: the method can simply evaluate the extent to which BLE CH0-CH39 is affected by other wireless devices.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311240086.0A CN117202250A (en) | 2023-09-25 | 2023-09-25 | Method for judging packet congestion degree in air by using Bluetooth connection retransmission quantity |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311240086.0A CN117202250A (en) | 2023-09-25 | 2023-09-25 | Method for judging packet congestion degree in air by using Bluetooth connection retransmission quantity |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117202250A true CN117202250A (en) | 2023-12-08 |
Family
ID=88997798
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311240086.0A Pending CN117202250A (en) | 2023-09-25 | 2023-09-25 | Method for judging packet congestion degree in air by using Bluetooth connection retransmission quantity |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117202250A (en) |
-
2023
- 2023-09-25 CN CN202311240086.0A patent/CN117202250A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20180159663A1 (en) | Radio transmission apparatus and radio transmission method | |
EP1558000B1 (en) | Transmitter device for controlling data transmission | |
US6768730B1 (en) | System and method for efficiently performing two-way ranging to determine the location of a wireless node in a communications network | |
CN102958190B (en) | Radio communication device | |
RU2008113180A (en) | METHOD FOR TRANSMITTING AND RECEIVING INFORMATION ON RADIO ACCESS IN A WIRELESS MOBILE COMMUNICATION SYSTEM | |
US20070091824A1 (en) | Wireless transmitter initiated communication systems | |
EP2105759A1 (en) | Method and systems for carrying out a two way ranging procedure | |
CA2051212C (en) | Packet data communication system | |
CA2434642A1 (en) | Wireless communication networks for providing remote monitoring of devices | |
WO2008124687A1 (en) | Frequency scanning to form a communication network | |
WO2011134435A1 (en) | Method and apparatus for accessing wireless sensor network | |
RU2011111396A (en) | METHOD AND SYSTEM OF COMMUNICATION BETWEEN WIRELESS DEVICES | |
CN111123191A (en) | Electric energy meter, electric energy meter calibration device, meter calibration stand and electric energy meter calibration method | |
EP1271850A2 (en) | Method for carrying out communications among plural stations | |
TWI674779B (en) | Wireless communication system, communication method and a portable transceiver device | |
EP3254485A1 (en) | Advertisement and connection setup in a wireless communication network | |
CN110267363A (en) | Status information transmitting, deactivated method, site apparatus and terminal device | |
JP2002262339A5 (en) | ||
CN117202250A (en) | Method for judging packet congestion degree in air by using Bluetooth connection retransmission quantity | |
US7411933B2 (en) | Radio communication device, radio communication method, and computer program | |
CN112312329B (en) | Communication method and system based on Bluetooth broadcast, and master device and slave device thereof | |
CN113037642B (en) | Internet of things data transmission method and transmission system | |
CN112055342B (en) | Connection-based Bluetooth communication method, system and main equipment | |
CN114501412B (en) | Bluetooth protocol data packet loss compensation method based on double-ear connection | |
US20210234644A1 (en) | Communication System, Transmitter, Receiver and Communication Method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |