CN109246851A - A kind of processing method of bluetooth connection, equipment and storage medium - Google Patents

A kind of processing method of bluetooth connection, equipment and storage medium Download PDF

Info

Publication number
CN109246851A
CN109246851A CN201811274929.8A CN201811274929A CN109246851A CN 109246851 A CN109246851 A CN 109246851A CN 201811274929 A CN201811274929 A CN 201811274929A CN 109246851 A CN109246851 A CN 109246851A
Authority
CN
China
Prior art keywords
information
terminal device
bluetooth
sent
equipment
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
CN201811274929.8A
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.)
Goertek Techology Co Ltd
Original Assignee
Goertek Techology 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 Goertek Techology Co Ltd filed Critical Goertek Techology Co Ltd
Priority to CN201811274929.8A priority Critical patent/CN109246851A/en
Priority to PCT/CN2018/124164 priority patent/WO2020087734A1/en
Publication of CN109246851A publication Critical patent/CN109246851A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the present application provides the processing method, equipment and storage medium of a kind of bluetooth connection, wherein method includes: to monitor the information that the terminal device is sent within a preset time after establishing bluetooth connection with terminal device;If listening to the information that the terminal device is sent in the preset time, the information that the terminal device listened to is sent is compared with presupposed information;If the information that the terminal device listened to is sent matches with the presupposed information, the bluetooth connection between the terminal device is kept.In the present embodiment, after bluetooth equipment and terminal device establish bluetooth connection, bluetooth connection can screen out whether current bluetooth connection is that malice connects, and when determining current connection is non-malicious connection, allow the Bluetooth communication between terminal device, it ensure that the information security of bluetooth equipment, can effectively promote the safety of bluetooth equipment.

Description

A kind of processing method of bluetooth connection, equipment and storage medium
Technical field
This application involves field of communication technology more particularly to a kind of processing methods of bluetooth connection, equipment and storage medium.
Background technique
Bluetooth is a kind of wireless technology standard, it can be achieved that short between fixed equipment, mobile device and building personal area network Range data exchange.Wherein, the equipment for meeting the standard of bluetooth sig can be used as bluetooth equipment.
Bluetooth equipment during the work time, can broadcast the Bluetooth address of itself, and the connection side of malice can be according to indigo plant The Bluetooth address and bluetooth equipment of tooth equipment establish bluetooth connection, or even can send risk data, this serious prestige to bluetooth equipment Coerce the information security of bluetooth equipment.
Summary of the invention
The many aspects of the application provide the processing method, equipment and storage medium of a kind of bluetooth connection, to improve bluetooth The information security of equipment.
The embodiment of the present application provides a kind of processing method of bluetooth connection, is suitable for bluetooth equipment, comprising:
After establishing bluetooth connection with terminal device, the information that the terminal device is sent is monitored within a preset time;
If listening to the information that the terminal device is sent in the preset time, the terminal listened to is set The information that preparation is sent is compared with presupposed information;
If the information that the terminal device listened to is sent matches with the presupposed information, keep and the terminal Bluetooth connection between equipment.
The embodiment of the present application also provides a kind of processing method of bluetooth connection, is suitable for terminal device, comprising:
After establishing bluetooth connection with bluetooth equipment, the letter to match with the presupposed information in the bluetooth equipment is generated Breath, and send the information to the bluetooth equipment so that the bluetooth equipment continue to keep after listening to the information with Bluetooth connection between the terminal device.
The embodiment of the present application also provides a kind of bluetooth equipment, including memory, processor and communication component;
The memory is for storing one or more computer instruction;
The processor is coupled with the memory, for executing one or more computer instruction, to be used for:
After establishing bluetooth connection with terminal device, the terminal is monitored by the communication component within a preset time and is set The information that preparation is sent;
If listening to the information that the terminal device is sent in the preset time, the terminal listened to is set The information that preparation is sent is compared with presupposed information;
If the information that the terminal device listened to is sent matches with the presupposed information, keep and the terminal Bluetooth connection between equipment.
The embodiment of the present application also provides a kind of terminal device, including memory, processor and communication component;
The memory is for storing one or more computer instruction;
The processor is coupled with the memory, for executing one or more computer instruction, to be used for:
After establishing bluetooth connection with bluetooth equipment, within a preset time, generate and the default letter in the bluetooth equipment The matched information of manner of breathing, and the information is sent to the bluetooth equipment by the communication component, so that the bluetooth equipment Continue to keep the bluetooth connection between the terminal device after listening to the information.
The embodiment of the present application also provides a kind of computer readable storage medium for storing computer instruction, which is characterized in that When computer instruction is executed by one or more processors, cause one or more processors execution is above-mentioned to be held by bluetooth equipment The processing method of capable bluetooth connection.
The embodiment of the present application also provides a kind of computer readable storage medium for storing computer instruction, which is characterized in that When computer instruction is executed by one or more processors, cause one or more processors execution is above-mentioned to be held by terminal device The processing method of capable bluetooth connection.
In the embodiment of the present application, after bluetooth equipment and terminal device establish bluetooth connection, terminal device need to be default The information to match with presupposed information is sent in time to bluetooth equipment;Bluetooth equipment can monitor terminal equipment within a preset time The information of transmission, when listening to the information of terminal device transmission within a preset time, the presupposed information based on storage is screened eventually Whether the information that end equipment is sent is eligible, and when the information that terminal device is sent is eligible, determines terminal device category Bluetooth connection between legitimate device, with terminal device is safe, and then keeps its bluetooth between terminal device Connection, accordingly, can carry out normal Bluetooth communication between bluetooth equipment and terminal device.In the present embodiment, bluetooth equipment and end After end equipment establishes bluetooth connection, can screen out whether current bluetooth connection is that malice connects, and is determining current company When being connected in non-malicious connection, allows the Bluetooth communication between terminal device, ensure that the information security of bluetooth equipment, it can be effective Promote the safety of bluetooth equipment.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present application, constitutes part of this application, this Shen Illustrative embodiments and their description please are not constituted an undue limitation on the present application for explaining the application.In the accompanying drawings:
Fig. 1 is the structural schematic diagram of the processing system for the bluetooth connection that one embodiment of the application provides;
Fig. 2 is a kind of flow diagram of the processing method for bluetooth connection that another embodiment of the application provides;
Fig. 3 is the flow diagram of the processing method for another bluetooth connection that another embodiment of the application provides;
Fig. 4 is a kind of flow diagram of the processing method for bluetooth connection that the another embodiment of the application provides;
Fig. 5 is a kind of structural schematic diagram for bluetooth equipment that the another embodiment of the application provides;
Fig. 6 is a kind of structural schematic diagram for terminal device that the another embodiment of the application provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application one Section Example, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
Bluetooth equipment during the work time, can broadcast the Bluetooth address of itself, and the connection side of malice can be according to indigo plant The Bluetooth address and bluetooth equipment of tooth equipment establish bluetooth connection, or even can send risk data, this serious prestige to bluetooth equipment Coerce the information security of bluetooth equipment.To solve safety problem present in the course of work of bluetooth equipment, the one of the application In a little embodiments: after bluetooth equipment and terminal device establish bluetooth connection, terminal device needs to set to bluetooth within a preset time Preparation send the information to match with presupposed information;Bluetooth equipment can within a preset time monitor terminal equipment send information, when When listening to the information of terminal device transmission within a preset time, the presupposed information based on storage screens the letter that terminal device is sent Whether breath is eligible, and when the information that terminal device is sent is eligible, determines that terminal device belongs to legitimate device, with Bluetooth connection between terminal device is safe, and then keeps its bluetooth connection between terminal device, and accordingly, bluetooth is set It is standby that normal Bluetooth communication can be carried out between terminal device.In the present embodiment, bluetooth equipment and terminal device establish bluetooth company After connecing, can screen out current bluetooth connection whether be malice connect, and determine current connection be non-malicious connection when, Allow the Bluetooth communication between terminal device, ensure that the information security of bluetooth equipment, can effectively promote the peace of bluetooth equipment Quan Xing.
Below in conjunction with attached drawing, the technical scheme provided by various embodiments of the present application will be described in detail.
Fig. 1 is the structural schematic diagram of the processing system for the bluetooth connection that one embodiment of the application provides.As shown in Figure 1, should System includes: bluetooth equipment 10 and terminal device 20.
After bluetooth equipment 10 broadcasts the Bluetooth address of itself, multiple terminal devices 20 shown in Fig. 1 can all be obtained To the Bluetooth address of bluetooth equipment 10, moreover, each terminal device 20 can be established and indigo plant based on the standard agreement of bluetooth connection Bluetooth connection between tooth equipment 10.
In the present embodiment, bluetooth equipment 10 can be tracker, be also possible to the other pairs of more demanding indigo plants of safety coefficient Tooth equipment, for example, the wearable devices such as Intelligent bracelet, smartwatch.In order to improve the safety of bluetooth equipment 10, bluetooth equipment 10 bluetooth connections that can be screened thereon are malice connection or non-malicious connection.Wherein, non-malicious connection refers to and bluetooth equipment There is the corresponding bluetooth connection of terminal device 20 for the relationship that matches between 10.For example, the terminal device A in Fig. 1 passes through indigo plant The bluetooth connection between bluetooth equipment 10 that the corresponding APP of tooth equipment 10 is established.Malice connection refers to and bluetooth equipment 10 Between there is no match the corresponding bluetooth connection of terminal device 20 of relationship.For example, the terminal device B in Fig. 1 passes through indigo plant The bluetooth connection between bluetooth equipment 10 that other APP except the corresponding APP of tooth equipment 10 are established.
In the present embodiment, it can make an appointment between bluetooth equipment 10 and the terminal device 20 that there is the relationship that matches with it The processing mode of bluetooth connection.Terminal device 20 can the processing mode based on agreement to bluetooth equipment 10 send information, and bluetooth Equipment 10 can screen out whether the information sent with terminal device 20 meets the requirements based on the processing mode of agreement.
It, can when it is the terminal device 20 that there is the relationship that matches with bluetooth equipment 10 for terminal device 20 After establishing bluetooth connection with bluetooth equipment 10, sent and presetting in bluetooth equipment 10 to bluetooth equipment 10 within a preset time The information that information matches.
And for bluetooth equipment 10, can within a preset time monitor terminal equipment 20 send information;If when default The interior information for listening to the transmission of terminal device 20, the then information sent the terminal device 20 listened to and presupposed information carry out Compare;If the information that the terminal device 20 listened to is sent matches with presupposed information, keep between terminal device 20 Bluetooth connection.
On the one hand, terminal device 20 can send the letter to match with the presupposed information in bluetooth equipment 10 to bluetooth equipment 10 Breath.Bluetooth equipment 10 can determine whether that the information and presupposed information thereon carry out when listening to the information of the transmission of terminal device 20 Judgement, when the information matches with presupposed information, it may be determined that the corresponding bluetooth connection of terminal device 20 is non-malicious connection. For example, terminal device 20 can send bluetooth to bluetooth equipment 10 when the presupposed information on bluetooth equipment 10 is its Bluetooth address The Bluetooth address of equipment 10, and bluetooth equipment 10 can determine when the Bluetooth address for listening to the transmission of terminal device 20 is correct The corresponding bluetooth connection of terminal device 20 is non-malicious connection, and bluetooth equipment 10 can keep the indigo plant between the terminal device 20 Tooth connection, and normal Bluetooth communication can be carried out with the terminal device 20.
Wherein, whether the information that bluetooth equipment 10 is sent in the terminal device 20 that listens to of judgement matches with presupposed information When, a variety of implementations can be used.
In one implementation, any information that bluetooth equipment 10 can send terminal device 20 is performed both by judgement behaviour Make.That is, for terminal device 20 send any information, bluetooth equipment 10 judge each information whether with presupposed information Match, when there is information matched with presupposed information in any information that terminal device 20 is sent, it may be determined that the terminal device 20 Corresponding bluetooth connection be non-malicious connection, and when terminal device 20 send any information in not exist and presupposed information When the information matched, it may be determined that the corresponding bluetooth connection of terminal device 20 is that malice connects.
In another implementation, bluetooth equipment 10 can screen the corresponding info class of information of the transmission of terminal device 20 Type is the information of " comparison " for information type, and bluetooth equipment 10 can determine whether the information matches with presupposed information, and accordingly Determine whether the corresponding bluetooth connection of terminal device 20 is that malice connects.Certainly, the title of information type is exemplary only, also It can be other information types made an appointment, the present embodiment is not construed as limiting this.
In addition, above two implementation is merely exemplary, other implementation judgements are also can be used in bluetooth equipment 10 Whether the information that the terminal device 20 listened to is sent matches with presupposed information, and the present embodiment is not limited to this.
On the other hand, terminal device 20 can be sent and the matched letter of presupposed information to bluetooth equipment 10 within a preset time Breath, and bluetooth equipment 10 can set listening period based on preset time corresponding to the transmission information of terminal device 20.Accordingly, blue Tooth equipment 10 can be using listening period as auxiliary judgment condition, and for meeting the information of listening period condition, bluetooth equipment 10 is again Judge whether it matches with presupposed information.In this way, the data processing amount of bluetooth equipment 10 can be effectively reduced, and can be more accurate Determine whether bluetooth connection is that malice connects.
It is worth noting that although herein, when sending the information to match with presupposed information for terminal device 20 pair Corresponding preset time when the information that the preset time and 10 monitor terminal equipment 20 of bluetooth equipment answered are sent, not in text Two preset times are distinguished on word, still, it will be apparent to a skilled person that when being needed due to information transmitting Between, this leads to issue information from terminal device 20 and listens to the information to bluetooth equipment 10 that there are the time differences, therefore, this reality It applies in example, can be avoided by the way that the corresponding preset time of terminal device 20 and the corresponding preset time of bluetooth equipment 10 is adjusted flexibly Error caused by the above-mentioned time difference.For example, bluetooth equipment 10 is right when the 10 synchronous averaging timing of terminal device 20 and bluetooth equipment The preset time answered is longer than the corresponding preset time of terminal device 20, to guarantee the information of the transmission of terminal device 20 in indigo plant It can be listened to by bluetooth equipment 10 in the corresponding preset time of tooth equipment 10.In another example bluetooth equipment 10 starts the time of timing The time for starting timing than terminal device 20 is delayed.Certainly can also be other adjustment modes, the present embodiment to this not It limits.
In the present embodiment, the presupposed information on bluetooth equipment 10 can be the Bluetooth address of its own, and correspondingly, terminal is set When standby 20 information sent within a preset time to bluetooth equipment 10 are the Bluetooth address of bluetooth equipment 10, bluetooth equipment 10 can be true The fixed corresponding bluetooth connection of terminal device 20 is non-malicious connection.Certainly, the presupposed information on bluetooth equipment 10 can also be Other information, for example, specified numerical value, specified character string etc., the present embodiment is not construed as limiting this.In addition, in order into one Step improve bluetooth equipment 10 safety, can terminal device 20 can by cipher mode to bluetooth equipment 10 send and bluetooth equipment The matched information of presupposed information on 10, correspondingly, bluetooth equipment 10 can be right when listening to the information of the transmission of terminal device 20 The information is decrypted, if successful decryption, and the information after decryption would be matched with presupposed information, then can determine the terminal device 20 Corresponding bluetooth connection is non-malicious connection.
In the present embodiment, after bluetooth equipment and terminal device establish bluetooth connection, terminal device is needed within a preset time The information to match with presupposed information is sent to bluetooth equipment;Bluetooth equipment can within a preset time monitor terminal equipment send Information, when listening to the information of terminal device transmission within a preset time, the presupposed information based on storage screens terminal device Whether the information of transmission is eligible, and when the information that terminal device is sent is eligible, it is legal to determine that terminal device belongs to Bluetooth connection between equipment, with terminal device is safe, and then keeps its bluetooth connection between terminal device, according to This, can carry out normal Bluetooth communication between bluetooth equipment and terminal device.In the present embodiment, bluetooth equipment is built with terminal device After vertical bluetooth connection, can screen out whether current bluetooth connection is that malice connects, and is determining that current connection is non-evil When meaning connection, allows the Bluetooth communication between terminal device, ensure that the information security of bluetooth equipment, can effectively promote bluetooth The safety of equipment.
In above-mentioned or following embodiments, if bluetooth equipment 10 does not hear the transmission of terminal device 20 within a preset time Information then disconnects the bluetooth connection between terminal device 20.
Such as the description in previous embodiment, when terminal device 20 exists with bluetooth equipment 10 matches relationship, terminal Equipment 20 actively will send the information to match with the presupposed information on bluetooth equipment 10 to bluetooth equipment 10 within a preset time, For this kind of terminal device 20, bluetooth equipment 10 can listen to the information of its transmission within a preset time.And if bluetooth equipment 10 Within a preset time and the information that terminal device 20 is sent is not heard, then characterizes the terminal device 20 and do not follow bluetooth equipment The processing mode of 10 corresponding bluetooth connections, bluetooth equipment 10 can judge that the terminal device 20 is not present with bluetooth equipment 10 accordingly Relationship is matched, in turn, bluetooth equipment 10 can determine that the corresponding bluetooth connection of terminal device 20 connects for malice, and disconnect With the bluetooth connection of the terminal device 20.
In the present embodiment, for not sending the terminal device 20 of information to bluetooth equipment 10 within a preset time, bluetooth is set Standby 10, which can be determined as its corresponding bluetooth connection malice, connects, and actively can set it with terminal after preset time Standby 20 bluetooth connection disconnects, so as to avoid malice bluetooth connection to security risk caused by bluetooth equipment 10.
In above-mentioned or following embodiments, the terminal device 20 of malice connection may also be within a preset time to bluetooth equipment 10 send information, and bluetooth equipment 10 determine the terminal device 20 for malice connect before, if the terminal device 20 at Function has sent information to bluetooth equipment 10, then will damage to the information security of bluetooth equipment 10.
It is right in the present embodiment to avoid the security risk that may be present before determining that malice connects of bluetooth equipment 10 For terminal device 20, if it, which exists with bluetooth equipment 10, matches relationship, can by with it is pre- in bluetooth equipment 10 If the information that information matches is as first information sent within a preset time to bluetooth equipment 10.And for bluetooth equipment For 10, if listening to the information of the transmission of terminal device 20, the terminal that will be listened within a preset time within a preset time First information that equipment 20 is sent is compared with presupposed information;If the terminal device 20 listened within a preset time is sent First information match with presupposed information, then keep and terminal device 20 between bluetooth connection.
In the present embodiment, after establishing bluetooth connection with terminal device 20 and bluetooth connection, terminal device 20 is to bluetooth equipment 10 send first information as judge bluetooth connection whether be maliciously connect foundation.Accordingly, if bluetooth equipment 10 is pre- If listening to the information of the transmission of terminal device 20 in the time, and in first information and bluetooth equipment 10 of the transmission of terminal device 20 Presupposed information when matching, bluetooth equipment 10 can determine the corresponding bluetooth connection of terminal device 20 for non-malicious connection.And If information or bluetooth equipment 10 that bluetooth equipment 10 does not hear the transmission of terminal device 20 within a preset time are in preset time First information of the transmission of terminal device 20 is inside listened to, and in first information and bluetooth equipment 10 that terminal device 20 is sent Presupposed information mismatch when, bluetooth equipment 10 can determine the corresponding bluetooth connection of terminal device 20 for malice connect.
In this way, bluetooth equipment 10 can not send information to bluetooth equipment 10 at it for the terminal device 20 of malice connection Or to bluetooth equipment 10 send first information when, screen out this kind of terminal device 20, and in time disconnect set with this Terminal Type Standby 20 connection, thus, the terminal device 20 that this can effectively avoid malice connection is hidden to 10 bring information security of bluetooth equipment Contain.
For example, bluetooth equipment 10 can be in indigo plant when the terminal device A in Fig. 1 establishes bluetooth connection with bluetooth equipment 10 Tooth connection starts a timer after establishing, and the information that monitor terminal equipment A is sent within the timer corresponding time, if fixed When the device corresponding time in listen to the bluetooth that first information that terminal device A is sent to bluetooth equipment 10 is bluetooth equipment 10 Address, then bluetooth equipment 10 can keep the bluetooth connection with terminal device 20A, and carry out subsequent normal indigo plant with terminal device A Tooth communication.
In another example when in Fig. 1 terminal device B and bluetooth equipment 10 establish bluetooth connection when, bluetooth equipment 10 can be Bluetooth connection starts a timer after establishing, and the information that monitor terminal equipment B is sent within the timer corresponding time, if Timer does not hear any information that terminal device B is sent to bluetooth equipment 10 in the corresponding time, then bluetooth equipment 10 can Disconnect the bluetooth connection between terminal device B.
For another example when in Fig. 1 terminal device C and bluetooth equipment 10 establish bluetooth connection when, bluetooth equipment 10 can be Bluetooth connection starts a timer after establishing, and the information that monitor terminal equipment C is sent within the timer corresponding time, if Timer listens to first information that terminal device C is sent to bluetooth equipment 10 as control instruction letter in the corresponding time Breath, and the presupposed information on bluetooth equipment 10 is Bluetooth address, then bluetooth equipment 10 can be disconnected connects with the bluetooth of terminal device C It connects, and bluetooth equipment 10 is not carried out the control instruction of terminal device C transmission.
In addition, in the present embodiment, bluetooth equipment 10 and exist between the terminal device 20 for the relationship that matches it can will Time needed for preset time is about set to single information transmission.In some practical applications, preset time may be slightly larger than single letter Breath transmits the required time and less than two information successively transmit the required time.In this way, in the listening period of bluetooth equipment 10, An information can be at most transmitted between terminal device 20 and bluetooth equipment 10, and bluetooth equipment 10 can judge indigo plant according to this information Whether tooth connection is that malice connects.This avoids excessively disappearing for the resource due to the longer caused bluetooth equipment 10 of preset time Consumption.
Fig. 2 is a kind of flow diagram of the processing method for bluetooth connection that another embodiment of the application provides.This method Suitable for bluetooth equipment, as shown in Fig. 2, this method comprises:
200, after establishing bluetooth connection with terminal device, within a preset time monitor terminal equipment send information;
If 201, listening to the information of terminal device transmission within a preset time, the terminal device listened to is sent Information is compared with presupposed information;
If information and presupposed information that the terminal device 202, listened to is sent match, keep between terminal device Bluetooth connection.
In an alternative embodiment, step 201 includes:
If listening to the information of terminal device transmission within a preset time, the terminal listened within a preset time is set First information that preparation is sent is compared with presupposed information;
Step 202 includes:
If first information that the terminal device listened within a preset time is sent matches with presupposed information, keep Bluetooth connection between terminal device.
Fig. 3 is the flow diagram of the processing method for another bluetooth connection that another embodiment of the application provides.Such as Fig. 3 It is shown, this method comprises:
300, after establishing bluetooth connection with terminal device, within a preset time monitor terminal equipment send information;
301, whether judgement listens to the information of terminal device transmission within a preset time, if so, thening follow the steps 302; If it is not, thening follow the steps 304;
302, first information and presupposed information that the terminal device that listens within a preset time of judgement is sent whether Match, if so, 303 are thened follow the steps,;If it is not, thening follow the steps 304;
303, the bluetooth connection between terminal device is kept;
304, it disconnects and the bluetooth connection before terminal device.
In an alternative embodiment, presupposed information includes the Bluetooth address of bluetooth equipment.
Fig. 4 is a kind of flow diagram of the processing method for bluetooth connection that the another embodiment of the application provides.This method Suitable for terminal device, as shown in figure 4, this method comprises:
400, it after establishing bluetooth connection with bluetooth equipment, within a preset time, generates and the default letter in bluetooth equipment The matched information of manner of breathing;
401, to bluetooth equipment send information so that bluetooth equipment continue after listening to information keep with terminal device it Between bluetooth connection.
In an alternative embodiment, step 401, comprising:
Using the information to match with the presupposed information in bluetooth equipment as within a preset time to bluetooth equipment transmission First information.
In an alternative embodiment, comparison information includes the Bluetooth address of bluetooth equipment.
Fig. 5 is a kind of structural schematic diagram for bluetooth equipment that the another embodiment of the application provides.As shown in figure 5, the bluetooth Equipment includes: memory 50, processor 51 and communication component 52.
Memory 50 for storing computer program, and can be configured to store various other data to support in bluetooth Operation in equipment.The example of these data includes the finger of any application or method for operating on bluetooth equipment It enables, contact data, telephone book data, information, picture, video etc..
Memory 50 can be by any kind of volatibility or non-volatile memory device or their combination realization, such as Static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only to be deposited Reservoir (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Processor 51 is coupled with memory 50, for executing the computer program in memory 50, to be used for:
After establishing bluetooth connection with terminal device, by communication component 52, monitor terminal equipment is sent within a preset time Information;
If listening to the information of terminal device transmission within a preset time, the information that the terminal device listened to is sent It is compared with presupposed information;
If the information that the terminal device listened to is sent matches with presupposed information, the indigo plant between terminal device is kept Tooth connection.
In an alternative embodiment, if processor 51 listen within a preset time terminal device transmission information, When the information that the terminal device listened to is sent is compared with presupposed information, it is used for:
If listening to the information of terminal device transmission within a preset time, the terminal listened within a preset time is set First information that preparation is sent is compared with presupposed information;
If processor matches in the information listened to presupposed information, when keeping the connection between terminal device, For:
If first information that the terminal device listened within a preset time is sent matches with presupposed information, keep Bluetooth connection between terminal device.
In an alternative embodiment, processor 51 is also used to:
If first information and presupposed information that the terminal device listened within a preset time is sent mismatch, disconnect Bluetooth connection between terminal device.
In an alternative embodiment, processor 51 is also used to:
If not hearing the information of terminal device transmission within a preset time, the bluetooth disconnected between terminal device connects It connects.
In an alternative embodiment, presupposed information includes the Bluetooth address of bluetooth equipment.
Further, as shown in figure 5, the bluetooth equipment further include: other components such as power supply module 53.In Fig. 5 only schematically Members are provided, are not meant to that bluetooth equipment only includes component shown in Fig. 5.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, meter Calculation machine program, which is performed, can be realized each step that can be executed by bluetooth equipment in above method embodiment.
Fig. 6 is a kind of structural schematic diagram for terminal device that the another embodiment of the application provides.As shown in figure 5, the terminal Equipment includes: memory 60, processor 61 and communication component 62.
Memory 60 for storing computer program, and can be configured to store various other data to support in terminal Operation in equipment.The example of these data includes the finger of any application or method for operating on the terminal device It enables, contact data, telephone book data, information, picture, video etc..
Memory 60 can be by any kind of volatibility or non-volatile memory device or their combination realization, such as Static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable is read-only to be deposited Reservoir (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or CD.
Processor 61 is coupled with memory 60, for executing the computer program in memory 60, to be used for:
After establishing bluetooth connection with bluetooth equipment, within a preset time, generate and the presupposed information phase in bluetooth equipment Matched information, and information is sent to bluetooth equipment by communication component 62, so that bluetooth equipment continues after listening to information Keep the bluetooth connection between terminal device.
In an alternative embodiment, processor 61 is sent and presetting in bluetooth equipment to bluetooth equipment within a preset time When the information that information matches, it is used for:
Using the information to match with the presupposed information in bluetooth equipment as within a preset time to bluetooth equipment transmission First information.
In an alternative embodiment, presupposed information includes the Bluetooth address of bluetooth equipment.
Further, as shown in fig. 6, the terminal device further include: display 63, power supply module 64, audio component 65 etc. its Its component.Members are only schematically provided in Fig. 6, are not meant to that terminal device only includes component shown in Fig. 6.
Wherein, have between equipment and other equipment where the communication component in Fig. 5 and Fig. 6 is configured to facilitate communication component The communication of line or wireless mode.Equipment where communication component can access the wireless network based on communication standard, such as WiFi, 2G or 3G or their combination.In one exemplary embodiment, communication component receives via broadcast channel and comes from external broadcasting management The broadcast singal or broadcast related information of system.In one exemplary embodiment, the communication component further includes near-field communication (NFC) module, to promote short range communication.For example, radio frequency identification (RFID) technology, Infrared Data Association can be based in NFC module (IrDA) technology, ultra wide band (UWB) technology, bluetooth (BT) technology and other technologies are realized.
Wherein, the display in Fig. 6 includes screen, and screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen may be implemented as touch screen, to receive input signal from the user.Touching Touching panel includes one or more touch sensors to sense the gesture on touch, slide, and touch panel.The touch sensing Device can not only sense the boundary of a touch or slide action, but also detect it is associated with the touch or slide operation continue when Between and pressure.
Wherein, the power supply module in Fig. 5 and Fig. 6, the various assemblies of equipment provide electric power where power supply module.Power supply group Part may include power-supply management system, one or more power supplys and other with generated for equipment where power supply module, management and point With the associated component of electric power.
Wherein, the audio component in Fig. 6, can be configured to output and/or input audio signal.For example, audio component packet A microphone (MIC) is included, the equipment where audio component is in operation mode, as call model, logging mode and voice are known When other mode, microphone is configured as receiving external audio signal.The received audio signal can be further stored in and deposit Reservoir is sent via communication component.In some embodiments, audio component further includes a loudspeaker, for exporting audio letter Number.
Correspondingly, the embodiment of the present application also provides a kind of computer readable storage medium for being stored with computer program, meter Calculation machine program, which is performed, can be realized each step that can be executed by terminal device in above method embodiment.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The above description is only an example of the present application, is not intended to limit this application.For those skilled in the art For, various changes and changes are possible in this application.All any modifications made within the spirit and principles of the present application are equal Replacement, improvement etc., should be included within the scope of the claims of this application.

Claims (11)

1. a kind of processing method of bluetooth connection is suitable for bluetooth equipment characterized by comprising
After establishing bluetooth connection with terminal device, the information that the terminal device is sent is monitored within a preset time;
If listening to the information that the terminal device is sent in the preset time, the terminal device listened to is sent out The information sent is compared with presupposed information;
If the information that the terminal device listened to is sent matches with the presupposed information, keep and the terminal device Between bluetooth connection.
2. if the method according to claim 1, wherein described listen to the terminal in the preset time The information that the terminal device listened to is sent then is compared by the information that equipment is sent with presupposed information, comprising:
If listening to the information that the terminal device is sent in the preset time, will be listened in the preset time The terminal device send first information be compared with presupposed information;
If the information listened to matches with the presupposed information, the company between the terminal device is kept It connects, comprising:
If first information and the presupposed information phase that the terminal device listened in the preset time is sent Match, then keeps the bluetooth connection between the terminal device.
3. according to the method described in claim 2, it is characterized by further comprising:
If first information that the terminal device that listens in the preset time is sent and the presupposed information are not Match, then disconnects the bluetooth connection between the terminal device.
4. the method according to claim 1, wherein further include:
If not hearing the information that the terminal device is sent in the preset time, disconnect between the terminal device Bluetooth connection.
5. method according to claim 1-4, which is characterized in that the presupposed information includes the indigo plant of bluetooth equipment Tooth address.
6. a kind of processing method of bluetooth connection is suitable for terminal device characterized by comprising
After establishing bluetooth connection with bluetooth equipment, within a preset time, generate and the presupposed information phase in the bluetooth equipment Matched information, and send the information to the bluetooth equipment, so that the bluetooth equipment is to listen to the information subsequent The bluetooth connection between the terminal device is held in continuation of insurance.
7. according to the method described in claim 6, it is characterized in that, described send the information to the bluetooth equipment, comprising:
The bluetooth equipment is sent to using the information as first information in the preset time.
8. a kind of bluetooth equipment, which is characterized in that including memory, processor and communication component;
The memory is for storing one or more computer instruction;
The processor is coupled with the memory, for executing one or more computer instruction, to be used for:
After establishing bluetooth connection with terminal device, the terminal device is monitored by the communication component within a preset time and is sent out The information sent;
If listening to the information that the terminal device is sent in the preset time, the terminal device listened to is sent out The information sent is compared with presupposed information;
If the information that the terminal device listened to is sent matches with the presupposed information, keep and the terminal device Between bluetooth connection.
9. a kind of terminal device, which is characterized in that including memory, processor and communication component;
The memory is for storing one or more computer instruction;
The processor is coupled with the memory, for executing one or more computer instruction, to be used for:
After establishing bluetooth connection with bluetooth equipment, within a preset time, generate and the presupposed information phase in the bluetooth equipment Matched information, and the information is sent to the bluetooth equipment by the communication component, so that the bluetooth equipment is being supervised Continue to keep the bluetooth connection between the terminal device after hearing the information.
10. it is a kind of store computer instruction computer readable storage medium, which is characterized in that when computer instruction by one or When multiple processors execute, one or more processors perform claim is caused to require the processing side of the bluetooth connection of any one of 1-5 Method.
11. it is a kind of store computer instruction computer readable storage medium, which is characterized in that when computer instruction by one or When multiple processors execute, one or more processors perform claim is caused to require the processing side of the bluetooth connection of any one of 6-7 Method.
CN201811274929.8A 2018-10-30 2018-10-30 A kind of processing method of bluetooth connection, equipment and storage medium Pending CN109246851A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811274929.8A CN109246851A (en) 2018-10-30 2018-10-30 A kind of processing method of bluetooth connection, equipment and storage medium
PCT/CN2018/124164 WO2020087734A1 (en) 2018-10-30 2018-12-27 Bluetooth connection processing method and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811274929.8A CN109246851A (en) 2018-10-30 2018-10-30 A kind of processing method of bluetooth connection, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN109246851A true CN109246851A (en) 2019-01-18

Family

ID=65079261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811274929.8A Pending CN109246851A (en) 2018-10-30 2018-10-30 A kind of processing method of bluetooth connection, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN109246851A (en)
WO (1) WO2020087734A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093188A (en) * 2019-12-05 2020-05-01 任子行网络技术股份有限公司 Method and device for monitoring harmful Bluetooth information
CN111447602A (en) * 2020-06-17 2020-07-24 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN112565878A (en) * 2020-12-07 2021-03-26 四川长虹电器股份有限公司 Method for quickly inputting wireless password on television

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105430603A (en) * 2015-12-03 2016-03-23 北京握奇智能科技有限公司 Secure connection method and system for Bluetooth equipment
CN107071709A (en) * 2017-04-06 2017-08-18 飞天诚信科技股份有限公司 A kind of matching method and device with bluetooth equipment
US20170280277A1 (en) * 2015-12-02 2017-09-28 Huizhou Tcl Mobile Communication Co., Ltd. Bluetooth interconnection method and system for wearable device and mobile terminal
CN108495291A (en) * 2018-03-12 2018-09-04 北京华大智宝电子***有限公司 A kind of Bluetooth connecting method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553964B (en) * 2015-12-10 2019-09-17 小米科技有限责任公司 Control the method and device of bluetooth equipment
CN106888108A (en) * 2016-10-26 2017-06-23 阿里巴巴集团控股有限公司 The networking methods of smart machine, smart machine and mobile client
CN107277754B (en) * 2017-07-12 2020-02-28 深圳市冠旭电子股份有限公司 Bluetooth connection method and Bluetooth peripheral equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170280277A1 (en) * 2015-12-02 2017-09-28 Huizhou Tcl Mobile Communication Co., Ltd. Bluetooth interconnection method and system for wearable device and mobile terminal
CN105430603A (en) * 2015-12-03 2016-03-23 北京握奇智能科技有限公司 Secure connection method and system for Bluetooth equipment
CN107071709A (en) * 2017-04-06 2017-08-18 飞天诚信科技股份有限公司 A kind of matching method and device with bluetooth equipment
CN108495291A (en) * 2018-03-12 2018-09-04 北京华大智宝电子***有限公司 A kind of Bluetooth connecting method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111093188A (en) * 2019-12-05 2020-05-01 任子行网络技术股份有限公司 Method and device for monitoring harmful Bluetooth information
CN111093188B (en) * 2019-12-05 2023-04-07 任子行网络技术股份有限公司 Method and device for monitoring harmful Bluetooth information
CN111447602A (en) * 2020-06-17 2020-07-24 成都极米科技股份有限公司 Bluetooth device, Bluetooth preemption method and device thereof, and computer-readable storage medium
CN112565878A (en) * 2020-12-07 2021-03-26 四川长虹电器股份有限公司 Method for quickly inputting wireless password on television

Also Published As

Publication number Publication date
WO2020087734A1 (en) 2020-05-07

Similar Documents

Publication Publication Date Title
CA2851379C (en) Methods and apparatus to control accessories
CN109417758B (en) Bluetooth connection method and terminal
US20210243831A1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
US9456265B2 (en) Electronic device and control method thereof
KR101963424B1 (en) Message Transmission Method, and Message Reception Method and Apparatus
US10681200B2 (en) Message processing method and system, and related device
CN103957103B (en) The method of safety verification, device and mobile terminal
CN108650668A (en) Connection request processing method, bluetooth headset, wearable device and system
US20190335398A1 (en) Connection method and connection device for bluetooth device
CN109246851A (en) A kind of processing method of bluetooth connection, equipment and storage medium
US10181871B2 (en) Interactive communication system and method therefor
US20160323826A1 (en) Multimode and power-saving method of multimedia transmission and system thereof
CN107342616B (en) Method and device for intelligently controlling charging and terminal thereof
CN108738008A (en) Bluetooth pairing methods and system
CN104615016A (en) Low-power-consumption Bluetooth technology based host control method and device
CN106413032B (en) Hotspot establishing method and terminal equipment
WO2020238668A1 (en) Data transmission apparatus and method and electronic device
WO2018068419A1 (en) Method and system for pushing notification information
CN106708240A (en) Power saving method, server and power saving system
CN107426311A (en) Information-pushing method and device
US11394495B2 (en) Hybrid automatic repeat request (HARQ) feedback method and device and data receiving apparatus
CN106792434B (en) Hotspot establishing method and terminal equipment
CN107682153A (en) Method for network access, password method for remote updating, internet of things equipment and system
WO2023179119A1 (en) Near field communication device connection method and apparatus, device, storage medium, and product
CN112218293B (en) Mobile terminal secure communication method, device, terminal equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190118