CN111800772A - Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium - Google Patents

Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium Download PDF

Info

Publication number
CN111800772A
CN111800772A CN202010614030.7A CN202010614030A CN111800772A CN 111800772 A CN111800772 A CN 111800772A CN 202010614030 A CN202010614030 A CN 202010614030A CN 111800772 A CN111800772 A CN 111800772A
Authority
CN
China
Prior art keywords
client
att
bluetooth
access code
att information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010614030.7A
Other languages
Chinese (zh)
Inventor
陈柏康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zhongke Lanxun Technology Co ltd
Original Assignee
Shenzhen Zhongke Lanxun Technology 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 Shenzhen Zhongke Lanxun Technology Co ltd filed Critical Shenzhen Zhongke Lanxun Technology Co ltd
Priority to CN202010614030.7A priority Critical patent/CN111800772A/en
Publication of CN111800772A publication Critical patent/CN111800772A/en
Pending legal-status Critical Current

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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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

Abstract

The invention provides a Bluetooth BLE (Low energy) method, a Bluetooth BLE device and a Bluetooth BLE storage medium for reducing ATT (advanced technology Table) information rediscovery, wherein the method comprises the following steps: establishing connection with a client; and acquiring an access code of the client, and acquiring ATT information associated with the client in a local history record according to the access code. After BLE reconnection, need not repeat the polling process, improve bluetooth communication efficiency, reduced the consumption to a certain extent.

Description

Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium
Technical Field
The invention relates to the field of Bluetooth low power consumption, in particular to a Bluetooth BLE information rediscovery method and device for reducing ATT information.
Background
Bluetooth SIG (Bluetooth Special Interest Group, Bluetooth technical alliance) releases BLE (Bluetooth Low Energy) in Bluetooth 4.0 protocol, injects a new vitality for Bluetooth, and in recent years, BLE is applied to bloom all the time and is generally accepted by wide consumers.
After the BLE establishes the connection, the upper layer of the server needs to acquire ATT information of the client to achieve the purposes of acquiring the client state and controlling the client, and this process is realized by polling of the server and the client, and the time consumption is relatively long. When BLE reconnects, all need repeated polling process to acquire ATT information, so not only reduced bluetooth communication efficiency, and improved the consumption.
Disclosure of Invention
Therefore, the invention provides a method, a device and a computer-readable storage medium for reducing the rediscovery of ATT (active packet transport) information by using BLE (Bluetooth Low energy), which do not need to repeat a polling process after BLE is connected back, improve the Bluetooth communication efficiency and reduce the power consumption to a certain extent.
In a first aspect, the present invention provides a bluetooth BLE reduced ATT information rediscovery method, including:
establishing connection with a client;
and acquiring an access code of the client, and acquiring ATT information associated with the client in a local history record according to the access code.
Optionally, when the acquired access code does not exist in the local history, the ATT information of the client is acquired by polling, and the ATT information associated with the client is stored in the local history.
Optionally, the access code is a bluetooth address of the client.
Optionally, the ATT information associated with the client is obtained through the local history record, specifically, the bluetooth address of the client is obtained, and the ATT information associated with the bluetooth address is obtained in the local history record according to the bluetooth address.
Optionally, the ATT information associated with the client is obtained through the local history record, specifically, the access code generated by the ATT information of the client is obtained, and the ATT information associated with the access code is obtained by comparing the access code with the access code in the local history record.
Optionally, the access code is a check code or a hash value generated by the ATT information of the client.
Optionally, the ATT information is an attribute database provided by the client.
In a second aspect, the present invention provides a bluetooth BLE reduced ATT information rediscovery device, comprising:
the Bluetooth module is used for being in communication connection with the client;
the storage module is used for storing ATT information associated with the client;
and the processing module is used for acquiring the ATT information associated with the client from the storage module according to the access code acquired by the Bluetooth module.
Optionally, the processing module is further configured to, when the ATT information associated with the client does not exist in the storage module, acquire the ATT information through the bluetooth module, and store the ATT information in the storage module.
In a third aspect, the invention provides a non-transitory computer readable storage medium for storing computer instructions for causing a computer to perform the above method.
According to the Bluetooth BLE reduction ATT information rediscovery method, the Bluetooth BLE reduction ATT information rediscovery device and the computer readable storage medium, when a server side is connected with a client side for the first time, ATT information of the client side is obtained through polling and stored in a local history record of the server side; when the server side is connected with the client side for the second time or more, the ATT information associated with the client side is acquired in the local historical record through the access code, the polling process during reconnection is reduced, the Bluetooth communication efficiency is improved, and the power consumption is reduced to a certain extent.
Drawings
Figure 1 is a diagram of the steps of the method for reducing the rediscovery of ATT information by bluetooth BLE according to the present invention.
FIG. 2 is a diagram of further steps in the method of FIG. 1.
Figure 3 is a flow chart of a method for reducing the rediscovery of ATT information by bluetooth BLE according to the present invention.
Figure 4 is a structural diagram of the device for reducing the rediscovery of ATT information by Bluetooth BLE provided by the invention.
Detailed Description
The technical solutions in the present invention will be described clearly and completely with reference to the accompanying drawings, and it is to be understood that the described embodiments are only a part of the present invention, and not all of it. Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step, are within the scope of the present invention.
The invention provides a Bluetooth BLE (Low energy) method for reducing ATT (automatic train transfer) information rediscovery, which is applied to a server and shown in figure 1, and comprises the following steps:
establishing connection with a client;
and acquiring an access code of the client, and acquiring ATT information associated with the client in a local history record according to the access code.
The server of the invention can be a mobile terminal with a bluetooth function, such as a mobile phone, a tablet computer, a notebook computer, a palm computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, an intelligent bracelet, a pedometer, etc., and a fixed terminal such as a Digital TV, a desktop computer, etc.; the server can also be digital equipment such as a digital camera, a digital camera and the like; or an electronic wallet and an electronic lock which are formed by the Bluetooth technology, or traditional household appliances such as a microwave oven, a washing machine, a refrigerator, an air conditioner and the like which are embedded into a Bluetooth system; the client may be peripheral devices of electronic devices such as a bluetooth headset, a bluetooth sound box, a mouse, a keyboard, a speaker, and the like, or any one of the above servers.
The ATT information of the present invention refers to an attribute database provided in a client. The attribute database comprises a plurality of charateristics, which form a Service defined by bluetooth BLE, it should be understood that the attribute database is publicly known in the BLE field, and the present invention is not described in detail herein.
The local history record is a record set of the server and each connected client, and the bluetooth address, the device name, the ATT information, the access code and the like of the client are stored in the local history record.
As described in the background art, after the server establishes a connection with the client, the ATT information of the client is acquired by polling, so as to achieve the purposes of acquiring the client state and operating the client.
Further, referring to fig. 2, when the server and the client are connected for the first time, the local history of the server does not exist, and the ATT information associated with the client cannot be acquired through the access code, so the above method further acquires the ATT information of the client by polling when the acquired access code does not exist in the local history, and stores the ATT information associated with the client in the local history. After the server stores the ATT information in the local history record, the server can directly acquire the ATT information through the access code during the secondary or more than secondary connection with the client, thereby reducing the rediscovery of the ATT information and achieving the aim of the invention.
As an example, the access code may be a bluetooth address of the client, and the bluetooth address may be acquired during a connection with the server. The obtaining of the ATT information associated with the client through the local history record specifically includes obtaining a bluetooth address of the client, and obtaining the ATT information associated with the bluetooth address in the local history record according to the bluetooth address.
The Bluetooth address is a Public Bluetooth address, the Public Bluetooth address has uniqueness in the Bluetooth equipment, the Bluetooth addresses of different Bluetooth equipment are different from each other, and ATT information stored according to the Bluetooth address is also distinguished along with the difference of the Bluetooth addresses.
With the continuous update and update of BLE technology, the information security of users is also more and more emphasized, so that an RPA (resolved Private Address) type bluetooth Address is further provided, the RPA type bluetooth Address is not fixed during each connection, and the bluetooth Address of the same client using the BLE RPA may be different during each connection. If the RPA type bluetooth address is used to store the ATT information of the client, it may happen that the ATT information cannot be obtained in the local history record of the server due to the change of the bluetooth address when the same device is connected to the server for two or more times, and the ATT information of the same device is repeatedly stored.
Therefore, when the bluetooth address is an RPA type bluetooth address, an Identity Resolving Key (IRK) and a corresponding Identity address of the client are further obtained, the corresponding RPA can be resolved through the two values, the client Identity is identified, and ATT information associated with the client is obtained in the local history.
In the RPA-type bluetooth address, the IRK needs to be obtained through a pairing procedure between the server and the client, but the client does not necessarily allow the server to obtain its own IRK, so the above-mentioned manner of analyzing the client identity through the IRK has an unrealizable risk.
Viewed from another aspect, whether the bluetooth address of the client is of Public type or RPA type, the attribute database is unchanged without the services change feature, i.e., ATT information is unchanged, and the present invention also aims to obtain ATT information associated with the client, thereby reducing the polling process. Therefore, for the risk brought by the bluetooth address, the access code may be generated by the ATT information of the client, the access code generated by the ATT information has uniqueness, and the access codes generated by different ATT information are different.
For the mode that the access code is generated by the ATT information of the client, the method acquires the ATT information associated with the client through the local history, specifically, acquires the access code generated by the ATT information of the client, and acquires the ATT information associated with the access code by comparing the access code with the access code in the local history.
As an example, the access code may be a check code or hash value generated for ATT information by the client. In the local history record of the server, each ATT information has a unique access code (check code or hash value), different access codes correspond to different ATT information, when the access code acquired from the client is the same as one of the access codes in the local history record, the ATT information associated with the access code can be directly acquired, the polling process with the client is reduced, and the purpose of the invention is achieved.
In the above-described generation of the access code by the ATT information of the client, there is a case: the attribute database of the different bluetooth devices may be the same, i.e. the ATT information is the same. In this case, even if the server and the client are connected for the first time, if the ATT information corresponding to the access code of the client exists in the local history record of the server, the ATT information will be directly acquired. As described above, the present invention aims to obtain ATT information associated with a client, thereby reducing polling procedures, and for different bluetooth devices with the same ATT information, the situation that the server directly obtains the same ATT information of a local history record in the initial connection of the server does not affect the effect of the solution of the present invention. Other than ATT information is not contemplated by the inventive arrangements.
Referring to fig. 3, which shows a flow of the above method, after the server establishes a connection with the client, an access code of the client is obtained, where the access code may be a Public bluetooth address, or a check code or a hash value generated by ATT information of the client; and then inquiring whether a corresponding access code exists in a local history record of the server, if so, indicating that the client is not primarily connected with the server, acquiring ATT information associated with the client, otherwise, indicating that the client is primarily connected with the server, acquiring the ATT information of the client by polling, and storing the ATT information in the local history record.
The present invention also provides a bluetooth BLE apparatus for reducing the discovery of ATT information, and as shown in fig. 4, the apparatus includes:
the Bluetooth module is used for being in communication connection with the client;
the storage module is used for storing ATT information associated with the client;
and the processing module is used for acquiring the ATT information associated with the client from the storage module according to the access code acquired by the Bluetooth module.
Specifically, the processing module is further configured to, when the ATT information associated with the client does not exist in the storage module, acquire the ATT information through the bluetooth module, and store the ATT information in the storage module.
The implementation and principle of the above device are similar to those of the above method, and specific reference is made to the above method contents, which are not described herein again.
Based on the method for reducing the redelivery of the ATT information by the bluetooth BLE, the invention further provides a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method. The related description can be understood according to the related description and effects of the above contents, and will not be described in detail herein.
In the present invention, a computer readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
While there have been shown and described and pointed out fundamental novel features of the invention as applied to a preferred embodiment thereof, it will be understood that various omissions and substitutions and changes in the form and details of the devices and methods described may be made by those skilled in the art without departing from the spirit of the invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A bluetooth BLE reduced ATT information rediscovery method, the method comprising:
establishing connection with a client;
and acquiring an access code of the client, and acquiring ATT information associated with the client in a local history record according to the access code.
2. The method of claim 1, wherein the client ATT information is obtained by polling when the obtained access code is not present in the local history, and storing the ATT information associated with the client in the local history.
3. The method of claim 2, the access code being a bluetooth address of the client.
4. The method as claimed in claim 1, wherein the ATT information associated with the client is obtained through a local history, specifically, a bluetooth address of the client is obtained, and the ATT information associated with the bluetooth address is obtained in the local history according to the bluetooth address.
5. The method as claimed in claim 1, wherein the ATT information associated with the client is obtained through the local history, specifically, an access code generated by the ATT information of the client is obtained, and the ATT information associated with the access code is obtained by comparing with the access code in the local history.
6. A method according to claim 4 or 5, wherein the access code is a check code or a hash value generated from the client's ATT information.
7. The method of claim 1, wherein the ATT information is an attribute database provided to the client.
8. A bluetooth BLE reduced ATT information rediscovery device, the device comprising:
the Bluetooth module is used for being in communication connection with the client;
the storage module is used for storing ATT information associated with the client;
and the processing module is used for acquiring the ATT information associated with the client from the storage module according to the access code acquired by the Bluetooth module.
9. The apparatus of claim 8, wherein the processing module is further configured to, when the ATT information associated with the client does not exist in the storage module, obtain the ATT information through the bluetooth module and store the ATT information in the storage module.
10. A non-transitory computer-readable storage medium for storing computer instructions for causing a computer to perform the method of any one of claims 1-7.
CN202010614030.7A 2020-06-30 2020-06-30 Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium Pending CN111800772A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010614030.7A CN111800772A (en) 2020-06-30 2020-06-30 Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010614030.7A CN111800772A (en) 2020-06-30 2020-06-30 Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium

Publications (1)

Publication Number Publication Date
CN111800772A true CN111800772A (en) 2020-10-20

Family

ID=72810827

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010614030.7A Pending CN111800772A (en) 2020-06-30 2020-06-30 Bluetooth BLE (Low energy) method and device for reducing ATT (advanced technology attachment) information rediscovery and storage medium

Country Status (1)

Country Link
CN (1) CN111800772A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
CN105792109A (en) * 2016-03-26 2016-07-20 上海斐讯数据通信技术有限公司 Bluetooth equipment connection processing method and system based on Linux system
WO2017164618A2 (en) * 2016-03-21 2017-09-28 엘지전자(주) Method and apparatus for controlling device by using bluetooth technology
CN107835238A (en) * 2017-10-31 2018-03-23 乐鑫信息科技(上海)有限公司 A kind of method for solving attribute database and repeating to find
CN108769973A (en) * 2018-07-19 2018-11-06 深圳芯之联科技有限公司 A kind of method for secret protection of bluetooth equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104540090A (en) * 2014-12-25 2015-04-22 惠州Tcl移动通信有限公司 Networking interconnection method and system based on low-power-consumption Bluetooth
WO2017164618A2 (en) * 2016-03-21 2017-09-28 엘지전자(주) Method and apparatus for controlling device by using bluetooth technology
CN105792109A (en) * 2016-03-26 2016-07-20 上海斐讯数据通信技术有限公司 Bluetooth equipment connection processing method and system based on Linux system
CN107835238A (en) * 2017-10-31 2018-03-23 乐鑫信息科技(上海)有限公司 A kind of method for solving attribute database and repeating to find
CN108769973A (en) * 2018-07-19 2018-11-06 深圳芯之联科技有限公司 A kind of method for secret protection of bluetooth equipment

Similar Documents

Publication Publication Date Title
US10212217B2 (en) Method and apparatus for data transmission in a distributed storage system
CN110266480B (en) Data transmission method, device and storage medium
CN111585760B (en) Key retrieving method, device, terminal and readable medium
US8869252B2 (en) Methods, apparatuses, and computer program products for bootstrapping device and user authentication
EP3160115A1 (en) Identity identification method and apparatus and communication terminal
KR20110008272A (en) Methods, apparatuses, and computer program products for providing a single service sign-on
KR20150026650A (en) Apparatus and method for interworking among electronic devices
US9992188B2 (en) Methods and systems for single sign-on while protecting user privacy
CN105956463B (en) A kind of apparatus control method, device and terminal
CN108040355B (en) Network access method and system
CN105279209B (en) Method and system for establishing wireless link and electronic device
KR20150142218A (en) Electronic device and method for connecting to network
CN104580177A (en) Resource supplying method, device and system
CN104750718B (en) The searching method and equipment of a kind of data information
CN108235823A (en) Agency is without roaming cellular
CN109219028A (en) Equivalent device Bluetooth communication method and device based on cloud
CN107872315B (en) Data processing method and intelligent terminal
CN113613197A (en) Vehicle and digital key pairing method and device
WO2012129684A1 (en) Transforming http requests into web services trust messages for security processing
Huang et al. Human interactive secure ID management in body sensor networks
CN104980420A (en) Business processing method, device, terminal and server
WO2020042973A1 (en) Data processing method for security authentication, server, client device, and medium
CN105101203A (en) Method and device for processing information of wireless local area network
CN110139274A (en) A kind of method for authenticating of bluetooth equipment, electronic equipment and can storage medium
CN109218994A (en) Equivalent device Bluetooth communication method and device based on gateway

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