CN110167192A - Bluetooth connection management method and device, electronic equipment and non-transient storage media - Google Patents

Bluetooth connection management method and device, electronic equipment and non-transient storage media Download PDF

Info

Publication number
CN110167192A
CN110167192A CN201910307124.7A CN201910307124A CN110167192A CN 110167192 A CN110167192 A CN 110167192A CN 201910307124 A CN201910307124 A CN 201910307124A CN 110167192 A CN110167192 A CN 110167192A
Authority
CN
China
Prior art keywords
equipment
data
real
bluetooth
pairing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910307124.7A
Other languages
Chinese (zh)
Other versions
CN110167192B (en
Inventor
陈义哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
OneConnect Smart Technology Co Ltd
Original Assignee
OneConnect Smart Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by OneConnect Smart Technology Co Ltd filed Critical OneConnect Smart Technology Co Ltd
Priority to CN201910307124.7A priority Critical patent/CN110167192B/en
Publication of CN110167192A publication Critical patent/CN110167192A/en
Application granted granted Critical
Publication of CN110167192B publication Critical patent/CN110167192B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The invention proposes a kind of bluetooth connection management method and device, electronic equipment and non-transient storage media, it is related to researching and developing administrative skill field, wherein this method comprises: obtaining Bluetooth connection request;According to Bluetooth connection request, the unified interface of terminal is called to obtain the device name of equipment to be connected, equipment physical address, equipment RSSI, versions;According to versions, corresponding pairing connection type is selected for equipment to be connected;According to device name, equipment physical address and equipment RSSI, verifies terminal and whether equipment to be connected meets pairing condition of contact;In the case where terminal and equipment to be connected meet pairing condition of contact, unified interface is called to carry out pairing connection according to pairing connection type and equipment to be connected;While carrying out pairing connection, data decryptor is carried out to unified interface.According to the technical solution of the present invention, the difficulty of bluetooth connection and monitoring can be reduced.

Description

Bluetooth connection management method and device, electronic equipment and non-transient storage media
[technical field]
The present invention relates to research and development administrative skill fields more particularly to a kind of bluetooth connection management method and device, electronics to set Standby and non-transient storage media.
[background technique]
With the development of science and technology, Bluetooth transmission has been added to more and morely in the work and life of people, is become The essential a part of the modern life.Currently, in the industry would generally be for each ring in bluetooth hardware connection and transmission process Section is packaged and optimizes, that is to say, that developer needs to be packaged links respectively, and different bluetooth connection sides In formula, the content of link quantity and each link is all different, and the workload and work difficulty faced in exploitation and maintenance is all It is very big.Further, it during Bluetooth transmission, needs to monitor the links of Bluetooth transmission, and link quantity mistake It is more, it will result in and monitor cost and difficult.
Therefore, the difficulty for how reducing bluetooth connection and monitoring, becomes a technical problem to be solved urgently.
[summary of the invention]
The embodiment of the invention provides a kind of bluetooth connection management method and device, electronic equipment and non-transient storage Jie Matter, it is intended to the big technical problem of the difficulty of bluetooth connection and monitoring in the related technology is solved, it can be by different bluetooth connection sides Formula is packaged respectively, with the difficulty for reducing connection and monitoring.
In a first aspect, the embodiment of the invention provides a kind of bluetooth connection management methods, comprising: obtain bluetooth connection and ask It asks;According to the Bluetooth connection request, the unified interface of terminal is called to obtain the device name of equipment to be connected, equipment physically Location, equipment RSSI, versions;According to the versions, corresponding pairing connection type is selected for the equipment to be connected; According to the device name, the equipment physical address and the equipment RSSI, the terminal and the equipment to be connected are verified Whether satisfaction matches condition of contact;In the case where the terminal and the equipment to be connected meet the pairing condition of contact, The unified interface is called to carry out pairing connection according to the pairing connection type and the equipment to be connected;Carrying out pairing company While connecing, data decryptor is carried out to the unified interface.
In the above embodiment of the present invention, optionally, the versions of the equipment to be connected include classical bluetooth And low-power consumption bluetooth;In the case where the versions are the low-power consumption bluetooth, it is described call the unified interface according to The pairing connection type and the equipment to be connected carry out the step of pairing connection, comprising: obtain data to be transmitted;It will be described Data to be transmitted splits into the subdata of predetermined bite quantity, and corresponding packaging mark is arranged for each subdata;It will Each subdata and its corresponding packaging identification transmission are to the equipment to be connected, for the equipment to be connected root It is identified according to the packaging and each subdata is reduced into the data to be transmitted.
In the above embodiment of the present invention, optionally, described the step of data decryptor is carried out to the unified interface, packet It includes: the real-time transmission data of the interception unified interface at random or at preset time intervals;Detect the real-time transmission data Data format whether be predetermined format;The case where the data format of the real-time transmission data is the predetermined format Under, determine that the real-time transmission data is illegal.
In the above embodiment of the present invention, optionally, described the step of data decryptor is carried out to the unified interface, packet It includes: the real-time transmission data of the interception unified interface at random or at preset time intervals;Judge the real-time transmission data Multiple second predetermined characters for whether including the first predetermined character or being arranged according to predetermined order;In the real-time transmission data packet In the case where including first predetermined character or multiple second predetermined characters according to predetermined order arrangement, the reality is determined When transmission data it is illegal.
In the above embodiment of the present invention, optionally, described the step of data decryptor is carried out to the unified interface, packet It includes: the real-time transmission data of the interception unified interface at random or at preset time intervals;Detect the real-time transmission data Whether scheduled application is derived from;In the case where the real-time transmission data derives from the scheduled application, determine described real-time It is illegal to transmit data.
Second aspect, the embodiment of the invention provides a kind of bluetooth connection management devices, comprising: connection request obtains single Member, for obtaining Bluetooth connection request;Device information acquisition unit, for calling terminal according to the Bluetooth connection request Unified interface obtains the device name of equipment to be connected, equipment physical address, equipment RSSI, versions;Connection type selection Unit, for selecting corresponding pairing connection type for the equipment to be connected according to the versions;Condition of contact verifying Unit, for according to the device name, the equipment physical address and the equipment RSSI, verify the terminal and it is described to Whether connection equipment meets pairing condition of contact;Connection unit is matched, for meeting in the terminal and the equipment to be connected In the case where the pairing condition of contact, call the unified interface according to the pairing connection type and the equipment to be connected Carry out pairing connection;Interface monitoring unit, for carrying out data prison to the unified interface while carrying out pairing connection It listens.
In the above embodiment of the present invention, optionally, the versions of the equipment to be connected include classical bluetooth And low-power consumption bluetooth;In the case where the versions are the low-power consumption bluetooth, the pairing connection unit includes: to be passed Transmission of data acquiring unit, for obtaining data to be transmitted;Data to be transmitted split cells, for splitting the data to be transmitted At the subdata of predetermined bite quantity, and for each subdata, corresponding packaging mark is set;Data transmission unit is used for By each subdata and its corresponding packaging identification transmission to the equipment to be connected, for the equipment to be connected It is identified according to the packaging and each subdata is reduced into the data to be transmitted.
In the above embodiment of the present invention, optionally, the interface monitoring unit is used for: at random or at preset time intervals The real-time transmission data of the interior interception unified interface, and whether the data format for detecting the real-time transmission data is pre- fix Formula, wherein in the case where the data format of the real-time transmission data is the predetermined format, determine the real-time biography Transmission of data is illegal.
In the above embodiment of the present invention, optionally, the interface monitoring unit is used for: at random or at preset time intervals The real-time transmission data of the interior interception unified interface, and judge the real-time transmission data whether include the first predetermined character or Multiple second predetermined characters arranged according to predetermined order, wherein in the real-time transmission data include first reserved word In the case where symbol or multiple second predetermined characters according to predetermined order arrangement, determine that the real-time transmission data does not conform to Method.
In the above embodiment of the present invention, optionally, the interface monitoring unit is used for: at random or at preset time intervals The real-time transmission data of the interior interception unified interface, and detect whether the real-time transmission data derives from scheduled application, In, in the case where the real-time transmission data derives from the scheduled application, determine that the real-time transmission data is illegal.
The third aspect, the embodiment of the invention provides a kind of electronic equipment, comprising: at least one processor;And with institute State the memory of at least one processor communication connection;Wherein, be stored with can be by least one described processor for the memory The instruction of execution, described instruction are arranged to be used for executing method described in any one of above-mentioned first aspect.
Fourth aspect, the embodiment of the invention provides a kind of non-transient storage media, are stored with computer executable instructions, The computer executable instructions are for executing method flow described in any one of above-mentioned first aspect.
It can be incited somebody to action by above technical scheme for the big technical problem of the difficulty of bluetooth connection in the related technology and monitoring Different bluetooth connection modes are packaged respectively, obtain multiple encapsulated objects, in this way, when receiving Bluetooth connection request, The versions of terminal can be obtained, to determine corresponding pairing connection type according to the versions, that is to say, that multiple An encapsulated object corresponding to the versions of terminal is selected in encapsulated object.
In addition, in the related art, due to being packaged respectively to links, and in different bluetooth connection modes, The content of link quantity and each link is all different, then may require that a large amount of interfaces handle different functions respectively, cause significantly The waste of interface.And in the technical scheme, since different bluetooth connection modes being packaged respectively, obtained encapsulation pair As being only that a small amount of several also, different encapsulated object can't be called simultaneously, therefore, unified interface can be only set, be used for One encapsulated object of real-time calling, to save interface quantity, communications cost needed for reducing bluetooth connection.Therefore it is whole in above-mentioned acquisition It in the step of versions at end, is obtained by unified interface.
Then, device name, the equipment physical address, equipment RSSI of equipment to be connected can also be obtained by unified interface (instruction of Received Signal Strength Indication received signal intensity), judges whether that equipment to be connected is No satisfaction matches condition of contact, wherein pairing condition of contact includes but is not limited to following multinomial: the device name of equipment to be connected With the presence or absence of in the blacklist of this terminal;The equipment physical address of equipment to be connected whether there is in the blacklist of this terminal In;Whether the equipment RSSI of equipment to be connected, which reaches this terminal, goes on smoothly lowest signal intensity required for data are transmitted.Only There is equipment to be connected to meet the pairing condition of contact, can call unified interface and selected encapsulated object and it is described to Connection equipment carries out pairing connection.
Meanwhile during entire connection pairing, it is also necessary to carry out data decryptor to the unified interface.In related skill In art, due to being packaged respectively to links, and in different bluetooth connection modes, the content of link quantity and each link It is all different, it follows that in the related technology to the opening of Bluetooth communication, scanning, connection, data transmission, data receiver, disconnection Etc. the links of life cycles do status monitoring, however, having respective since these links in the related technology are mutually indepedent Interface realize so that the realization for monitoring work is more difficult and complicated.Therefore, the technical program by versions selection, Pairing connection or even communication are integrated in unified interface progress, so that only monitor to unified interface can be realized to entire indigo plant The monitoring and management of tooth communication process, reduce monitoring difficulty, improve the efficiency of management of Bluetooth communication, to help to be promoted The safety of Bluetooth communication.
Furthermore for a user, only carry out issuing the operation of Bluetooth connection request, terminal can automatic implementation The technical program, be automatically performed the opening of Bluetooth communication, scanning, connection, data transmission, data receiver, disconnection each process, It opens bluetooth manually without user, scanning equipment to be connected, the operation such as be connected and disconnected from, simplify user in Bluetooth communication Operation, the user experience is improved.
[Detailed description of the invention]
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below will be to needed in the embodiment attached Figure is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this field For those of ordinary skill, without creative efforts, it can also be obtained according to these attached drawings other attached drawings.
Fig. 1 shows the flow chart of the bluetooth connection management method of one embodiment of the present of invention;
Fig. 2 shows the flow charts of the listening mode in the bluetooth connection management of one embodiment of the present of invention;
Fig. 3 shows the flow chart of the listening mode in the bluetooth connection management of another embodiment of the invention;
Fig. 4 shows the flow chart of the listening mode in the bluetooth connection management of yet another embodiment of the present invention;
Fig. 5 shows the block diagram of the bluetooth connection management device of one embodiment of the present of invention;
Fig. 6 shows the block diagram of the electronic equipment of one embodiment of the present of invention.
[specific embodiment]
For a better understanding of the technical solution of the present invention, being retouched in detail to the embodiment of the present invention with reference to the accompanying drawing It states.
It will be appreciated that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts it is all its Its embodiment, shall fall within the protection scope of the present invention.
The term used in embodiments of the present invention is only to be not intended to be limiting merely for for the purpose of describing particular embodiments The present invention.In the embodiment of the present invention and the "an" of singular used in the attached claims, " described " and "the" It is also intended to including most forms, unless the context clearly indicates other meaning.
Fig. 1 shows the flow chart of the bluetooth connection management method of one embodiment of the present of invention.
As shown in Figure 1, the embodiment of the invention provides a kind of bluetooth connection management methods, comprising:
Step 102, Bluetooth connection request is obtained.
Step 104, according to the Bluetooth connection request, the unified interface of terminal is called to obtain the implementor name of equipment to be connected Title, equipment physical address, equipment RSSI, versions.
Step 106, according to the versions, corresponding pairing connection type is selected for the equipment to be connected.
It can be incited somebody to action by above technical scheme for the big technical problem of the difficulty of bluetooth connection in the related technology and monitoring Different bluetooth connection modes are packaged respectively, obtain multiple encapsulated objects, in this way, when receiving Bluetooth connection request, The versions of terminal can be obtained, to determine corresponding pairing connection type according to the versions, that is to say, that multiple An encapsulated object corresponding to the versions of terminal is selected in encapsulated object.
In addition, in the related art, due to being packaged respectively to links, and in different bluetooth connection modes, The content of link quantity and each link is all different, then may require that a large amount of interfaces handle different functions respectively, cause significantly The waste of interface.And in the technical scheme, since different bluetooth connection modes being packaged respectively, obtained encapsulation pair As being only that a small amount of several also, different encapsulated object can't be called simultaneously, therefore, unified interface can be only set, be used for One encapsulated object of real-time calling, to save interface quantity, communications cost needed for reducing bluetooth connection.Therefore it is whole in above-mentioned acquisition It in the step of versions at end, is obtained by unified interface.
Step 108, according to the device name, the equipment physical address and the equipment RSSI, the terminal is verified Whether meet pairing condition of contact with the equipment to be connected.
Then, device name, the equipment physical address, equipment RSSI of equipment to be connected can also be obtained by unified interface (instruction of Received Signal Strength Indication received signal intensity), judges whether that equipment to be connected is No satisfaction matches condition of contact, wherein pairing condition of contact includes but is not limited to following multinomial: the device name of equipment to be connected With the presence or absence of in the blacklist of this terminal;The equipment physical address of equipment to be connected whether there is in the blacklist of this terminal In;Whether the equipment RSSI of equipment to be connected, which reaches this terminal, goes on smoothly lowest signal intensity required for data are transmitted.Only There is equipment to be connected to meet the pairing condition of contact, can call unified interface and selected encapsulated object and it is described to Connection equipment carries out pairing connection.
Step 110, in the case where the terminal and the equipment to be connected meet the pairing condition of contact, institute is called It states unified interface and carries out pairing connection according to the pairing connection type and the equipment to be connected.
Step 112, while carrying out pairing connection, data decryptor is carried out to the unified interface.
During entire connection pairing, it is also necessary to carry out data decryptor to the unified interface.In the related art, Due to being packaged respectively to links, and in different bluetooth connection modes, the content of link quantity and each link is not It is identical, it follows that raw to the opening of Bluetooth communication, scanning, connection, data transmission, data receiver, disconnection etc. in the related technology The links in life period do status monitoring, however, having respective connect since these links in the related technology are mutually indepedent Cause for gossip is existing, so that the realization for monitoring work is more difficult and complicated.Therefore, versions are selected, are matched by the technical program Connection or even communication are integrated in unified interface progress, lead to so that only monitor can be realized to unified interface to entire bluetooth The monitoring and management of letter process, reduce monitoring difficulty, improve the efficiency of management of Bluetooth communication, to help to promote bluetooth The safety of communication.Furthermore for a user, only carry out issuing the operation of Bluetooth connection request, terminal can be certainly It is dynamic to implement the technical program, be automatically performed the opening of Bluetooth communication, scanning, connection, data transmission, data receiver, disconnection it is each A process opens bluetooth manually without user, scanning equipment to be connected, the operation such as is connected and disconnected from, simplifies user in indigo plant Operation when tooth communicates, the user experience is improved.
In a kind of implementation of the invention, the versions of the equipment to be connected include classical bluetooth and low Power consumption bluetooth.
Specifically, versions are generally two kinds, wherein and EVICE_TYPE_CLASSIC representative is classical bluetooth, What DEVICE_TYPE_BLE was represented is low-power consumption bluetooth.Connection and data transmission between classical bluetooth are all by establishing base In socket (exchange of two programs by a two-way communication connection realization data on network, one end of this connection A referred to as socket) bluetooth socket come realize with the pairing connection of equipment to be connected, in this mode, it is logical to open communication The data transmitted will be needed to be written by way of byte stream behind road, and the number that counterpart device transmits is read by poll According to.Low-power consumption bluetooth has unique UUID (Universally Unique for each attributes such as reading, write-in, notices Identifier, Universally Unique Identifier), if being communicated by low-power consumption bluetooth, initially set up GATT (Generic Attribute Profile, general-purpose attribute agreement) connection, then after pairing connects, by having write-in attribute Characteristics (feature) sends come the data that needs are transmitted, and is then turned on the attribute with notice Characteristics, and receive by the characteristics with reading attributes the number that counterpart device transmits According to.
Therefore, above two connection type can be packaged respectively, for the versions of equipment to be connected, is called Smoothly pairing connection can be realized in corresponding encapsulated object, realizes terminal to the simultaneous of the equipment to be connected of different versions Hold.
It is described in the case where the versions are the low-power consumption bluetooth in a kind of implementation of the invention The step of calling the unified interface to carry out pairing connection according to the pairing connection type and the equipment to be connected, comprising: Obtain data to be transmitted;The data to be transmitted is split into the subdata of predetermined bite quantity, and is each subdata Corresponding packaging mark is set;Each subdata and its corresponding packaging identification transmission are set to described wait connect It is standby, so that each subdata is reduced into the data to be transmitted according to packaging mark by the equipment to be connected.
That is, can be led to again by the way that data to be transmitted is split transmission in the case that versions are low-power consumption bluetooth It crosses packaging mark and realizes that data are transmitted in the mode that equipment to be connected is assembled.Since low-power consumption bluetooth requires to reduce transmission number According to consumed power consumption, therefore its data packet transmitted every time is generally within the byte of predetermined bite quantity, optionally, reserved word Joint number amount is 20.Using above-mentioned technical proposal, it is only necessary to get whole data to be transmitted, terminal will be to data to be transmitted Automatically it is unpacked, forms multiple subdatas, then, transmission subdata is recycled, so that equipment to be connected is receiving whole Automatically packaging is carried out after subdata, that is, is restored.
Wherein, in order to smoothly restore data to be transmitted, terminal can be arranged packaging when unpacking for each subdata and identify, spell Packet mark indicates position of the subdata in whole data to be transmitted, so that equipment to be connected can be according to each subdata The correct reduction data to be transmitted of packaging mark.Using this technical solution, substantially volume data transmission in low-power consumption bluetooth is reduced Difficulty, and improve data transmission accuracy.
Fig. 2 shows the flow charts of the listening mode in the bluetooth connection management of one embodiment of the present of invention.
As shown in Fig. 2, the listening mode in the bluetooth connection management of one embodiment of the present of invention includes:
Step 202, at random or at preset time intervals in the interception unified interface real-time transmission data.
Step 204, whether the data format for detecting the real-time transmission data is predetermined format.
Step 206, in the case where the data format of the real-time transmission data is the predetermined format, institute is determined It is illegal to state real-time transmission data.
Wherein, predetermined format can be the data format that current versions do not have transmittability to transmit, therefore, eventually End can only transmit the data that current versions can be transmitted, and avoid blindly transmitting and do not support the data of format and lead to bluetooth Connection procedure breaks down, to adapt to the transmittability of current versions.
Predetermined format is also possible to the format of user's manual setting or the format that system is selected, for example, user or system can The selected safety or the data format of privacy of being related to is predetermined format, and the content of the predetermined format is related to privacy of user or system core Content does not allow it to be transmitted with bluetooth approach, to guarantee that privacy of user and system core content are not transferred to outside and set It is standby, protect the privacy of user and the safety of system.
Fig. 3 shows the flow chart of the listening mode in the bluetooth connection management of another embodiment of the invention.
As shown in figure 3, the listening mode in the bluetooth connection management of another embodiment of the invention includes:
Step 302, at random or at preset time intervals in the interception unified interface real-time transmission data.
Step 304, judge whether the real-time transmission data includes the first predetermined character or arrange according to predetermined order Multiple second predetermined characters.
Step 306, include first predetermined character in the real-time transmission data or described arranged according to predetermined order Multiple second predetermined characters in the case where, determine that the real-time transmission data is illegal.
Predetermined character includes but is not limited to be related to the character of associated cryptographic or key in terminal, store to specified home Data included by character, the character in the file with security identifier etc..Forbid transmitting designated character with bluetooth approach, it can It avoids external equipment from stealing the secure data of this terminal by bluetooth approach, protects terminal and user security.
Fig. 4 shows the flow chart of the listening mode in the bluetooth connection management of yet another embodiment of the present invention.
As shown in figure 4, the listening mode in the bluetooth connection management of yet another embodiment of the present invention includes:
Step 402, at random or at preset time intervals in the interception unified interface real-time transmission data.
Step 404, detect whether the real-time transmission data derives from scheduled application.
Step 406, in the case where the real-time transmission data derives from the scheduled application, the real-time Transmission is determined Data are illegal.
Scheduled application can be selected to be arranged by user, can also be arranged automatically by system, including but not limited to talk application, short message It is related to the application of privacy of user safety using, network social intercourse application, recording application etc., thus, avoidable external equipment passes through indigo plant Tooth mode steals this privacy of user data, protects the personal secrets of user.
Fig. 5 shows the block diagram of the bluetooth connection management device of one embodiment of the present of invention.
As shown in figure 5, the embodiment of the invention provides a kind of bluetooth connection management devices 500, comprising: connection request obtains Unit 502, for obtaining Bluetooth connection request;Device information acquisition unit 504, for adjusting according to the Bluetooth connection request The device name of equipment to be connected, equipment physical address, equipment RSSI, versions are obtained with the unified interface of terminal;Connection Mode selecting unit 506, for selecting corresponding pairing connection type for the equipment to be connected according to the versions; Condition of contact authentication unit 508, for according to the device name, the equipment physical address and the equipment RSSI, verifying Whether the terminal and the equipment to be connected meet pairing condition of contact;Match connection unit 510, for the terminal with In the case that the equipment to be connected meets the pairing condition of contact, call the unified interface according to the pairing connection side Formula and the equipment to be connected carry out pairing connection;Interface monitoring unit 512, for carry out pairing connection while, to institute It states unified interface and carries out data decryptor.
In the above embodiment of the present invention, optionally, the versions of the equipment to be connected include classical bluetooth And low-power consumption bluetooth;In the case where the versions are the low-power consumption bluetooth, the pairing connection unit 510 includes: Data to be transmitted acquiring unit, for obtaining data to be transmitted;Data to be transmitted split cells is used for the data to be transmitted The subdata of predetermined bite quantity is split into, and corresponding packaging mark is set for each subdata;Data transmission unit, For by each subdata and its corresponding packaging identification transmission to the equipment to be connected, for described wait connect Equipment identifies according to the packaging each subdata being reduced into the data to be transmitted.
In the above embodiment of the present invention, optionally, the interface monitoring unit 512 is used for: at random or in the predetermined time The real-time transmission data of the interception unified interface in interval, and whether the data format for detecting the real-time transmission data is pre- Fix formula, wherein in the case where the data format of the real-time transmission data is the predetermined format, determines the reality When transmission data it is illegal.
In the above embodiment of the present invention, optionally, the interface monitoring unit 512 is used for: at random or in the predetermined time The real-time transmission data of the interception unified interface in interval, and judge whether the real-time transmission data includes the first reserved word Symbol or multiple second predetermined characters arranged according to predetermined order, wherein in the real-time transmission data include described first pre- In the case where determining character or multiple second predetermined characters according to predetermined order arrangement, the real-time transmission data is determined not It is legal.
In the above embodiment of the present invention, optionally, the interface monitoring unit 512 is used for: at random or in the predetermined time The real-time transmission data of the interception unified interface in interval, and detect whether the real-time transmission data derives from predetermined answer With, wherein in the case where the real-time transmission data derives from the scheduled application, determine that the real-time transmission data does not conform to Method.
The bluetooth connection management device 500 is using scheme described in any one of embodiment shown in Fig. 1 to Fig. 4, therefore, With above-mentioned all technical effects, details are not described herein.
Fig. 6 shows the block diagram of the terminal of one embodiment of the present of invention.
As shown in fig. 6, the electronic equipment 600 of one embodiment of the present of invention, including at least one processor 602;And With the processor 604 of at least one processor 602 communication connection;Wherein, the memory be stored with can by it is described at least The instruction that one processor 604 executes, described instruction are arranged to be used for executing any one of above-mentioned Fig. 1 to Fig. 4 embodiment institute The scheme stated.Therefore, which has and the identical technical effect of any one of Fig. 1 to Fig. 4 embodiment, herein not It repeats again.
The electronic equipment of the embodiment of the present invention exists in a variety of forms, including but not limited to:
(1) mobile communication equipment: the characteristics of this kind of equipment is that have mobile communication function, and to provide speech, data Communication is main target.This Terminal Type includes: smart phone (such as iPhone), multimedia handset, functional mobile phone and low Hold mobile phone etc..
(2) super mobile personal computer equipment: this kind of equipment belongs to the scope of personal computer, there is calculating and processing function Can, generally also have mobile Internet access characteristic.This Terminal Type includes: PDA, MID and UMPC equipment etc., such as iPad.
(3) portable entertainment device: this kind of equipment can show and play multimedia content.Such equipment include: audio, Video player (such as iPod), handheld device, e-book and intelligent toy and portable car-mounted navigation equipment.
(4) server: providing the equipment of the service of calculating, and the composition of server includes that processor, hard disk, memory, system are total Line etc., server is similar with general computer architecture, but due to needing to provide highly reliable service, in processing energy Power, stability, reliability, safety, scalability, manageability etc. are more demanding.
(5) other electronic devices with data interaction function.
In addition, computer executable instructions are stored with the embodiment of the invention provides a kind of non-transient storage media, it is described Computer executable instructions are for executing method flow described in any one of above-mentioned Fig. 1 to Fig. 4 embodiment.
The technical scheme of the present invention has been explained in detail above with reference to the attached drawings, according to the technical solution of the present invention, can reduce The difficulty of bluetooth connection and monitoring.
It should be appreciated that term "and/or" used herein is only a kind of incidence relation for describing affiliated partner, indicate There may be three kinds of relationships, for example, A and/or B, can indicate: individualism A, exist simultaneously A and B, individualism B these three Situation.In addition, character "/" herein, typicallys represent the relationship that forward-backward correlation object is a kind of "or".
Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination " or " in response to detection ".Similarly, depend on context, phrase " if it is determined that " or " if detection (condition or event of statement) " can be construed to " when determining " or " in response to determination " or " when the detection (condition of statement Or event) when " or " in response to detection (condition or event of statement) ".
In several embodiments provided by the present invention, it should be understood that disclosed systems, devices and methods, it can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or group Part can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown Or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit it is indirect Coupling or communication connection can be electrical property, mechanical or other forms.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can store and store Jie in non-transient takes In matter.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer installation (can be personal computer, server or network equipment etc.) or processor (Processor) execute each implementation of the present invention The part steps of example the method.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic or disk etc. is various to deposit Store up the medium of program code.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of bluetooth connection management method characterized by comprising
Obtain Bluetooth connection request;
According to the Bluetooth connection request, the unified interface of terminal is called to obtain the device name of equipment to be connected, equipment physics Address, equipment RSSI, versions;
According to the versions, corresponding pairing connection type is selected for the equipment to be connected;
According to the device name, the equipment physical address and the equipment RSSI, the terminal is verified with described wait connect Whether equipment meets pairing condition of contact;
In the case where the terminal and the equipment to be connected meet the pairing condition of contact, the unified interface is called to press Pairing connection is carried out according to the pairing connection type and the equipment to be connected;
While carrying out pairing connection, data decryptor is carried out to the unified interface.
2. bluetooth connection management method according to claim 1, which is characterized in that
The versions of the equipment to be connected include classical bluetooth and low-power consumption bluetooth;
It is described that the unified interface is called to connect according to the pairing in the case where the versions are the low-power consumption bluetooth It connects mode and the equipment to be connected carries out the step of pairing connects, comprising:
Obtain data to be transmitted;
The data to be transmitted is split into the subdata of predetermined bite quantity, and corresponding spelling is set for each subdata Packet mark;
By each subdata and its corresponding packaging identification transmission to the equipment to be connected, for described wait connect Equipment identifies according to the packaging each subdata being reduced into the data to be transmitted.
3. bluetooth connection management method according to claim 1 or 2, which is characterized in that it is described to the unified interface into The step of row data decryptor, comprising:
The real-time transmission data of the interception unified interface at random or at preset time intervals;
Whether the data format for detecting the real-time transmission data is predetermined format;
In the case where the data format of the real-time transmission data is the predetermined format, the real-time Transmission number is determined According to illegal.
4. bluetooth connection management method according to claim 1 or 2, which is characterized in that it is described to the unified interface into The step of row data decryptor, comprising:
The real-time transmission data of the interception unified interface at random or at preset time intervals;
Judge whether the real-time transmission data includes the first predetermined character or make a reservation for according to multiple the second of predetermined order arrangement Character;
It include first predetermined character or described according to the multiple second pre- of predetermined order arrangement in the real-time transmission data In the case where determining character, determine that the real-time transmission data is illegal.
5. bluetooth connection management method according to claim 1 or 2, which is characterized in that it is described to the unified interface into The step of row data decryptor, comprising:
The real-time transmission data of the interception unified interface at random or at preset time intervals;
Detect whether the real-time transmission data derives from scheduled application;
In the case where the real-time transmission data derives from the scheduled application, determine that the real-time transmission data is illegal.
6. a kind of bluetooth connection management device characterized by comprising
Connection request acquiring unit, for obtaining Bluetooth connection request;
Device information acquisition unit, for calling the unified interface of terminal to obtain and being set wait connect according to the Bluetooth connection request Standby device name, equipment physical address, equipment RSSI, versions;
Connection type selecting unit, for selecting corresponding pairing connection for the equipment to be connected according to the versions Mode;
Condition of contact authentication unit, for according to the device name, the equipment physical address and the equipment RSSI, verifying Whether the terminal and the equipment to be connected meet pairing condition of contact;
Connection unit is matched, in the case where the terminal and the equipment to be connected meet the pairing condition of contact, The unified interface is called to carry out pairing connection according to the pairing connection type and the equipment to be connected;
Interface monitoring unit, for carrying out data decryptor to the unified interface while carrying out pairing connection.
7. bluetooth connection management device according to claim 6, which is characterized in that
The versions of the equipment to be connected include classical bluetooth and low-power consumption bluetooth;
In the case where the versions are the low-power consumption bluetooth, the pairing connection unit includes:
Data to be transmitted acquiring unit, for obtaining data to be transmitted;
Data to be transmitted split cells for the data to be transmitted to be split into the subdata of predetermined bite quantity, and is every Corresponding packaging mark is arranged in a subdata;
Data transmission unit, for setting each subdata and its corresponding packaging identification transmission wait connect to described It is standby, so that each subdata is reduced into the data to be transmitted according to packaging mark by the equipment to be connected.
8. bluetooth connection management device according to claim 6 or 7, which is characterized in that the interface monitoring unit is used for:
The real-time transmission data of the interception unified interface at random or at preset time intervals, and detect the real-time Transmission number According to data format whether be predetermined format, wherein in the data format of the real-time transmission data be described pre- fix In the case where formula, determine that the real-time transmission data is illegal.
9. a kind of electronic equipment characterized by comprising at least one processor;And it is logical at least one described processor Believe the memory of connection;
Wherein, the memory is stored with the instruction that can be executed by least one described processor, and described instruction is arranged to use Method described in any one of execution the claims 1 to 5.
10. a kind of non-transient storage media, which is characterized in that be stored with computer executable instructions, the computer is executable Instruction is for executing the method flow as described in any one of claims 1 to 5.
CN201910307124.7A 2019-04-17 2019-04-17 Bluetooth connection management method and device, electronic equipment and non-transient storage medium Active CN110167192B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910307124.7A CN110167192B (en) 2019-04-17 2019-04-17 Bluetooth connection management method and device, electronic equipment and non-transient storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910307124.7A CN110167192B (en) 2019-04-17 2019-04-17 Bluetooth connection management method and device, electronic equipment and non-transient storage medium

Publications (2)

Publication Number Publication Date
CN110167192A true CN110167192A (en) 2019-08-23
CN110167192B CN110167192B (en) 2022-09-20

Family

ID=67639639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910307124.7A Active CN110167192B (en) 2019-04-17 2019-04-17 Bluetooth connection management method and device, electronic equipment and non-transient storage medium

Country Status (1)

Country Link
CN (1) CN110167192B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065080A (en) * 2019-12-20 2020-04-24 深圳市椰壳信息科技有限公司 Data transmission method based on Bluetooth router and Bluetooth router
CN111338673A (en) * 2020-02-21 2020-06-26 Oppo(重庆)智能科技有限公司 Equipment debugging method and device, electronic equipment and storage medium
CN113543102A (en) * 2021-07-12 2021-10-22 三诺生物传感股份有限公司 Bluetooth connection method
CN117112472A (en) * 2023-10-19 2023-11-24 深圳雷柏科技股份有限公司 Communication control method, device, equipment and medium for peripheral code matching and connection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924582A (en) * 2010-07-29 2010-12-22 上海慧翰信息技术有限公司 Communication device and middleware thereof
CN105246029A (en) * 2015-10-23 2016-01-13 上海斐讯数据通信技术有限公司 Bluetooth communication method and system and electronic device
CN105430595A (en) * 2015-10-26 2016-03-23 上海斐讯数据通信技术有限公司 Connection method of bluetooth equipment and bluetooth equipment
CN107155123A (en) * 2017-06-14 2017-09-12 深圳Tcl新技术有限公司 Matching method, television set and the readable storage medium storing program for executing of bluetooth equipment and television set
WO2018035709A1 (en) * 2016-08-23 2018-03-01 华为技术有限公司 Bluetooth pairing method and bluetooth device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924582A (en) * 2010-07-29 2010-12-22 上海慧翰信息技术有限公司 Communication device and middleware thereof
CN105246029A (en) * 2015-10-23 2016-01-13 上海斐讯数据通信技术有限公司 Bluetooth communication method and system and electronic device
CN105430595A (en) * 2015-10-26 2016-03-23 上海斐讯数据通信技术有限公司 Connection method of bluetooth equipment and bluetooth equipment
WO2018035709A1 (en) * 2016-08-23 2018-03-01 华为技术有限公司 Bluetooth pairing method and bluetooth device
CN107155123A (en) * 2017-06-14 2017-09-12 深圳Tcl新技术有限公司 Matching method, television set and the readable storage medium storing program for executing of bluetooth equipment and television set

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111065080A (en) * 2019-12-20 2020-04-24 深圳市椰壳信息科技有限公司 Data transmission method based on Bluetooth router and Bluetooth router
CN111065080B (en) * 2019-12-20 2023-07-18 深圳市椰壳信息科技有限公司 Data transmission method based on Bluetooth router and Bluetooth router
CN111338673A (en) * 2020-02-21 2020-06-26 Oppo(重庆)智能科技有限公司 Equipment debugging method and device, electronic equipment and storage medium
CN111338673B (en) * 2020-02-21 2023-12-01 Oppo(重庆)智能科技有限公司 Equipment debugging method and device, electronic equipment and storage medium
CN113543102A (en) * 2021-07-12 2021-10-22 三诺生物传感股份有限公司 Bluetooth connection method
CN117112472A (en) * 2023-10-19 2023-11-24 深圳雷柏科技股份有限公司 Communication control method, device, equipment and medium for peripheral code matching and connection
CN117112472B (en) * 2023-10-19 2024-03-15 深圳雷柏科技股份有限公司 Communication control method, device, equipment and medium for peripheral code matching and connection

Also Published As

Publication number Publication date
CN110167192B (en) 2022-09-20

Similar Documents

Publication Publication Date Title
CN110167192A (en) Bluetooth connection management method and device, electronic equipment and non-transient storage media
CN110365491B (en) Service processing method, device, equipment, storage medium and data sharing system
CN112055024B (en) Authority verification method and device, storage medium and electronic equipment
KR100772525B1 (en) apparatus and method for providing service based on touch and play, and the system using the same
US7221946B2 (en) Automatic quality of service based resource allocation
CN102891890B (en) Exchange method between a kind of terminal and relevant device, system
CN105814591A (en) Verification information transmission method and terminal
CN105682253A (en) Method and equipment for communication establishment, terminal and computer readable storage medium
CN103597805A (en) Techniques for facilitating interoperation between an accessory and multiple devices
CN108021382A (en) A kind of embedded device remote update system, method and embedded device
CN112346751B (en) Application program installation method and device, electronic equipment and storage medium
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN104247484B (en) Terminal installation, communication means, computer-readable recording medium and communication system
WO2016150191A1 (en) Data sharing method and device
CN105009549B (en) A kind of synchronous method and terminal, server
CN110381439B (en) Positioning method, positioning device, server, storage medium and terminal
CN102111728A (en) Network connection management module and method of mobile terminal
CN107241449A (en) Method of data synchronization and device, hand-held mobile terminal and storage medium
CN104702701A (en) Method and device for sharing data
CN108513365A (en) Control method and device of intelligent equipment, intelligent equipment and medium
CN107743116B (en) Information transmission method and device, computer equipment and computer readable storage medium
CN109542812A (en) Data communication control method, device and terminal device
CN205232413U (en) Headset
CN105740735A (en) Wireless safe USB (Universal Serial Bus) flash disk and implementation method thereof
CN113347615B (en) Bluetooth communication method and device and readable 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
GR01 Patent grant
GR01 Patent grant