CN111194097A - Mobile terminal, Bluetooth connection method and storage device - Google Patents

Mobile terminal, Bluetooth connection method and storage device Download PDF

Info

Publication number
CN111194097A
CN111194097A CN201811355638.1A CN201811355638A CN111194097A CN 111194097 A CN111194097 A CN 111194097A CN 201811355638 A CN201811355638 A CN 201811355638A CN 111194097 A CN111194097 A CN 111194097A
Authority
CN
China
Prior art keywords
bluetooth
mac address
stored
file
service
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.)
Withdrawn
Application number
CN201811355638.1A
Other languages
Chinese (zh)
Inventor
周满辉
杨贵彬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201811355638.1A priority Critical patent/CN111194097A/en
Publication of CN111194097A publication Critical patent/CN111194097A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Landscapes

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

Abstract

The invention discloses a mobile terminal, a Bluetooth connection method and a storage device, wherein the method comprises the following steps: acquiring a mac address of a Bluetooth device to be connected; detecting whether a mac address of the Bluetooth device exists in a prestored file; and if the mac address of the Bluetooth equipment exists in the prestored file, directly reading the Bluetooth service associated with the mac address in the prestored file, and establishing a connection relation with the Bluetooth equipment. The invention records the Bluetooth service of the Bluetooth equipment to be connected in the table by establishing a pre-stored file, associates the pre-stored file with the mac address of the Bluetooth equipment, and directly reads the Bluetooth service of the Bluetooth equipment to be connected in the table when the Bluetooth equipment is connected, thereby achieving the purpose of quickly connecting the Bluetooth equipment.

Description

Mobile terminal, Bluetooth connection method and storage device
Technical Field
The present invention relates to the field of mobile terminal technology, and in particular, to a mobile terminal, a bluetooth connection method, and a storage device.
Background
With the development of bluetooth technology, the number of types of bluetooth devices is increasing, the number of functions possessed by bluetooth devices is also increasing, and when the bluetooth devices are paired, the bluetooth addresses and bluetooth services need to be read. Because the more functions the bluetooth device has, the more service items that need to be read, therefore, when connecting the bluetooth device each time, all need to reacquire the bluetooth address and read the bluetooth service, need longer consuming time. For a commonly used bluetooth device, the connection method described above is too long, which affects the user experience, and therefore, a new bluetooth connection method is needed.
Disclosure of Invention
The invention mainly aims to provide a mobile terminal, a Bluetooth connection method and a storage device, and aims to solve the problem of low Bluetooth connection speed of the terminal.
In order to achieve the above object, the present invention provides a bluetooth connection method, including:
acquiring a mac address of a Bluetooth device to be connected;
detecting whether a prestored file comprises a mac address of the Bluetooth device;
and if the prestored file comprises the mac address of the Bluetooth equipment, reading the Bluetooth service associated with the mac address in the prestored file.
Further, after the step of reading the bluetooth service associated with the mac address in the pre-stored file, the method further includes the steps of:
and establishing a connection relation with the Bluetooth equipment.
Further, before the step of obtaining the mac address of the bluetooth device to be connected, the method further includes the steps of:
and establishing a pre-stored file, wherein the pre-stored file is used for recording the mac address of the Bluetooth equipment and the Bluetooth service of the Bluetooth equipment, and the Bluetooth service is associated with the mac address.
Further, after the step of detecting whether the pre-stored file includes the mac address of the bluetooth device, the method further includes the steps of:
if the pre-stored file does not comprise the mac address of the Bluetooth equipment;
acquiring a Bluetooth service of the Bluetooth equipment, and establishing a connection relation with the Bluetooth equipment;
and recording the mac address of the Bluetooth device and the Bluetooth service association of the Bluetooth device in the pre-stored file.
Further, after the step of establishing the connection relationship with the bluetooth device, the method further comprises the steps of:
and storing the establishing record of the connection relation in the pre-stored file.
Further, after the step of obtaining the mac address of the bluetooth device to be connected, if the mac addresses of the bluetooth devices are obtained, the mac address of only one bluetooth device in the pre-stored file is pre-stored, and the method further includes the steps of:
the bluetooth device with the mac address stored in the connection table is defaulted.
Further, after the step of obtaining the mac addresses of the bluetooth devices to be connected, if the mac addresses of the bluetooth devices are obtained, the mac addresses of the bluetooth devices are pre-stored in a file, and the method further includes the steps of:
the bluetooth device with the highest frequency of use in the connection table is defaulted.
Further, after the step of obtaining the mac addresses of the bluetooth devices to be connected, if the obtained mac addresses of the bluetooth devices are multiple, the mac addresses stored in the pre-stored file are all different from the obtained mac addresses of the bluetooth devices, and the method further includes the steps of:
and prompting to manually select the Bluetooth equipment for connection.
Further, after the step of establishing the connection relationship with the bluetooth device, the method further comprises the steps of:
acquiring the Bluetooth service from the Bluetooth equipment again, and comparing the Bluetooth service with the Bluetooth service stored in the prestored file;
and if the two Bluetooth services are different, updating the Bluetooth service stored in the prestored file.
The present application also proposes a device with a storage function, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method of any one of the above.
The present application also provides a mobile terminal, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
In the present application, a bluetooth connection method includes: acquiring a mac address of a Bluetooth device to be connected; detecting whether a mac address of the Bluetooth device exists in a prestored file; and if the mac address of the Bluetooth equipment exists in the prestored file, directly reading the Bluetooth service associated with the mac address in the prestored file, and establishing a connection relation with the Bluetooth equipment. The invention records the Bluetooth service of the Bluetooth equipment to be connected in the table by establishing a pre-stored file, associates the pre-stored file with the mac address of the Bluetooth equipment, and directly reads the Bluetooth service of the Bluetooth equipment to be connected in the table when the Bluetooth equipment is connected, thereby achieving the purpose of quickly connecting the Bluetooth equipment.
Drawings
FIG. 1 is a schematic flow chart of a Bluetooth connection method according to the present application;
fig. 2 is a flowchart illustrating a bluetooth connection method according to an embodiment of the present application;
fig. 3 is a block diagram illustrating a structure of a mobile terminal according to an embodiment of the present application.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a Bluetooth connection method, which comprises the following steps:
s1, acquiring the mac address of the Bluetooth device to be connected;
s2, detecting whether a prestored file comprises the mac address of the Bluetooth equipment;
s3, if the pre-stored file includes the mac address of the Bluetooth device, reading the Bluetooth service associated with the mac address in the pre-stored file.
As described in step S1, in the embodiment of the present invention, the master device may be a mobile terminal, a terminal, or other electronic devices with an active connection bluetooth function, and the slave device is an electronic device with a bluetooth function. The mac address, also called physical address, hardware address or link address, is written inside the hardware when produced by the device manufacturer. The mac address is 48 bits (6 bytes) in length, and is usually represented by 12 16-ary numbers, and every 2 16-ary numbers are separated by a colon, such as: 08:00:20:0A:8C:6D is a mac address. The mac address has uniqueness, that is, each bluetooth device has a unique mac address, the mac addresses of different devices are different, and in the process of acquiring the mac address of the slave device, information such as the name and the state of the slave device can be acquired at the same time.
As described in the above step S2, the pre-stored file is pre-stored for recording the mac address of the connected other bluetooth device and the bluetooth service associated with the bluetooth device. The pre-stored files may be text files, data tables, etc. And detecting whether the mac address of the Bluetooth device exists in a prestored file, namely detecting whether the Bluetooth device is connected.
As described in step S3, if the mac address of the bluetooth device is in the pre-stored file, it indicates that the bluetooth device has been paired with the bluetooth device, and after the pairing, the mac address of the bluetooth device is recorded in the pre-stored file, and the bluetooth service associated with the mac address is also recorded in the table. Therefore, when the Bluetooth device is connected, the Bluetooth device can be used only by reading the corresponding Bluetooth service in the pre-stored file and establishing a connection relation with the Bluetooth device.
In an embodiment, after the step of reading the bluetooth service associated with the mac address in the pre-stored file, the method further includes the steps of:
and establishing a connection relation with the Bluetooth equipment.
In this embodiment, after the bluetooth service associated with the mac address in the pre-stored file is read, a connection relationship may be established with the bluetooth device.
In an embodiment, before the step of obtaining the mac address of the bluetooth device to be connected, the method further includes the steps of:
and establishing a pre-stored file, wherein the pre-stored file is used for recording the mac address of the Bluetooth equipment and the Bluetooth service of the Bluetooth equipment, and the Bluetooth service is associated with the mac address.
In this embodiment, a pre-stored file is created for the purpose of fast connection with other bluetooth devices. In the connection process of a general bluetooth master device and a general bluetooth slave device, firstly, both the two devices are required to start a bluetooth function, then, the master device identifies and acquires a mac address and a name of the slave device, and if the slave device is provided with a secret key, the secret key verification is required to be performed firstly. After verification is successful, the two devices start to pair, and the master device needs to identify a Link Management Protocol (LMP), a logical link control and adaptation protocol (L2CAP), and a service discovery protocol (SPD) in the slave device first, and then reads the Link Management Protocol (LMP), the logical link control and adaptation protocol (L2CAP), and the service discovery protocol (SPD) from the slave device. The process of identifying the protocol is the process which consumes the most time for connection, the protocols all comprise the Bluetooth service of the Bluetooth equipment, the Bluetooth service in the protocol is read, the two Bluetooth equipment are connected, and the master equipment can normally use the related functions of the slave equipment through the Bluetooth service. For example, the master device is a mobile phone connected to a bluetooth headset of the slave device, where the service discovery protocol includes configuration information (profiles) of the headset, audio classification information (A2DP), audio control information, and the like, where the configuration information (profiles), the audio classification information (A2DP), and the audio control information are the bluetooth services in this embodiment, and the master device reads the bluetooth service of the configuration information (profiles), and after the connection is established, the mobile phone of the master device may play music through the bluetooth headset of the slave device. The master device reads the Bluetooth service of the audio control information, and after the connection is established, the master device mobile phone can control the audio (volume increase or decrease, etc.) of the mobile phone through the slave device Bluetooth earphone. In the bluetooth connection method in this embodiment, after the pre-stored file is established, in the connection process between the bluetooth master device and the bluetooth slave device, the master device identifies and acquires the mac address of the bluetooth slave device, and then the master device only needs to read the bluetooth service associated with the mac address from the pre-stored file to establish connection, that is, the bluetooth function of the bluetooth slave device can be used to complete the connection process. Compared with the general method, the most time-consuming process of identifying the Bluetooth protocol and the Bluetooth service in the Bluetooth connection is omitted.
In an embodiment, after the step of detecting whether the mac address of the bluetooth device exists in the pre-stored file, the method further includes the steps of:
if the mac address of the Bluetooth device does not exist in the prestored file;
acquiring a Bluetooth service of the Bluetooth equipment, and establishing a connection relation with the Bluetooth equipment;
and recording the mac address of the Bluetooth device and the Bluetooth service of the Bluetooth device in the pre-stored file.
In this embodiment, if the mac address of the bluetooth device is not present in the pre-stored file, it indicates that the connection relationship with the bluetooth device has not been established, and the connection with the bluetooth device is the first connection, and the connection with the bluetooth device can only be established in a conventional connection manner. After the connection relation between the Bluetooth service of the Bluetooth equipment and the Bluetooth equipment is established, the mac address of the Bluetooth equipment and the Bluetooth service of the Bluetooth equipment, including the connection service read before connection and the Bluetooth service read after connection, are stored in a pre-stored file.
In an embodiment, after the step of establishing the connection relationship with the bluetooth device, the method further includes the steps of:
and storing the record of the connection relation in the pre-stored file.
In this embodiment, a record of the connection relationship is maintained, which helps to quickly find the mac address of the bluetooth device when the device is connected again. When a plurality of Bluetooth devices are connected, the connection relationship record is used as a reference for selecting a default connected Bluetooth device.
In an embodiment, after the step of obtaining the mac address of the bluetooth device to be connected, if the mac addresses of a plurality of bluetooth devices are obtained, the mac address of only one bluetooth device in the pre-stored file is pre-stored, further comprising the steps of:
the bluetooth device with the mac address stored in the connection table is defaulted.
In this embodiment, in some special scenarios, a user opens the bluetooth function of the own master device, and may recognize multiple bluetooth devices, and if only one mac address of one bluetooth device is stored in the prestored file, that is, only one bluetooth device is own, the bluetooth device with the mac address stored in the default connection table is the default connection device. For example, a user opens a mobile phone and a bluetooth headset at a subway station to connect the bluetooth headset with the mobile phone, and a plurality of bluetooth devices appear on the mobile phone, wherein only one of the bluetooth devices is own (the own device has a connection record), and the own device is connected by default.
In an embodiment, after the step of obtaining the mac addresses of the bluetooth devices to be connected, if the mac addresses of the bluetooth devices are obtained, the mac addresses of the bluetooth devices are pre-stored in a file, and the method further includes the steps of:
the bluetooth device with the highest frequency of use in the connection table is defaulted.
In this embodiment, in some special scenarios, a user opens the bluetooth function of the own master device, may recognize multiple bluetooth devices, and the mac addresses of the multiple bluetooth devices are in the pre-stored file, which indicates that the bluetooth devices are all used by the user, and the bluetooth device with the highest usage frequency in the default connection table is the bluetooth device most frequently used by the default connection user. For example, a user turns on a mobile phone Bluetooth at home and a plurality of Bluetooth devices such as a Bluetooth sound box, a Bluetooth headset and a Bluetooth television at home are all in an on state, and the Bluetooth device with the highest use frequency of the user is connected by default.
In an embodiment, after the step of obtaining the mac addresses of the bluetooth devices to be connected, if the obtained mac addresses of the bluetooth devices are multiple, the mac addresses stored in the pre-stored file are all different from the obtained mac addresses of the bluetooth devices, and the method further includes the steps of:
and prompting to manually select the Bluetooth equipment for connection.
In this embodiment, if the device started by the user and the obtained bluetooth device do not have a history of connection, the user is prompted to manually connect the bluetooth device.
In an embodiment, after the step of establishing the connection relationship by the bluetooth device, the method further includes the steps of:
and acquiring the Bluetooth service of the Bluetooth equipment again, and updating the data table by taking the newly acquired Bluetooth service as the reference if the Bluetooth service is different from the Bluetooth service stored in the data table.
In this embodiment, since the information of the bluetooth device, such as the service, the port, the version, and the like, is not unchanged after the device leaves the factory, a manufacturer may update the information of the service, the port, the version, and the like for the user experience, and when the bluetooth service of the bluetooth device is acquired again and is different from the stored information, the data table is updated with the newly acquired bluetooth service as a reference. And because the address of the Bluetooth device has uniqueness, the Bluetooth device does not need to be updated.
The present application also proposes a device with a storage function, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method of any one of the above.
The present application also provides a mobile terminal, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of any one of the above methods when executing the computer program.
In the present application, a bluetooth connection method includes: acquiring a mac address of a Bluetooth device to be connected; detecting whether a mac address of the Bluetooth device exists in a prestored file; and if the mac address of the Bluetooth equipment exists in the prestored file, directly reading the Bluetooth service associated with the mac address in the prestored file, and establishing a connection relation with the Bluetooth equipment. The invention records the Bluetooth service of the Bluetooth equipment to be connected in the table by establishing a pre-stored file, associates the pre-stored file with the mac address of the Bluetooth equipment, and directly reads the Bluetooth service of the Bluetooth equipment to be connected in the table when the Bluetooth equipment is connected, thereby achieving the purpose of quickly connecting the Bluetooth equipment.
Referring to fig. 3, an embodiment of the present invention further provides a mobile terminal, including a processor 1080 and a memory 1020, where the memory 1020 is used for storing a program of a bluetooth connection method; the processor 1080 is configured to execute programs stored in the memory.
For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and details of the specific techniques are not disclosed. The mobile terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (personal digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, and the like, taking the mobile terminal as the mobile phone as an example:
fig. 3 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 3, the cellular phone includes: radio Frequency (RF) circuit 1010, memory 1020, input unit 1030, display unit 1040, sensor 1050, audio circuit 1060, wireless fidelity (WiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the handset configuration shown in fig. 3 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 3:
RF circuit 1010 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 1080; in addition, the data for designing uplink is transmitted to the base station. In general, the RF circuit 1010 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, the RF circuitry 1010 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 Messaging Service (SMS), and the like.
The memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program 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 cellular phone, and the like. Further, the memory 1020 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.
The input unit 1030 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 1030 may include a touch panel 1031 and other input devices 1032. The touch panel 1031, also referred to as a touch screen, may collect touch operations by a user (e.g., operations by a user on or near the touch panel 1031 using any suitable object or accessory such as a finger, a stylus, etc.) and drive corresponding connection devices according to a preset program. Alternatively, the touch panel 1031 may include two parts, a touch detection device 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 1080, and can receive and execute commands sent by the processor 1080. In addition, the touch panel 1031 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 1030 may include other input devices 1032 in addition to the touch panel 1031. In particular, other input devices 1032 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 track ball, a mouse, a joystick, or the like.
The display unit 1040 may be used to display information input by a user or information provided to the user and various menus of the cellular phone. The Display unit 1040 may include a Display panel 1041, and optionally, the Display panel 1041 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 1031 can cover the display panel 1041, and when the touch panel 1031 detects a touch operation on or near the touch panel 1031, the touch operation is transmitted to the processor 1080 to determine the type of the touch event, and then the processor 1080 provides a corresponding visual output on the display panel 1041 according to the type of the touch event. Although in fig. 3, the touch panel 1031 and the display panel 1041 are two separate components to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 1031 and the display panel 1041 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 1050, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1041 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 1041 and/or the backlight when the mobile phone moves to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a 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 phone, further description is omitted here.
Audio circuitry 1060, speaker 1061, microphone 1062 may provide an audio interface between the user and the handset. The audio circuit 1060 can transmit the electrical signal converted from the received audio data to the speaker 1061, and the electrical signal is converted into a sound signal by the speaker 1061 and output; on the other hand, the microphone 1062 converts the collected sound signal into an electrical signal, which is received by the audio circuit 1060 and converted into audio data, which is then processed by the audio data output processor 1080 and then sent to, for example, another cellular phone via the RF circuit 1010, or output to the memory 1020 for further processing.
WiFi belongs to short-distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 1070, which provides wireless broadband internet access for the user. Although fig. 3 shows the WiFi module 1070, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 1080 is a control center of the mobile phone, connects various parts of the whole mobile phone by using various interfaces and lines, and executes various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby integrally monitoring the mobile phone. Optionally, processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor, which handles primarily the operating system, user interfaces, applications, etc., and a modem processor, which handles primarily the wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
The handset also includes a power source 1090 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 1080 via a power management system to manage charging, discharging, and power consumption via the power management system.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
Referring to fig. 3, in the embodiment of the present invention, the processor 1080 included in the mobile terminal further has the following functions:
acquiring a mac address of a Bluetooth device to be connected;
detecting whether a prestored file comprises a mac address of the Bluetooth device;
and if the prestored file comprises the mac address of the Bluetooth equipment, reading the Bluetooth service associated with the mac address in the prestored file.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A bluetooth connection method, the method comprising:
acquiring a mac address of a Bluetooth device to be connected;
detecting whether a prestored file comprises a mac address of the Bluetooth device;
and if the prestored file comprises the mac address of the Bluetooth equipment, reading the Bluetooth service associated with the mac address in the prestored file.
2. The bluetooth connection method according to claim 1, wherein after the step of reading the bluetooth service associated with the mac address in the pre-stored file, the method further comprises the steps of:
and establishing a connection relation with the Bluetooth equipment.
3. The bluetooth connection method according to claim 1, wherein the step of obtaining the mac address of the bluetooth device to be connected further comprises the steps of:
and establishing a pre-stored file, wherein the pre-stored file is used for recording the mac address of the Bluetooth equipment and the Bluetooth service of the Bluetooth equipment, and the Bluetooth service is associated with the mac address.
4. The bluetooth connection method according to claim 1, wherein after the step of detecting whether the mac address of the bluetooth device is included in the pre-stored file, the method further comprises the steps of:
if the pre-stored file does not comprise the mac address of the Bluetooth equipment;
acquiring a Bluetooth service of the Bluetooth equipment, and establishing a connection relation with the Bluetooth equipment;
and recording the mac address of the Bluetooth equipment and the Bluetooth service association of the Bluetooth equipment in the pre-stored file, and storing the establishment record of the connection relation in the pre-stored file.
5. The bluetooth connection method according to claim 4, wherein after the step of obtaining the mac address of the bluetooth device to be connected, if the mac addresses of a plurality of bluetooth devices are obtained, only one mac address of the bluetooth device is stored in a file, and further comprising the steps of:
the bluetooth device with the mac address stored in the connection table is defaulted.
6. The bluetooth connection method according to claim 4, wherein after the step of obtaining the mac address of the bluetooth device to be connected, if the mac addresses of a plurality of bluetooth devices are obtained, the mac addresses of the plurality of bluetooth devices are pre-stored in a file, and further comprising the steps of:
the bluetooth device with the highest frequency of use in the connection table is defaulted.
7. The bluetooth connection method according to claim 4, wherein after the step of obtaining the mac addresses of the bluetooth devices to be connected, if the obtained mac addresses of the bluetooth devices are multiple, the mac addresses stored in the pre-stored file are all different from the obtained mac addresses of the bluetooth devices, and further comprising the steps of:
and prompting to manually select the Bluetooth equipment for connection.
8. The bluetooth connection method according to claim 2, further comprising, after the step of establishing a connection relationship with the bluetooth device, the steps of:
acquiring the Bluetooth service from the Bluetooth equipment again, and comparing the Bluetooth service with the Bluetooth service stored in the prestored file;
and if the two Bluetooth services are different, updating the Bluetooth service stored in the prestored file.
9. An apparatus having a storage function, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.
10. A mobile terminal comprising a memory and a processor, the memory having stored therein a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method according to any of claims 1 to 8.
CN201811355638.1A 2018-11-14 2018-11-14 Mobile terminal, Bluetooth connection method and storage device Withdrawn CN111194097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811355638.1A CN111194097A (en) 2018-11-14 2018-11-14 Mobile terminal, Bluetooth connection method and storage device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811355638.1A CN111194097A (en) 2018-11-14 2018-11-14 Mobile terminal, Bluetooth connection method and storage device

Publications (1)

Publication Number Publication Date
CN111194097A true CN111194097A (en) 2020-05-22

Family

ID=70708985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811355638.1A Withdrawn CN111194097A (en) 2018-11-14 2018-11-14 Mobile terminal, Bluetooth connection method and storage device

Country Status (1)

Country Link
CN (1) CN111194097A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112235806A (en) * 2020-10-20 2021-01-15 Tcl通讯(宁波)有限公司 Bluetooth parameter configuration method, device, storage medium and mobile terminal
CN112261635A (en) * 2020-10-21 2021-01-22 上海闻泰信息技术有限公司 Bluetooth test method, device, electronic equipment and computer readable storage medium
CN113490192A (en) * 2021-07-26 2021-10-08 深圳市元征未来汽车技术有限公司 Bluetooth connection method, device, terminal equipment and readable storage medium
CN114071436A (en) * 2020-08-05 2022-02-18 广东小天才科技有限公司 Method, Bluetooth device and system for quickly establishing Bluetooth connection

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038263A (en) * 2014-06-18 2014-09-10 小米科技有限责任公司 Method and device for establishing Bluetooth connection
CN105744466A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Bluetooth equipment connection method and Bluetooth equipment
US20170086233A1 (en) * 2015-08-20 2017-03-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Connection method for multimedia playing device, main device, and control terminal
US20170201883A1 (en) * 2014-08-08 2017-07-13 Alibaba Group Holding Limited Information pushing method, server, sharer client and third-party client
CN107770762A (en) * 2017-11-20 2018-03-06 飞天诚信科技股份有限公司 A kind of method and device for establishing bluetooth connection

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104038263A (en) * 2014-06-18 2014-09-10 小米科技有限责任公司 Method and device for establishing Bluetooth connection
US20170201883A1 (en) * 2014-08-08 2017-07-13 Alibaba Group Holding Limited Information pushing method, server, sharer client and third-party client
US20170086233A1 (en) * 2015-08-20 2017-03-23 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Connection method for multimedia playing device, main device, and control terminal
CN105744466A (en) * 2016-01-26 2016-07-06 广东欧珀移动通信有限公司 Bluetooth equipment connection method and Bluetooth equipment
CN107770762A (en) * 2017-11-20 2018-03-06 飞天诚信科技股份有限公司 A kind of method and device for establishing bluetooth connection

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114071436A (en) * 2020-08-05 2022-02-18 广东小天才科技有限公司 Method, Bluetooth device and system for quickly establishing Bluetooth connection
CN114071436B (en) * 2020-08-05 2024-03-15 广东小天才科技有限公司 Method for quickly establishing Bluetooth connection, bluetooth device and system
CN112235806A (en) * 2020-10-20 2021-01-15 Tcl通讯(宁波)有限公司 Bluetooth parameter configuration method, device, storage medium and mobile terminal
CN112235806B (en) * 2020-10-20 2023-08-18 深圳市智创一切科技有限公司 Bluetooth parameter configuration method and device, storage medium and mobile terminal
CN112261635A (en) * 2020-10-21 2021-01-22 上海闻泰信息技术有限公司 Bluetooth test method, device, electronic equipment and computer readable storage medium
CN113490192A (en) * 2021-07-26 2021-10-08 深圳市元征未来汽车技术有限公司 Bluetooth connection method, device, terminal equipment and readable storage medium
CN113490192B (en) * 2021-07-26 2024-04-02 深圳市元征科技股份有限公司 Bluetooth connection method, device, terminal equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN111741513B (en) Network distribution method of Internet of things equipment and related equipment
US10069818B2 (en) Method, system, device, and terminal for network initialization of multimedia playback device
CN111194097A (en) Mobile terminal, Bluetooth connection method and storage device
CN105788612A (en) Method and device for testing tone quality
CN110266323B (en) Signal control circuit, terminal equipment and signal control method
CN103489303A (en) Remote control method and device
CN109379735B (en) eSIM card operation method, mobile terminal and eSIM card device
CN103338193B (en) Method, system and device for initial media equipment
US20220255639A1 (en) Radio frequency parameter processing method and device, and mobile terminal and storage medium
CN110809267A (en) Device connection method, electronic device and computer readable storage medium
CN106936516B (en) Display screen display state control method, storage medium and terminal
CN106470234B (en) Equipment discovery method and device
CN106850957B (en) Application notification management method and device and mobile terminal
CN110602766B (en) Personal hotspot identification method and method for determining association relationship between terminals
CN112740634B (en) Registration state acquisition method and device based on Wi-Fi voice service and electronic equipment
CN109257739B (en) eSIM card operation method, mobile terminal and eSIM card device
CN111966373A (en) APN resetting method, terminal equipment and storage medium
CN109089258B (en) eSIM card operation method, mobile terminal and eSIM card device
CN109219039B (en) eSIM card operation method, mobile terminal and eSIM card device
CN111327343A (en) Common receiving channel radio frequency device, method and mobile terminal
CN108183833B (en) Response processing method and device and computer readable storage medium
CN106851023B (en) Method and equipment for quickly making call and mobile terminal
CN106879046B (en) Network scanning method and terminal equipment
CN114257902A (en) Sound cavity, temperature control method thereof, terminal and storage medium
CN109739641B (en) Self-adaptive CPU frequency modulation acceleration method and device, mobile terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20200522

WW01 Invention patent application withdrawn after publication