CN113453200B - Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE - Google Patents
Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE Download PDFInfo
- Publication number
- CN113453200B CN113453200B CN202010204819.5A CN202010204819A CN113453200B CN 113453200 B CN113453200 B CN 113453200B CN 202010204819 A CN202010204819 A CN 202010204819A CN 113453200 B CN113453200 B CN 113453200B
- Authority
- CN
- China
- Prior art keywords
- receiving end
- passive
- ble
- broadcast packet
- scanning
- 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
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/12—Setup of transport tunnels
-
- 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
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a scanning request confirmation method for carrying out rapid small data transmission based on BLE, which comprises the following steps of S1, carrying small data to be transmitted in a BLE broadcast packet. May be transmitted in plaintext or ciphertext; s2, the passive receiver is in a passive scanning state at ordinary times, namely, does not send a scanning request, and immediately switches to an active scanning mode after receiving a first broadcast packet meeting the requirements, and immediately sends the scanning request at the moment, or sends the scanning request when receiving the next broadcast packet meeting the requirements. The invention is secondarily developed on the basis of the Bluetooth 4.0BLE protocol, and a small amount of confirmation or reply data is transmitted by customizing the MAC address of the passive receiver during active scanning in a small amount of data broadcast transmission and scanning request confirmation mode, so that the reliable transmission of a small amount of data among devices in extremely short time is realized, the data transmission delay can be well controlled, and the occupancy rate of the air bandwidth is kept low.
Description
Technical Field
The invention relates to the technical field of data transmission, in particular to a scanning request confirmation method for carrying out rapid small-quantity data transmission based on BLE.
Background
With respect to the development of the present bluetooth technology, the bluetooth technology has been popularized in all smart phones, and in the fields of smart home, internet of things, etc., it is often required to rapidly transmit a small amount of data, and meanwhile, the data transmission needs to maintain high reliability.
In a conventional bluetooth data communication mode, two bluetooth devices are required to establish a connection, and a special data channel is set. The data is then transmitted over the newly established data channel. This approach requires a connection procedure, has a relatively large number of steps, and therefore, the first communication delay is relatively large. Because of the more steps, the corresponding energy consumption will be larger. For a single bluetooth device, the number of devices it can connect to at the same time is limited, typically only a few.
Disclosure of Invention
Based on the technical problems in the background art, the invention provides a scanning request confirmation method for carrying out rapid small-amount data transmission based on BLE.
The invention provides a method for confirming a scanning request for rapid small data transmission based on BLE, which comprises the following steps:
s1: with a small amount of data that needs to be transmitted in the BLE broadcast packet. May be transmitted in plaintext or ciphertext;
s2: the passive receiver is in a passive scanning state at ordinary times, namely, does not send a scanning request, immediately switches to an active scanning mode after receiving a first broadcast packet meeting the requirements, and immediately sends the scanning request at the moment, or sends the scanning request when receiving the next broadcast packet; broadcasting data packets which do not meet the requirements and not sending a scanning request;
s3: adopting a scanning request defined by BLE protocol as communication confirmation;
s4: setting a retry number limit or a total transmission timeout time limit;
s5: small amounts of reply data may be transmitted by tailoring the MAC address at which the passive recipient actively scans.
As a further scheme in the invention, the device further comprises two BLE devices, wherein one of the BLE devices is an active transmitting end, and the other BLE device is a passive receiving end.
As a further scheme in the present invention, the active sending end BLE device records any one of the ID, mac address and other identifier of the passive receiving end BLE device.
As a further scheme in the invention, the standby of the transmitting end equipment BLE equipment is in a low-power consumption standby state, and the standby of the passive receiving end BLE equipment is in a broadcast packet scanning state.
The beneficial effects of the invention are as follows: the invention carries out secondary development on the basis of Bluetooth 4.0BLE protocol, carries out communication confirmation in a mode of transmitting a small amount of data and scanning request by broadcasting packets, transmits a small amount of reply data by customizing the MAC address of a passive receiver during active scanning, realizes the reliable transmission of a small amount of data among devices in extremely short time, can excellently control the data transmission delay and keeps the occupancy rate of a lower air bandwidth.
Drawings
Fig. 1 is a connection transmission flow chart of a scan request confirmation method for performing rapid small data transmission based on BLE according to 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.
Referring to fig. 1, a scan request acknowledgement method for fast small data transmission based on BLE includes the steps of:
s1: the transmitting terminal equipment is in a low-power consumption standby state at ordinary times. The passive receiving end is in the broadcast packet scanning state at ordinary times. When the active transmitting end needs to transmit data, the BLE broadcast data packet is firstly broadcast to the air. The broadcast data packet comprises the address or other identification data of the target equipment (the passive receiving end) and a small amount of data to be transmitted; the target address and the data to be transmitted can be original text or ciphertext, if ciphertext transmission is adopted, the information such as ID of the passive receiving end can be used for encryption by combining other information which is negotiated or set with the receiving end in advance as a secret key. This broadcast packet is identified as a permissible "scan request";
s2: if the legal scanning request is not received after the broadcast data packet is sent, the receiver is considered to not receive the data packet, and the broadcast data packet is retransmitted after a certain delay. Until the preset maximum communication time or retry number is exceeded;
s3: the passive receiving end is in a passive scanning state (no scanning request is sent out) at ordinary times. After the data packet is scanned, whether the data packet is received or not is judged according to the content of the data packet. The data packet itself being the intended recipient is also referred to in this document as a satisfactory data packet. This determination may be performed by the receiver MAC address determination or other pre-negotiated or set determination rules. If the data packet data adopts ciphertext transmission, decryption operation is needed before judgment. If the decryption is successful, the method judges that the receiver is the appointed receiver. If the decryption is unsuccessful, or the ID judgment is not compliant, or other judgment rules are not compliant, the method considers itself not to be the designated receiver. At this time, the data packet should be discarded, and no other actions are performed, and the scanning state is returned;
s4: when the passive receiver judges that the receiver is the appointed receiver, the passive receiver can be switched to the active scanning state. And sets a timeout time. If the operation speed of the passive receiver is fast enough, the receiver can immediately judge whether the receiver is an appointed receiver or not when receiving the first broadcast packet meeting the requirements, and if the receiver is judged to be the appointed receiver, the scanning request is immediately sent; if the scan request cannot be sent on the first packet because of computational power limitations or other limitations, the scan request may be sent on the next BLE broadcast packet from the sender. The issuing of the scan request is a standard bluetooth operation. After receiving the broadcast data packet, the device actively scanning sends out a scanning request within a specified time window by a BLE protocol stack; if the user is not the designated receiver, the scanning request is not sent out.
S5: the active sending end receives the scanning request (scan request), and verifies the scanning request by ID, MAC or other pre-negotiated or set verification modes, and the verification request party is the target equipment of the data transmitted by the active sending end. The passive receiving end is considered to acquire the data to be transmitted, and the active sending end also confirms that the data has been successfully transmitted. The active sender may stop broadcasting data at this time. The communication process is completed;
s6: and if the passive receiver successfully sends out the scanning request or the preset scanning request timeout time is reached, stopping the active scanning and recovering the passive scanning state.
The invention further comprises two BLE devices, wherein one BLE device is an active sending end, and the other BLE device is a passive receiving end. The active sending end BLE equipment records any one of the data of the ID, the mac address and other identifications of the passive receiving end BLE equipment. The standby of the transmitting end device BLE device is in a low power consumption standby state, and the standby of the passive receiving end BLE device is in a broadcast packet scanning state.
In the invention, when the passive receiving party switches to active scanning, partial reply data can be embedded by customizing the mac address of the local machine. This embedding is pre-negotiated or designed with the active sender. This customized MAC address includes certain identification information and reply data. May be ciphertext or plaintext. For example, 3 bytes are used as identification/check words, and the other 3 bytes are used as reply data.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.
Claims (4)
1. A method for confirming a scan request for fast small data transmission based on BLE, comprising the steps of:
s1: the BLE broadcast packet contains a small amount of data to be transmitted, the small amount of data can be transmitted in a plaintext or ciphertext, the active transmitting end is in a low-power consumption standby state at ordinary times, when the active transmitting end needs to transmit the data, the BLE broadcast packet is firstly broadcasted to the air, and the BLE broadcast packet comprises the address of the target equipment and the small amount of data to be transmitted; the target equipment address and a small amount of data to be transmitted can be original text or ciphertext, and if ciphertext transmission is adopted, the ID information of the passive receiving end can be used as a secret key for encryption;
s2: the passive receiving end is in a passive scanning state at ordinary times, namely, a scanning request is not sent, after receiving a first BLE broadcast packet meeting the requirements, the passive receiving end immediately switches to an active scanning mode, and at the moment, the scanning request is immediately sent out, or the scanning request is sent out when receiving the next BLE broadcast packet; the passive receiving end does not send a scanning request to the BLE broadcast packet which does not meet the requirements; if the active transmitting end does not receive the scanning request of the passive receiving end after the BLE broadcast packet is transmitted, the passive receiving end is considered to not receive the BLE broadcast packet, and the BLE broadcast packet is retransmitted after a certain delay until the preset maximum communication time or retry times are exceeded;
after receiving a BLE broadcast packet, a passive receiving end firstly judges whether the receiving end is a receiving end of the BLE broadcast packet or not according to the content of the BLE broadcast packet, and the receiving end is a BLE broadcast packet appointed by the passive receiving end, namely the BLE broadcast packet meeting the requirement, according to the content of the BLE broadcast packet; if the data of the BLE broadcast packet adopts ciphertext transmission, the passive receiving end also needs to carry out decryption operation before judging, and if the decryption is successful, the passive receiving end which is designated by the BLE broadcast packet is judged; if the decryption is unsuccessful or the MAC address is judged to be inconsistent, the passive receiving end considers that the receiving end is not the appointed passive receiving end of the BLE broadcast packet, and the passive receiving end discards the BLE broadcast packet at the moment, does not do other actions and returns to the passive scanning state;
the method comprises the steps that retry frequency limit or total transmission timeout time limit is set, when a passive receiving end judges that the passive receiving end is a designated passive receiving end, the passive receiving end is switched to an active scanning state, and timeout time is set; if the operation speed of the passive receiving end is fast enough, the method can judge whether the receiving end is the appointed passive receiving end or not in real time when the first BLE broadcast packet meeting the requirements is received, and if the receiving end is judged to be the appointed passive receiving end, the scanning request is sent in real time; if the passive receiving end cannot send a scanning request when receiving the first BLE broadcast packet meeting the requirements because of the limitation of the operation capability, the passive receiving end can send the scanning request when receiving the next BLE broadcast packet meeting the requirements from the active sending end;
s3: a small amount of reply data can be transmitted by customizing the MAC address of the passive receiving end during active scanning, the active sending end receives a scanning request, the scanning request is verified in an MAC verification mode, when the confirmation request party designates the passive receiving end by the BLE broadcast packet, the passive receiving end is considered to acquire the data to be transmitted, the active sending end also confirms that the data is successfully transmitted, the active sending end can stop broadcasting the data at the moment, and the communication process is completed; and if the passive receiving end successfully sends out the scanning request or the preset scanning request timeout time is reached, stopping the active scanning and recovering the passive scanning state.
2. The method for confirming a scan request for fast small data transmission based on BLE according to claim 1, wherein the active transmitting end and the passive receiving end each include a BLE device.
3. The method for confirming a scan request for fast small data transmission based on BLE according to claim 2, wherein the BLE device of the active transmitting end records the MAC address data of the BLE device of the passive receiving end.
4. The method for confirming a scan request based on BLE for rapid small data transmission according to claim 2, wherein the BLE device of the active transmitting end is in a low power consumption standby state when in standby, and the BLE device of the passive receiving end is in a passive scanning state when in standby.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010204819.5A CN113453200B (en) | 2020-03-25 | 2020-03-25 | Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010204819.5A CN113453200B (en) | 2020-03-25 | 2020-03-25 | Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113453200A CN113453200A (en) | 2021-09-28 |
CN113453200B true CN113453200B (en) | 2023-04-25 |
Family
ID=77806306
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010204819.5A Active CN113453200B (en) | 2020-03-25 | 2020-03-25 | Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113453200B (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105451184A (en) * | 2014-09-30 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Wireless communication method and device |
CN109327808A (en) * | 2017-07-31 | 2019-02-12 | 华为技术有限公司 | A kind of method and apparatus transmitting data |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI572156B (en) * | 2015-10-02 | 2017-02-21 | 廣達電腦股份有限公司 | Transmission system using bluetooth low energy technique |
-
2020
- 2020-03-25 CN CN202010204819.5A patent/CN113453200B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105451184A (en) * | 2014-09-30 | 2016-03-30 | 阿里巴巴集团控股有限公司 | Wireless communication method and device |
CN109327808A (en) * | 2017-07-31 | 2019-02-12 | 华为技术有限公司 | A kind of method and apparatus transmitting data |
Also Published As
Publication number | Publication date |
---|---|
CN113453200A (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7046642B1 (en) | Dynamic configuration of radio link protocol in a telecommunications system | |
US9565007B2 (en) | Method of receiving a point-to-multipoint service in a wireless communication system | |
US20080016248A1 (en) | Method and apparatus for time synchronization of parameters | |
JP5295096B2 (en) | Retransmission request delay in multi-carrier systems | |
WO2004088879A1 (en) | Error processing apparatus and method for wireless communication system | |
RU2701523C1 (en) | System and method of providing synchronization in transmissions in a mode without connection | |
CN103825905A (en) | Method and device for multimedia data exchange | |
CN113453158B (en) | Connection and reverse broadcast confirmation method for carrying out rapid small-amount data transmission based on BLE | |
US7433699B2 (en) | Information processing system and information processing method | |
EP1944938A1 (en) | Methods and apparatuses for performing integrity protection for a concatenated message | |
US9148864B2 (en) | System and method for switching mobile station identification in wireless communication system | |
CN113453200B (en) | Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE | |
CN101415219A (en) | Method, system and apparatus for processing data | |
CN101409611B (en) | Communication method for IP scheduling | |
CN113573252B (en) | Data transmission method, system, chip, electronic device and storage medium | |
KR100575997B1 (en) | Method and system of transmitting guide message for mms receipt | |
US20140177575A1 (en) | Method for establishing an application session, device and corresponding notification | |
US20050144260A1 (en) | Method for setting up point-to-point protocol (PPP) connection between mobile communication terminal and base station | |
JP2010056942A (en) | Wireless communication apparatus and wireless communication method | |
KR20070108038A (en) | Authentication method using privacy key management protocol in wireless broadband internet system and thereof system | |
JP4943071B2 (en) | Wireless communication method | |
US20090175257A1 (en) | Method and device for dynamically changing preamble duration | |
US20060053484A1 (en) | Authentication system and method thereof for dial-up networking connection via terminal | |
KR20060039556A (en) | Method and system for transmitting packet data by using plural number channel automatic repeat request for use in portable internet network | |
US20060104239A1 (en) | Apparatus and method for updating packet data session parameters by PDSN in mobile communications system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |