CN113453200A - Scanning request confirmation method for carrying out rapid small-amount data transmission based on BLE - Google Patents

Scanning request confirmation method for carrying out rapid small-amount data transmission based on BLE Download PDF

Info

Publication number
CN113453200A
CN113453200A CN202010204819.5A CN202010204819A CN113453200A CN 113453200 A CN113453200 A CN 113453200A CN 202010204819 A CN202010204819 A CN 202010204819A CN 113453200 A CN113453200 A CN 113453200A
Authority
CN
China
Prior art keywords
data
ble
scanning
scanning request
passive
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.)
Granted
Application number
CN202010204819.5A
Other languages
Chinese (zh)
Other versions
CN113453200B (en
Inventor
梁涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Botong Communication Co ltd
Original Assignee
Guangzhou Botong Communication Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Botong Communication Co ltd filed Critical Guangzhou Botong Communication Co ltd
Priority to CN202010204819.5A priority Critical patent/CN113453200B/en
Publication of CN113453200A publication Critical patent/CN113453200A/en
Application granted granted Critical
Publication of CN113453200B publication Critical patent/CN113453200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/12Setup of transport tunnels
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing 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-amount data transmission based on BLE, which comprises the following step of S1, wherein a small amount of data needing to be transmitted is contained in a BLE broadcast packet. Plaintext or ciphertext can be used for transmission; s2, the passive receiver is in passive scanning state at ordinary times, that is, it will not send scanning request, and after receiving the first broadcast packet meeting the requirement, it immediately switches to active scanning mode, and at this time, it will immediately send scanning request, or send scanning request when receiving the next broadcast packet meeting the requirement. The invention is developed for the second time on the basis of the Bluetooth 4.0BLE protocol, transmits a small amount of confirmation or reply data by customizing the MAC address when a passive receiver actively scans through a small amount of data broadcast transmission and scanning request confirmation mode, realizes the reliable transmission of a small amount of data among devices in a very short time, can excellently control the data transmission delay, and keeps the low occupancy rate of air bandwidth.

Description

Scanning request confirmation method for carrying out rapid small-amount data transmission based on BLE
Technical Field
The invention relates to the technical field of data transmission, in particular to a scanning request confirmation method for rapid small-amount data transmission based on BLE.
Background
With the development of the bluetooth technology, all smart phones are popularized, and in the fields of smart homes, internet of things and the like, a small amount of data needs to be transmitted quickly, and meanwhile, the data transmission needs to keep high reliability.
In a conventional bluetooth data communication mode, two bluetooth devices are required to establish connection and a special data channel is set. The data is then transmitted over the newly established data channel. This method requires a connection process with a large number of steps, and therefore, the first communication delay is large. Because of the large number of steps, the corresponding energy consumption is also large. For a single bluetooth device, the number of devices it can connect to simultaneously is limited, usually only a few.
Disclosure of Invention
Based on the technical problems in the background art, the invention provides a scanning request confirmation method for performing rapid small-amount data transmission based on BLE.
The invention provides a scanning request confirmation method for carrying out rapid small-amount data transmission based on BLE, which comprises the following steps:
s1: with a small amount of data in BLE broadcast packets that needs to be transmitted. Plaintext or ciphertext can be used for transmission;
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 requirement, and at the moment, immediately sends the scanning request or sends the scanning request when receiving the next broadcast packet; not sending out a scanning request to the data packet broadcast which does not meet the requirement;
s3: adopting a scanning request defined by a BLE protocol as a communication confirmation;
s4: setting a retry number limit or a total transmission timeout time limit;
s5: a small amount of reply data can be transmitted by customizing the MAC address when the passive recipient actively scans.
As a further scheme in the present invention, the transceiver further includes 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 data of any one of the ID, mac address, and other identifier of the passive receiving end BLE device is recorded in the active transmitting end BLE device.
As a further scheme in the present invention, the sending-end BLE device is in a low-power standby state, and the passive receiving-end BLE device 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 the Bluetooth 4.0BLE protocol, carries out communication confirmation in a mode of transmitting a small amount of data and scanning a request through a broadcast packet, transmits a small amount of reply data by customizing the MAC address when a passive receiver actively scans, realizes reliable transmission of a small amount of data among devices in a very short time, can excellently control data transmission delay, and keeps low occupancy rate of air bandwidth.
Drawings
Fig. 1 is a connection transmission flowchart of a scan request acknowledgement method for performing fast small data transmission based on BLE according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Referring to fig. 1, a scan request acknowledgement method for fast small data transmission based on BLE includes the following steps:
s1: the sending end device 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 sending end needs to send 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 (passive receiving end) and a small amount of data to be transmitted; the target address and the data to be transmitted can be both original text or ciphertext, and if ciphertext transmission is adopted, information such as ID of a passive receiving terminal can be used and then combined with other information which is negotiated with the receiving terminal in advance or set to be used as a secret key for encryption. This broadcast packet is identified as allowing a "scan request";
s2: if the legal scanning request in the subsequent steps is not received after the broadcast data packet is sent, the receiver is considered not to receive the data packet, and the broadcast data packet is sent again after a certain delay. Until the preset maximum communication time or retry times are exceeded;
s3: the passive receiving end is in a passive scanning state (does not send out a scanning request) at ordinary times. After the data packet is scanned, whether the data packet is a receiver of the data packet or not can be judged according to the content of the data packet. A data packet that is itself an intended recipient is also referred to in this document as a satisfactory data packet. The judgment mode can be judged through the MAC address of the receiver or other preset or preset judgment rules. If the data packet data is transmitted by using the ciphertext, decryption operation is required before judgment. If the decryption is successful, the terminal judges that the terminal is the designated receiver. If the decryption is unsuccessful, or the ID judgment is not met, or other judgment rules are not met, the receiver considers that the receiver is not the designated receiver. At this time, the data packet should be discarded, no other action is performed, and the scanning state is returned;
s4: when the passive receiver judges that the passive receiver is the designated receiver, the passive receiver is switched to an active scanning state. And sets a timeout time. If the operation speed of the passive receiver is fast enough, whether the passive receiver is the appointed receiver can be immediately judged when the first broadcast packet meeting the requirement is received, and if the passive receiver is judged to be the appointed receiver, a scanning request (scan request) is immediately sent; if the scan request cannot be sent at the first data packet due to the limitations of computing power or other limitations, the scan request may be sent at the next BLE broadcast packet from the sender. Issuing the scan request is a standard bluetooth operation. The active scanning equipment sends out a scanning request in a specified time window by a BLE protocol stack after receiving the broadcast data packet; if the receiver is not the designated receiver, the scanning request is not sent out.
S5: the active sending end receives a scanning request (scan request), and the scanning request is verified through ID, MAC or other preset verification modes, so that the requesting party is confirmed to be the target equipment of the data transmitted by the requesting party. The passive receiving end is considered to obtain the data to be transmitted, and the active sending end also confirms that the data is 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 the scanning request or reaches the preset scanning request timeout time, 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. Any data of the ID, the mac address and other identifications of the BLE device at the passive receiving end is recorded in the BLE device at the active sending end. The standby of the sending end BLE device is in a low-power 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 receiver is switched to the active scanning, partial reply data can be embedded by customizing the mac address of the local receiver. This embedding is either pre-negotiated or designed with the active sender. The customized MAC address includes certain identification information and reply data. Either ciphertext or plaintext. For example, 3 bytes are used as the identification word/check word, and the other 3 bytes are used as the reply data.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art should be considered to be within the technical scope of the present invention, and the technical solutions and the inventive concepts thereof according to the present invention should be equivalent or changed within the scope of the present invention.

Claims (4)

1. A scanning request confirmation method for rapid small data transmission based on BLE is characterized by comprising the following steps:
s1: with a small amount of data in BLE broadcast packets that needs to be transmitted. Plaintext or ciphertext can be used for transmission;
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 requirement, and immediately sends the scanning request at the moment, or sends the scanning request when receiving a next broadcast packet meeting the requirement, and does not send the scanning request to the broadcast of a data packet not meeting the requirement;
s3: adopting a scanning request defined by a BLE protocol as a communication confirmation;
s4: setting a retry number limit or a total transmission timeout time limit;
s5: a small amount of reply data can be transmitted by customizing the MAC address when the passive recipient actively scans.
2. The method according to claim 1, wherein the method further comprises two BLE devices, wherein one BLE device is an active transmitting end, and the other BLE device is a passive receiving end.
3. The method according to claim 2, wherein the data in any one of the ID, mac address and other identifier of the BLE device on the passive receiving end is recorded in the BLE device on the active transmitting end.
4. The method according to claim 2, wherein the sending-end BLE device is in a low-power standby state during standby, and the passive receiving-end BLE device is in a broadcast packet scanning state during standby.
CN202010204819.5A 2020-03-25 2020-03-25 Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE Active CN113453200B (en)

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 true CN113453200A (en) 2021-09-28
CN113453200B 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451184A (en) * 2014-09-30 2016-03-30 阿里巴巴集团控股有限公司 Wireless communication method and device
US20170099564A1 (en) * 2015-10-02 2017-04-06 Quanta Computer Inc. Transmission system using bluetooth low energy technique
CN109327808A (en) * 2017-07-31 2019-02-12 华为技术有限公司 A kind of method and apparatus transmitting data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105451184A (en) * 2014-09-30 2016-03-30 阿里巴巴集团控股有限公司 Wireless communication method and device
US20170099564A1 (en) * 2015-10-02 2017-04-06 Quanta Computer Inc. Transmission system using bluetooth low energy technique
CN109327808A (en) * 2017-07-31 2019-02-12 华为技术有限公司 A kind of method and apparatus transmitting data

Also Published As

Publication number Publication date
CN113453200B (en) 2023-04-25

Similar Documents

Publication Publication Date Title
RU2384962C2 (en) Control information transmission in mobile communication system
US9565007B2 (en) Method of receiving a point-to-multipoint service in a wireless communication system
EP1608113A1 (en) Message transmission during packet service termination
US20080016248A1 (en) Method and apparatus for time synchronization of parameters
JP2009506623A (en) Message communication in mobile communication systems
RU2701523C1 (en) System and method of providing synchronization in transmissions in a mode without connection
US9942092B2 (en) Method and an apparatus for controlling messages between host and controller
CN103825905A (en) Method and device for multimedia data exchange
WO2009021419A1 (en) A random access method for cellular radio communication system
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
CN113453158B (en) Connection and reverse broadcast confirmation method for carrying out rapid small-amount data transmission based on BLE
CN113453200B (en) Scan request confirmation method for carrying out rapid small-amount data transmission based on BLE
KR100575997B1 (en) Method and system of transmitting guide message for mms receipt
US20140177575A1 (en) Method for establishing an application session, device and corresponding notification
WO2017177440A1 (en) State indication transmission apparatus and method, and communication system
US20090175257A1 (en) Method and device for dynamically changing preamble duration
US20060053484A1 (en) Authentication system and method thereof for dial-up networking connection via terminal
JP3730228B2 (en) Protocol conversion apparatus and protocol conversion method
US20060104239A1 (en) Apparatus and method for updating packet data session parameters by PDSN in mobile communications system
US11291057B2 (en) Method and system for wireless communication, in particular via Bluetooth® protocol, between a main communication device and one or more peripheral communication devices
KR20060039556A (en) Method and system for transmitting packet data by using plural number channel automatic repeat request for use in portable internet network
KR101657312B1 (en) Method and apparatus for control message transmitting/receiving in wireless communication system
US20240163906A1 (en) Communication method and apparatus
WO2022151177A1 (en) Methods and apparatuses for multicast and broadcast services

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