WO2020087734A1 - 一种蓝牙连接的处理方法、设备及存储介质 - Google Patents
一种蓝牙连接的处理方法、设备及存储介质 Download PDFInfo
- Publication number
- WO2020087734A1 WO2020087734A1 PCT/CN2018/124164 CN2018124164W WO2020087734A1 WO 2020087734 A1 WO2020087734 A1 WO 2020087734A1 CN 2018124164 W CN2018124164 W CN 2018124164W WO 2020087734 A1 WO2020087734 A1 WO 2020087734A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- bluetooth
- terminal device
- information
- preset
- connection
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/20—Manipulation of established connections
- H04W76/25—Maintenance of established connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
-
- 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
Definitions
- the present application relates to the field of communication technology, and in particular, to a Bluetooth connection processing method, device, and storage medium.
- Bluetooth is a wireless technology standard that enables short-range data exchange between fixed devices, mobile devices, and building personal area networks. Among them, devices that meet the standards of the Bluetooth Technology Alliance can be used as Bluetooth devices.
- the Bluetooth device will broadcast its own Bluetooth address.
- a malicious connection can establish a Bluetooth connection with the Bluetooth device according to the Bluetooth address of the Bluetooth device, and even send dangerous data to the Bluetooth device. information security.
- Various aspects of the present application provide a processing method, device, and storage medium for Bluetooth connection to improve the information security of a Bluetooth device.
- An embodiment of the present application provides a method for processing a Bluetooth connection, which is applicable to a Bluetooth device and includes:
- the monitored information sent by the terminal device is compared with the preset information
- the Bluetooth connection with the terminal device is maintained.
- the embodiments of the present application also provide a method for processing a Bluetooth connection, which is suitable for a terminal device and includes:
- An embodiment of the present application also provides a Bluetooth device, including a memory, a processor, and a communication component;
- the memory is used to store one or more computer instructions
- the processor coupled to the memory, is used to execute one or more computer instructions for:
- the monitored information sent by the terminal device is compared with the preset information
- the Bluetooth connection with the terminal device is maintained.
- An embodiment of the present application further provides a terminal device, including a memory, a processor, and a communication component;
- the memory is used to store one or more computer instructions
- the processor coupled to the memory, is used to execute one or more computer instructions for:
- Bluetooth device After establishing a Bluetooth connection with a Bluetooth device, within a preset time, generate information that matches the preset information in the Bluetooth device, and send the information to the Bluetooth device through the communication component, so that all After monitoring the information, the Bluetooth device continues to maintain a Bluetooth connection with the terminal device.
- An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, characterized in that when the computer instructions are executed by one or more processors, the one or more processors are caused to perform the above-described Bluetooth performed by the Bluetooth device How to handle the connection.
- An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, characterized in that when the computer instructions are executed by one or more processors, the one or more processors are caused to perform the above-mentioned Bluetooth executed by the terminal device How to handle the connection.
- the terminal device needs to send information matching the preset information to the Bluetooth device within a preset time; the Bluetooth device may listen to the terminal device for sending within the preset time Information, when the information sent by the terminal device is monitored within a preset time, it is discriminated whether the information sent by the terminal device meets the condition based on the stored preset information, and when the information sent by the terminal device meets the condition, the terminal device is determined to be legal
- the Bluetooth connection between the device and the terminal device is safe, and then the Bluetooth connection between the device and the terminal device is maintained. According to this, normal Bluetooth communication can be performed between the Bluetooth device and the terminal device.
- the Bluetooth device after the Bluetooth device establishes a Bluetooth connection with the terminal device, it can identify whether the current Bluetooth connection is a malicious connection, and when it is determined that the current connection is a non-malicious connection, allow Bluetooth communication with the terminal device.
- the information security of the Bluetooth device is ensured, and the security of the Bluetooth device can be effectively improved.
- FIG. 1 is a schematic structural diagram of a Bluetooth connection processing system provided by an embodiment of this application.
- FIG. 2 is a schematic flowchart of a method for processing a Bluetooth connection according to another embodiment of this application;
- FIG. 3 is a schematic flowchart of another method for processing a Bluetooth connection according to another embodiment of this application.
- FIG. 4 is a schematic flowchart of a method for processing a Bluetooth connection according to another embodiment of this application.
- FIG. 5 is a schematic structural diagram of a Bluetooth device according to another embodiment of this application.
- FIG. 6 is a schematic structural diagram of a terminal device according to another embodiment of the present application.
- the Bluetooth device will broadcast its own Bluetooth address.
- a malicious connection can establish a Bluetooth connection with the Bluetooth device according to the Bluetooth address of the Bluetooth device, or even send dangerous data to the Bluetooth device, which seriously threatens the Bluetooth device ’s information security.
- the terminal device needs to send the Bluetooth device a preset time to match the preset information Information; the Bluetooth device can monitor the information sent by the terminal device within a preset time.
- the Bluetooth device When the information sent by the terminal device is monitored within the preset time, it is determined whether the information sent by the terminal device meets the conditions based on the stored preset information, and When the information sent by the terminal device meets the conditions, it is determined that the terminal device is a legal device, and the Bluetooth connection between the terminal device and the terminal device is safe, and then the Bluetooth connection between the terminal device and the terminal device is maintained. According to this, the Bluetooth device and the terminal device Normal Bluetooth communication can be performed between them. In this embodiment, after the Bluetooth device establishes a Bluetooth connection with the terminal device, it can identify whether the current Bluetooth connection is a malicious connection, and when it is determined that the current connection is a non-malicious connection, allow Bluetooth communication with the terminal device. The information security of the Bluetooth device is ensured, and the security of the Bluetooth device can be effectively improved.
- FIG. 1 is a schematic structural diagram of a Bluetooth connection processing system according to an embodiment of the present application. As shown in FIG. 1, the system includes: a Bluetooth device 10 and a terminal device 20.
- Bluetooth device 10 After the Bluetooth device 10 broadcasts its own Bluetooth address, multiple terminal devices 20 shown in FIG. 1 can obtain the Bluetooth address of the Bluetooth device 10, and each terminal device 20 can be established based on the standard protocol of Bluetooth connection. Bluetooth connection between Bluetooth devices 10.
- the Bluetooth device 10 may be a tracker, or may be other Bluetooth devices with high safety requirements, such as smart bracelets, smart watches, and other wearable devices.
- the Bluetooth device 10 can distinguish whether the Bluetooth connection thereon is a malicious connection or a non-malicious connection.
- the non-malicious connection refers to a Bluetooth connection corresponding to the terminal device 20 that has a matching use relationship with the Bluetooth device 10.
- the terminal device A in FIG. 1 establishes a Bluetooth connection with the Bluetooth device 10 through the APP corresponding to the Bluetooth device 10.
- the malicious connection refers to a Bluetooth connection corresponding to the terminal device 20 that does not have a matching use relationship with the Bluetooth device 10.
- the terminal device B in FIG. 1 establishes a Bluetooth connection with the Bluetooth device 10 through an APP other than the APP corresponding to the Bluetooth device 10.
- the Bluetooth device 10 and the terminal device 20 that has a matching usage relationship with it can pre-appoint a Bluetooth connection processing method.
- the terminal device 20 may send information to the Bluetooth device 10 based on the agreed processing method, and the Bluetooth device 10 may discriminate whether the information sent with the terminal device 20 meets the requirements based on the agreed processing method.
- the terminal device 20 when it is a terminal device 20 that has a matching use relationship with the Bluetooth device 10, after establishing a Bluetooth connection with the Bluetooth device 10, it can send Information that matches the preset information.
- the information sent by the terminal device 20 can be monitored within a preset time; if the information sent by the terminal device 20 is detected within the preset time, the information sent by the monitored terminal device 20 and the The information is compared; if the monitored information sent by the terminal device 20 matches the preset information, the Bluetooth connection with the terminal device 20 is maintained.
- the terminal device 20 may send the Bluetooth device 10 information that matches the preset information in the Bluetooth device 10.
- the Bluetooth device 10 can judge the information and the preset information thereon.
- the Bluetooth connection corresponding to the terminal device 20 can be determined to be non-compliant. Malicious connection.
- the terminal device 20 may send the Bluetooth address of the Bluetooth device 10 to the Bluetooth device 10, and when the Bluetooth device 10 hears that the Bluetooth address sent by the terminal device 20 is correct, It can be determined that the Bluetooth connection corresponding to the terminal device 20 is a non-malicious connection.
- the Bluetooth device 10 can maintain the Bluetooth connection with the terminal device 20 and can perform normal Bluetooth communication with the terminal device 20.
- the Bluetooth device 10 may adopt multiple implementation methods when determining whether the monitored information sent by the terminal device 20 matches the preset information.
- the Bluetooth device 10 can perform judgment operations on any information sent by the terminal device 20. That is, for any information sent by the terminal device 20, the Bluetooth device 10 determines whether each information matches the preset information, and when any information sent by the terminal device 20 has information that matches the preset information, the terminal device can be determined
- the Bluetooth connection corresponding to 20 is a non-malicious connection, and when there is no information matching the preset information in any information sent by the terminal device 20, it can be determined that the Bluetooth connection corresponding to the terminal device 20 is a malicious connection.
- the Bluetooth device 10 can identify the type of information corresponding to the information sent by the terminal device 20. For the information whose information type is "comparison", the Bluetooth device 10 can determine whether the information matches the preset information, and Based on this, it is determined whether the Bluetooth connection corresponding to the terminal device 20 is a malicious connection.
- the name of the information type is only exemplary, and may also be other pre-agreed information types, which is not limited in this embodiment.
- the Bluetooth device 10 may also use other implementations to determine whether the information sent by the monitored terminal device 20 matches the preset information, and this embodiment is not limited thereto.
- the terminal device 20 may send information matching the preset information to the Bluetooth device 10 within a preset time, and the Bluetooth device 10 may set the listening time based on the preset time corresponding to the information sent by the terminal device 20.
- the Bluetooth device 10 can use the monitoring time as an auxiliary judgment condition. For the information satisfying the monitoring time condition, the Bluetooth device 10 determines whether it matches the preset information. In this way, the data processing amount of the Bluetooth device 10 can be effectively reduced, and it can be more accurately determined whether the Bluetooth connection is a malicious connection.
- the preset time corresponding to when the terminal device 20 sends the information matching the preset information and the preset time corresponding to the Bluetooth device 10 listening to the information sent by the terminal device 20 are not The two preset times are distinguished literally, but those skilled in the art should understand that since the information transmission requires time, this results in a time difference between the sending of information by the terminal device 20 and the Bluetooth device 10 listening to the information, so In this embodiment, the error caused by the above time difference can be avoided by flexibly adjusting the preset time corresponding to the terminal device 20 and the preset time corresponding to the Bluetooth device 10.
- the preset time corresponding to the Bluetooth device 10 may be longer than the preset time corresponding to the terminal device 20 to ensure that the information sent by the terminal device 20 is It can be monitored by the Bluetooth device 10 within the set time.
- the time for the Bluetooth device 10 to start timing may be delayed later than the time for the terminal device 20 to start counting.
- there may be other adjustment methods which are not limited in this embodiment.
- the preset information on the Bluetooth device 10 may be its own Bluetooth address. Accordingly, when the information sent by the terminal device 20 to the Bluetooth device 10 within the preset time is the Bluetooth address of the Bluetooth device 10, the Bluetooth device 10 It can be determined that the Bluetooth connection corresponding to the terminal device 20 is a non-malicious connection.
- the preset information on the Bluetooth device 10 may also be other information, for example, a specified numeric value, a specified character string, etc., which is not limited in this embodiment.
- the terminal device 20 may send information matching the preset information on the Bluetooth device 10 to the Bluetooth device 10 in an encrypted manner.
- the Bluetooth device 10 may listen to the terminal device When the information sent by 20 is decrypted, if the decryption succeeds and the decrypted information matches the preset information, it can be determined that the Bluetooth connection corresponding to the terminal device 20 is a non-malicious connection.
- the terminal device needs to send information matching the preset information to the Bluetooth device within a preset time; the Bluetooth device can listen to the information sent by the terminal device within the preset time , When the information sent by the terminal device is monitored within the preset time, whether the information sent by the terminal device meets the condition is discriminated based on the stored preset information, and when the information sent by the terminal device meets the condition, the terminal device is determined to be a legal device, The Bluetooth connection between the terminal device and the terminal device is safe, and the Bluetooth connection between the terminal device and the terminal device is maintained. According to this, normal Bluetooth communication can be performed between the Bluetooth device and the terminal device.
- the Bluetooth device after the Bluetooth device establishes a Bluetooth connection with the terminal device, it can identify whether the current Bluetooth connection is a malicious connection, and when it is determined that the current connection is a non-malicious connection, allow Bluetooth communication with the terminal device.
- the information security of the Bluetooth device is ensured, and the security of the Bluetooth device can be effectively improved.
- the Bluetooth device 10 if the Bluetooth device 10 does not listen to the information sent by the terminal device 20 within a preset time, the Bluetooth connection with the terminal device 20 is disconnected.
- the terminal device 20 when the terminal device 20 and the Bluetooth device 10 have a matching use relationship, the terminal device 20 will actively send information matching the preset information on the Bluetooth device 10 to the Bluetooth device 10 within a preset time
- the Bluetooth device 10 can listen to the information sent by it within a preset time. If the Bluetooth device 10 does not listen to the information sent by the terminal device 20 within the preset time, it means that the terminal device 20 does not follow the Bluetooth connection processing method corresponding to the Bluetooth device 10, and the Bluetooth device 10 can judge the terminal according to this There is no matching use relationship between the device 20 and the Bluetooth device 10, and further, the Bluetooth device 10 may determine that the Bluetooth connection corresponding to the terminal device 20 is a malicious connection, and disconnect the Bluetooth connection with the terminal device 20.
- the Bluetooth device 10 may determine its corresponding Bluetooth connection as a malicious connection, and may actively communicate with the terminal device 20 after the preset time.
- the Bluetooth connection of the terminal device 20 is disconnected, thereby avoiding the security risks caused by the malicious Bluetooth connection to the Bluetooth device 10.
- a maliciously connected terminal device 20 may also send information to the Bluetooth device 10 within a preset time, and before the Bluetooth device 10 determines that the terminal device 20 is a malicious connection, if the terminal device 20 succeeds If the information is sent to the Bluetooth device 10, the information security of the Bluetooth device 10 will be destroyed.
- the first information sent by the terminal device 20 heard within the preset time is compared with the preset information; if If the first information sent by the terminal device 20 monitored within the preset time matches the preset information, the Bluetooth connection with the terminal device 20 is maintained.
- the first information sent by the terminal device 20 to the Bluetooth device 10 is used as a basis for determining whether the Bluetooth connection is a malicious connection. According to this, if the Bluetooth device 10 listens to the information sent by the terminal device 20 within a preset time, and the first information sent by the terminal device 20 matches the preset information on the Bluetooth device 10, the Bluetooth device 10 may determine the The Bluetooth connection corresponding to the terminal device 20 is a non-malicious connection.
- the Bluetooth device 10 may determine that the Bluetooth connection corresponding to the terminal device 20 is a malicious connection.
- the Bluetooth device 10 can identify such terminal device 20 when it does not send information to the Bluetooth device 10 or send the first message to the Bluetooth device 10, and disconnect the The connection of the terminal device 20, so that this can effectively avoid the information security implied by the maliciously connected terminal device 20 to the Bluetooth device 10.
- the Bluetooth device 10 may start a timer after the Bluetooth connection is established, and monitor the information sent by the terminal device A within the time corresponding to the timer. If the first message sent from the terminal device A to the Bluetooth device 10 is the Bluetooth address of the Bluetooth device 10 within the time corresponding to the timer, the Bluetooth device 10 can maintain the Bluetooth connection with the terminal device 20A and communicate with the terminal device A Perform subsequent normal Bluetooth communication.
- the Bluetooth device 10 may start a timer after the Bluetooth connection is established, and monitor the information sent by the terminal device B within the time corresponding to the timer If no information sent by the terminal device B to the Bluetooth device 10 is heard within the time corresponding to the timer, the Bluetooth device 10 may disconnect the Bluetooth connection with the terminal device B.
- the Bluetooth device 10 may start a timer after the Bluetooth connection is established, and monitor the information sent by the terminal device C within the time corresponding to the timer If the first message sent from the terminal device C to the Bluetooth device 10 is a control instruction message within the time corresponding to the timer, and the preset information on the Bluetooth device 10 is the Bluetooth address, the Bluetooth device 10 can be disconnected The Bluetooth connection with the terminal device C, and the Bluetooth device 10 does not execute the control command sent by the terminal device C.
- the preset time can be agreed between the Bluetooth device 10 and the terminal device 20 that has a matching use relationship with it, as the time required for the transmission of a single information.
- the preset time may be slightly longer than the time required for the transmission of a single message and less than the time required for the transmission of two messages in sequence. In this way, during the listening time of the Bluetooth device 10, at most one message can be transmitted between the terminal device 20 and the Bluetooth device 10, and the Bluetooth device 10 can determine whether the Bluetooth connection is a malicious connection according to this information. This avoids excessive consumption of resources of the Bluetooth device 10 due to a long preset time.
- FIG. 2 is a schematic flowchart of a method for processing a Bluetooth connection according to another embodiment of this application. This method is applicable to Bluetooth devices. As shown in FIG. 2, the method includes:
- the monitored information sent by the terminal device matches the preset information, maintain a Bluetooth connection with the terminal device.
- step 201 includes:
- the first information sent by the terminal device monitored within the preset time is compared with the preset information
- Step 202 includes:
- the Bluetooth connection with the terminal device is maintained.
- FIG. 3 is a schematic flowchart of another method for processing a Bluetooth connection according to another embodiment of this application. As shown in FIG. 3, the method includes:
- step 301 Determine whether the information sent by the terminal device is monitored within the preset time, if yes, go to step 302; if not, go to step 304;
- step 302. Determine whether the first information sent by the terminal device monitored within the preset time matches the preset information. If yes, perform step 303; if not, perform step 304;
- the preset information includes the Bluetooth address of the Bluetooth device.
- FIG. 4 is a schematic flowchart of a method for processing a Bluetooth connection according to another embodiment of this application. This method is applicable to terminal equipment, as shown in FIG. 4, the method includes:
- step 401 includes:
- the information matching the preset information in the Bluetooth device is used as the first information sent to the Bluetooth device within the preset time.
- the comparison information includes the Bluetooth address of the Bluetooth device.
- FIG. 5 is a schematic structural diagram of a Bluetooth device according to another embodiment of this application. As shown in FIG. 5, the Bluetooth device includes: a memory 50, a processor 51 and a communication component 52.
- the memory 50 is used to store computer programs, and can be configured to store various other data to support operations on the Bluetooth device. Examples of these data include instructions for any application or method used to operate on the Bluetooth device, contact data, phone book data, information, pictures, videos, etc.
- the memory 50 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM erasable Programmable read only memory
- PROM programmable read only memory
- ROM read only memory
- magnetic memory magnetic memory
- flash memory magnetic disk or optical disk.
- the processor 51 is coupled to the memory 50, and is used to execute a computer program in the memory 50 for:
- the communication component 52 After establishing a Bluetooth connection with the terminal device, the communication component 52 monitors the information sent by the terminal device within a preset time;
- the information sent by the terminal device is monitored within the preset time, the information sent by the monitored terminal device is compared with the preset information;
- the Bluetooth connection with the terminal device is maintained.
- the processor 51 monitors the information sent by the terminal device within a preset time, when comparing the monitored information sent by the terminal device with the preset information, it is used to:
- the first message sent by the terminal device monitored within the preset time is compared with the preset information
- the processor is used to:
- the Bluetooth connection with the terminal device is maintained.
- processor 51 is also used to:
- the Bluetooth connection with the terminal device is disconnected.
- processor 51 is also used to:
- the Bluetooth connection with the terminal device is disconnected.
- the preset information includes the Bluetooth address of the Bluetooth device.
- the Bluetooth device further includes: a power supply component 53 and other components. Only some components are schematically shown in FIG. 5, and it does not mean that the Bluetooth device includes only the components shown in FIG.
- the embodiments of the present application also provide a computer-readable storage medium that stores a computer program.
- the computer program When executed, it can implement the steps that can be performed by the Bluetooth device in the above method embodiments.
- the terminal device includes: a memory 60, a processor 61, and a communication component 62.
- the memory 60 is used to store computer programs, and may be configured to store various other data to support operations on the terminal device. Examples of these data include instructions for any application or method for operating on the terminal device, contact data, phone book data, information, pictures, videos, etc.
- the memory 60 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable and removable Programmable read only memory (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM erasable and removable Programmable read only memory
- PROM programmable read only memory
- ROM read only memory
- magnetic memory magnetic memory
- flash memory magnetic disk or optical disk.
- the processor 61 coupled to the memory 60, is used to execute a computer program in the memory 60 for:
- the processor 61 when the processor 61 sends information matching the preset information in the Bluetooth device to the Bluetooth device within a preset time, it is used to:
- the information matching the preset information in the Bluetooth device is used as the first information sent to the Bluetooth device within the preset time.
- the preset information includes the Bluetooth address of the Bluetooth device.
- the terminal device further includes: a display 63, a power supply component 64, an audio component 65, and other components. Only some components are schematically shown in FIG. 6, which does not mean that the terminal device includes only the components shown in FIG.
- the communication components in FIG. 5 and FIG. 6 are configured to facilitate wired or wireless communication between the device where the communication component is located and other devices.
- the device where the communication component is located can access a wireless network based on the communication standard, such as WiFi, 2G or 3G, or a combination thereof.
- the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
- the communication component further includes a near field communication (NFC) module to facilitate short-range communication.
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- the display in FIG. 6 includes a screen, and the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundary of the touch or sliding action, but also detect the duration and pressure related to the touch or sliding operation.
- the power supply components in FIG. 5 and FIG. 6 provide power for various components of the device where the power supply component is located.
- the power supply components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the equipment where the power supply components are located.
- the audio component in FIG. 6 may be configured to output and / or input audio signals.
- the audio component includes a microphone (MIC).
- the microphone is configured to receive an external audio signal.
- the received audio signal may be further stored in the memory or sent via the communication component.
- the audio component further includes a speaker for outputting audio signals.
- the embodiments of the present application also provide a computer-readable storage medium that stores a computer program.
- the steps of the above method embodiments that can be executed by the terminal device can be implemented.
- the embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer usable program code.
- computer usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
- These computer program instructions can be provided to the processor of a general-purpose computer, special-purpose computer, embedded processing machine, or other programmable data processing device to produce a machine that enables the generation of instructions executed by the processor of the computer or other programmable data processing device
- These computer program instructions may also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, the instructions The device implements the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device, so that a series of operating steps are performed on the computer or other programmable device to produce computer-implemented processing, which is executed on the computer or other programmable device
- the instructions provide steps for implementing the functions specified in one block or multiple blocks of the flowchart one flow or multiple flows and / or block diagrams.
- the computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
- processors CPUs
- input / output interfaces output interfaces
- network interfaces network interfaces
- memory volatile and non-volatile memory
- the memory may include non-permanent memory, random access memory (RAM) and / or non-volatile memory in computer-readable media, such as read only memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
- RAM random access memory
- ROM read only memory
- flash RAM flash memory
- Computer-readable media including permanent and non-permanent, removable and non-removable media, can store information by any method or technology.
- the information may be computer readable instructions, data structures, modules of programs, or other data.
- Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, read-only compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
- computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
本申请一些实施例提供一种蓝牙连接的处理方法、设备及存储介质,其中,方法包括:在与终端设备建立蓝牙连接后,在预设时间内监听所述终端设备发送的信息;若在所述预设时间内监听到所述终端设备发送的信息,则将监听到的所述终端设备发送的信息与预设信息进行比较;若监听到的所述终端设备发送的信息与所述预设信息相匹配,则保持与所述终端设备之间的蓝牙连接。本实施例中,蓝牙设备与终端设备建立蓝牙连接后,蓝牙连接可甄别出当前的蓝牙连接是否为恶意连接,并在确定出当前的连接为非恶意连接时,允许与终端设备之间的蓝牙通信,保证了蓝牙设备的信息安全,可有效提升蓝牙设备的安全性。
Description
本申请要求于2018年10月30日提交中国专利局、申请号为201811274929.8、发明名称为“一种蓝牙连接的处理方法、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及通信技术领域,尤其涉及一种蓝牙连接的处理方法、设备及存储介质。
蓝牙,是一种无线技术标准,可实现固定设备、移动设备和楼宇个人域网之间的短距离数据交换。其中,符合蓝牙技术联盟的标准的设备可作为蓝牙设备。
蓝牙设备在工作过程中,会将自身的蓝牙地址进行广播,恶意的连接方可根据蓝牙设备的蓝牙地址与蓝牙设备建立蓝牙连接,甚至可向蓝牙设备发送危险数据,这严重威胁到蓝牙设备的信息安全。
发明内容
本申请的多个方面提供一种蓝牙连接的处理方法、设备及存储介质,以提高蓝牙设备的信息安全性。
本申请实施例提供一种蓝牙连接的处理方法,适用于蓝牙设备,包括:
在与终端设备建立蓝牙连接后,在预设时间内监听所述终端设备发送的信息;
若在所述预设时间内监听到所述终端设备发送的信息,则将监听到的所述终端设备发送的信息与预设信息进行比较;
若监听到的所述终端设备发送的信息与所述预设信息相匹配,则保持与所述终端设备之间的蓝牙连接。
本申请实施例还提供一种蓝牙连接的处理方法,适用于终端设备,包括:
在与蓝牙设备建立蓝牙连接后,生成与所述蓝牙设备中的预设信息相匹配的信息,并向所述蓝牙设备发送所述信息,以使所述蓝牙设备在监听到所述信息后继续保持与所述终端设备之间的蓝牙连接。
本申请实施例还提供一种蓝牙设备,包括存储器、处理器和通信组件;
所述存储器用于存储一条或多条计算机指令;
所述处理器,与所述存储器耦合,用于执行一条或多条计算机指令,以用于:
在与终端设备建立蓝牙连接后,通过所述通信组件在预设时间内监听所述终端设备发送的信息;
若在所述预设时间内监听到所述终端设备发送的信息,则将监听到的所述终端设备发送的信息与预设信息进行比较;
若监听到的所述终端设备发送的信息与所述预设信息相匹配,则保持与所述终端设备之间的蓝牙连接。
本申请实施例还提供一种终端设备,包括存储器、处理器和通信组件;
所述存储器用于存储一条或多条计算机指令;
所述处理器,与所述存储器耦合,用于执行一条或多条计算机指令,以用于:
在与蓝牙设备建立蓝牙连接后,在预设时间内,生成与所述蓝牙设备中的预设信息相匹配的信息,并通过所述通信组件向所述蓝牙设备发送所述信息,以使所述蓝牙设备在监听到所述信息后继续保持与所述终端设备之间的蓝牙连接。
本申请实施例还提供一种存储计算机指令的计算机可读存储介质,其特征在于,当计算机指令被一个或多个处理器执行时,致使一个或多个处理器执行上述由蓝牙设备执行的蓝牙连接的处理方法。
本申请实施例还提供一种存储计算机指令的计算机可读存储介质,其特征在于,当计算机指令被一个或多个处理器执行时,致使一个或多个处理器执行上述由终端设备执行的蓝牙连接的处理方法。
在本申请实施例中,在蓝牙设备和终端设备建立蓝牙连接后,终端设备需在预设时间内向蓝牙设备发送与预设信息相匹配的信息;蓝牙设备可在预设时间内监听终端设备发送的信息,当在预设时间内监听到终端设备发送的 信息时,基于存储的预设信息甄别终端设备发送的信息是否符合条件,并在终端设备发送的信息符合条件时,确定终端设备属于合法设备,其与终端设备之间的蓝牙连接是安全的,进而保持其与终端设备之间的蓝牙连接,据此,蓝牙设备与终端设备之间可进行正常的蓝牙通信。本实施例中,蓝牙设备与终端设备建立蓝牙连接后,可甄别出当前的蓝牙连接是否为恶意连接,并在确定出当前的连接为非恶意连接时,允许与终端设备之间的蓝牙通信,保证了蓝牙设备的信息安全,可有效提升蓝牙设备的安全性。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一部分附图,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请一实施例提供的蓝牙连接的处理系统的结构示意图;
图2为本申请另一实施例提供的一种蓝牙连接的处理方法的流程示意图;
图3为本申请另一实施例提供的另一种蓝牙连接的处理方法的流程示意图;
图4为本申请又一实施例提供的一种蓝牙连接的处理方法的流程示意图;
图5为本申请又一实施例提供的一种蓝牙设备的结构示意图;
图6为本申请又一实施例提供的一种终端设备的结构示意图。
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请具体实施例及相应的附图对本申请技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
蓝牙设备在工作过程中,会将自身的蓝牙地址进行广播,恶意的连接方可根据蓝牙设备的蓝牙地址与蓝牙设备建立蓝牙连接,甚至可向蓝牙设备发送危险数据,这严重威胁到蓝牙设备的信息安全。为解决蓝牙设备的工作过程中存在的安全问题,在本申请的一些实施例中:在蓝牙设备和终端设备建 立蓝牙连接后,终端设备需在预设时间内向蓝牙设备发送与预设信息相匹配的信息;蓝牙设备可在预设时间内监听终端设备发送的信息,当在预设时间内监听到终端设备发送的信息时,基于存储的预设信息甄别终端设备发送的信息是否符合条件,并在终端设备发送的信息符合条件时,确定终端设备属于合法设备,其与终端设备之间的蓝牙连接是安全的,进而保持其与终端设备之间的蓝牙连接,据此,蓝牙设备与终端设备之间可进行正常的蓝牙通信。本实施例中,蓝牙设备与终端设备建立蓝牙连接后,可甄别出当前的蓝牙连接是否为恶意连接,并在确定出当前的连接为非恶意连接时,允许与终端设备之间的蓝牙通信,保证了蓝牙设备的信息安全,可有效提升蓝牙设备的安全性。
以下结合附图,详细说明本申请各实施例提供的技术方案。
图1为本申请一实施例提供的蓝牙连接的处理系统的结构示意图。如图1所示,该系统包括:蓝牙设备10和终端设备20。
蓝牙设备10将自身的蓝牙地址广播之后,图1中示出的多个终端设备20都可获取到蓝牙设备10的蓝牙地址,而且,每个终端设备20都可基于蓝牙连接的标准协议建立与蓝牙设备10之间的蓝牙连接。
本实施例中,蓝牙设备10可以是追踪器,也可以是其它对安全系数要求较高的蓝牙设备,例如,智能手环、智能手表等可穿戴设备。为了提高蓝牙设备10的安全性,蓝牙设备10可甄别其上的蓝牙连接是恶意连接还是非恶意连接。其中,非恶意连接是指与蓝牙设备10之间存在配套使用关系的终端设备20对应的蓝牙连接。例如,图1中的终端设备A通过蓝牙设备10对应的APP所建立的与蓝牙设备10之间的蓝牙连接。恶意连接是指与蓝牙设备10之间不存在配套使用关系的终端设备20对应的蓝牙连接。例如,图1中的终端设备B通过蓝牙设备10对应的APP之外的其它APP所建立的与蓝牙设备10之间的蓝牙连接。
本实施例中,蓝牙设备10和与其存在配套使用关系的终端设备20之间可预先约定蓝牙连接的处理方式。终端设备20可基于约定的处理方式向蓝牙设备10发送信息,而蓝牙设备10可基于约定的处理方式甄别出与终端设备20发送的信息是否符合要求。
对终端设备20来说,当其为与蓝牙设备10存在配套使用关系的终端设备 20时,可在与蓝牙设备10建立蓝牙连接后,在预设时间内向蓝牙设备10发送与蓝牙设备10中的预设信息相匹配的信息。
而对蓝牙设备10来说,可在预设时间内监听终端设备20发送的信息;若在预设时间内监听到终端设备20发送的信息,则将监听到的终端设备20发送的信息与预设信息进行比较;若监听到的终端设备20发送的信息与预设信息相匹配,则保持与终端设备20之间的蓝牙连接。
一方面,终端设备20可向蓝牙设备10发送与蓝牙设备10中的预设信息相匹配的信息。蓝牙设备10在监听到终端设备20发送的信息时,可判断该信息与其上的预设信息进行判断,当该信息与预设信息相匹配时,可确定该终端设备20对应的蓝牙连接为非恶意连接。例如,当蓝牙设备10上的预设信息为其蓝牙地址时,终端设备20可向蓝牙设备10发送蓝牙设备10的蓝牙地址,而蓝牙设备10在监听到终端设备20发送的蓝牙地址正确时,即可确定该终端设备20对应的蓝牙连接是非恶意连接,蓝牙设备10可保持与该终端设备20之间的蓝牙连接,并可与该终端设备20进行正常的蓝牙通信。
其中,蓝牙设备10在判断监听到的终端设备20发送的信息是否与预设信息相匹配时,可采用多种实现方式。
在一种实现方式中,蓝牙设备10可对终端设备20发送的任意信息均执行判断操作。也即,针对终端设备20发送的任意信息,蓝牙设备10判断每个信息是否与预设信息匹配,当终端设备20发送的任意信息中存在与预设信息匹配的信息时,可确定该终端设备20对应的蓝牙连接是非恶意连接,而当终端设备20发送的任意信息中并未存在与预设信息匹配的信息时,可确定该终端设备20对应的蓝牙连接为恶意连接。
在另一种实现方式中,蓝牙设备10可甄别终端设备20发送的信息对应的信息类型,针对信息类型为“比对”的信息,蓝牙设备10可判断该信息与预设信息是否匹配,并据此确定终端设备20对应的蓝牙连接是否为恶意连接。当然,信息类型的名称仅为示例性的,还可以是其它预先约定的信息类型,本实施例对此不作限定。
另外,上述两种实现方式仅是示例性的,蓝牙设备10还可采用其它实现方式判断监听到的终端设备20发送的信息是否与预设信息相匹配,本实施例并不限于此。
另一方面,终端设备20可在预设时间内向蓝牙设备10发送与预设信息匹配的信息,而蓝牙设备10可基于终端设备20发送信息所对应的预设时间来设定监听时间。据此,蓝牙设备10可将监听时间作为辅助判断条件,对于满足监听时间条件的信息,蓝牙设备10再判断其与预设信息是否匹配。这样,可有效减小蓝牙设备10的数据处理量,而且可更准确的确定出蓝牙连接是否为恶意连接。
值得说明的是,虽然本文中,针对终端设备20发送与预设信息相匹配的信息时对应的预设时间,以及蓝牙设备10监听终端设备20发送的信息时对应的预设时间,并未在文字上对两个预设时间进行区分,但是,本领域技术人员应当理解的是,由于信息传递需要时间,这导致从终端设备20发出信息到蓝牙设备10监听到该信息之间存在时间差,因此,本实施例中,可通过灵活调整终端设备20对应的预设时间和蓝牙设备10对应的预设时间来避免上述时间差导致的误差。例如,当终端设备20和蓝牙设备10同步启动计时时,蓝牙设备10对应的预设时间可比终端设备20对应的预设时间长一些,以保证终端设备20发送的信息在蓝牙设备10对应的预设时间内可被蓝牙设备10监听到。又例如,蓝牙设备10启动计时的时间可比终端设备20启动计时的时间延后一些。当然还可以是其它调整方式,本实施例对此不作限定。
本实施例中,蓝牙设备10上的预设信息可以是其自身的蓝牙地址,相应地,终端设备20在预设时间内向蓝牙设备10发送的信息为蓝牙设备10的蓝牙地址时,蓝牙设备10可确定该终端设备20对应的蓝牙连接为非恶意连接。当然,蓝牙设备10上的预设信息还可以是其它信息,例如,指定的数值、指定的字符串等等,本实施例对此不作限定。另外,为了进一步提高蓝牙设备10的安全性,可终端设备20可通过加密方式向蓝牙设备10发送与蓝牙设备10上的预设信息匹配的信息,相应地,蓝牙设备10可在监听到终端设备20发送的信息时,对该信息进行解密,如果解密成功,且解密后的信息与预设信息匹配,则可确定该终端设备20对应的蓝牙连接为非恶意连接。
本实施例中,在蓝牙设备和终端设备建立蓝牙连接后,终端设备需在预设时间内向蓝牙设备发送与预设信息相匹配的信息;蓝牙设备可在预设时间内监听终端设备发送的信息,当在预设时间内监听到终端设备发送的信息时,基于存储的预设信息甄别终端设备发送的信息是否符合条件,并在终端设备 发送的信息符合条件时,确定终端设备属于合法设备,其与终端设备之间的蓝牙连接是安全的,进而保持其与终端设备之间的蓝牙连接,据此,蓝牙设备与终端设备之间可进行正常的蓝牙通信。本实施例中,蓝牙设备与终端设备建立蓝牙连接后,可甄别出当前的蓝牙连接是否为恶意连接,并在确定出当前的连接为非恶意连接时,允许与终端设备之间的蓝牙通信,保证了蓝牙设备的信息安全,可有效提升蓝牙设备的安全性。
在上述或下述实施例中,若蓝牙设备10在预设时间内未监听到终端设备20发送的信息,则断开与终端设备20之间的蓝牙连接。
如前述实施例中的描述,当终端设备20与蓝牙设备10存在配套使用关系时,终端设备20将在预设时间内主动向蓝牙设备10发送与蓝牙设备10上的预设信息相匹配的信息,对于这类终端设备20,蓝牙设备10可在预设时间内监听到其发送的信息。而若蓝牙设备10在预设时间内并未监听到终端设备20发送的信息,则表征该终端设备20并未遵循蓝牙设备10对应的蓝牙连接的处理方式,蓝牙设备10可据此判断该终端设备20与蓝牙设备10不存在配套使用关系,进而,蓝牙设备10可确定该终端设备20对应的蓝牙连接为恶意连接,并断开与该终端设备20的蓝牙连接。
本实施例中,对于未在预设时间内向蓝牙设备10发送信息的终端设备20,蓝牙设备10可将其对应的蓝牙连接确定为恶意连接,并可在预设时间结束后,主动将其与终端设备20的蓝牙连接断开,从而避免了恶意蓝牙连接对蓝牙设备10造成的安全隐患。
在上述或下述实施例中,恶意连接的终端设备20也可能在预设时间内向蓝牙设备10发送信息,而在蓝牙设备10确定出该终端设备20为恶意连接之前,如果该终端设备20成功向蓝牙设备10发送了信息,则将对蓝牙设备10的信息安全造成破坏。
为避免蓝牙设备10在确定出恶意连接之前可能存在的安全隐患,本实施例中,对于终端设备20来说,如果其与蓝牙设备10存在配套使用关系,则可将与蓝牙设备10中的预设信息相匹配的信息作为在预设时间内向蓝牙设备10发送的第一个信息。而对于蓝牙设备10来说,若在预设时间内监听到终端设备20发送的信息,则将在预设时间内监听到的终端设备20发送的第一个信息与预设信息进行比较;若在预设时间内监听到的终端设备20发送的第一个信 息与预设信息相匹配,则保持与终端设备20之间的蓝牙连接。
本实施例中,以终端设备20和蓝牙连接建立蓝牙连接后,终端设备20向蓝牙设备10发送的第一个信息作为判断蓝牙连接是否为恶意连接的依据。据此,若蓝牙设备10在预设时间内监听到终端设备20发送的信息,且终端设备20发送的第一个信息与蓝牙设备10上的预设信息相匹配时,蓝牙设备10可确定该终端设备20对应的蓝牙连接为非恶意连接。而,若蓝牙设备10在预设时间内未监听到终端设备20发送的信息,或者蓝牙设备10在预设时间内监听到终端设备20发送的第一个信息,而终端设备20发送的第一个信息与蓝牙设备10上的预设信息不匹配时,蓝牙设备10可确定该终端设备20对应的蓝牙连接为恶意连接。
这样,对于恶意连接的终端设备20,蓝牙设备10可在其未向蓝牙设备10发送信息或者向蓝牙设备10发送第一个信息时,甄别出这类终端设备20,并及时断开与这类终端设备20的连接,从而,这可有效避免恶意连接的终端设备20给蓝牙设备10带来的信息安全隐含。
例如,当图1中的终端设备A与蓝牙设备10建立了蓝牙连接时,蓝牙设备10可在蓝牙连接建立后启动一定时器,并在定时器对应的时间内监听终端设备A发送的信息,若在定时器对应的时间内监听到终端设备A向蓝牙设备10发送的第一个信息为蓝牙设备10的蓝牙地址,则蓝牙设备10可保持与终端设备20A的蓝牙连接,并与终端设备A进行后续的正常蓝牙通信。
又例如,当图1中的终端设备B与蓝牙设备10建立了蓝牙连接时,蓝牙设备10可在蓝牙连接建立后启动一定时器,并在定时器对应的时间内监听终端设备B发送的信息,若在定时器对应的时间内未监听到终端设备B向蓝牙设备10发送的任何信息,则蓝牙设备10可断开与终端设备B之间的蓝牙连接。
再例如,当图1中的终端设备C与蓝牙设备10建立了蓝牙连接时,蓝牙设备10可在蓝牙连接建立后启动一定时器,并在定时器对应的时间内监听终端设备C发送的信息,若在定时器对应的时间内监听到终端设备C向蓝牙设备10发送的第一个信息为一控制指令信息,而蓝牙设备10上的预设信息为蓝牙地址,则蓝牙设备10可断开与终端设备C的蓝牙连接,且蓝牙设备10并未执行终端设备C发送的控制指令。
另外,本实施例中,蓝牙设备10和与其存在配套使用关系的终端设备20 之间可将预设时间约定为单个信息传输所需的时间。在一些实际应用中,预设时间可略大于单个信息传输所需的时间而小于两个信息先后传输所需的时间。这样,蓝牙设备10的监听时间内,终端设备20与蓝牙设备10之间最多可传输一个信息,而蓝牙设备10可根据这个信息判断蓝牙连接是否为恶意连接。这避免了由于预设时间较长导致的蓝牙设备10的资源的过多消耗。
图2为本申请另一实施例提供的一种蓝牙连接的处理方法的流程示意图。该方法适用于蓝牙设备,如图2所示,该方法包括:
200、在与终端设备建立蓝牙连接后,在预设时间内监听终端设备发送的信息;
201、若在预设时间内监听到终端设备发送的信息,则将监听到的终端设备发送的信息与预设信息进行比较;
202、若监听到的终端设备发送的信息与预设信息相匹配,则保持与终端设备之间的蓝牙连接。
在一可选实施例中,步骤201包括:
若在预设时间内监听到终端设备发送的信息,则将在预设时间内监听到的终端设备发送的第一个信息与预设信息进行比较;
步骤202包括:
若在预设时间内监听到的终端设备发送的第一个信息与预设信息相匹配,则保持与终端设备之间的蓝牙连接。
图3为本申请另一实施例提供的另一种蓝牙连接的处理方法的流程示意图。如图3所示,该方法包括:
300、在与终端设备建立蓝牙连接后,在预设时间内监听终端设备发送的信息;
301、判断在预设时间内是否监听到终端设备发送的信息,若是,则执行步骤302;若否,则执行步骤304;
302、判断在预设时间内监听到的终端设备发送的第一个信息与预设信息是否匹配,若是,则执行步骤303,;若否,则执行步骤304;
303、保持与终端设备之间的蓝牙连接;
304、断开与终端设备之前的蓝牙连接。
在一可选实施例中,预设信息包括蓝牙设备的蓝牙地址。
图4为本申请又一实施例提供的一种蓝牙连接的处理方法的流程示意图。该方法适用于终端设备,如图4所示,该方法包括:
400、在与蓝牙设备建立蓝牙连接后,在预设时间内,生成与蓝牙设备中的预设信息相匹配的信息;
401、向蓝牙设备发送信息,以使蓝牙设备在监听到信息后继续保持与终端设备之间的蓝牙连接。
在一可选实施例中,步骤401,包括:
将与蓝牙设备中的预设信息相匹配的信息作为在预设时间内向蓝牙设备发送的第一个信息。
在一可选实施例中,比对信息包括蓝牙设备的蓝牙地址。
图5为本申请又一实施例提供的一种蓝牙设备的结构示意图。如图5所示,该蓝牙设备包括:存储器50、处理器51以及通信组件52。
存储器50,用于存储计算机程序,并可被配置为存储其它各种数据以支持在蓝牙设备上的操作。这些数据的示例包括用于在蓝牙设备上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,信息,图片,视频等。
存储器50可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
处理器51,与存储器50耦合,用于执行存储器50中的计算机程序,以用于:
在与终端设备建立蓝牙连接后,通过通信组件52在预设时间内监听终端设备发送的信息;
若在预设时间内监听到终端设备发送的信息,则将监听到的终端设备发送的信息与预设信息进行比较;
若监听到的终端设备发送的信息与预设信息相匹配,则保持与终端设备之间的蓝牙连接。
在一可选实施例中,处理器51在若在预设时间内监听到终端设备发送的信息,则将监听到的终端设备发送的信息与预设信息进行比较时,用于:
若在预设时间内监听到终端设备发送的信息,则将在预设时间内监听到 的终端设备发送的第一个信息与预设信息进行比较;
处理器在若监听到的信息与预设信息相匹配,则保持与终端设备之间的连接时,用于:
若在预设时间内监听到的终端设备发送的第一个信息与预设信息相匹配,则保持与终端设备之间的蓝牙连接。
在一可选实施例中,处理器51还用于:
若在预设时间内监听到的终端设备发送的第一个信息与预设信息不匹配,则断开与终端设备之间的蓝牙连接。
在一可选实施例中,处理器51还用于:
若在预设时间内未监听到终端设备发送的信息,则断开与终端设备之间的蓝牙连接。
在一可选实施例中,预设信息包括蓝牙设备的蓝牙地址。
进一步,如图5所示,该蓝牙设备还包括:电源组件53等其它组件。图5中仅示意性给出部分组件,并不意味着蓝牙设备只包括图5所示组件。
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述方法实施例中可由蓝牙设备执行的各步骤。
图6为本申请又一实施例提供的一种终端设备的结构示意图。如图5所示,该终端设备包括:存储器60、处理器61以及通信组件62。
存储器60,用于存储计算机程序,并可被配置为存储其它各种数据以支持在终端设备上的操作。这些数据的示例包括用于在终端设备上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,信息,图片,视频等。
存储器60可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。
处理器61,与存储器60耦合,用于执行存储器60中的计算机程序,以用于:
在与蓝牙设备建立蓝牙连接后,在预设时间内,生成与蓝牙设备中的预设信息相匹配的信息,并通过通信组件62向蓝牙设备发送信息,以使蓝牙设 备在监听到信息后继续保持与终端设备之间的蓝牙连接。
在一可选实施例中,处理器61在预设时间内向蓝牙设备发送与蓝牙设备中的预设信息相匹配的信息时,用于:
将与蓝牙设备中的预设信息相匹配的信息作为在预设时间内向蓝牙设备发送的第一个信息。
在一可选实施例中,预设信息包括蓝牙设备的蓝牙地址。
进一步,如图6所示,该终端设备还包括:显示器63、电源组件64、音频组件65等其它组件。图6中仅示意性给出部分组件,并不意味着终端设备只包括图6所示组件。
其中,图5和图6中的通信组件被配置为便于通信组件所在设备和其他设备之间有线或无线方式的通信。通信组件所在设备可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。
其中,图6中的显示器包括屏幕,其屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。
其中,图5和图6中的电源组件,为电源组件所在设备的各种组件提供电力。电源组件可以包括电源管理系统,一个或多个电源,及其他与为电源组件所在设备生成、管理和分配电力相关联的组件。
其中,图6中的音频组件,可被配置为输出和/或输入音频信号。例如,音频组件包括一个麦克风(MIC),当音频组件所在设备处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器或经由通信组件发送。在一些实施例中,音频组件还包括一个扬声器,用于输出音频信号。
相应地,本申请实施例还提供一种存储有计算机程序的计算机可读存储介质,计算机程序被执行时能够实现上述方法实施例中可由终端设备执行的各步骤。
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。
Claims (11)
- 一种蓝牙连接的处理方法,适用于蓝牙设备,其特征在于,包括:在与终端设备建立蓝牙连接后,在预设时间内监听所述终端设备发送的信息;若在所述预设时间内监听到所述终端设备发送的信息,则将监听到的所述终端设备发送的信息与预设信息进行比较;若监听到的所述终端设备发送的信息与所述预设信息相匹配,则保持与所述终端设备之间的蓝牙连接。
- 根据权利要求1所述的方法,其特征在于,所述若在所述预设时间内监听到所述终端设备发送的信息,则将监听到的所述终端设备发送的信息与预设信息进行比较,包括:若在所述预设时间内监听到所述终端设备发送的信息,则将在所述预设时间内监听到的所述终端设备发送的第一个信息与预设信息进行比较;所述若所述监听到的信息与所述预设信息相匹配,则保持与所述终端设备之间的连接,包括:若在所述预设时间内监听到的所述终端设备发送的第一个信息与所述预设信息相匹配,则保持与所述终端设备之间的蓝牙连接。
- 根据权利要求2所述的方法,其特征在于,还包括:若在所述预设时间内监听到的所述终端设备发送的第一个信息与所述预设信息不匹配,则断开与所述终端设备之间的蓝牙连接。
- 根据权利要求1所述的方法,其特征在于,还包括:若在所述预设时间内未监听到所述终端设备发送的信息,则断开与所述终端设备之间的蓝牙连接。
- 根据权利要求1-4任一项所述的方法,其特征在于,所述预设信息包括蓝牙设备的蓝牙地址。
- 一种蓝牙连接的处理方法,适用于终端设备,其特征在于,包括:在与蓝牙设备建立蓝牙连接后,在预设时间内,生成与所述蓝牙设备中的预设信息相匹配的信息,并向所述蓝牙设备发送所述信息,以使所述蓝牙设备在监听到所述信息后继续保持与所述终端设备之间的蓝牙连接。
- 根据权利要求6所述的方法,其特征在于,所述向所述蓝牙设备发送所述信息,包括:将所述信息作为所述预设时间内的第一个信息发送给所述蓝牙设备。
- 一种蓝牙设备,其特征在于,包括存储器、处理器和通信组件;所述存储器用于存储一条或多条计算机指令;所述处理器,与所述存储器耦合,用于执行一条或多条计算机指令,以用于:在与终端设备建立蓝牙连接后,通过所述通信组件在预设时间内监听所述终端设备发送的信息;若在所述预设时间内监听到所述终端设备发送的信息,则将监听到的所述终端设备发送的信息与预设信息进行比较;若监听到的所述终端设备发送的信息与所述预设信息相匹配,则保持与所述终端设备之间的蓝牙连接。
- 一种终端设备,其特征在于,包括存储器、处理器和通信组件;所述存储器用于存储一条或多条计算机指令;所述处理器,与所述存储器耦合,用于执行一条或多条计算机指令,以用于:在与蓝牙设备建立蓝牙连接后,在预设时间内,生成与所述蓝牙设备中的预设信息相匹配的信息,并通过所述通信组件向所述蓝牙设备发送所述信息,以使所述蓝牙设备在监听到所述信息后继续保持与所述终端设备之间的蓝牙连接。
- 一种存储计算机指令的计算机可读存储介质,其特征在于,当计算机指令被一个或多个处理器执行时,致使一个或多个处理器执行权利要求1-5任一项的蓝牙连接的处理方法。
- 一种存储计算机指令的计算机可读存储介质,其特征在于,当计算机指令被一个或多个处理器执行时,致使一个或多个处理器执行权利要求6-7任一项的蓝牙连接的处理方法。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811274929.8 | 2018-10-30 | ||
| CN201811274929.8A CN109246851A (zh) | 2018-10-30 | 2018-10-30 | 一种蓝牙连接的处理方法、设备及存储介质 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020087734A1 true WO2020087734A1 (zh) | 2020-05-07 |
Family
ID=65079261
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/124164 Ceased WO2020087734A1 (zh) | 2018-10-30 | 2018-12-27 | 一种蓝牙连接的处理方法、设备及存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN109246851A (zh) |
| WO (1) | WO2020087734A1 (zh) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111093188B (zh) * | 2019-12-05 | 2023-04-07 | 任子行网络技术股份有限公司 | 监测蓝牙有害信息的方法及装置 |
| CN111447602B (zh) * | 2020-06-17 | 2020-09-29 | 成都极米科技股份有限公司 | 蓝牙设备及其蓝牙抢占方法和装置、计算机可读存储介质 |
| CN112565878A (zh) * | 2020-12-07 | 2021-03-26 | 四川长虹电器股份有限公司 | 电视上快速输入无线密码的方法 |
| CN113473434B (zh) * | 2021-08-17 | 2024-07-30 | 杭州涂鸦信息技术有限公司 | 蓝牙连接方法、装置、计算机设备和计算机可读存储介质 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105553964A (zh) * | 2015-12-10 | 2016-05-04 | 小米科技有限责任公司 | 控制蓝牙设备的方法及装置 |
| CN106888108A (zh) * | 2016-10-26 | 2017-06-23 | 阿里巴巴集团控股有限公司 | 智能设备的连网方法、智能设备及移动客户端 |
| CN107277754A (zh) * | 2017-07-12 | 2017-10-20 | 深圳市冠旭电子股份有限公司 | 一种蓝牙连接的方法及蓝牙外围设备 |
| CN108495291A (zh) * | 2018-03-12 | 2018-09-04 | 北京华大智宝电子系统有限公司 | 一种蓝牙连接方法及装置 |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105516896A (zh) * | 2015-12-02 | 2016-04-20 | 惠州Tcl移动通信有限公司 | 一种可穿戴设备与移动终端的蓝牙互连方法及系统 |
| CN105430603A (zh) * | 2015-12-03 | 2016-03-23 | 北京握奇智能科技有限公司 | 一种蓝牙设备的安全连接方法及系统 |
| CN107071709B (zh) * | 2017-04-06 | 2021-06-08 | 飞天诚信科技股份有限公司 | 一种与蓝牙设备的配对方法及装置 |
-
2018
- 2018-10-30 CN CN201811274929.8A patent/CN109246851A/zh active Pending
- 2018-12-27 WO PCT/CN2018/124164 patent/WO2020087734A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN105553964A (zh) * | 2015-12-10 | 2016-05-04 | 小米科技有限责任公司 | 控制蓝牙设备的方法及装置 |
| CN106888108A (zh) * | 2016-10-26 | 2017-06-23 | 阿里巴巴集团控股有限公司 | 智能设备的连网方法、智能设备及移动客户端 |
| CN107277754A (zh) * | 2017-07-12 | 2017-10-20 | 深圳市冠旭电子股份有限公司 | 一种蓝牙连接的方法及蓝牙外围设备 |
| CN108495291A (zh) * | 2018-03-12 | 2018-09-04 | 北京华大智宝电子系统有限公司 | 一种蓝牙连接方法及装置 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109246851A (zh) | 2019-01-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP3468068B1 (en) | Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device | |
| US11259178B2 (en) | Bluetooth mesh network provisioning authentication | |
| US10609646B2 (en) | Intelligent management of a plurality of communications links | |
| US11178707B2 (en) | Connection request processing method and apparatus, bluetooth earphone, wearable device, system and storage medium | |
| CN111510919B (zh) | 网络配置方法、装置、设备和系统 | |
| US9763063B2 (en) | Secure broadcast beacon communications | |
| WO2020087734A1 (zh) | 一种蓝牙连接的处理方法、设备及存储介质 | |
| US10649717B2 (en) | Methods and systems for conveying encrypted data to a communication device | |
| JP6756009B2 (ja) | データ伝送 | |
| WO2013175741A1 (en) | Apparatus and method for transmitting messages | |
| CN105103618A (zh) | 用于无线修改便携式设备的检测特征的系统和方法 | |
| US20200008057A1 (en) | Multi-Device Wireless Connection Method and Device | |
| KR20140042911A (ko) | 수신된 경보를 처리하는 디바이스, 시스템 및 방법 | |
| US11076311B2 (en) | Methods and devices for measuring cell signal quality | |
| WO2015070595A1 (en) | Method, apparatus and system for mobile payment | |
| CN112118210B (zh) | 一种认证密钥配置方法、设备、系统及存储介质 | |
| WO2018049969A1 (zh) | 热点建立方法及相关设备 | |
| CN113301537B (zh) | 用于建立通信连接的方法、装置、电子设备以及存储介质 | |
| WO2018068419A1 (zh) | 一种通知信息的推送方法及系统 | |
| CN106375031A (zh) | 射频通道的检测方法及移动终端 | |
| WO2023109040A1 (zh) | 联盟链出块方法、装置、电子设备及介质 | |
| US12284271B2 (en) | Systems and techniques for authentication and security | |
| CN115865250A (zh) | 时钟同步方法、装置、设备、车辆、介质及程序产品 | |
| CN112564889B (zh) | 数据加密传输方法及相关产品 | |
| CN112218293B (zh) | 移动终端安全通信方法、装置、终端设备及存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18938718 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18938718 Country of ref document: EP Kind code of ref document: A1 |