CN107277752B - Bluetooth connecting method, device, computer equipment and computer readable storage medium - Google Patents

Bluetooth connecting method, device, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN107277752B
CN107277752B CN201710524959.9A CN201710524959A CN107277752B CN 107277752 B CN107277752 B CN 107277752B CN 201710524959 A CN201710524959 A CN 201710524959A CN 107277752 B CN107277752 B CN 107277752B
Authority
CN
China
Prior art keywords
mobile terminal
bluetooth
application program
vehicle
running
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.)
Active
Application number
CN201710524959.9A
Other languages
Chinese (zh)
Other versions
CN107277752A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710524959.9A priority Critical patent/CN107277752B/en
Publication of CN107277752A publication Critical patent/CN107277752A/en
Application granted granted Critical
Publication of CN107277752B publication Critical patent/CN107277752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of Bluetooth connecting method, device, computer equipment and computer readable storage medium.The described method includes: obtaining the subscription time of user's input;The application program of running of mobile terminal is monitored in the subscription time;If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, so that the mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.Above-mentioned Bluetooth connecting method, device, computer equipment and computer readable storage medium are not necessarily to the manually opened Bluetooth switch of user, are attached automatically with vehicle-mounted Bluetooth equipment, keep the connection procedure of bluetooth more convenient.

Description

Bluetooth connecting method, device, computer equipment and computer readable storage medium
Technical field
The present invention relates to field of computer technology, more particularly to a kind of Bluetooth connecting method, device, computer equipment and Computer readable storage medium.
Background technique
The communication between multiple intelligent terminals may be implemented in the communication technology, so that the exchange and conmmunication between user become to get over It is more convenient to come.Bluetooth technology is that one kind can realize the technology communicated between multiple intelligent terminals in short-range, due to It is with the advantages such as convenient, inexpensive, therefore Bluetooth technology is widely used.For example, can lead between multiple user terminals Bluetooth data transmission is crossed, intelligent terminal can pass through on-vehicle acoustic apparatus to realize by bluetooth connection on-vehicle acoustic apparatus It makes a phone call, the functions such as music.The method of traditional connection bluetooth needs user to go to open Bluetooth switch manually, then selects The bluetooth equipment for needing to connect is attached, and again closes bluetooth when not needing using bluetooth.So every time It needs manual deactivation and closes Bluetooth function, so that the connection procedure of bluetooth is very cumbersome.
Summary of the invention
The embodiment of the present invention provides a kind of Bluetooth connecting method, device, computer equipment and computer readable storage medium, The connection procedure of bluetooth can be made more convenient.
A kind of Bluetooth connecting method, comprising:
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, with It is attached the mobile terminal and vehicle-mounted Bluetooth equipment by bluetooth.
A kind of Bluetooth connection device, comprising:
Time-obtaining module, for obtaining the subscription time of user's input;
Using module is monitored, for monitoring the application program of running of mobile terminal in the subscription time;
Bluetooth opening module, if opening the movement for detecting that the running of mobile terminal presets application program The Bluetooth switch of terminal, so that the mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.
A kind of computer equipment, including memory and processor store computer-readable instruction in the memory, institute When stating instruction by processor execution, so that the processor executes following steps:
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, with It is attached the mobile terminal and vehicle-mounted Bluetooth equipment by bluetooth.
One or more includes the non-volatile computer readable storage medium storing program for executing of computer executable instructions, when the calculating When machine executable instruction is executed by one or more processors, so that the processor executes following steps:
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, with It is attached the mobile terminal and vehicle-mounted Bluetooth equipment by bluetooth.
Bluetooth connecting method, device, computer equipment and computer readable storage medium provided in an embodiment of the present invention, In Monitor terminal operating condition in subscription time opens the Bluetooth switch of mobile terminal when listening to default application program, so that Mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.It, can automatically and vehicle without the manually opened Bluetooth switch of user It carries bluetooth equipment to be attached, keeps the connection procedure of bluetooth more convenient.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of Bluetooth connecting method in one embodiment;
Fig. 2 is the flow chart of Bluetooth connecting method in another embodiment;
Fig. 3 is the schematic diagram of subscription time input interface in one embodiment;
Fig. 4 is the structural schematic diagram of Bluetooth connection device in one embodiment;
Fig. 5 is the structural schematic diagram of Bluetooth connection device in another embodiment;
Fig. 6 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided in an embodiment of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
Fig. 1 is the flow chart of Bluetooth connecting method in one embodiment.As shown in Figure 1, the Bluetooth connecting method includes step Rapid S102 to step S106.Wherein:
Step S102 obtains the subscription time of user's input.
In embodiment provided by the invention, subscription time refers to the time that the pre-set bluetooth of user is opened, user Subscription time is inputted by mobile terminal.It is generally believed that the time is the time that user may use Bluetooth function.For example, with Family needs to establish the connection of mobile phone and vehicle-mounted Bluetooth equipment, Lai Shixian listens to music, makes a phone call within the time on and off duty daily Function.
It is understood that the preset time can refer to a period.During this period of time, mobile terminal allows certainly It is dynamic to open Bluetooth switch.For example, user is 8 o'clock of morning of the week to 9 points by mobile terminal setting subscription time Clock allowed to automatically turn on Bluetooth switch within this period.
In other embodiments provided by the invention, the time of bluetooth closing can also be set, arrived in the bluetooth shut-in time Up to when, Bluetooth switch is closed automatically.It is understood that the bluetooth shut-in time refers generally to some time point, reaching When the time electricity, Bluetooth switch is closed.
Step S104 monitors the application program of running of mobile terminal in the appointment time.
In one embodiment, application program refers to the software write in mobile terminal for certain application purpose.Example Such as, can be listened to music by the application program on mobile terminal, see video, study, shopping and object for appreciation game etc..It monitors mobile whole The application program of end operation refers to the operational process for monitoring application program, answers it is known which current mobile terminal is currently running With program and the operating status of these application programs.Generally, mobile terminal can monitor application program operating status, Occupied number of threads of memory usage, application program of application program etc..
Specifically, timer can be set in mobile terminal, monitors in real time the mobile terminal current time, current when listening to When time reaches subscription time, it is switched on the monitoring task for monitoring application program, begins listening for what mobile terminal was currently run All application programs.
Step S106, if detecting, running of mobile terminal presets application program, and the bluetooth for opening the mobile terminal is opened It closes, so that the mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.
In embodiment provided by the invention, default application program refers to preset application program, can be system Setting, it is also possible to set by user.Generally, default application program refers to can be set by mobile terminal and on-vehicle Bluetooth Standby connection, and then realize by mobile unit the application program of certain application function.
For example, default application program can be the application program of voice communication, the application program for playing music etc..Language The application program of sound call can realize voice call function by mobile unit, receive calls manually without user.It plays The application program of music can realize the function of music by on-vehicle acoustic apparatus, to amplify mobile terminal music broadcasting Volume.
In one embodiment, mobile terminal can monitor the fortune of currently running application program and each application program Row state.When listen to be currently running default application program when, mobile terminal automatically opens Bluetooth switch.
Further, after Bluetooth switch is opened, mobile terminal may search for neighbouring Bluetooth signal, while mobile whole The Bluetooth signal at end can also be searched for by neighbouring bluetooth equipment.When the bluetooth of mobile terminal to search to vehicle-mounted Bluetooth equipment is believed Number when, so that it may be attached with vehicle-mounted Bluetooth equipment by bluetooth.After successful connection, it can be realized and be moved by mobile unit The application function for the application program installed in dynamic terminal.
Above-mentioned Bluetooth connecting method, monitor terminal operating condition in the appointment time, when listening to default application program, The Bluetooth switch for opening mobile terminal, so that mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.Without user hand It is dynamic to open Bluetooth switch, it can be attached automatically with vehicle-mounted Bluetooth equipment, keep the connection procedure of bluetooth more convenient.
Fig. 2 is the flow chart of Bluetooth connecting method in another embodiment.As shown in Fig. 2, the Bluetooth connecting method includes Step S202 to step S208.Wherein:
Step S202 obtains the subscription time of user's input.
In embodiment provided by the invention, user can input subscription time by interface of mobile terminal.Fig. 3 is one The schematic diagram of subscription time input interface in embodiment.As shown in figure 3, user, which clicks reservation function, enters subscription time input circle Face at the time point and reservation duration that input needs to reserve in subscription time input interface, is being reserved since subscription time point Within duration, Bluetooth function is allowed to automatically open.Within the reservation duration, if bluetooth is not connected, mobile terminal is prohibited The only function that bluetooth automatically turns on.
In one embodiment, subscription time is arranged by mobile terminal in user, what acquisition for mobile terminal to user inputted After subscription time, the automatically turning on Bluetooth function of the task is created, and monitors mobile terminal current time in real time.If detecting current Time reaches subscription time, then starts to execute the automatically turning on Bluetooth function of the task.
Step S204 monitors the application program of running of mobile terminal in the appointment time.
After the task of automatic opening Bluetooth function starts execution in one of the embodiments, begin listening for mobile whole Hold the application program currently run.It is understood that the operation of application program in the terminal can be, but not limited to wrap Front stage operation and running background are included, front stage operation refers to that application program is directly run on the window of mobile terminal, and can With the method for operation interacted with user.Running background refers to that application program is transported in the resource manager of mobile terminal The capable method of operation.
In other embodiments provided by the invention, if detecting, mobile terminal present position is default geographical position It sets, then monitors the application program of running of mobile terminal in the appointment time.Preset geographical position refers to pre-set geographical position It sets.In this embodiment it is believed that may search for the bluetooth letter of vehicle-mounted Bluetooth equipment when mobile terminal reaches preset geographical position Number.Specifically, when reaching subscription time, real-time detection mobile terminal present position, if reaching preset geographical position, Begin listening for the application program of running of mobile terminal.
Mobile terminal can prestore vehicle position, then preset geographical position can be the ground near vehicle position Manage position.The vehicle position prestored can be the geographical location that user is manually entered, and is also possible to mobile terminal and obtains automatically The geographical location taken.For example, user is obtained by instruction triggers mobile terminal when user stops vehicle to prepare to exit vehicle Take current geographical location as vehicle position, using the geographical location within the scope of 50 meters of the position as preset geographical position Storage is in the terminal.When user reaches the preset geographical position within a preset time, running of mobile terminal is begun listening for Application program, to automatically turn on Bluetooth function.
In other embodiments provided by the invention, vehicle position and mobile terminal present position are obtained, and The positional distance between vehicle and mobile terminal is calculated according to vehicle position and mobile terminal present position;If position Distance then monitors the application program of running of mobile terminal within the scope of pre-determined distance in the appointment time.
It in one embodiment, can (Global Positioning System, the whole world be fixed by the GPS of mobile terminal Position system) function acquisition mobile terminal present position.
Step S206, if detecting, running of mobile terminal presets application program, opens the Bluetooth switch of mobile terminal.
In embodiment provided by the invention, if detecting, mobile terminal presets application program in front stage operation, opens The Bluetooth switch of mobile terminal.In the present embodiment, it is answered if detecting that mobile terminal is preset in front stage operation in the appointment time With program, it is believed that user needs to realize that the function of default application program, the then bluetooth for opening mobile terminal are opened by mobile unit It closes.Mobile unit refers to the equipment installed on vehicle.
In other embodiments provided by the invention, the manually opened Bluetooth switch of user can be allowed.If detecting mobile whole End runs default application program, then the prompt window of opening Bluetooth switch is shown in mobile terminal;If receiving user's input The Bluetooth switch of mobile terminal is then opened in the instruction of opened bluetooth function.
Further, if step S206 can also include: to detect that running of mobile terminal presets application program, shifting is obtained Dynamic terminal current electric quantity;If mobile terminal current electric quantity is greater than default electricity, the Bluetooth switch of mobile terminal is opened.If mobile Terminal current electric quantity is less than default electricity, then detects whether mobile terminal is charging;If mobile terminal is charging, open The Bluetooth switch of mobile terminal.In general, it is believed that realizing the function of default application program by mobile unit, need to guarantee to move The electricity of terminal abundance.
If being closed in addition, can also include: to detect that mobile terminal current electric quantity is less than default electricity after step S206 Close the Bluetooth switch of mobile terminal.That is, real-time detection mobile terminal is worked as after the Bluetooth switch for opening mobile terminal Bluetooth switch is automatically closed if mobile terminal current electric quantity is less than default electricity in preceding electricity.It is also possible to detect movement When terminal current electric quantity is less than default electricity, dialog box is shown on interface of mobile terminal, user can be defeated according to the dialog box The instruction for whether closing Bluetooth switch entered, if receiving the instruction of the closing Bluetooth switch of user's input, turning-off mobile terminal Bluetooth switch.
Step S208, if detecting, the Bluetooth signal of default vehicle-mounted Bluetooth equipment is greater than preset signal strength, to default Vehicle-mounted Bluetooth equipment initiates the connection request.
In embodiment provided by the invention, default vehicle-mounted Bluetooth equipment refers to pre-set vehicle-mounted Bluetooth equipment, can To be the vehicle-mounted Bluetooth equipment of user's manual setting, the vehicle-mounted Bluetooth equipment being adapted to mobile terminal may also mean that.
Specifically, mobile terminal starts to search for neighbouring Bluetooth signal after opening Bluetooth switch, when searching default vehicle When carrying the Bluetooth signal of bluetooth equipment, whether the Bluetooth signal for detecting the default vehicle-mounted Bluetooth equipment is greater than preset signal strength. If the Bluetooth signal of default vehicle-mounted Bluetooth equipment is greater than preset signal strength, initiates the connection and ask to default vehicle-mounted Bluetooth equipment It asks.
In one embodiment, if mobile terminal is greater than default letter in the Bluetooth signal for detecting default vehicle-mounted Bluetooth equipment Number intensity then initiates Bluetooth connection request to default vehicle-mounted Bluetooth equipment.Also can be, but not limited in Bluetooth connection request include The bluetooth equipment that request is initiated identifies, received bluetooth equipment is requested to identify and verify the contents such as password.Connection request is sent To vehicle-mounted Bluetooth equipment, the request results for allowing to connect that vehicle-mounted Bluetooth equipment returns are received, allow to connect according to this Request results and vehicle-mounted Bluetooth equipment establish bluetooth connection.It is understood that if requesting the vehicle-mounted Bluetooth equipment of connection and working as Preceding mobile terminal established connection, then store the corresponding verifying password of vehicle-mounted Bluetooth equipment in current mobile terminal, then without Vehicle-mounted Bluetooth equipment need to be sent to password will be verified.
Above-mentioned Bluetooth connecting method, monitor terminal operating condition in the appointment time, when listening to default application program, The Bluetooth switch of mobile terminal is opened, and when the signal strength of default vehicle-mounted Bluetooth equipment is greater than preset signal strength, to pre- If vehicle-mounted Bluetooth equipment initiates Bluetooth connection request so that mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.In this way It without the manually opened Bluetooth switch of user, can be attached automatically with vehicle-mounted Bluetooth equipment, make the connection procedure of bluetooth more It is convenient.
Fig. 4 is the structural schematic diagram of Bluetooth connection device in one embodiment.As shown in figure 4, the Bluetooth connection device packet Include time-obtaining module 402, using monitoring module 404 and bluetooth opening module 406, in which:
Time-obtaining module 402, for obtaining the subscription time of user's input.
Using module 404 is monitored, for monitoring the application program of running of mobile terminal in the subscription time.
Bluetooth opening module 406, if opening the shifting for detecting that the running of mobile terminal presets application program The Bluetooth switch of dynamic terminal, so that the mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.
Above-mentioned Bluetooth connection device, monitor terminal operating condition in the appointment time, when listening to default application program, The Bluetooth switch for opening mobile terminal, so that mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.Without user hand It is dynamic to open Bluetooth switch, it can be attached automatically with vehicle-mounted Bluetooth equipment, keep the connection procedure of bluetooth more convenient.
Fig. 5 is the structural schematic diagram of Bluetooth connection device in another embodiment.As shown in figure 5, the Bluetooth connection device Including time-obtaining module 502, using monitoring module 504, bluetooth opening module 506 and bluetooth connection module 508, in which:
Time-obtaining module 502, for obtaining the subscription time of user's input.
Using module 504 is monitored, for monitoring the application program of running of mobile terminal in the subscription time.
Bluetooth opening module 506, if opening the shifting for detecting that the running of mobile terminal presets application program The Bluetooth switch of dynamic terminal, so that the mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.
Bluetooth connection module 508, if for detecting that it is strong that the Bluetooth signal of default vehicle-mounted Bluetooth equipment is greater than preset signals Degree, then initiate the connection request to the default vehicle-mounted Bluetooth equipment.
Above-mentioned Bluetooth connection device, monitor terminal operating condition in the appointment time, when listening to default application program, The Bluetooth switch for opening mobile terminal, so that mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.Without user hand It is dynamic to open Bluetooth switch, it is attached automatically with vehicle-mounted Bluetooth equipment, keeps the connection procedure of bluetooth more convenient.
If being also used to detect that the mobile terminal is currently located using monitoring module 504 in one of the embodiments, Position is preset geographical position, then the application program of running of mobile terminal is monitored in the subscription time.
In one embodiment, using monitoring, module 504 is also used to obtain vehicle position and the mobile terminal is worked as Preceding position, and the vehicle and mobile terminal are calculated according to the vehicle position and mobile terminal present position Between positional distance;If the positional distance within the scope of pre-determined distance, monitors mobile terminal in the subscription time The application program of operation.
In one embodiment, if bluetooth opening module 506 is also used to detect that the mobile terminal is pre- in front stage operation If application program, then the Bluetooth switch of the mobile terminal is opened.
In one embodiment, if bluetooth opening module 506 is also used to detect that running of mobile terminal presets application program, Then obtain mobile terminal current electric quantity;If mobile terminal current electric quantity is greater than default electricity, the bluetooth for opening mobile terminal is opened It closes.If mobile terminal current electric quantity is less than default electricity, detect whether mobile terminal is charging;If mobile terminal is filling Electricity then opens the Bluetooth switch of mobile terminal.
Above-mentioned Bluetooth connection device, monitor terminal operating condition in the appointment time, when listening to default application program, The Bluetooth switch for opening mobile terminal, so that mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.Without user hand It is dynamic to open Bluetooth switch, it is attached automatically with vehicle-mounted Bluetooth equipment, keeps the connection procedure of bluetooth more convenient.
The division of modules is only used for for example, in other embodiments in above-mentioned Bluetooth connection device, can will be blue Tooth attachment device is divided into different modules as required, to complete all or part of function of above-mentioned Bluetooth connection device.
The embodiment of the invention also provides a kind of computer readable storage mediums.One or more is executable comprising computer The non-volatile computer readable storage medium storing program for executing of instruction, when the computer executable instructions are executed by one or more processors When, so that the processor executes following steps:
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, with It is attached the mobile terminal and vehicle-mounted Bluetooth equipment by bluetooth.
In one embodiment, the monitoring running of mobile terminal in the subscription time being executed by processor is answered Include: with program
If detecting, the mobile terminal present position is preset geographical position, is monitored in the subscription time The application program of running of mobile terminal.
In embodiment provided by the invention, if what is be executed by processor described detects that the mobile terminal is currently located Position is preset geographical position, then the application program that running of mobile terminal is monitored in the subscription time includes:
Vehicle position and the mobile terminal present position are obtained, and according to the vehicle position and shifting Dynamic terminal present position calculates the positional distance between the vehicle and mobile terminal;
If the positional distance within the scope of pre-determined distance, monitors answering for running of mobile terminal in the subscription time Use program.
If what is be executed by processor in one of the embodiments, described detects the default application of the running of mobile terminal Program, the then Bluetooth switch for opening the mobile terminal include:
If detecting, the mobile terminal presets application program in front stage operation, and the bluetooth for opening the mobile terminal is opened It closes.
In one embodiment, be executed by processor the method also includes:
If detecting, the Bluetooth signal of default vehicle-mounted Bluetooth equipment is greater than preset signal strength, presets vehicle-mounted indigo plant to described Tooth equipment initiates the connection request.
The embodiment of the invention also provides a kind of computer equipments.As shown in fig. 6, for ease of description, illustrate only with The relevant part of the embodiment of the present invention, it is disclosed by specific technical details, please refer to present invention method part.The calculating Machine equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device are with computer equipment For mobile phone:
Fig. 6 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided in an embodiment of the present invention.With reference to figure 6, mobile phone include: radio frequency (Radio Frequency, RF) circuit 610, memory 620, input unit 630, display unit 640, Sensor 650, voicefrequency circuit 660, Wireless Fidelity (wireless fidelity, WiFi) module 670, processor 680 and The components such as power supply 690.It will be understood by those skilled in the art that handset structure shown in fig. 6 does not constitute the restriction to mobile phone, it can To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 610 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 680;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 610 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 620 can be used for storing software program and module, and processor 680 is stored in memory 620 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 620 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as audio data, address list etc.) etc. are used according to mobile phone.In addition, memory 620 may include high speed Random access memory, can also include nonvolatile memory, a for example, at least disk memory, flush memory device or Other volatile solid-state parts.
Input unit 630 can be used for receiving the number or character information of input, and generate the user setting with mobile phone 600 And the related key signals input of function control.Specifically, input unit 630 may include touch panel 631 and other inputs Equipment 632.Touch panel 631, alternatively referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the operation of any suitable object or attachment such as finger, stylus on touch panel 631 or near touch panel 631), And corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 631 may include touching inspection Survey two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation Bring signal, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and will It is converted into contact coordinate, then gives processor 680, and can receive order that processor 680 is sent and be executed.In addition, Touch panel 631 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 631, input unit 630 can also include other input equipments 632.Specifically, other input equipments 632 may include but not It is limited to one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 640 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 640 may include display panel 641.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 641.In one embodiment, touch panel 631 can cover display panel 641, when touch panel 631 is examined After measuring touch operation on it or nearby, processor 680 is sent to determine the type of touch event, is followed by subsequent processing device 680 provide corresponding visual output according to the type of touch event on display panel 641.Although in Fig. 6, touch panel 631 and display panel 641 are the input and input function for realizing mobile phone as two independent components, but in certain implementations In example, can be integrated by touch panel 631 and display panel 641 and that realizes mobile phone output and input function.
Mobile phone 600 may also include at least one sensor 650, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 641, and proximity sensor can close display panel when mobile phone is moved in one's ear 641 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 660, loudspeaker 661 and microphone 662 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 661, be converted to sound by loudspeaker 661 by road 660 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 662, is turned after being received by voicefrequency circuit 660 It is changed to audio data, then by after the processing of audio data output processor 680, another mobile phone can be sent to through RF circuit 610, or Person exports audio data to memory 620 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 670 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 6 is shown WiFi module 670, but it is understood that, and it is not belonging to must be configured into for mobile phone 600, it can according to need and omit.
Processor 680 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 620, and call and be stored in memory 620 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 680 may include one or more processing units.In one embodiment, processor 680 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 680.
Mobile phone 600 further includes the power supply 690 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 680 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 600 can also include camera, bluetooth module etc..
In embodiments of the present invention, processor 680 included by the mobile terminal executes the calculating of storage on a memory It is performed the steps of when machine program
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, with It is attached the mobile terminal and vehicle-mounted Bluetooth equipment by bluetooth.
In one embodiment, the monitoring running of mobile terminal in the subscription time being executed by processor is answered Include: with program
If detecting, the mobile terminal present position is preset geographical position, is monitored in the subscription time The application program of running of mobile terminal.
In embodiment provided by the invention, if what is be executed by processor described detects that the mobile terminal is currently located Position is preset geographical position, then the application program that running of mobile terminal is monitored in the subscription time includes:
Vehicle position and the mobile terminal present position are obtained, and according to the vehicle position and shifting Dynamic terminal present position calculates the positional distance between the vehicle and mobile terminal;
If the positional distance within the scope of pre-determined distance, monitors answering for running of mobile terminal in the subscription time Use program.
If what is be executed by processor in one of the embodiments, described detects the default application of the running of mobile terminal Program, the then Bluetooth switch for opening the mobile terminal include:
If detecting, the mobile terminal presets application program in front stage operation, and the bluetooth for opening the mobile terminal is opened It closes.
In one embodiment, be executed by processor the method also includes:
If detecting, the Bluetooth signal of default vehicle-mounted Bluetooth equipment is greater than preset signal strength, presets vehicle-mounted indigo plant to described Tooth equipment initiates the connection request.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a non-volatile computer and can be read In storage medium, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage is situated between Matter can be magnetic disk, CD, read-only memory (Read-Only Memory, ROM) etc..
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.

Claims (10)

1. a kind of Bluetooth connecting method characterized by comprising
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, obtains the mobile terminal current electric quantity;
If the mobile terminal current electric quantity is greater than default electricity, the Bluetooth switch of the mobile terminal is opened, so that described Mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.
2. Bluetooth connecting method according to claim 1, which is characterized in that described to monitor movement in the subscription time The application program of terminal operating includes:
If detecting, the mobile terminal present position is preset geographical position, and movement is monitored in the subscription time The application program of terminal operating.
3. Bluetooth connecting method according to claim 2, which is characterized in that if described detect that the mobile terminal is current Position is preset geographical position, then the application program that running of mobile terminal is monitored in the subscription time includes:
Vehicle position and the mobile terminal present position are obtained, and eventually according to the vehicle position and movement End present position calculates the positional distance between the vehicle and mobile terminal;
If the positional distance within the scope of pre-determined distance, monitors the application journey of running of mobile terminal in the subscription time Sequence.
4. Bluetooth connecting method according to claim 1, which is characterized in that if described detect the running of mobile terminal Default application program, then obtaining the mobile terminal current electric quantity includes:
If detecting, the mobile terminal presets application program in front stage operation, obtains the mobile terminal current electric quantity.
5. Bluetooth connecting method according to claim 1, which is characterized in that the method also includes:
If detecting, the Bluetooth signal of default vehicle-mounted Bluetooth equipment is greater than preset signal strength, sets to the default on-vehicle Bluetooth Preparation plays connection request.
6. a kind of Bluetooth connection device characterized by comprising
Time-obtaining module, for obtaining the subscription time of user's input;
Using module is monitored, for monitoring the application program of running of mobile terminal in the subscription time;
Bluetooth opening module, if obtaining the mobile terminal for detecting that the running of mobile terminal presets application program and working as Preceding electricity;If the mobile terminal current electric quantity is greater than default electricity, then the Bluetooth switch of the mobile terminal is opened, so that The mobile terminal and vehicle-mounted Bluetooth equipment are attached by bluetooth.
7. Bluetooth connection device according to claim 6, which is characterized in that if the application monitors module and is also used to detect It is preset geographical position to the mobile terminal present position, then monitors running of mobile terminal in the subscription time Application program.
8. Bluetooth connection device according to claim 6, which is characterized in that if the bluetooth opening module is also used to detect Application program is preset in front stage operation to the mobile terminal, obtains the mobile terminal current electric quantity;If the mobile terminal Current electric quantity is greater than default electricity, then opens the Bluetooth switch of the mobile terminal.
9. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, it is described When instruction is executed by the processor, so that the processor executes following steps:
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, so that institute It states mobile terminal and vehicle-mounted Bluetooth equipment is attached by bluetooth.
10. the non-volatile computer readable storage medium storing program for executing of one or more storage computer executable instructions, when the calculating When machine executable instruction is executed by one or more processors, so that the processor executes following steps:
Obtain the subscription time of user's input;
The application program of running of mobile terminal is monitored in the subscription time;
If detecting, the running of mobile terminal presets application program, opens the Bluetooth switch of the mobile terminal, so that institute It states mobile terminal and vehicle-mounted Bluetooth equipment is attached by bluetooth.
CN201710524959.9A 2017-06-30 2017-06-30 Bluetooth connecting method, device, computer equipment and computer readable storage medium Active CN107277752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710524959.9A CN107277752B (en) 2017-06-30 2017-06-30 Bluetooth connecting method, device, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710524959.9A CN107277752B (en) 2017-06-30 2017-06-30 Bluetooth connecting method, device, computer equipment and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN107277752A CN107277752A (en) 2017-10-20
CN107277752B true CN107277752B (en) 2019-12-03

Family

ID=60069726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710524959.9A Active CN107277752B (en) 2017-06-30 2017-06-30 Bluetooth connecting method, device, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN107277752B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174017A (en) * 2017-11-29 2018-06-15 维沃移动通信有限公司 A kind of bluetooth open method and mobile terminal
CN108923971A (en) * 2018-06-29 2018-11-30 努比亚技术有限公司 Blue-teeth equipment management method, apparatus, computer readable storage medium and its terminal
CN108966194B (en) * 2018-07-24 2021-04-06 重庆长安汽车股份有限公司 System and method for realizing Bluetooth non-inductive connection between mobile phone and vehicle-mounted terminal
CN110139259B (en) * 2019-05-15 2022-05-13 中国联合网络通信集团有限公司 Bluetooth control method and system
CN110751761B (en) * 2019-10-25 2022-04-29 联永智能科技(上海)有限公司 Unlocking method, device and equipment of Bluetooth lockset and storage medium
CN111554008B (en) * 2020-04-22 2024-01-16 支付宝(杭州)信息技术有限公司 Digital key binding method, digital key verification method, mobile electronic equipment and near field communication device
CN113573291A (en) * 2021-08-04 2021-10-29 杭州涂鸦信息技术有限公司 Bluetooth connection method, device, computer equipment and computer readable storage medium
CN113746985A (en) * 2021-08-30 2021-12-03 深圳壹账通智能科技有限公司 Bluetooth control method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491254A (en) * 2013-09-26 2014-01-01 广东欧珀移动通信有限公司 Method and device for simplifying phone call answering during driving
CN104407894A (en) * 2014-11-26 2015-03-11 重庆蓝岸通讯技术有限公司 Method and system for automatically starting application of intelligent electronic equipment
CN105846861A (en) * 2016-03-17 2016-08-10 乐卡汽车智能科技(北京)有限公司 Signal processing method and mobile terminal
CN106535249A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Control method and control device for wireless local area networks, and terminal

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554229A (en) * 2015-06-30 2016-05-04 宇龙计算机通信科技(深圳)有限公司 Information processing method and user terminal
CN105554861A (en) * 2015-12-02 2016-05-04 广东小天才科技有限公司 Method and system for automatic networking based on position and time
CN106856540A (en) * 2015-12-09 2017-06-16 北京奇虎科技有限公司 A kind of method and apparatus of communication of mobile terminal
CN106412241A (en) * 2016-08-31 2017-02-15 捷开通讯(深圳)有限公司 Application operating method and system, and mobile terminals

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103491254A (en) * 2013-09-26 2014-01-01 广东欧珀移动通信有限公司 Method and device for simplifying phone call answering during driving
CN104407894A (en) * 2014-11-26 2015-03-11 重庆蓝岸通讯技术有限公司 Method and system for automatically starting application of intelligent electronic equipment
CN105846861A (en) * 2016-03-17 2016-08-10 乐卡汽车智能科技(北京)有限公司 Signal processing method and mobile terminal
CN106535249A (en) * 2016-10-25 2017-03-22 广东欧珀移动通信有限公司 Control method and control device for wireless local area networks, and terminal

Also Published As

Publication number Publication date
CN107277752A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107277752B (en) Bluetooth connecting method, device, computer equipment and computer readable storage medium
CN104375210B (en) Weather prediction method, equipment and system
CN107820331A (en) Call method, device, computer equipment and readable storage medium storing program for executing
CN106791955B (en) A kind of method and system of determining live streaming duration
CN107592615B (en) Positioning method and device
CN104284001B (en) The incoming information display methods and device of terminal
CN105959482B (en) A kind of control method and electronic equipment of scene audio
CN106375774A (en) Live broadcast room display content control method, apparatus and system
CN106775323A (en) Method, device and the mobile communication terminal of application program have been adjusted in communication process
CN106330211B (en) LTE Frequency Band Selection method and apparatus
CN103744574A (en) Method and device for turning off alarm clock of mobile terminal and mobile terminal
CN107391198A (en) Method for scheduling task and device, computer-readable recording medium, mobile terminal
CN107741812B (en) A kind of method and terminal handling media file
CN106454976B (en) A kind of switching method of wireless network, device and terminal
CN109151942A (en) A kind of network insertion switching method, device and mobile terminal
CN105163189A (en) Method for reserving multimedia programs, server and terminal
CN109151949A (en) Block method, mobile terminal and the storage medium of access abnormal network cell
CN106817482A (en) Mobile terminal and its method and apparatus called
CN108391277A (en) Signal connection method, device, mobile terminal and computer readable storage medium
CN103546632A (en) Method and device for alarm ringing of mobile terminal and mobile terminal
CN107577795A (en) A kind of methods, devices and systems for recommending song
CN208402071U (en) Audio playing apparatus, earphone and audio frequency broadcast system
CN109189538A (en) Method and device for sending directional red packet
CN106708501B (en) Activity monitoring method and device
CN105094869B (en) Target program determines method and device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong Opel Mobile Communications Co., Ltd.

GR01 Patent grant
GR01 Patent grant