CN111954193A - Bluetooth device connection detection method and device and mobile terminal - Google Patents

Bluetooth device connection detection method and device and mobile terminal Download PDF

Info

Publication number
CN111954193A
CN111954193A CN202010782982.XA CN202010782982A CN111954193A CN 111954193 A CN111954193 A CN 111954193A CN 202010782982 A CN202010782982 A CN 202010782982A CN 111954193 A CN111954193 A CN 111954193A
Authority
CN
China
Prior art keywords
bluetooth
bluetooth device
sequence
preset
detection part
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010782982.XA
Other languages
Chinese (zh)
Other versions
CN111954193B (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.)
Shenzhen Wahching Technology Co ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN202010782982.XA priority Critical patent/CN111954193B/en
Publication of CN111954193A publication Critical patent/CN111954193A/en
Application granted granted Critical
Publication of CN111954193B publication Critical patent/CN111954193B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/005Discovery of network devices, e.g. terminals

Landscapes

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

Abstract

The embodiment of the invention discloses a method, a device and a mobile terminal for detecting connection of Bluetooth equipment, wherein the method comprises the following steps: acquiring a Bluetooth device connection list corresponding to preset times; inquiring the connection times of each corresponding Bluetooth device in the connection list; sequencing the Bluetooth devices in the connection list according to the connection times; selecting Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part; and updating the Bluetooth device connection list corresponding to the preset times. This scheme is when mobile terminal has bluetooth function, can improve the chance that detects common bluetooth equipment when opening the external bluetooth equipment of bluetooth function detection and connecting, reaches this bluetooth equipment's of high-speed joint purpose, promotes user experience, brings the convenience for the user.

Description

Bluetooth device connection detection method and device and mobile terminal
Technical Field
The invention relates to the field of Bluetooth equipment, in particular to a Bluetooth equipment connection detection method, a Bluetooth equipment connection detection device and a mobile terminal.
Background
Bluetooth is a standard wireless communication technology, and can realize short-distance data exchange of UHF radio waves passing through ISM (industrial scientific medical) bands of 2.4 to 2.485GHz among fixed equipment, mobile equipment and a building personal area network. Currently, bluetooth is a technology that is standard configured on a mobile terminal, and is one of the most common functions of the mobile terminal, and users start bluetooth on the mobile terminal and then connect with each other, so that data exchange is performed between the mobile terminal and the mobile terminal, which brings convenience to the users. When the bluetooth uses, it is connected with other bluetooth equipment through wireless form, wireless signal is through the bluetooth transmitter transmission, bluetooth transmitter is with fixed power transmission signal among the prior art, and bluetooth equipment is more kind, it is common to have bluetooth headset, the bluetooth stereo set, the bluetooth wrist-watch, bluetooth glasses, the bluetooth is on-vehicle etc. these bluetooth equipment can adopt different bluetooth protocol versions to detect, for example bluetooth headset is rechargeable at present, so it often can show how much the electric quantity of this bluetooth headset on mobile terminal, so mobile terminal needs some higher version bluetooth protocol can detect, because the more this that leads to mobile terminal of the bluetooth equipment that exists in the external world needs to detect one by one after opening the bluetooth, this chance that can make some bluetooth equipment commonly used detect reduces than actual.
Therefore, the prior art has defects and needs to be improved and developed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for detecting connection of Bluetooth equipment and a mobile terminal, which can improve the opportunity of detecting common Bluetooth equipment when the Bluetooth function is started to detect the connection of external Bluetooth equipment.
The embodiment of the invention provides a connection detection method of Bluetooth equipment, which comprises the following steps: acquiring a Bluetooth device connection list corresponding to preset times; inquiring the connection times of each corresponding Bluetooth device in the connection list; sequencing the Bluetooth devices in the connection list according to the connection times; selecting Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part; and updating the Bluetooth device connection list corresponding to the preset times.
Optionally, in some embodiments of the present invention, the obtaining a bluetooth device connection list corresponding to the preset number of times includes:
the preset times comprise preset initial times and preset updating times.
Optionally, in some embodiments of the present invention, the obtaining a bluetooth device connection list corresponding to the preset number of times includes:
acquiring an initial connection list of the Bluetooth equipment corresponding to the initial times;
inquiring the initial connection times of each corresponding Bluetooth device in the initial connection list;
sequencing the Bluetooth devices in the initial connection list according to the initial connection times;
selecting Bluetooth equipment corresponding to the sequence less than the preset initial sequence to generate a first initial detection part, and selecting Bluetooth equipment corresponding to the sequence greater than or equal to the initial sequence to generate a second initial detection part.
Optionally, in some embodiments of the present invention, the selecting the bluetooth device corresponding to the order smaller than the preset order to generate the first detection portion, and selecting the bluetooth device corresponding to the order greater than or equal to the preset order to generate the second detection portion includes:
calculating a first proportional relation of Bluetooth equipment corresponding to the sequence smaller than the sequence, and dividing the area of the first detection part according to the first proportional relation;
calculating a second proportional relation of the Bluetooth equipment corresponding to the sequence which is greater than or equal to the sequence, and dividing the area of the second detection part according to the second proportional relation;
the area of the second detection part is smaller than or equal to the area corresponding to any Bluetooth device in the first detection part.
Optionally, in some embodiments of the present invention, the selecting the bluetooth device corresponding to the order smaller than the preset order to generate the first detection portion, and selecting the bluetooth device corresponding to the order greater than or equal to the preset order to generate the second detection portion includes:
presetting the area of a third detection part, wherein the Bluetooth device in the third detection part is a Bluetooth device connected for the first time;
the areas of the first-time connected Bluetooth devices are the same.
Optionally, in some embodiments of the present invention, the selecting the bluetooth device corresponding to the order smaller than the preset order to generate the first detection portion, and selecting the bluetooth device corresponding to the order greater than or equal to the preset order to generate the second detection portion includes:
the Bluetooth device detection part comprises the first detection part, the second detection part and the third detection part;
the area of the detection part of the Bluetooth equipment corresponds to the total time of one-time Bluetooth detection;
dividing the area into a plurality of unit areas, and calculating the Bluetooth detection unit time corresponding to the unit areas;
the Bluetooth detection time of each Bluetooth device in the Bluetooth device detection part is the product of the area corresponding to the Bluetooth device and the unit time.
Correspondingly, an embodiment of the present invention further provides a bluetooth device connection detection apparatus, including:
the acquisition unit is used for acquiring a Bluetooth device connection list corresponding to preset times;
the inquiry unit is used for inquiring the connection times of each corresponding Bluetooth device in the connection list;
the sequencing unit is used for sequencing the Bluetooth devices in the connection list according to the connection times;
the generating unit is used for selecting the Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting the Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part;
and the updating unit is used for updating the Bluetooth device connection list corresponding to the preset times.
Optionally, in some embodiments of the present invention, the generating unit includes:
the first calculating unit is used for calculating a first proportional relation of the Bluetooth equipment corresponding to the sequence smaller than the sequence, and dividing the area of the first detection part according to the first proportional relation;
and the second calculating unit is used for calculating a second proportional relation of the Bluetooth devices corresponding to the sequence which is greater than or equal to the sequence, dividing the area of the second detection part according to the second proportional relation, and enabling the area of the second detection part to be smaller than or equal to the area corresponding to any Bluetooth device in the first detection part.
Optionally, in some embodiments of the present invention, the generating unit includes:
the Bluetooth device comprises a presetting unit, a first detecting part and a second detecting part, wherein the presetting unit is used for presetting the area of the third detecting part, the Bluetooth device in the third detecting part is a Bluetooth device which is connected for the first time, and the area of the Bluetooth device which is connected for the first time is the same.
In addition, the embodiment of the invention also provides a mobile terminal which comprises the Bluetooth device connection detection device.
The embodiment of the invention provides a method, a device and a mobile terminal for detecting connection of Bluetooth equipment, wherein the method comprises the following steps: acquiring a Bluetooth device connection list corresponding to preset times; inquiring the connection times of each corresponding Bluetooth device in the connection list; sequencing the Bluetooth devices in the connection list according to the connection times; selecting Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part; and updating the Bluetooth device connection list corresponding to the preset times. This scheme is when mobile terminal has bluetooth function, can improve the chance that detects common bluetooth equipment when opening the external bluetooth equipment of bluetooth function detection and connecting, reaches this bluetooth equipment's of high-speed joint purpose, promotes user experience, brings the convenience for the user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for detecting connection of a bluetooth device according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a bluetooth device connection detection apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a Bluetooth device connection detection method, a Bluetooth device connection detection device and a mobile terminal. The mobile terminal of the embodiment of the invention can be a mobile phone, a tablet computer, a notebook computer and other equipment.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
A Bluetooth device connection detection method includes: acquiring a Bluetooth device connection list corresponding to preset times; inquiring the connection times of each corresponding Bluetooth device in the connection list; sequencing the Bluetooth devices in the connection list according to the connection times; selecting Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part; and updating the Bluetooth device connection list corresponding to the preset times.
As shown in fig. 1, a specific process of the bluetooth device connection detection method may be as follows:
101. and acquiring a Bluetooth device connection list corresponding to the preset times.
For example, the mobile terminal detects that the bluetooth function is turned on, and acquires a bluetooth device connection list corresponding to preset times from a memory of the mobile terminal. The preset times comprise a preset initial time and a preset updating time. The initial times are set when the mobile terminal is connected with the Bluetooth for the first time, and the updating times are set when the mobile terminal is connected with the Bluetooth for the first time.
The mobile terminal comprises a mobile terminal memory, a Bluetooth module and a Bluetooth module, wherein a space is marked in the mobile terminal memory in advance for storing the types of external Bluetooth devices connected each time, and the time for each type of Bluetooth device to be normally connected is the same. Presetting an initial time, acquiring a Bluetooth device initial connection list corresponding to the initial time, inquiring the initial connection time of each Bluetooth device, and sequencing the Bluetooth devices in the initial connection list according to the initial connection time, wherein the larger the initial connection time of the Bluetooth device is, the smaller the sequence is. For example, the preset initial connection times is 3 times, a bluetooth device connection list is acquired for 3 times, the bluetooth device connected for the 1 st time is bluetooth a, bluetooth B and bluetooth C, the bluetooth device connected for the 2 nd time is bluetooth a, bluetooth B, the bluetooth device connected for the 3 rd time is bluetooth a and bluetooth D, then the initial connection times of bluetooth a is 3 times, the initial connection times of bluetooth B is 2 times, and the initial connection times of bluetooth C and bluetooth D is 1 time. The method comprises the steps of presetting an initial sequence, selecting Bluetooth equipment corresponding to the sequence smaller than the preset initial sequence to generate a first initial detection part, and selecting Bluetooth equipment corresponding to the sequence larger than or equal to the initial sequence to generate a second initial detection part, wherein the first part is Bluetooth equipment with higher connection frequency, and the second part is Bluetooth equipment with lower connection frequency. For example, if the preset initial sequence is 3 rd, the bluetooth devices with the initial connection times ranked in the top 2 names are bluetooth a and bluetooth B, and a first initial detection part is generated, and the bluetooth devices with the initial connection times ranked in 3 rd and 4 th are bluetooth C and bluetooth D, and a second initial detection part is generated.
Before each Bluetooth connection, the Bluetooth device detection part generated last time is acquired, namely the Bluetooth device connection list with preset updating times is acquired, the Bluetooth device detection part is generated according to the connection times corresponding to the connection list with the updating times, and then the external Bluetooth device is detected according to the detection part.
The bluetooth device detection part may generate a detection ring to be displayed in the mobile terminal, may also be in a rectangular shape, and the like, and may display the area ratio of each detection part.
102. And inquiring the connection times of each corresponding Bluetooth device in the connection list.
For example, after acquiring the bluetooth device connection list, the number of connections of each corresponding bluetooth device in the connection list is queried.
After the initial connection list of the Bluetooth equipment is obtained, the connection times of each Bluetooth equipment corresponding to the initial connection list are inquired, and an initial detection part of the Bluetooth equipment is generated. And after the Bluetooth device updating connection list is obtained, inquiring the connection times of each Bluetooth device corresponding to the updating connection list, and generating a Bluetooth device detection part.
103. And sequencing the Bluetooth devices in the connection list according to the connection times.
For example, after a bluetooth device connection list corresponding to preset times is obtained, the connection times of each bluetooth device are inquired, the bluetooth devices are sorted according to the connection times, and the larger the connection times, the smaller the order.
104. Selecting Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part.
For example, a sequence is preset, the connection times of the corresponding bluetooth devices in the connection list are inquired and then sorted, the bluetooth devices corresponding to the sequence smaller than the preset sequence are selected to generate a first detection part, and the bluetooth devices corresponding to the sequence greater than or equal to the preset sequence are selected to generate a second detection part.
After the connection list is obtained, the connection times of the corresponding Bluetooth devices in the connection list are inquired and then sequenced, a sequence is preset, a first proportion relation of the Bluetooth devices corresponding to the sequence smaller than the preset sequence is calculated, and the area of a first detection part is divided according to the first proportion relation; and calculating a second proportional relation of the Bluetooth devices corresponding to the sequence which is greater than or equal to the preset sequence, dividing the area of the second detection part according to the second proportional relation, wherein the area of the second detection part is less than or equal to the area corresponding to any Bluetooth device in the first detection part. For example, the first detection part has bluetooth a and bluetooth B, the connection frequency of bluetooth a is 3 times, and the connection frequency of bluetooth B is 2 times, then the first proportional relationship between bluetooth a and bluetooth B is 3: 2, the area ratio of bluetooth a to bluetooth B in the first detection section is 3: 2; the second detection part has bluetooth C and bluetooth D, and bluetooth C and bluetooth D's connection number of times is 1, and then bluetooth C and bluetooth D's second proportional relation is 1: 1, the area ratio of the bluetooth C to the bluetooth D is 1: 1, the total area of the second detection portions is equal to the area of bluetooth B.
The area of the third detection part is preset, and the Bluetooth equipment in the third part is connected for the first time; the areas of the first connected bluetooth devices are the same. For example, the most recent connection list is bluetooth a and bluetooth E, and bluetooth E alone is used as the third detection section if bluetooth E is not in the history connection list. The area of the third detection portion is predetermined, for example, the area of the third detection portion is divided into a plurality of portions, and if the area of the third portion occupies one of the portions, the area of the bluetooth E is equal to the area of the third portion. If more than one Bluetooth device is connected for the first time, the areas of the three parts are equally divided, namely the areas corresponding to each Bluetooth device in the third part are the same; the area of the third detection section can also be reserved if there is no newly connected bluetooth device.
The Bluetooth device detection part comprises a first detection part, a second detection part and a third detection part. The total area of the Bluetooth device detection part corresponds to the total time of one-time Bluetooth detection, the area of the detection part is divided into a plurality of unit areas, the Bluetooth detection unit time corresponding to the unit areas is calculated, and the Bluetooth detection time of each Bluetooth device in the detection part is the product of the corresponding area and the Bluetooth detection unit time. For example, if the total time of performing bluetooth detection by the mobile terminal is 8 seconds, the area of the detection part of the bluetooth device is divided into 8 unit areas, the unit time of bluetooth detection corresponding to each unit area is 1 second, and the last bluetooth connection list is obtained, if the first proportional relationship between bluetooth a and bluetooth B is 3: 2, the Bluetooth A corresponds to 3 unit areas, namely the detection time in the corresponding detection is 3 seconds, and the Bluetooth B corresponds to 2 unit areas, namely the detection time in the corresponding detection is 2 seconds; the second proportional relation of Bluetooth C and Bluetooth D is 1: 1, the Bluetooth C and the Bluetooth D correspond to 1 unit area, namely the detection time in one corresponding detection is 1 second; the third detection part corresponds to a unit area, only the Bluetooth E is connected for the first time, and the detection time in the detection corresponding to the Bluetooth E is 1 second.
105. And updating the Bluetooth device connection list corresponding to the preset times.
For example, after connecting the external bluetooth device each time, the bluetooth device list of this connection is stored in the cache, and after completing the bluetooth device connection each time, the bluetooth device connection list corresponding to the preset number of times is updated.
The Bluetooth device connection list stored in the cache comprises a connection list for 3 times, the Bluetooth device connected for the 1 st time comprises a Bluetooth A, a Bluetooth B, a Bluetooth C, the Bluetooth device connected for the 2 nd time comprises a Bluetooth A, a Bluetooth B, the Bluetooth device connected for the 3 rd time comprises a Bluetooth A and a Bluetooth D, after a detection part generated according to the proportional relation of the Bluetooth devices is subjected to a new Bluetooth connection, the connection list Bluetooth A is stored in the cache, the Bluetooth B is stored in the cache for 3 times, the Bluetooth device connection list corresponding to the preset times is updated to be the Bluetooth device connected for the 1 st time comprises the Bluetooth A, the Bluetooth B, the Bluetooth device connected for the 2 nd time comprises the Bluetooth A and the Bluetooth D, and the Bluetooth device connected for the 3 rd time comprises the Bluetooth A and the Bluetooth B.
However, the number of times may be preset, for example, 3 times, only 3 sets of data are cached in the cache, each new connection list is cached, and the oldest connection list is deleted. The bluetooth device connection list may be in a cache or may be stored in the mobile terminal memory.
In order to better implement the above method, an embodiment of the present invention may further provide a bluetooth device connection detection apparatus, where the bluetooth device connection detection apparatus may be specifically integrated in a network device, and the network device may be a device such as a mobile terminal.
For example, as shown in fig. 2, the bluetooth device connection detection apparatus may include an obtaining unit 201, an inquiring unit 202, a sorting unit 203, a generating unit 204, and an updating unit 205, as follows:
(1) acquisition unit 201
The obtaining unit 201 is configured to obtain a bluetooth device connection list corresponding to preset times.
For example, the mobile terminal detects that the bluetooth function is turned on, and the obtaining unit 201 obtains a bluetooth device connection list for a preset number of times from a memory of the mobile terminal. The preset times comprise a preset initial time and a preset updating time.
(2) Query unit 202
The querying unit 202 is configured to query the connection times of each bluetooth device corresponding to the connection list.
For example, after the acquisition unit 201 acquires the bluetooth device connection list, the inquiry unit 202 inquires the connection times of each corresponding bluetooth device in the connection list.
(3) Sorting unit 203
A sorting unit 203, configured to sort the bluetooth devices in the connection list according to the size of the connection times.
For example, after the obtaining unit 201 obtains the bluetooth device connection list corresponding to the preset number, the querying unit 202 queries the connection number of each bluetooth device, and the sorting unit 203 sorts the bluetooth devices according to the connection number, where the larger the connection number is, the smaller the order is.
(4) Generating unit 204
The generating unit 204 is configured to select a bluetooth device corresponding to an order smaller than a preset order to generate a first detection portion, and select a bluetooth device corresponding to an order greater than or equal to the preset order to generate a second detection portion.
For example, a sequence is preset, after the inquiry unit 202 inquires the connection times of the corresponding bluetooth devices in the connection list, the sorting unit 203 sorts the times, the generating unit 204 selects the bluetooth devices corresponding to the sequence smaller than the preset sequence to generate a first detection portion, and selects the bluetooth devices corresponding to the sequence greater than or equal to the preset sequence to generate a second detection portion.
The generating unit 204 further includes a first calculating unit, a second calculating unit, and a preset unit. The first calculating unit is used for calculating a first proportional relation of the Bluetooth equipment corresponding to the sequence smaller than the preset sequence and dividing the area of the first detection part according to the first proportional relation; the second calculation unit is used for calculating a second proportional relation of the Bluetooth devices corresponding to the sequence which is greater than or equal to the preset sequence, and dividing the area of the second detection part according to the second proportional relation, wherein the area of the second detection part is smaller than or equal to the area corresponding to any Bluetooth device in the first detection part; and the presetting unit is used for presetting the area of the third detection part, the Bluetooth devices in the third detection part are the Bluetooth devices connected for the first time, and the areas of the Bluetooth devices connected for the first time are the same.
(3) Update unit 205
An updating unit 205, configured to update the bluetooth device connection list corresponding to the preset number of times.
For example, after each connection to an external bluetooth device, the bluetooth device list of this connection is stored in the cache, and after each connection of the bluetooth device is completed, the updating unit 205 updates the bluetooth device connection list corresponding to the preset number of times.
Accordingly, as shown in fig. 3, the mobile terminal may include Radio Frequency (RF) circuit 301, a memory 302 including one or more computer-readable storage media, an input unit 303, a display unit 304, a sensor 305, an audio circuit 306, a Wireless Fidelity (WiFi) module 307, a processor 308 including one or more processing cores, and a power supply 309. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 3 is not intended to be limiting of mobile terminals and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components. Wherein:
the RF circuit 301 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for receiving downlink information from a base station and then processing the received downlink information by one or more processors 308; in addition, data relating to uplink is transmitted to the base station. In general, the RF circuit 301 includes, but is not limited to, an antenna, at least one Amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 301 may also communicate with networks and other devices via wireless communications. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Message Service (SMS), and the like.
The memory 302 may be used to store software programs and modules, and the processor 308 executes various functional applications and data processing by operating the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the mobile terminal, and the like. Further, the memory 302 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 308 and the input unit 303 access to the memory 302. In an embodiment of the present invention, the memory 302 is used to store a connection list of bluetooth devices.
The input unit 303 may be used to receive input numeric or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control. In particular, in one particular embodiment, the input unit 303 may include a touch-sensitive surface as well as other input devices. The touch-sensitive surface, also referred to as a touch display screen or a touch pad, may collect touch operations by a user (e.g., operations by a user on or near the touch-sensitive surface using a finger, a stylus, or any other suitable object or attachment) thereon or nearby, and drive the corresponding connection device according to a predetermined program. Alternatively, the touch sensitive surface may comprise two parts, a touch detection means and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 308, and can receive and execute commands sent by the processor 308. In addition, touch sensitive surfaces may be implemented using various types of resistive, capacitive, infrared, and surface acoustic waves. The input unit 303 may include other input devices in addition to the touch-sensitive surface. In particular, other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 304 may be used to display information input by or provided to the user and various graphical user interfaces of the mobile terminal, which may be made up of graphics, text, icons, video, and any combination thereof. The Display unit 304 may include a Display panel, and optionally, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch-sensitive surface may overlay the display panel, and when a touch operation is detected on or near the touch-sensitive surface, the touch operation is transmitted to the processor 308 to determine the type of touch event, and the processor 308 then provides a corresponding visual output on the display panel according to the type of touch event. Although in FIG. 3 the touch-sensitive surface and the display panel are shown as two separate components to implement input and output functions, in some embodiments the touch-sensitive surface may be integrated with the display panel to implement input and output functions.
The mobile terminal may also include at least one sensor 305, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor that may adjust the brightness of the display panel according to the brightness of ambient light, and a proximity sensor that may turn off the display panel and/or the backlight when the mobile terminal is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when the mobile phone is stationary, and can be used for applications of recognizing the posture of the mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile terminal, further description is omitted here.
Audio circuitry 306, a speaker, and a microphone may provide an audio interface between the user and the mobile terminal. The audio circuit 306 may transmit the electrical signal converted from the received audio data to a speaker, and convert the electrical signal into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electric signal, which is received by the audio circuit 306 and converted into audio data, which is then processed by the audio data output processor 308, and then transmitted to, for example, another mobile terminal via the RF circuit 301, or the audio data is output to the memory 302 for further processing. The audio circuitry 306 may also include an earbud jack to provide communication of a peripheral headset with the mobile terminal.
WiFi belongs to a short-distance wireless transmission technology, and the mobile terminal can help a user to send and receive e-mails, browse webpages, access streaming media and the like through the WiFi module 307, and provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 307, it is understood that it does not belong to the essential constitution of the mobile terminal, and may be omitted entirely as needed within the scope of not changing the essence of the application.
The processor 308 is a control center of the mobile terminal, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 302 and calling data stored in the memory 302, thereby performing overall monitoring of the mobile phone. Optionally, processor 308 may include one or more processing cores; preferably, the processor 308 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 308.
The mobile terminal also includes a power supply 309 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 308 via a power management system that may be configured to manage charging, discharging, and power consumption. The power supply 309 may also include one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and any like components.
Although not shown, the mobile terminal may further include a camera, a bluetooth module, and the like, which will not be described herein. Specifically, in this embodiment, the processor 308 in the mobile terminal loads the executable file corresponding to the process of one or more application programs into the memory 302 according to the following instructions, and the processor 308 runs the application programs stored in the memory 302, thereby implementing various functions.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
The method, the device and the mobile terminal for detecting connection of the bluetooth device according to the embodiments of the present invention are described in detail above, and a specific example is applied in the description to explain the principle and the implementation manner of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for detecting connection of Bluetooth equipment is characterized by comprising the following steps:
acquiring a Bluetooth device connection list corresponding to preset times;
inquiring the connection times of each corresponding Bluetooth device in the connection list;
sequencing the Bluetooth devices in the connection list according to the connection times;
selecting Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part;
and updating the Bluetooth device connection list corresponding to the preset times.
2. The method for detecting bluetooth device connection according to claim 1, wherein the obtaining of the bluetooth device connection list corresponding to the preset number of times includes:
the preset times comprise preset initial times and preset updating times.
3. The method for detecting bluetooth device connection according to claim 2, wherein the obtaining of the bluetooth device connection list corresponding to the preset number of times includes:
acquiring an initial connection list of the Bluetooth equipment corresponding to the initial times;
inquiring the initial connection times of each corresponding Bluetooth device in the initial connection list;
sequencing the Bluetooth devices in the initial connection list according to the initial connection times;
selecting Bluetooth equipment corresponding to the sequence less than the preset initial sequence to generate a first initial detection part, and selecting Bluetooth equipment corresponding to the sequence greater than or equal to the initial sequence to generate a second initial detection part.
4. The method according to claim 1, wherein the selecting the bluetooth device corresponding to the rank smaller than a preset rank to generate a first detection portion and selecting the bluetooth device corresponding to the rank greater than or equal to the preset rank to generate a second detection portion comprises:
calculating a first proportional relation of Bluetooth equipment corresponding to the sequence smaller than the sequence, and dividing the area of the first detection part according to the first proportional relation;
calculating a second proportional relation of the Bluetooth equipment corresponding to the sequence which is greater than or equal to the sequence, and dividing the area of the second detection part according to the second proportional relation;
the area of the second detection part is smaller than or equal to the area corresponding to any Bluetooth device in the first detection part.
5. The method according to claim 1, wherein the selecting the bluetooth device corresponding to the rank smaller than a preset rank to generate a first detection portion and selecting the bluetooth device corresponding to the rank greater than or equal to the preset rank to generate a second detection portion comprises:
presetting the area of a third detection part, wherein the Bluetooth device in the third detection part is a Bluetooth device connected for the first time;
the areas of the first-time connected Bluetooth devices are the same.
6. The method according to claim 1, wherein the selecting the bluetooth device corresponding to the rank smaller than a preset rank to generate a first detection portion and selecting the bluetooth device corresponding to the rank greater than or equal to the preset rank to generate a second detection portion comprises:
the Bluetooth device detection part comprises the first detection part, the second detection part and the third detection part;
the area of the detection part of the Bluetooth equipment corresponds to the total time of one-time Bluetooth detection;
dividing the area into a plurality of unit areas, and calculating the Bluetooth detection unit time corresponding to the unit areas;
the Bluetooth detection time of each Bluetooth device in the Bluetooth device detection part is the product of the area corresponding to the Bluetooth device and the unit time.
7. A Bluetooth device connection detection apparatus, comprising:
the acquisition unit is used for acquiring a Bluetooth device connection list corresponding to preset times;
the inquiry unit is used for inquiring the connection times of each corresponding Bluetooth device in the connection list;
the sequencing unit is used for sequencing the Bluetooth devices in the connection list according to the connection times;
the generating unit is used for selecting the Bluetooth equipment corresponding to the sequence less than the preset sequence to generate a first detection part, and selecting the Bluetooth equipment corresponding to the sequence more than or equal to the preset sequence to generate a second detection part;
and the updating unit is used for updating the Bluetooth device connection list corresponding to the preset times.
8. The apparatus according to claim 7, wherein the generating unit includes:
the first calculating unit is used for calculating a first proportional relation of the Bluetooth equipment corresponding to the sequence smaller than the sequence, and dividing the area of the first detection part according to the first proportional relation;
and the second calculating unit is used for calculating a second proportional relation of the Bluetooth devices corresponding to the sequence which is greater than or equal to the sequence, dividing the area of the second detection part according to the second proportional relation, and enabling the area of the second detection part to be smaller than or equal to the area corresponding to any Bluetooth device in the first detection part.
9. The apparatus according to claim 7, wherein the generating unit includes:
the Bluetooth device comprises a presetting unit, a first detecting part and a second detecting part, wherein the presetting unit is used for presetting the area of the third detecting part, the Bluetooth device in the third detecting part is a Bluetooth device which is connected for the first time, and the area of the Bluetooth device which is connected for the first time is the same.
10. A mobile terminal, characterized in that it comprises a bluetooth device connection detection apparatus as claimed in any one of claims 7 to 9.
CN202010782982.XA 2020-08-06 2020-08-06 Bluetooth equipment connection detection method and device and mobile terminal Active CN111954193B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010782982.XA CN111954193B (en) 2020-08-06 2020-08-06 Bluetooth equipment connection detection method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010782982.XA CN111954193B (en) 2020-08-06 2020-08-06 Bluetooth equipment connection detection method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN111954193A true CN111954193A (en) 2020-11-17
CN111954193B CN111954193B (en) 2024-06-11

Family

ID=73332700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010782982.XA Active CN111954193B (en) 2020-08-06 2020-08-06 Bluetooth equipment connection detection method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN111954193B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102394673A (en) * 2011-11-17 2012-03-28 深圳市中兴移动通信有限公司 Ordering method of bluetooth devices and system thereof
US20140087665A1 (en) * 2011-04-18 2014-03-27 Zte Corporation Method for Bluetooth Accessory Pairing with Bluetooth Device, and Bluetooth Accessory
CN105873041A (en) * 2016-05-20 2016-08-17 乐视控股(北京)有限公司 Automatic WiFi connecting method and device as well as mobile terminal
US20160286341A1 (en) * 2013-11-11 2016-09-29 Lg Electronics Inc. Method and apparatus for bluetooth connection
CN106102129A (en) * 2016-05-23 2016-11-09 深圳Tcl数字技术有限公司 Connect the method and device of bluetooth equipment
CN108135033A (en) * 2017-12-19 2018-06-08 维沃移动通信有限公司 A kind of Bluetooth connecting method and mobile terminal
CN109831771A (en) * 2019-04-10 2019-05-31 惠州Tcl移动通信有限公司 Bluetooth lookup method, device, mobile terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140087665A1 (en) * 2011-04-18 2014-03-27 Zte Corporation Method for Bluetooth Accessory Pairing with Bluetooth Device, and Bluetooth Accessory
CN102394673A (en) * 2011-11-17 2012-03-28 深圳市中兴移动通信有限公司 Ordering method of bluetooth devices and system thereof
US20160286341A1 (en) * 2013-11-11 2016-09-29 Lg Electronics Inc. Method and apparatus for bluetooth connection
CN105873041A (en) * 2016-05-20 2016-08-17 乐视控股(北京)有限公司 Automatic WiFi connecting method and device as well as mobile terminal
CN106102129A (en) * 2016-05-23 2016-11-09 深圳Tcl数字技术有限公司 Connect the method and device of bluetooth equipment
CN108135033A (en) * 2017-12-19 2018-06-08 维沃移动通信有限公司 A kind of Bluetooth connecting method and mobile terminal
CN109831771A (en) * 2019-04-10 2019-05-31 惠州Tcl移动通信有限公司 Bluetooth lookup method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN111954193B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
CN106445596B (en) Method and device for managing setting items
CN107786424B (en) Audio and video communication method, terminal and server
CN107219951B (en) Touch screen control method and device, storage medium and terminal equipment
CN108112028B (en) Network searching method and equipment for international roaming
CN103489303A (en) Remote control method and device
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN106708390B (en) Screen capturing method, device and system
CN106682189B (en) File name display method and device
CN107317828B (en) File downloading method and device
CN111966373B (en) APN resetting method, terminal equipment and storage medium
CN111314900B (en) Wireless connection method, wireless connection device and mobile terminal
CN106851784B (en) network scanning method and terminal equipment
CN111327343A (en) Common receiving channel radio frequency device, method and mobile terminal
CN110891262A (en) Bluetooth pairing method, system and terminal equipment
CN106777383B (en) File sorting method and intelligent terminal
CN107094027B (en) Antenna tuning method and mobile terminal
CN108804434B (en) Message query method, server and terminal equipment
CN115113950A (en) Method and device for outputting prompt information of application product
CN111954193B (en) Bluetooth equipment connection detection method and device and mobile terminal
CN109831771B (en) Bluetooth searching method and device, mobile terminal and storage medium
CN109151154B (en) Power consumption control method and mobile terminal
CN106879046B (en) Network scanning method and terminal equipment
CN106657278B (en) Data transmission method and device and computer equipment
CN107346347B (en) Webpage table display method and device
CN108307531B (en) Call control method, device, user terminal and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240424

Address after: Room 2103, Room G001, Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000 (Residence Declaration)

Applicant after: Foshan Runqianyu Intellectual Property Service Co.,Ltd.

Country or region after: China

Address before: 6 / F, No. B5, Lane 999, Yangfan Road, Meixu street, Yinzhou District, Ningbo City, Zhejiang Province

Applicant before: TCL COMMUNICATION (NINGBO) Co.,Ltd.

Country or region before: China

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20240514

Address after: 518000, No. 13, 1106, Dafu Industrial Zone, Dafu Community, Guanlan Street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN WAHCHING TECHNOLOGY CO.,LTD.

Country or region after: China

Address before: Room 2103, Room G001, Building 1, No. 213 Funing Road, Zumiao Street, Chancheng District, Foshan City, Guangdong Province, 528000 (Residence Declaration)

Applicant before: Foshan Runqianyu Intellectual Property Service Co.,Ltd.

Country or region before: China

GR01 Patent grant
GR01 Patent grant