CN108632796A - Bluetooth connecting method, device, terminal and computer readable storage medium - Google Patents
Bluetooth connecting method, device, terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108632796A CN108632796A CN201810340722.XA CN201810340722A CN108632796A CN 108632796 A CN108632796 A CN 108632796A CN 201810340722 A CN201810340722 A CN 201810340722A CN 108632796 A CN108632796 A CN 108632796A
- Authority
- CN
- China
- Prior art keywords
- bluetooth
- connection
- location information
- geographical location
- terminal
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 48
- 238000004590 computer program Methods 0.000 claims description 21
- 230000001960 triggered effect Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 238000004378 air conditioning Methods 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000035622 drinking Effects 0.000 description 1
- 239000000700 radioactive tracer Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/11—Allocation or use of connection identifiers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Abstract
The application belongs to field of communication technology more particularly to a kind of Bluetooth connecting method, device, terminal and computer readable storage medium, wherein the method includes:The geographical location information that terminal is presently in environment is obtained, the corresponding connection attribute value of the geographical location information is inquired;Judge whether the connection attribute value is true;If the connection attribute value is true, bluetooth connection is opened, scans the bluetooth equipment matched;If the bluetooth equipment matched is arrived in scanning, connect described in the bluetooth equipment that has matched;It realizes the automatic connection with the bluetooth equipment matched, reduces the number of the manually opened terminal Bluetooth linkage function of user, while ensureing bluetooth connection safety, improve bluetooth connection efficiency.
Description
Technical field
The application belongs to the method, apparatus of field of communication technology more particularly to bluetooth connection, terminal and computer-readable deposits
Storage media.
Background technology
With the development of Bluetooth technology, it is logical that various mobile devices, intelligent appliance equipment, intelligent wearable device all have bluetooth
The function of letter.
However, the process for carrying out bluetooth connection needs user to first turn on the Bluetooth function of bluetooth equipment, then set by bluetooth
The target Bluetooth devices for future reference for looking for surrounding, and by choosing target Bluetooth devices to be matched manually, established after successful matching
Communication connection, carries out data transmission, and has Bluetooth connection process cumbersome, the low disadvantage of operating efficiency.
Invention content
The embodiment of the present application provides a kind of method, apparatus of bluetooth connection, terminal and computer readable storage medium, can be with
Solve the low technical problem of bluetooth connection operating efficiency.
The embodiment of the present application first aspect provides a kind of Bluetooth connecting method, including:
The geographical location information that terminal is presently in environment is obtained, the corresponding connection attribute of the geographical location information is inquired
Value;
Judge whether the connection attribute value is true;
If the connection attribute value is true, bluetooth connection is opened, scans the bluetooth equipment matched;
If the bluetooth equipment matched is arrived in scanning, connect described in the bluetooth equipment that has matched.
The embodiment of the present application second aspect provides a kind of Bluetooth connection device, including:
Query unit is presently in the geographical location information of environment for obtaining terminal, inquires the geographical location information
Corresponding connection attribute value;
Judging unit, for judging whether the connection attribute value is true;
Scanning element opens bluetooth connection if being true for the connection attribute value, scans the bluetooth matched and sets
It is standby;
Connection unit, if for scanning to the bluetooth equipment matched, the bluetooth equipment that has been matched described in connection.
The embodiment of the present application third aspect provides a kind of terminal, including memory, processor and storage are in memory
And the computer program that can be run on a processor, when processor executes computer program the step of the realization above method.
The embodiment of the present application fourth aspect provides a kind of computer readable storage medium, computer-readable recording medium storage
The step of having computer program, the above method is realized when computer program is executed by processor.
During the application is implemented, it is presently in the geographical location information of environment by obtaining terminal, and inquires the geographical position
Confidence ceases corresponding connection attribute value;When the connection attribute value is true, bluetooth connection is automatically turned on, and scan and matched
Bluetooth equipment realizes the automatic connection with the bluetooth equipment matched, reduces the manually opened terminal Bluetooth connection of user
The number of function improves bluetooth connection efficiency while ensureing bluetooth connection safety.
Description of the drawings
It, below will be to needed in the embodiment attached in order to illustrate more clearly of the technical solution of the embodiment of the present application
Figure is briefly described, it should be understood that the following drawings illustrates only some embodiments of the application, therefore is not construed as pair
The restriction of range for those of ordinary skill in the art without creative efforts, can also be according to this
A little attached drawings obtain other relevant attached drawings.
Fig. 1 is the implementation process schematic diagram of Bluetooth connecting method provided by the embodiments of the present application;
Fig. 2 is another implementation process schematic diagram of Bluetooth connecting method provided by the embodiments of the present application;
Fig. 3 is the structural schematic diagram of Bluetooth connection device provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of Bluetooth connection device provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of terminal provided by the embodiments of the present application.
Specific implementation mode
It is with reference to the accompanying drawings and embodiments, right in order to make the object, technical solution and advantage of the application be more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and
It is not used in restriction the application.Meanwhile in the description of the present application, term " first ", " second " etc. are only used for distinguishing description, without
It can be interpreted as indicating or implying relative importance.
Currently, the process of bluetooth connection needs user to first turn on the Bluetooth function of bluetooth equipment, then looked by bluetooth equipment
The target Bluetooth devices of surrounding are looked for, and by choosing target Bluetooth devices to be matched manually, communication is established after successful matching
Connection, carries out data transmission, and has Bluetooth connection process cumbersome, the low disadvantage of operating efficiency.
In the embodiment of the present application, it is presently in the geographical location information of environment by obtaining terminal, and inquire the geography
The corresponding connection attribute value of location information;When the connection attribute value is true, bluetooth connection is automatically turned on, and scan and matched
Bluetooth equipment, realize with the automatic connection of the bluetooth equipment matched, reduce the manually opened terminal Bluetooth of user and connect
The number of connection function improves bluetooth connection efficiency while ensureing bluetooth connection safety.
Fig. 1 shows that a kind of Bluetooth connecting method implementation process schematic diagram provided by the embodiments of the present application, the method are answered
For terminal, can be executed by the Bluetooth connection device configured in the terminal, the Bluetooth connection device can pass through hardware
And/or the mode of software is realized, is applicable to improve the situation of bluetooth connection efficiency.The method may include steps 101
To step 104.
In 101, the geographical location information that terminal is presently in environment is obtained, it is corresponding to inquire the geographical location information
Connection attribute value.
In the embodiment of the present application, the geographical location information of environment is presently in by obtaining terminal, further according to the geography
The corresponding connection attribute value of geographical location information described in place information inquiry, to be chosen whether out according to the connection attribute value
Open bluetooth connection.
Wherein, the terminal includes the smart mobile phone for being configured with bluetooth connection function, tablet computer, PC, individual
The intelligent terminals such as digital assistants (PDA), learning machine.Application of taking pictures, digital map navigation application, electronics can be installed in the terminal
The applications such as book reader, music player and video player.
It is described obtain terminal and be presently in the geographical location information of environment include:Obtain the third-party application in the terminal
The geographical location information that software positions, such as:The geographical location information that Baidu map or Amap position;
Can also be the position coordinates that satellite navigation system detects, such as:Global positioning system (Global Positioning
System, GPS) latitude and longitude coordinates that detect.
The corresponding connection attribute value of the inquiry geographical location information includes:It is searched according to the geographical location information
The correspondence record sheet of the geographical location information and connection attribute obtains the corresponding connection attribute of the geographical location information
Value.
In 102, judge whether the connection attribute value is true.
Wherein, the connection attribute value includes "true" (true) and "false" (false), is arrived again for characterizing the terminal
When geographical location corresponding up to the geographical location information, if automatically turn on bluetooth connection.
In the embodiment of the present application, by judging whether the connection attribute value is true, walked with the bluetooth connection of triggering following
Suddenly.
In 103, if the connection attribute value is true, bluetooth connection is opened, scans the bluetooth equipment matched.
When it is true to judge the connection attribute value, the terminal automatically turns on bluetooth connection, whether there is around scanning
The bluetooth equipment matched.For example, the terminal opens bluetooth connection in bottom, and scans the bluetooth that surrounding has been matched and set
It is standby, carry out bluetooth connection.
It should be noted that the bluetooth equipment matched can be in terminal history Bluetooth pairing record, Suo Youpei
To successful bluetooth equipment;Or be, in the corresponding history Bluetooth pairing record of the terminal current geographic position, successful matching
Bluetooth equipment;Or for the terminal the successful matching of current geographic position the last time bluetooth equipment.
For example, the terminal reaches geographical location A, and it is true to inquire the corresponding connection attribute values of geographical location A, then opens
Bluetooth connection is opened, during end of scan history Bluetooth pairing records, the bluetooth equipment of all successful matchings;Alternatively, end of scan exists
The bluetooth equipment of all successful matchings of geographical location A;Alternatively, only end of scan is paired into upper primary arrival geographical location A
The bluetooth equipment of work(.The geographical location A can be the resident addresses such as the pre-set home address of user, CompanyAddress, or
Person is that user once opened the temporary addresses such as eating and drinking establishment, coffee-house, the cinema of bluetooth connection.
Optionally, in order to ensure the safety of bluetooth connection, when the unlatching bluetooth connection, terminal exists described in default scan
The bluetooth equipment of current geographic position last time successful matching.
Wherein, the bluetooth equipment can be Baffle Box of Bluetooth, bluetooth headset, smart mobile phone, tablet computer, PC,
Personal digital assistant (PDA), learning machine, or be the household electrical appliance such as TV, refrigerator, air-conditioning with bluetooth connection function.It needs
It is noted that be merely illustrative herein, do not indicate that as the limitation to the application protection domain, in other realities of the application
It applies in mode, the bluetooth equipment can also be other terminals with bluetooth connection function.
In 104, if the bluetooth equipment matched is arrived in scanning, connect described in the bluetooth equipment that has matched.
When the terminal is scanned to the bluetooth equipment matched, then the bluetooth equipment matched described in reconnect, and
In successful connection, show that bluetooth icon, the bluetooth icon are used to indicate the terminal and have opened in the interface of the terminal
Open bluetooth connection.
In the embodiment of the present application, pass through the geographical location information that environment is presently in conjunction with terminal and the geographical position
Confidence ceases corresponding connection attribute value, realizes the automatic connection with the bluetooth equipment matched, reduces user and open manually
The number for opening terminal Bluetooth linkage function improves bluetooth connection efficiency while ensureing bluetooth connection safety.To certain
Specific user can improve it and use Baffle Box of Bluetooth for example, liking connecting at home for the user of Baffle Box of Bluetooth broadcasting music
Usage experience.
Optionally, if the bluetooth equipment matched is arrived in the scanning, the connection bluetooth equipment matched packet later
It includes:Show the bluetooth equipment having connected.So that user can check the bluetooth equipment that the terminal has connected at any time, ensure bluetooth
The safety of connection.
In some embodiments of the application, if the connection attribute value is true, bluetooth connection is opened, is scanned
After the bluetooth equipment matched, including:If not scanning the bluetooth equipment matched, alternatively, having matched described in failed connection
To bluetooth equipment, then close bluetooth connection, the corresponding connection attribute value of the geographical location information be set to false as.
For example, the bluetooth equipment matched does not open bluetooth connection or the bluetooth equipment matched occurs
Failure, alternatively, the bluetooth equipment matched has moved away from the geographical location that the terminal is presently in so that the terminal is not
When scanning the bluetooth equipment matched;Alternatively, the bluetooth equipment matched has changed matching method so that described
Although terminal scanning is to the bluetooth equipment matched, when being the failure to be successfully connected with the bluetooth equipment;Described in closing
The bluetooth connection of terminal, to reduce the power consumption of the terminal, and by the corresponding connection attribute value of the geographical location information
It is set to false as, when arriving again at current geographic position so as to the terminal, no longer automatically turns on bluetooth connection, but by with householder
When dynamic triggering bluetooth connection triggering command, bluetooth connection is opened, carries out Bluetooth pairing, to reduce the wind for connecting upper illegal equipment
Danger.
In some embodiments of the application, as shown in Fig. 2, it is described judge the connection attribute value whether be it is true it
Afterwards, further include:Step 105 is to 107.
In 105, if the connection attribute value is false, monitor whether bluetooth connection is triggered.
In 106, according to the bluetooth connection triggering command listened to, bluetooth connection is opened, carries out Bluetooth pairing.
In 107, when with bluetooth equipment successful matching, the mark for the bluetooth equipment that record has been matched for unique mark
Information;And the geographical location information that the terminal is presently in environment is stored, while by the corresponding company of the geographical location information
It connects attribute value and is set as true.
In the embodiment of the present application, in order to ensure the safety of bluetooth connection, when the terminal is presently in the geography of environment
The corresponding connection attribute value of location information is false, and the terminal does not automatically turn on bluetooth connection function.Therefore, work as in the terminal
The corresponding connection attribute value of geographical location information of preceding local environment is fictitious time, needs whether monitoring users actively open bluetooth company
Connection function.
When listening to the bluetooth connection triggering command of user's triggering, the terminal opens bluetooth connection, and carries out bluetooth
Pairing.
Wherein, it is carrying out matching clock synchronization with bluetooth equipment, matching method includes:Number compares, input pairing code compares
Matching method.It refers to that user compares the terminal and the number on the bluetooth equipment that number, which compares, is shown in the terminal
Number it is consistent with the number that needs to show on the bluetooth equipment that connects when, click and determine connection, to complete Bluetooth pairing;Or
User inputs the number shown on the bluetooth equipment to be connected, and the bluetooth equipment is compared after receiving number input by user
It is right, to complete Bluetooth pairing.
The input pairing code comparison refers to the pairing code progress Bluetooth pairing that user inputs bluetooth equipment, when user inputs
Pairing code it is correct when, then Bluetooth pairing success, otherwise, Bluetooth pairing failure.Wherein, the pairing code includes bluetooth equipment
ID, sequence number or other identification numbers for bluetooth equipment described in unique mark.
When with bluetooth equipment successful matching, the identification information for the bluetooth equipment that record has been matched for unique mark;And
Store the geographical location information that the terminal is presently in environment, while by the corresponding connection attribute value of the geographical location information
It is set as true.
For example, when the terminal is with the bluetooth equipment successful matching, by the ID number of the bluetooth equipment or the bluetooth
The sequence number of equipment is presently in the corresponding storage of the geographical location information of environment with the terminal, and by the geographical location information
Corresponding connection attribute value is set as true, is documented in the correspondence record sheet of geographical location information and connection attribute, for institute
When stating terminal and reaching the corresponding geographical location of current geographic position information next time, the corresponding company of the geographical location information is inquired
Attribute value is connect, realizes that bluetooth connects automatically.
In some embodiments of the application, the geographical location information for obtaining terminal and being presently in environment, inquiry
The corresponding connection attribute value of the geographical location information, including:The geographical location information that terminal is presently in environment is obtained, by institute
It states terminal and is presently in the geographical location information of environment and matched with the geographical location information of the terminal storage;If matching at
Work(then inquires the corresponding connection attribute value of geographical location information that the terminal is presently in environment.
That is, only after the geographical location information is described, it is corresponding just to obtain the geographical location information
Connection attribute value.If the terminal is presently in the geographical location information of the geographical location information and the terminal storage of environment
With unsuccessful, then the corresponding connection attribute value of geographical location information that the terminal is presently in environment is not inquired, realize quick
Determine whether to automatically turn on bluetooth connection.
In some embodiments of the application, the geographical location information for obtaining terminal and being presently in environment, inquiry
Before the corresponding connection attribute value of the geographical location information, including:It receives and resides address setting instruction, be arranged and reside address letter
Breath.Correspondingly, the geographical location information for obtaining terminal and being presently in environment, inquires the corresponding company of the geographical location information
Connecing attribute value includes:The geographical location information that terminal is presently in environment is obtained, the terminal is presently in the geography of environment
Location information is matched with the resident address information;If successful match, the ground that the terminal is presently in environment is inquired
Manage the corresponding connection attribute value of location information.
That is, user can pre-set the resident address of the terminal, so that the terminal reaches described reside
When address, the corresponding connection attribute value of geographical location information that the terminal is presently in environment is inquired, in the connection attribute
When value is true, bluetooth connection is automatically turned on.
Optionally, described receive resides address setting instruction, is arranged after residing address information, including:It will be described resident
The corresponding connection attribute value of address information is set to false as.
For example, when user sets resident address to CompanyAddress in advance, in order to ensure the safety of bluetooth connection, need
Terminal carries out bluetooth connection for the first time, and the operating process matched with bluetooth equipment is by user's Self-operating, therefore, in institute
It states reception and resides address setting instruction, be arranged after residing address information, by the corresponding connection attribute of the resident address information
Value is set to false as.So that the terminal when the resident address carries out first time bluetooth connection is actively opened by user,
It prevents some illegality equipments that need not carry out bluetooth verification to be connected to the terminal, improves the terminal connection bluetooth equipment
Safety.
For another example, user when then next time is again introduced into permanent residence, does not open automatically when resident address was not connected with bluetooth equipment
Bluetooth connection is opened, to improve the safety that the terminal connects bluetooth equipment.
Fig. 3 shows a kind of structural schematic diagram of Bluetooth connection device 300 provided by the embodiments of the present application, including cargo tracer
Member 301, judging unit 302, scanning element 303 and connection unit 304.
Query unit 301 is presently in the geographical location information of environment for obtaining terminal, inquires the geographical location letter
Cease corresponding connection attribute value;
Judging unit 302, for judging whether the connection attribute value is true;
Scanning element 303 opens bluetooth connection if being true for the connection attribute value, scans the bluetooth matched
Equipment;
Connection unit 304, if for scanning to the bluetooth equipment matched, the bluetooth equipment that has been matched described in connection.
In some embodiments of the application, the Bluetooth connection device 300 further includes setting unit, if for not
The bluetooth equipment matched is scanned, then closes bluetooth connection, the corresponding connection attribute value of the geographical location information is arranged
It is false.
In some embodiments of the application, as shown in figure 4, the Bluetooth connection device 300, further includes:
Monitoring unit 305 monitors whether bluetooth connection is triggered if being false for the connection attribute value.
Pairing unit 306 carries out bluetooth and matches for according to the bluetooth connection triggering command listened to, opening bluetooth connection
It is right;
Recording unit 307, for when with bluetooth equipment successful matching, bluetooth of the record for unique mark have been matched to be set
Standby identification information;And the geographical location information that the terminal is presently in environment is stored, while by the geographical location information
Corresponding connection attribute value is set as true.
Optionally, the query unit 301 is additionally operable to obtain the geographical location information that terminal is presently in environment, by institute
It states terminal and is presently in the geographical location information of environment and matched with the geographical location information of the terminal storage;If matching at
Work(then inquires the corresponding connection attribute value of geographical location information that the terminal is presently in environment.
Optionally, the Bluetooth connection device further includes address setting unit, for receiving resident address setting instruction, if
Set resident address information;Correspondingly, the query unit is additionally operable to obtain the geographical location information that terminal is presently in environment, it will
The geographical location information that the terminal is presently in environment is matched with the resident address information;If successful match is looked into
Ask the corresponding connection attribute value of geographical location information that the terminal is presently in environment.
Optionally, the Bluetooth connection device further includes setting subelement, is referred to for residing address setting in the reception
It enables, is arranged after residing address information, the corresponding connection attribute value of the resident address information is set to false as.
It should be noted that for convenience and simplicity of description, the specific works of the device 300 of the bluetooth connection of foregoing description
Process can refer to the corresponding process of method described in above-mentioned Fig. 1 to Fig. 2, and details are not described herein.
As shown in figure 5, the application provides a kind of terminal for realizing above-mentioned Bluetooth connecting method, the terminal can be
The terminals such as smart mobile phone, tablet computer, PC (PC), personal digital assistant (PDA), learning machine, including:It is one or more
Input equipment 53 (one is only shown in Fig. 5) and one or more output equipments 54 (one is only shown in Fig. 5).Processor 51,
Memory 52, input equipment 53 and output equipment 54 are connected by bus 55.
It should be appreciated that in the embodiment of the present application, alleged processor 51 can be central processing unit (Central
Processing Unit, CPU), which can also be other general processors, digital signal processor (Digital
Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit,
ASIC), field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic
Device, discrete gate or transistor logic, discrete hardware components etc..General processor can be microprocessor or this at
It can also be any conventional processor etc. to manage device.
Input equipment 53 may include that keyboard, Trackpad, fingerprint are adopted sensor and (finger print information for acquiring user and referred to
The directional information of line), microphone etc., output equipment 54 may include display, loud speaker etc..
Memory 52 may include read-only memory and random access memory, and provide instruction sum number to processor 51
According to.Part or all of memory 51 can also include nonvolatile RAM.For example, memory 52 can be with
The information of storage device type.
The memory 52 is stored with computer program, and the computer program can be run on the processor 51, example
Such as, the computer program is the program of the method for bluetooth connection.The processor 51 is realized when executing the computer program
Step in the embodiment of the method for above-mentioned bluetooth connection, such as step 101 shown in FIG. 1 is to 104.Alternatively, the processor 51
The function of each module/unit in above-mentioned each device embodiment, such as unit shown in Fig. 3 are realized when executing the computer program
301 to 304 function.
The computer program can be divided into one or more module/units, one or more of modules/mono-
Member is stored in the memory 52, and is executed by the processor 51, to complete the application.One or more of moulds
Block/unit can be the series of computation machine program instruction section that can complete specific function, the instruction segment by describe it is described based on
Implementation procedure of the calculation machine program in the terminal for carrying out bluetooth connection.For example, the computer program can be divided into
Query unit, judging unit, scanning element and connection unit, each unit concrete function are as follows:Query unit, for obtaining terminal
It is presently in the geographical location information of environment, inquires the corresponding connection attribute value of the geographical location information;Judging unit is used for
Judge whether the connection attribute value is true;Scanning element opens bluetooth connection if being true for the connection attribute value,
Scan the bluetooth equipment matched;If connection unit has matched for scanning to the bluetooth equipment matched described in connection
Bluetooth equipment.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each work(
Can unit, module division progress for example, in practical application, can be as needed and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device are divided into different functional units or module, more than completion
The all or part of function of description.Each functional unit, module in embodiment can be integrated in a processing unit, also may be used
It, can also be above-mentioned integrated during two or more units are integrated in one unit to be that each unit physically exists alone
The form that hardware had both may be used in unit is realized, can also be realized in the form of SFU software functional unit.In addition, each function list
Member, the specific name of module are also only to facilitate mutually distinguish, the protection domain being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may realize that lists described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, depends on the specific application and design constraint of technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal and method can pass through
Other modes are realized.For example, device/terminal embodiment described above is only schematical, for example, the module or
The division of unit, only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling or direct-coupling discussed or communication connection can be by some interfaces, device or unit
INDIRECT COUPLING or communication connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple
In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme
's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also
It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list
The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can be stored in a computer read/write memory medium.Based on this understanding, the application realizes above-mentioned implementation
All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried
Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to legislation in jurisdiction and the requirement of patent practice,
Such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and telecommunications
Signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although with reference to aforementioned reality
Example is applied the application is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed
Or replace, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all
Within the protection domain of the application.
Claims (10)
1. a kind of Bluetooth connecting method, which is characterized in that including:
The geographical location information that terminal is presently in environment is obtained, the corresponding connection attribute value of the geographical location information is inquired;
Judge whether the connection attribute value is true;
If the connection attribute value is true, bluetooth connection is opened, scans the bluetooth equipment matched;
If the bluetooth equipment matched is arrived in scanning, connect described in the bluetooth equipment that has matched.
2. Bluetooth connecting method as described in claim 1, which is characterized in that if the connection attribute value is true, open
Bluetooth connection is opened, after scanning the bluetooth equipment matched, including:
If not scanning the bluetooth equipment matched, bluetooth connection is closed, the corresponding connection of the geographical location information is belonged to
Property value is set to false as.
3. Bluetooth connecting method as claimed in claim 1 or 2, which is characterized in that including:It is described to judge the connection attribute value
After whether being true, further include:
If the connection attribute value is false, monitor whether bluetooth connection is triggered;
According to the bluetooth connection triggering command listened to, bluetooth connection is opened, carries out Bluetooth pairing;
When with bluetooth equipment successful matching, the identification information for the bluetooth equipment that record has been matched for unique mark;And it stores
The terminal is presently in the geographical location information of environment, while the corresponding connection attribute value of the geographical location information being arranged
It is true.
4. Bluetooth connecting method as claimed in claim 3, which is characterized in that the geography for obtaining terminal and being presently in environment
Location information inquires the corresponding connection attribute value of the geographical location information, including:
Obtain terminal and be presently in the geographical location information of environment, by the terminal be presently in the geographical location information of environment with
The geographical location information of the terminal storage is matched;
If successful match, the corresponding connection attribute value of geographical location information that the terminal is presently in environment is inquired.
5. Bluetooth connecting method as described in claim 1, which is characterized in that the geography for obtaining terminal and being presently in environment
Location information is inquired before the corresponding connection attribute value of the geographical location information, including:
It receives and resides address setting instruction, be arranged and reside address information;
Correspondingly, the geographical location information for obtaining terminal and being presently in environment, it is corresponding to inquire the geographical location information
Connection attribute value includes:
Obtain terminal and be presently in the geographical location information of environment, by the terminal be presently in the geographical location information of environment with
The resident address information is matched;
If successful match, the corresponding connection attribute value of geographical location information that the terminal is presently in environment is inquired.
6. Bluetooth connecting method as claimed in claim 5, which is characterized in that described receive resides address setting instruction, setting
After resident address information, including:
The corresponding connection attribute value of the resident address information is set to false as.
7. Bluetooth connecting method as described in claim 1, which is characterized in that if described scan to the bluetooth equipment matched,
Include after the bluetooth equipment then matched described in connection:
Show the bluetooth equipment having connected.
8. a kind of Bluetooth connection device, which is characterized in that including:
Query unit is presently in the geographical location information of environment for obtaining terminal, inquires the geographical location information and corresponds to
Connection attribute value;
Judging unit, for judging whether the connection attribute value is true;
Scanning element opens bluetooth connection if being true for the connection attribute value, scans the bluetooth equipment matched;
Connection unit, if for scanning to the bluetooth equipment matched, the bluetooth equipment that has been matched described in connection.
9. a kind of terminal, including memory, processor and it is stored in the memory and can runs on the processor
Computer program, which is characterized in that the processor is realized when executing the computer program as claim 1 to 7 is arbitrary
The step of one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist
In realization is such as the step of claim 1 to 7 any one the method when the computer program is executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810340722.XA CN108632796B (en) | 2018-04-16 | 2018-04-16 | Bluetooth connection method, device, terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810340722.XA CN108632796B (en) | 2018-04-16 | 2018-04-16 | Bluetooth connection method, device, terminal and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108632796A true CN108632796A (en) | 2018-10-09 |
CN108632796B CN108632796B (en) | 2021-05-28 |
Family
ID=63705390
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810340722.XA Expired - Fee Related CN108632796B (en) | 2018-04-16 | 2018-04-16 | Bluetooth connection method, device, terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108632796B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031170A (en) * | 2019-11-12 | 2020-04-17 | 宇龙计算机通信科技(深圳)有限公司 | Method, apparatus, electronic device and medium for selecting communication mode |
CN111083755A (en) * | 2019-12-24 | 2020-04-28 | 维沃移动通信有限公司 | Equipment switching method and related equipment |
CN112788530A (en) * | 2021-02-04 | 2021-05-11 | 深圳市海雀科技有限公司 | Method and device for connecting mobile terminal and vehicle-mounted intelligent terminal and transmitting data |
WO2021093725A1 (en) * | 2019-11-12 | 2021-05-20 | 飞天诚信科技股份有限公司 | Bluetooth finder and quick pairing method therefor |
WO2022000969A1 (en) * | 2020-07-01 | 2022-01-06 | 维谛技术有限公司 | Link device and link device communication address configuration method |
WO2023045588A1 (en) * | 2021-09-23 | 2023-03-30 | 常州市派腾电子技术服务有限公司 | Aerosol generating device, terminal, and pairing method |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686595A (en) * | 2012-09-26 | 2014-03-26 | 联想(北京)有限公司 | State switching method and electronic equipment |
WO2014176172A2 (en) * | 2013-04-21 | 2014-10-30 | James Buchheim | Transaction facilitation methods and apparatuses |
US20160021507A1 (en) * | 2014-07-21 | 2016-01-21 | Scott Gaines | System and method for providing in real-time substantially accurate wait-times at different locations |
CN105517192A (en) * | 2016-01-27 | 2016-04-20 | 广东欧珀移动通信有限公司 | Wireless network connecting method and device |
CN105897314A (en) * | 2016-06-24 | 2016-08-24 | 维沃移动通信有限公司 | Bluetooth connection control method and terminal |
CN106303641A (en) * | 2016-08-18 | 2017-01-04 | 深圳Tcl数字技术有限公司 | Bluetooth pairing methods and bluetooth equipment |
-
2018
- 2018-04-16 CN CN201810340722.XA patent/CN108632796B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103686595A (en) * | 2012-09-26 | 2014-03-26 | 联想(北京)有限公司 | State switching method and electronic equipment |
WO2014176172A2 (en) * | 2013-04-21 | 2014-10-30 | James Buchheim | Transaction facilitation methods and apparatuses |
US20160021507A1 (en) * | 2014-07-21 | 2016-01-21 | Scott Gaines | System and method for providing in real-time substantially accurate wait-times at different locations |
CN105517192A (en) * | 2016-01-27 | 2016-04-20 | 广东欧珀移动通信有限公司 | Wireless network connecting method and device |
CN105897314A (en) * | 2016-06-24 | 2016-08-24 | 维沃移动通信有限公司 | Bluetooth connection control method and terminal |
CN106303641A (en) * | 2016-08-18 | 2017-01-04 | 深圳Tcl数字技术有限公司 | Bluetooth pairing methods and bluetooth equipment |
Non-Patent Citations (2)
Title |
---|
SAMTA GAJBHIYE ETC.: "Design, Implementation and Security Analysis of Bluetooth Pairing Protocol in NS2", 《IEEE》 * |
徐光亮: "蓝牙安全链路管理器设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031170A (en) * | 2019-11-12 | 2020-04-17 | 宇龙计算机通信科技(深圳)有限公司 | Method, apparatus, electronic device and medium for selecting communication mode |
WO2021093725A1 (en) * | 2019-11-12 | 2021-05-20 | 飞天诚信科技股份有限公司 | Bluetooth finder and quick pairing method therefor |
CN111083755A (en) * | 2019-12-24 | 2020-04-28 | 维沃移动通信有限公司 | Equipment switching method and related equipment |
WO2022000969A1 (en) * | 2020-07-01 | 2022-01-06 | 维谛技术有限公司 | Link device and link device communication address configuration method |
CN112788530A (en) * | 2021-02-04 | 2021-05-11 | 深圳市海雀科技有限公司 | Method and device for connecting mobile terminal and vehicle-mounted intelligent terminal and transmitting data |
WO2023045588A1 (en) * | 2021-09-23 | 2023-03-30 | 常州市派腾电子技术服务有限公司 | Aerosol generating device, terminal, and pairing method |
Also Published As
Publication number | Publication date |
---|---|
CN108632796B (en) | 2021-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108632796A (en) | Bluetooth connecting method, device, terminal and computer readable storage medium | |
CN107852437B (en) | Method and apparatus for outputting audio in electronic device | |
US20190341048A1 (en) | Method, Apparatus and Device for Interaction of Intelligent Voice Devices, and Storage Medium | |
CN105449786B (en) | A kind of information processing method and electronic equipment | |
EP3905607A1 (en) | Session message sticking method and device | |
US9807218B2 (en) | Method for filtering spam in electronic device and the electronic device | |
CN110235087B (en) | Method and terminal for realizing voice control | |
CN105898085B (en) | Harass recognition methods and the device of communications account | |
WO2015200452A1 (en) | Matching users in a location-based service | |
CN101405707A (en) | System and method for utilizing environment information in UPNP audio/video | |
CN106657528A (en) | Incoming call management method and device | |
CN105100513B (en) | Method for processing message of incoming call and device, incoming call service server | |
CN108390921A (en) | The system and method for providing sensing data to electronic equipment | |
CN105407160B (en) | Interface display method and device | |
CN107396367A (en) | Reminding method, device, terminal and the computer-readable recording medium of pseudo-base station | |
CN110231923B (en) | Data management method and device | |
CN106254141B (en) | A kind of method and terminal of smart home management | |
KR20140118111A (en) | Method for displaying contact information in electronic device | |
EP1416672B1 (en) | Method of and device for providing information to mobile devices on the basis of a positional relationship | |
CN109525652A (en) | Information sharing method, device, equipment and storage medium | |
CN109041049A (en) | A kind of addressing method of mobile terminal, device for addressing and terminal device | |
WO2019000468A1 (en) | User location identification method and apparatus, storage medium, and electronic device | |
KR20150071129A (en) | Apparatus and method for sharing connection information in an electronic device | |
CN104113589B (en) | The method and apparatus for obtaining user information | |
CN106603851A (en) | Communication shortcut realizing method and electronic equipment |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20210528 |