CN113055864A - Bluetooth connection method, device, storage medium and electronic equipment - Google Patents
Bluetooth connection method, device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN113055864A CN113055864A CN201911363064.7A CN201911363064A CN113055864A CN 113055864 A CN113055864 A CN 113055864A CN 201911363064 A CN201911363064 A CN 201911363064A CN 113055864 A CN113055864 A CN 113055864A
- Authority
- CN
- China
- Prior art keywords
- target device
- bluetooth
- terminal
- target
- application
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
- H04W76/14—Direct-mode setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the application discloses a Bluetooth connection method, a Bluetooth connection device, a storage medium and electronic equipment, wherein the method comprises the following steps: and acquiring a reference Bluetooth address and a target device application identifier of the target device based on near field communication connection with the target device, and connecting with Bluetooth of the target device based on the reference Bluetooth address under the condition that the target device application corresponding to the target device application identifier is determined to be installed in the terminal. By adopting the embodiment of the application, the Bluetooth connection can be automatically established, and the Bluetooth connection efficiency is improved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a bluetooth connection method, apparatus, storage medium, and electronic device.
Background
Along with the rapid popularization of intelligent equipment (such as intelligent wearing equipment, intelligent audio amplifier, intelligent toothbrush etc.), the terminal can establish communication connection (such as bluetooth connection) with intelligent equipment, and the user can be convenient look over relevant information (such as user's physiology information, intelligent equipment's equipment information and so on) through the intelligent equipment application on the terminal.
Currently, a terminal establishes bluetooth connection with an intelligent device, an application of the intelligent device on the terminal needs to be started, so that scanned bluetooth devices are displayed in a connection interface in a bluetooth list mode, and a user searches the intelligent device in the bluetooth list of the connection interface to perform bluetooth connection; or the intelligent device displays the connection code of the Bluetooth connection, and the user starts the intelligent device application of the terminal and scans the connection code, so that the Bluetooth connection is completed. The above-mentioned mode all needs user manual operation, and bluetooth connection efficiency is lower.
Disclosure of Invention
The embodiment of the application provides a Bluetooth connection method, a Bluetooth connection device, a storage medium and electronic equipment, which can automatically establish Bluetooth connection and improve Bluetooth connection efficiency. The technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a bluetooth connection method, where the method includes:
acquiring a reference Bluetooth address and a target device application identifier of a target device based on near field communication connection with the target device;
and connecting with the Bluetooth of the target equipment based on the reference Bluetooth address under the condition that the target equipment application corresponding to the target equipment application identification is determined to be installed by the terminal.
In a second aspect, an embodiment of the present application provides a bluetooth connection apparatus, where the apparatus includes:
the application identifier acquisition module is used for acquiring a reference Bluetooth address of the target equipment and an application identifier of the target equipment based on near field communication connection with the target equipment;
and the Bluetooth connection establishing module is used for connecting with the Bluetooth of the target equipment based on the reference Bluetooth address under the condition that the target equipment application corresponding to the target equipment application identification is determined to be installed in the terminal.
In a third aspect, embodiments of the present application provide a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-mentioned method steps.
In a fourth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The beneficial effects brought by the technical scheme provided by some embodiments of the application at least comprise:
in one or more embodiments of the present application, a terminal senses a near field communication signal of a target device, obtains a reference bluetooth address and a target device application identifier of the target device, and establishes a bluetooth connection with the target device based on the reference bluetooth address when it is determined that the target device application corresponding to the target device application identifier is installed in the terminal. The reference Bluetooth address of the target equipment can be quickly acquired through the near field communication mode, the Bluetooth connection with the target equipment indicated by the reference Bluetooth address can be automatically established after the target equipment application is determined to be installed, manual operation on the terminal by a user is not needed, the Bluetooth connection can be automatically established by the terminal under the screen-off state, the step of establishing the Bluetooth between the terminal and the target equipment is simplified, and the Bluetooth connection efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic diagram of a bluetooth connection scenario provided in an embodiment of 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 schematic view of a scenario in which a terminal provided in an embodiment of the present application operates in an NFC passive mode;
fig. 4 is a flowchart illustrating another bluetooth connection method according to an embodiment of the present application;
fig. 5 is a schematic view of a scenario in which a terminal according to an embodiment of the present application operates in an NFC active mode;
fig. 6 is a schematic interface diagram of a terminal displaying start prompt information according to an embodiment of the present application;
fig. 7 is a schematic view of another interface for displaying start prompt information by a terminal according to an embodiment of the present application;
fig. 8 is a schematic view of an interface for displaying download prompting information by a terminal according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a bluetooth connection device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a connection establishing module according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a connection establishing unit according to an embodiment of the present application;
fig. 12 is a schematic structural diagram of another bluetooth connection device provided in the embodiment of the present application;
fig. 13 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
In the description of the present application, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present application, it is noted that, unless explicitly stated or limited otherwise, "including" and "having" and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art. Further, in the description of the present application, "a plurality" means two or more unless otherwise specified. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The present application will be described in detail with reference to specific examples.
Please refer to fig. 1, which is a schematic view of a bluetooth connection system according to an embodiment of the present disclosure. As shown in fig. 1, the bluetooth connection system may include a terminal 100 and a target device 110.
The terminal 100 may be an electronic device having a positioning function and a bluetooth function, and the electronic device includes but is not limited to: wearable devices, handheld devices, personal computers, tablet computers, in-vehicle devices, computing devices or other processing devices connected to a wireless modem, and the like. The user terminals may be called different names in different networks, for example: user equipment, access terminal, subscriber unit, subscriber station, mobile station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user equipment, cellular telephone, cordless telephone, Personal Digital Assistant (PDA), terminal equipment in a 5G network or future evolution network, and the like.
The target device 100 may be an electronic device having a near field communication function and a bluetooth function, and the target device may be a smart device, where the smart device includes a full function and may implement a complete or partial function without depending on a user terminal (e.g., a smart phone), such as a smart watch, smart glasses, a smart speaker, a smart toothbrush, etc., and may be only dedicated to a certain application function, and may be used in cooperation with other devices such as a smart phone, for example, various smart devices such as a smart bracelet, smart jewelry, a smart bag, etc., which perform physical sign monitoring.
The terminal 100 may communicate with the target device 110 through a network, which may be a wireless network including, but not limited to, a cellular network, a wireless local area network, an infrared network, a near field communication network, or a bluetooth network, or a wired network including, but not limited to, an ethernet network, a Universal Serial Bus (USB), or a controller area network.
The target device 110 turns on the bluetooth function as well as the near field communication function.
Specifically, the user may manually start the bluetooth function and the near field communication function of the target device 110 by pressing the bluetooth button and the near field communication button on the target device 110; the user can select options for starting the bluetooth function and the near field communication function on the display screen of the target device 110 in a finger touch manner to start the bluetooth function and the near field communication function of the target device 110; the user may input an opening instruction for the bluetooth function and the near field communication function to the target device 110 by using a voice input method, and the target device 110 collects and recognizes the voice input by the user, and opens the bluetooth function and the near field communication function, and so on.
The target device 110 may start the bluetooth function and the nfc function synchronously when detecting power-on (e.g., a user presses a switch key on the terminal for a long time, touches a specific power-on area of the terminal with a finger, etc.).
The terminal 100 starts a near field communication function, senses a near field communication signal of the target device 110, and establishes a near field communication connection with the target device 110.
The Near Field Communication signal may be understood as a radio wave of a Near Field Communication (NFC) Near Field Communication emitted by the target device in the vicinity of an electromagnetic Field. The NFC technology is integrated and evolved from an contactless Radio Frequency Identification (RFIDR) and an interconnection technology.
The reference bluetooth address may be understood as a bluetooth address corresponding to a target device for terminal reference, and the bluetooth address is generally a bluetooth mac address of the target device. The target device application identification may be understood as information that may be used to uniquely identify the target device application, which may be an id, package name, version number, etc. of the target device application.
Specifically, the terminal senses the near field communication signal of the target device, and the terminal is held by a user to be close to the target device, so that a radio frequency range corresponding to a radio frequency field of the terminal can cover the target device; or, the user may hold the target device to approach the terminal, so that the target device enters a radio frequency range corresponding to the radio frequency field of the terminal. Thereby establishing a near field communication connection with the target device 110
The terminal 100 reads the reference bluetooth address and the target device application identifier of the target device 110 stored in the chip of the target device 110 based on the nfc connection.
And when the terminal 100 determines that the target device application corresponding to the target device application identifier is installed, displaying the start prompt information of the target device application. When the terminal 100 receives the confirmation instruction for the start prompt information, the target device application is started and the bluetooth connection with the target device 110 indicated by the reference bluetooth address is established.
When the terminal 100 determines that the target device application corresponding to the target device application identifier is not installed, displaying the download prompting information of the target device application, and when the terminal 100 receives a confirmation instruction for the download prompting information, downloading and installing the target device application based on the target device application identifier.
It should be noted that the terminal 100 may start the bluetooth function when the near field communication signal of the target device 110 is sensed; may be turned on after the reference bluetooth address and the target device application identifier of the target device 110 are saved in the chip of the target device 110 are read; the terminal 100 may start the bluetooth function when it is detected that the target device application corresponding to the target device application identifier is determined to be installed; after the target device application is started, the terminal 100 starts a bluetooth function; in the embodiment of the present application, the time when the terminal 100 turns on the bluetooth function is not particularly limited.
In the embodiment of the application, the terminal induces a near field communication signal of the target device, obtains a reference Bluetooth address of the target device and a target device application identifier, and establishes Bluetooth connection with the target device based on the reference Bluetooth address when the target device application corresponding to the target device application identifier is determined to be installed in the terminal. The reference Bluetooth address of the target equipment can be quickly acquired through the near field communication mode, the Bluetooth connection with the target equipment indicated by the reference Bluetooth address can be automatically established after the target equipment application is determined to be installed, manual operation on the terminal by a user is not needed, the Bluetooth connection can be automatically established by the terminal under the screen-off state, the step of establishing the Bluetooth between the terminal and the target equipment is simplified, and the Bluetooth connection efficiency is improved.
In one embodiment, as shown in fig. 2, a bluetooth connection method is proposed, which can be implemented by means of a computer program and can be run on a bluetooth connection device based on von neumann architecture. The computer program may be integrated into the application or may run as a separate tool-like application.
Specifically, the bluetooth connection method includes:
step 101: and acquiring the reference Bluetooth address and the application identifier of the target equipment based on the near field communication connection with the target equipment.
The Near Field Communication connection may be understood as a Near Field Communication connection established by the target device and the terminal transmitting a Near Field Communication connection signal using Near Field Communication (NFC). The NFC technology is integrated and evolved from an contactless Radio Frequency Identification (RFIDR) and an interconnection technology.
The reference bluetooth address may be understood as a bluetooth address corresponding to a target device for terminal reference, and the bluetooth address is usually a bluetooth mac address of the target device.
The target device application identification may be understood as information that may be used to uniquely identify the target device application, which may be an id, package name, version number, etc. of the target device application. The application identifier may be an application number that is matched for the target device application based on a preset matching rule when the terminal is installed and intelligently wears the application. The terminal assigns an application number to each application installation, and identifies the application by using the number as an application identifier, for example, identifies the application by using the target device application identifier.
In this embodiment of the application, the induction target device includes an NFC integrated chip, and may combine an induction card reader, an induction card, and a point-to-point NFC function, so as to perform identification and data exchange with a compatible device (such as a mobile phone, a tablet, and other terminals having an NFC function) in a short distance.
Specifically, in a scenario of data communication or data acquisition using NFC technology, devices supporting NFC are generally divided into a master device and a slave device, and a device initiating NFC communication, also referred to as an NFC master device, provides a radio frequency field (i.e., RF) during the whole communication process. One of the transmission speeds of 106kbps, 212kbps and 424kbps can be generally selected for data transmission and reception, and the data can be transmitted to another device. The other device, called the NFC slave, does not have to generate a radio frequency field but uses load modulation (load modulation) technology to transmit data back to the master at the same speed.
In a specific embodiment, the NFC operating mode is divided into a passive mode and an active mode. Passive mode as shown in fig. 3, fig. 3 is a schematic view of a scenario in which a terminal operates in the NFC passive mode, and an NFC initiator device is a target device (i.e., a master device) which provides a radio frequency field (i.e., RF) to transmit a near field communication signal by using energy of a power supply component (e.g., an internal battery) included in the NFC initiator device, and transmits the near field communication signal to the terminal (i.e., the NFC target device in fig. 3), wherein the transmission rate of the near field communication signal is 106kbps, 212kbps, or 424 kbps. In practical applications, the terminal as a slave device does not generate a radio frequency field and uses load modulation techniques to transmit reply data (e.g., acknowledgement information for establishing a connection) back to the master device at the same speed. In this mode of operation, the slave device does not generate a radio frequency field, but passively receives a radio frequency field generated by the master device, and is therefore referred to as a passive mode, in which the NFC master device-target device can detect the NFC target device-target device and establish a connection therewith.
Specifically, the terminal uses the energy of the contained power supply component (such as an internal battery) to provide a radio frequency field, when the radio frequency range corresponding to the radio frequency field can cover the target device, the target device can receive the radio frequency signal of the terminal, and at this time, the target device feeds back response data (such as confirmation information for establishing connection) to the terminal at the same speed by using a load modulation technology. After receiving the response data, the terminal can establish a communication channel with the target device.
Optionally, the terminal may send an acquisition request for the reference bluetooth address and the target device application identifier to the target device, and the target device feeds back the reference bluetooth address and the target device application identifier to the terminal based on the acquisition request.
Optionally, after the terminal establishes a communication channel with the target device, the target device may actively push the reference bluetooth address and the target device application identifier to the terminal. At this time, the terminal can receive the reference bluetooth address and the application identifier of the target device sent by the target device.
Specifically, the terminal may establish a near field communication connection with the target device in a manner of inducing a near field communication signal of the target device, and may be a user holding the terminal close to the target device so that a radio frequency range corresponding to a radio frequency field of the terminal can cover the target device; or, the user may hold the target device to approach the terminal, so that the target device enters a radio frequency range corresponding to the radio frequency field of the terminal.
Step 102: and when the terminal is determined to have installed the target device application corresponding to the target device application identifier, establishing Bluetooth connection with the target device based on the reference Bluetooth address.
The target device application refers to an application which is developed by a third party and is not carried by the operating system of the mobile terminal, and is used for controlling the target device, and comprises some applications, small programs, plug-ins and the like developed by the third party. In this embodiment, the target device application may be understood as an application other than the operating system preset system application of the mobile terminal, and the target device application may be run on the terminal.
Specifically, after acquiring the reference bluetooth address of the target device and the target device application identifier, the terminal determines the target device application corresponding to the target device application identifier, and detects whether the target device application is installed at the current terminal.
And when the terminal detects that the target equipment application is installed, sending a connection establishment request to the target equipment with the reference Bluetooth address, and when receiving confirmation information of the target equipment based on the connection establishment request, successfully establishing the Bluetooth connection between the terminal and the target equipment.
In a possible implementation manner, the terminal generally stores an application identifier set, where the application identifier set includes application identifiers of all installed applications, and after the terminal acquires an application identifier of a target device of the target device, the terminal detects whether the application identifier set includes the application identifier of the target device. And when the application identifier set contains the target equipment application identifier, the terminal determines that the target equipment application is installed.
In a specific implementation scenario, the terminal detects that the target device application is installed, and may generally obtain, through getPackageManager (), a current PackageManager usage collection of the terminal, which is a package management class on the terminal operating system, and may obtain, through the package management class, specific information about the application, such as installed apps, three-party apps, running apps, cleaning cache data, turning on/off apps, uninstalling apps, and the like, and then obtain, through a packagemanager.getlnstallpackagement () function, package information of all installed applications, and obtain, based on a "List < String > pName ═ new array List < String > ()" instruction, the package information of the installed applications in the form of List < String > pName (i.e., a linear List, which may also be understood as a set of package information), and then detect whether the target device identification collection contains the target device identification instruction based on "String. Judging whether a package name (namely a target device application identifier) of a target program exists in the ListpName or not based on a detection result 'return pname.contacts (packagemame)' returned after detection, wherein the detection result is usually TRUE, and the terminal determines that the target device application corresponding to the target device application identifier is installed on the terminal; and determining that the target device application corresponding to the target device application identifier is not installed in the terminal for the FALSE terminal according to the detection result.
In the embodiment of the application, the terminal induces a near field communication signal of the target device, obtains a reference Bluetooth address of the target device and a target device application identifier, and establishes Bluetooth connection with the target device based on the reference Bluetooth address when the target device application corresponding to the target device application identifier is determined to be installed in the terminal. The reference Bluetooth address of the target equipment can be quickly acquired through the near field communication mode, the Bluetooth connection with the target equipment indicated by the reference Bluetooth address can be automatically established after the target equipment application is determined to be installed, manual operation on the terminal by a user is not needed, the Bluetooth connection can be automatically established by the terminal under the screen-off state, the step of establishing the Bluetooth between the terminal and the target equipment is simplified, and the Bluetooth connection efficiency is improved.
Referring to fig. 4, fig. 4 is a flowchart illustrating another embodiment of a bluetooth connection method according to the present application. Specifically, the method comprises the following steps:
step 201: and when the start-up is detected, synchronously starting the Bluetooth function and the near field communication function.
Specifically, a user can input a starting-up instruction by pressing a physical key on the terminal, and after the terminal recognizes that the physical key presses a corresponding starting-up instruction, the Bluetooth function and the near field communication function of the target device are synchronously started; a user can touch a specific startup area on a terminal display screen in a finger touch mode, and the terminal synchronously starts a Bluetooth function and a near field communication function of the terminal by detecting the change of electrical parameters (such as the change of capacitance) of the startup area; the user can input voice similar to 'opening the terminal' to the terminal in a voice input mode, the specific terminal collects and identifies the voice input by the user, and synchronously opens a Bluetooth function and a near field communication function, and the like.
Step 202: establishing a near field communication connection with a target device based on the near field communication connection with the target device.
Specifically, refer to step 101, which is not described herein again.
Step 203: and reading a reference Bluetooth address and a target device application identifier of the target device stored in a chip of the target device based on the near field communication connection.
Specifically, the NFC connection may also be an active mode in the NFC operating mode, that is, the terminal establishes a peer-to-peer connection with the target device application based on the NFC active mode, and acquires the reference bluetooth address of the target device and the target device application identifier, which are pre-stored in the chip of the target device, after the connection is established. The NFC operating mode will be explained in detail below:
in a specific embodiment, the NFC operating mode is divided into a passive mode and an active mode. Active mode as shown in fig. 5, fig. 5 is a schematic view of a scenario in which the terminal operates in an NFC active mode, where an NFC initiator device, i.e., a target device (i.e., a master device), provides a radio frequency field (i.e., RF) to transmit a near field communication signal by using energy of a power supply component (e.g., an internal battery) included in the target device as the master device. Meanwhile, the target device, i.e., the target device (i.e., the slave device), provides a radio frequency field (i.e., RF) to transmit the near field communication signal as the slave device using the energy of the included power supply part (e.g., the internal battery). The initiator-terminal and the target-target device actively generate a radio frequency field when sending data to each other, so the communication mode is called an active mode, and generally the communication mode is a peer-to-peer network communication mode, that is, the terminal and the target device establish a peer-to-peer connection. When the radio frequency range corresponding to the radio frequency field of the terminal overlaps with the radio frequency range corresponding to the target device, the terminal may send an initial command (e.g., a connection establishment request) to the target device at a specific transmission rate, based on which the target device transmits reply data (e.g., acknowledgement information for establishing a connection) back to the terminal at the same speed using a load modulation technique, the specific transmission rate of which transmits a signal at one of 106kbps, 212kbps, or 424 kbps. After receiving the response data (e.g., the confirmation information for establishing the connection), the terminal may establish a point-to-point connection with the target device.
As shown in fig. 5, the NFC connection may be based on an active mode in the NFC operating mode, where the target device stores a local reference bluetooth address and a target device application identifier in advance in a chip included in the target device, specifically in a register unit of the chip, and generally, the reference bluetooth address and the target device application identifier may be stored in a register of the chip in the form of a code, a character string, a characteristic character, a characteristic number, a characteristic stack, and the like.
Specifically, the terminal may send an acquisition instruction for the reference bluetooth address and the target device application identifier to the target device at a specific transmission rate, where the acquisition instruction is an instruction and a command instructing the target device to operate, in this embodiment of the present application, the acquisition instruction may be understood as a code instructing the target device to execute a function of acquiring the reference bluetooth address and the target device application identifier, the target device acquires the reference bluetooth address and the target device application identifier of the local terminal from a register of the included chip by executing the code, the target device transmits response data including the reference bluetooth address and the target device application identifier to the terminal at the same transmission speed by using a load modulation technique based on the acquisition instruction, and the specific transmission rate of the terminal sends the instruction at one of 106kbps, 212kbps, or 424 kbps.
In a possible embodiment, the terminal confirms the establishment of the peer-to-peer connection with the target device after receiving the response data (e.g. confirmation information for establishing the connection). The target device can actively acquire the reference Bluetooth address of the local terminal and the application identifier of the target device from the register of the chip, and push data containing the reference Bluetooth address and the application identifier of the target device to the terminal. At this time, the terminal can receive the data which is sent by the target device and contains the reference Bluetooth address and the application identifier of the target device.
Step 204: and determining that the terminal has installed the target equipment application corresponding to the target equipment application identifier, and displaying the starting prompt information of the target equipment application.
The step 102 may be specifically referred to for determining that the target device application corresponding to the target device application identifier is installed in the terminal, and details are not described here.
The start prompt information can be understood as information of intelligent wearing start displayed by the terminal based on a preset prompt mode, and the preset prompt mode can be that the start prompt information of the target equipment application is displayed in a picture mode, a character mode, an audio mode and the like.
Specifically, when the terminal detects that the target device application corresponding to the target device application identifier is installed, the terminal may pop up a prompt box in the current display area of the screen and display the start prompt information of the target device application.
In a specific implementation scenario, as shown in fig. 6, fig. 6 is an interface schematic diagram of a terminal displaying start prompting information, when the terminal determines that a target device application corresponding to an installed target device application identifier is started, the terminal starts a prompting mechanism, displays a prompting box on a current display interface, and displays a prompting box that is popped up in a display area of a current screen by the specific terminal and is shown as the prompting box shown in fig. 6 and displays "whether to start the target device application? "is used as a prompt.
In another specific implementation scenario, as shown in fig. 7, fig. 7 is another interface diagram of a terminal displaying start prompting information, when the terminal determines that a target device application corresponding to the target device application identifier is installed is started, the terminal starts a prompting mechanism, and the terminal outputs the start prompting information of the target device application, which may be a message that the target device application is pushed to be started on a notification bar in a screen display area. For example, as shown in fig. 7, when the target device application corresponding to the target device application identifier is installed is opened, the terminal pushes prompt information of "please note that the target device application will be opened" on the notification bar of the screen display area, and the terminal may further provide the user with a relevant operation based on the open prompt information on the notification bar, where the relevant operation may be understood as that the user may select to ignore the prompt information or close/open the target device application, etc. by clicking an "operation" button shown in fig. 7.
Optionally, when it is determined that the terminal has installed the target device application corresponding to the target device application identifier, the terminal may output the start prompt information of the target device application in a form of voice, for example: the mobile terminal can broadcast whether the current target equipment application is opened or not through voice; may be in the form of vibrations, for example: the terminal can call an internal vibration motor to prompt at a specific vibration frequency; and the modes of a breathing lamp, a flash lamp, a light supplement lamp and the like on the calling terminal can also be adopted.
It should be noted that there are various ways for the terminal to output the start prompt information of the target device application, and the terminal may be one or more of the above, and is not limited herein.
Step 205: and when a confirmation instruction aiming at the starting prompt information is received, starting the target equipment application and establishing Bluetooth connection with the target equipment indicated by the reference Bluetooth address.
The instruction is an instruction and a command instructing the terminal to work, and may be understood as a code that designates execution of a certain operation or a certain control implemented by a function, the confirmation instruction may be understood as a code that instructs the terminal to execute opening of the target device application function and bluetooth connection, and the terminal opens the target device application and establishes bluetooth connection with the target device indicated by the reference bluetooth address by executing the code.
Specifically, after the terminal displays the start prompt information of the target device application on the current display interface, the user may select whether to start the target device application according to the start prompt information. When the user selects to close the target equipment application according to the starting prompt information, the user can specifically input a closing instruction by touching an option corresponding to the target equipment application closing on a current display interface of the terminal in a finger touch manner, and the terminal receives and responds to the closing instruction input aiming at the starting prompt information and sets the target equipment application to be in a closing state; when the user selects to start the target device application according to the start prompt information, the user can specifically input a start instruction by touching an option corresponding to 'start the target device application' on a current display interface of the terminal in a finger touch manner, and the terminal receives and responds to the start instruction input aiming at the start prompt information, starts the target device application and establishes Bluetooth connection with the target device indicated by the reference Bluetooth address.
In a possible implementation, the terminal establishing the bluetooth connection with the target device indicated by the reference bluetooth address may be established based on the received bluetooth broadcast packet sent by at least one bluetooth device.
Specifically, the terminal starts a bluetooth function, and receives a bluetooth broadcast packet sent by at least one bluetooth device, where the bluetooth broadcast packet carries a bluetooth address of the bluetooth device.
The bluetooth broadcast packet may be understood as a bluetooth broadcast packet that is sent to other devices (e.g., terminals) by a broadcast method based on a bluetooth protocol after a bluetooth function is turned on by a bluetooth device (e.g., a target device).
Two roles are defined in a bluetooth protocol: central and Peripheral, i.e., Central and Peripheral devices. The central device (e.g., terminal) may actively scan and connect to peripheral devices (e.g., target devices, cell phones, etc.), which transmit broadcasts or are connected by the central device. The peripheral device is discovered by the central device through broadcasting, and the broadcasting carries the relevant information of the peripheral device. In general, the length of the bluetooth broadcast packet is a fixed number of bytes (e.g. 31 bytes), and is composed of several data units representing different meanings, such as a preamble, an access address, a broadcast packet header, a broadcast address, broadcast data, and CRC check, and if the valid data portion is less than 31 bytes, the remaining bytes are usually completed with 0. In this embodiment, the bluetooth address of the bluetooth device may be stored in a broadcast address unit of a bluetooth broadcast packet, and is used for broadcasting, scanning, and initiating a connection.
Specifically, the bluetooth broadcast packet sent by the at least one bluetooth device to other devices (e.g., terminals) in a broadcast manner based on the bluetooth protocol may be of the following bluetooth broadcast types:
1. connectable non-directed broadcast (connected unused Event Type), which is the most versatile broadcast Type, includes broadcast data and scan response data, which indicates that the current device can accept connection requests of any other device. The device performing the general broadcast can be scanned by the scanning device or enter a connection as a slave device when receiving a connection request. The general broadcast may be sent without a connection, in other words, without a separation of master and slave devices.
2. Connectable direct Event Type (Connectable direct Event Type) in order to establish a connection as quickly as possible. This message contains two addresses: the address of the broadcaster and the address of the originator. After receiving the directional broadcast message sent to the initiator, the initiator can immediately send a connection request as a response.
3. Non-connectable Non-directed broadcast (Non-connected Event Type), i.e., only broadcast data is transmitted without being scanned or connected by the target device. This is also the only type of broadcast available to only the transmitter and no receiver device. The receiver does not establish a bluetooth connection with the transmitter after receiving the broadcast packet, i.e. does not enter a bluetooth connection state,
4. scannable non-directed Event Type, also known as a discoverable broadcast, which cannot be used to initiate a connection, but allows other devices to scan the broadcast device. This means that the device can be found, either sending broadcast data or sending scan reply data in response to a scan, but cannot establish a connection. This is a broadcasting form suitable for broadcast data, dynamic data may be included in the broadcast data, and static data may be included in the scan response data.
Specifically, after the terminal starts the bluetooth function, the terminal scans the bluetooth broadcast in the current bluetooth network, and when the terminal scans the bluetooth broadcast packet sent by the plurality of bluetooth devices in the bluetooth broadcast mode, the terminal receives the bluetooth broadcast packet sent by each bluetooth device in the plurality of bluetooth devices, analyzes the bluetooth broadcast packet of each bluetooth device based on a preset bluetooth protocol (such as a low-power-consumption bluetooth protocol), and reads the bluetooth address in the bluetooth broadcast packet of each bluetooth device after the analysis processing.
Specifically, the terminal determines a target bluetooth address matching the reference bluetooth address (bluetooth address of the target device) among the bluetooth addresses. And after determining the target Bluetooth address, the terminal sends a connection establishment request to the target equipment indicated by the target Bluetooth address. And the target equipment responds to the connection establishment request after the connection establishment request is based on the connection establishment request, and feeds back confirmation information to the terminal, wherein the confirmation information is used for establishing Bluetooth connection with the terminal. After the terminal receives the confirmation information, the target device and the terminal establish point-to-point Bluetooth connection, and after the Bluetooth connection is established, the user can perform information interaction through the target device application on the terminal. Such as obtaining power of the target device, obtaining physiological information (heartbeat, blood pressure, body temperature, etc.) monitored by the target device.
In a possible implementation manner, the terminal may actively establish the bluetooth connection with the target device indicated by the reference bluetooth address, that is, without scanning broadcast packets sent by bluetooth devices of a current bluetooth channel and without receiving broadcast packets of each bluetooth device.
Specifically, the terminal sends a connection establishment request to the target device indicated by the reference bluetooth address after reading the reference bluetooth address in the chip of the target device and receiving a confirmation instruction for the start prompt information. And the target equipment responds to the connection establishment request after the connection establishment request is based on the connection establishment request, and feeds back confirmation information to the terminal, wherein the confirmation information is used for establishing Bluetooth connection with the terminal. After the terminal receives the confirmation information, the target device and the terminal establish point-to-point Bluetooth connection, and after the Bluetooth connection is established, the user can perform information interaction through the target device application on the terminal. Such as obtaining power of the target device, obtaining physiological information (heartbeat, blood pressure, body temperature, etc.) monitored by the target device.
It should be noted that, in the embodiment of the present application, the terminal does not perform the sequence of the step of starting the target device application and the step of establishing the bluetooth connection with the target device indicated by the reference bluetooth address, the step of opening the target device application by the terminal may be performed before the step of establishing the bluetooth connection with the target device indicated by the reference bluetooth address, or the step of opening the target device application by the terminal may be performed after the step of establishing the bluetooth connection with the target device indicated by the reference bluetooth address, the terminal may also perform the step of starting the target device application at the same time, and the order of the step of establishing the bluetooth connection with the target device indicated by the reference bluetooth address is not specifically limited herein.
Step 206: and determining that the target equipment application corresponding to the target equipment application identifier is not installed in the terminal, and displaying the downloading prompt information of the target equipment application.
The download prompting information can be understood as information of downloading the target device application, which is displayed by the terminal based on a preset prompting mode, and the preset prompting mode can be displaying the download prompting information of the target device application in a mode of pictures, characters, audio and the like.
Specifically, after acquiring the reference bluetooth address of the target device and the target device application identifier, the terminal determines the target device application corresponding to the target device application identifier, and detects whether the target device application is installed at the current terminal. When the terminal detects that the target device application is not installed, the terminal can display the downloading prompt information of the target device application to a user so that the user can select whether to download the target device application.
In a possible implementation manner, the terminal generally stores an application identifier set, where the application identifier set includes application identifiers of all installed applications, and after the terminal acquires an application identifier of a target device of the target device, the terminal detects whether the application identifier set includes the application identifier of the target device. And when the application identifier set does not contain the target device application identifier, the terminal determines that the target device application is not installed.
Optionally, in a specific implementation scenario, as shown in fig. 8, fig. 8 is an interface schematic diagram of a terminal displaying a download prompting message, when the terminal determines that a target device application corresponding to the target device application identifier is not installed, the terminal starts a prompting mechanism, displays a prompting frame on a current display interface, and pops up the prompting frame shown in fig. 8 and displays "do not download the target device application? "the user can select whether to download the target device application in the prompt box of the current display interface.
Step 207: and when a confirmation instruction aiming at the downloading prompt information is received, downloading and installing the target equipment application based on the target equipment application identification.
Specifically, after the terminal determines that the target device application corresponding to the target device application identifier is not installed and further displays the download prompt information of the target device application, the terminal may monitor the input instruction of the current user according to the download prompt information. And when a confirmation instruction of the user for the downloading prompt information is received, the terminal downloads and installs the target equipment application based on the target equipment application identifier.
Optionally, the user may input the confirmation instruction for the download prompting information through an external device, for example, the user may select a prompt box of a display interface of the terminal through a mouse connected to the terminal to click a "download" button; the user can input corresponding commands through a keyboard or a touch pad of the connecting terminal to input confirmation instructions aiming at the downloading prompt information; a confirmation instruction for the download prompting information, which can be input by a user through voice (for example, a target device application is downloaded through voice input); the user can acquire a gesture control instruction through the camera to complete the operation of downloading the target equipment application, and can select a 'download' button through a finger or an electromagnetic pen touch terminal screen.
For convenience of description of the embodiment of the present application, the detailed description will be specifically given by taking an example of selecting a "download" button on a screen of a finger touch terminal.
In one possible embodiment, the terminal may have a touch screen, and the touch screen may be a touch screen capable of implementing a single touch function, such as: capacitive touch screen, electromagnetic touch screen, can also be the touch-sensitive screen that can realize capacitive sensing, electromagnetic induction and infrared induction simultaneously. As shown in fig. 8, when a user touches the touch screen of the terminal with a finger, the "download" button is selected, the capacitance parameter of the touch position changes, and the touch frame determines the touch position of the finger on the touch screen according to the change of the capacitance; or when the finger contacts the touch frame, the infrared receiving end is blocked to receive the infrared signal, and the touch frame determines the touch position of the finger according to the blocked infrared signal. And the terminal detects that the position corresponding to the touch position- "download" button is selected, and then executes the step of downloading and installing the target equipment application based on the target equipment application identifier.
Specifically, after receiving the confirmation instruction for the download prompt information, the terminal acquires the installation package of the application identifier of the target device, for example, the installation package corresponding to the application identifier of the target device may be acquired through an application store of the terminal, the installation package corresponding to the application identifier of the target device may be searched through a browser of the terminal, and the terminal downloads the installation package and then analyzes the installation package, where the installation package generally includes a data file, a picture file, a log file, and a configuration setting, and when the terminal installs the installation package, the installation path of the installation package may be installed in a root directory by default, or the installation path of the installation package may be manually set by a user, which is not limited in the embodiment of the present application. After the installation path of the update installation package is selected, the update progress graphics and texts of the application program can be displayed on the interface of the terminal. For the progress graphics and text updating, reference is made to any progress graphics and text in the prior art, and details of the embodiment of the present application are not repeated herein.
In the embodiment of the application, the terminal induces a near field communication signal of the target device, obtains a reference Bluetooth address of the target device and a target device application identifier, and establishes Bluetooth connection with the target device based on the reference Bluetooth address when the target device application corresponding to the target device application identifier is determined to be installed in the terminal. The reference Bluetooth address of the target equipment can be quickly acquired through the near field communication mode, the Bluetooth connection with the target equipment indicated by the reference Bluetooth address can be automatically established after the target equipment application is determined to be installed, manual operation on the terminal by a user is not needed, the Bluetooth connection can be automatically established by the terminal under the screen-off state, the step of establishing the Bluetooth between the terminal and the target equipment is simplified, and the Bluetooth connection efficiency is improved. Meanwhile, when the terminal determines that the target device application is not installed, the target device application can be automatically downloaded and installed based on the target device application identification, manual searching by a user is not needed, and experience in the process of establishing the Bluetooth connection is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Referring to fig. 9, a schematic structural diagram of a bluetooth connection apparatus according to an exemplary embodiment of the present application is shown. The bluetooth connection means may be implemented as all or part of the device by software, hardware or a combination of both. The device 1 comprises an application identity obtaining module 11 and a bluetooth connection establishing module 12.
An application identifier obtaining module 11, configured to obtain a reference bluetooth address and an application identifier of a target device based on a near field communication connection with the target device;
and a bluetooth connection establishing module 12, configured to, when it is determined that the terminal has installed the target device application corresponding to the target device application identifier, connect with the bluetooth of the target device based on the reference bluetooth address.
Optionally, the application identifier obtaining module 11 is specifically configured to:
and establishing near field communication connection with the target equipment, and reading a reference Bluetooth address and a target equipment application identifier of the target equipment stored in a chip of the target equipment based on the near field communication connection.
Optionally, as shown in fig. 12, the apparatus 1 further includes:
and the application downloading module 13 is configured to, when it is determined that the target device application corresponding to the target device application identifier is not installed in the terminal, download and install the target device application based on the target device application identifier.
Optionally, as shown in fig. 12, the apparatus 1 includes:
an information display module 14, configured to display the download prompt information of the target device application;
a download confirmation module 15, configured to, when receiving a confirmation instruction for the download prompting information, execute the step of downloading and installing the target device application based on the target device application identifier.
Optionally, as shown in fig. 10, the bluetooth connection establishing module 12 includes:
the information display unit 121 is configured to display start prompt information of the target device application when it is determined that the target device application corresponding to the target device application identifier is installed in the terminal;
a connection establishing unit 122, configured to, when receiving a confirmation instruction for the start prompting information, start the target device application and establish a bluetooth connection with the target device indicated by the reference bluetooth address.
Optionally, as shown in fig. 11, the connection establishing unit 122 includes:
a bluetooth broadcast packet receiving subunit 1221, configured to receive a bluetooth broadcast packet sent by at least one bluetooth device, where the bluetooth broadcast packet carries a bluetooth address of the bluetooth device;
a target bluetooth address determining subunit 1222 for determining a target bluetooth address matching the reference bluetooth address;
a confirmation information receiving subunit 1223, configured to send a connection establishment request to the target device indicated by the target bluetooth address, and receive confirmation information fed back by the target device based on the connection establishment request.
Optionally, the connection establishing unit 122 is specifically configured to:
and sending a connection establishment request to the target equipment indicated by the reference Bluetooth address, and receiving confirmation information fed back by the target equipment based on the connection establishment request.
Optionally, as shown in fig. 12, the apparatus 1 includes:
and the synchronous starting module 16 is used for synchronously starting the Bluetooth function and the near field communication function when the startup is detected.
It should be noted that, when the bluetooth connection apparatus provided in the foregoing embodiment executes the bluetooth connection method, only the division of the functional modules is illustrated, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the above described functions. In addition, the embodiments of the bluetooth connection apparatus and the bluetooth connection method provided in the above embodiments belong to the same concept, and details of implementation processes thereof are referred to as method embodiments, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits of the embodiments.
In this embodiment, the terminal senses a near field communication signal of a target device, obtains a reference bluetooth address of the target device and a target device application identifier, and establishes bluetooth connection with the target device based on the reference bluetooth address when it is determined that the target device application corresponding to the target device application identifier is installed in the terminal. The reference Bluetooth address of the target equipment can be quickly acquired through the near field communication mode, the Bluetooth connection with the target equipment indicated by the reference Bluetooth address can be automatically established after the target equipment application is determined to be installed, manual operation on the terminal by a user is not needed, the Bluetooth connection can be automatically established by the terminal under the screen-off state, the step of establishing the Bluetooth between the terminal and the target equipment is simplified, and the Bluetooth connection efficiency is improved. Meanwhile, when the terminal determines that the target device application is not installed, the target device application can be automatically downloaded and installed based on the target device application identification, manual searching by a user is not needed, and experience in the process of establishing the Bluetooth connection is improved.
An embodiment of the present application further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, and the instructions are suitable for being loaded by a processor and executing the bluetooth connection method according to the embodiments shown in fig. 1 to 8, and a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to 8, which is not described herein again.
The present application further provides a computer program product, where at least one instruction is stored in the computer program product, and the at least one instruction is loaded by the processor and executes the bluetooth connection method according to the embodiments shown in fig. 1 to fig. 8, where a specific execution process may refer to specific descriptions of the embodiments shown in fig. 1 to fig. 8, and is not described herein again.
Please refer to fig. 12, which is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure. As shown in fig. 12, the electronic device 1000 may include: at least one processor 1001, at least one network interface 1004, a user interface 1003, memory 1005, at least one communication bus 1002.
Wherein a communication bus 1002 is used to enable connective communication between these components.
The user interface 1003 may include a Display screen (Display) and a Camera (Camera), and the optional user interface 1003 may also include a standard wired interface and a wireless interface.
The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), among others.
The Memory 1005 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). Optionally, the memory 1005 includes a non-transitory computer-readable medium. The memory 1005 may be used to store an instruction, a program, code, a set of codes, or a set of instructions. The memory 1005 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the various method embodiments described above, and the like; the storage data area may store data and the like referred to in the above respective method embodiments. The memory 1005 may optionally be at least one memory device located remotely from the processor 1001. As shown in fig. 12, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a bluetooth connection application program.
In the electronic device 1000 shown in fig. 12, the user interface 1003 is mainly used as an interface for providing input for a user, and acquiring data input by the user; and the processor 1001 may be configured to call the bluetooth connection application stored in the memory 1005, and specifically perform the following operations:
acquiring a reference Bluetooth address and a target device application identifier of a target device based on near field communication connection with the target device;
and connecting with the Bluetooth of the target equipment based on the reference Bluetooth address under the condition that the target equipment application corresponding to the target equipment application identification is determined to be installed by the terminal.
In an embodiment, when the processor 1001 acquires the reference bluetooth address and the application identifier of the target device, it specifically performs the following operations:
and establishing near field communication connection with the target equipment, and reading a reference Bluetooth address and a target equipment application identifier of the target equipment stored in a chip of the target equipment based on the near field communication connection.
In one embodiment, the processor 1001, in executing the bluetooth connection method, further performs the following operations:
and when the target equipment application corresponding to the target equipment application identification is determined not to be installed by the terminal, downloading and installing the target equipment application based on the target equipment application identification.
In one embodiment, the processor 1001 further performs the following operations before performing the downloading and installing the target device application based on the target device application identification:
displaying the downloading prompt information of the target equipment application;
and when a confirmation instruction aiming at the downloading prompt information is received, executing the step of downloading and installing the target equipment application based on the target equipment application identification.
In an embodiment, when the processor 1001, when executing the target device application corresponding to the target device application identifier and determining that the terminal has installed the target device application, establishes the bluetooth connection with the target device indicated by the reference bluetooth address, specifically performs the following operations:
when the terminal is determined to have installed the target equipment application corresponding to the target equipment application identifier, displaying starting prompt information of the target equipment application;
and when a confirmation instruction aiming at the starting prompt information is received, starting the target equipment application and establishing Bluetooth connection with the target equipment indicated by the reference Bluetooth address.
In one embodiment, when the processor 1001 performs the bluetooth connection establishment with the target device indicated by the reference bluetooth address, specifically perform the following operations:
receiving a Bluetooth broadcast packet sent by at least one Bluetooth device, wherein the Bluetooth broadcast packet carries a Bluetooth address of the Bluetooth device;
determining a target bluetooth address matching the reference bluetooth address;
and sending a connection establishment request to the target equipment indicated by the target Bluetooth address, and receiving confirmation information fed back by the target equipment based on the connection establishment request.
In one embodiment, when the processor 1001 performs the bluetooth connection establishment with the target device indicated by the reference bluetooth address, specifically perform the following operations:
and sending a connection establishment request to the target equipment indicated by the reference Bluetooth address, and receiving confirmation information fed back by the target equipment based on the connection establishment request.
In one embodiment, the processor 1001 further performs the following steps before performing the near field communication connection with the target device:
and when the start-up is detected, synchronously starting the Bluetooth function and the near field communication function.
In this embodiment, the terminal senses a near field communication signal of a target device, obtains a reference bluetooth address of the target device and a target device application identifier, and establishes bluetooth connection with the target device based on the reference bluetooth address when it is determined that the target device application corresponding to the target device application identifier is installed in the terminal. The reference Bluetooth address of the target equipment can be quickly acquired through the near field communication mode, the Bluetooth connection with the target equipment indicated by the reference Bluetooth address can be automatically established after the target equipment application is determined to be installed, manual operation on the terminal by a user is not needed, the Bluetooth connection can be automatically established by the terminal under the screen-off state, the step of establishing the Bluetooth between the terminal and the target equipment is simplified, and the Bluetooth connection efficiency is improved. Meanwhile, when the terminal determines that the target device application is not installed, the target device application can be automatically downloaded and installed based on the target device application identification, manual searching by a user is not needed, and experience in the process of establishing the Bluetooth connection is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above disclosure is only for the purpose of illustrating the preferred embodiments of the present application and is not to be construed as limiting the scope of the present application, so that the present application is not limited thereto, and all equivalent variations and modifications can be made to the present application.
Claims (10)
1. A method of bluetooth connectivity, the method comprising:
acquiring a reference Bluetooth address and a target device application identifier of a target device based on near field communication connection with the target device;
and connecting with the Bluetooth of the target equipment based on the reference Bluetooth address under the condition that the target equipment application corresponding to the target equipment application identification is determined to be installed by the terminal.
2. The method of claim 1, wherein the obtaining the reference bluetooth address and the application identifier of the target device comprises:
and establishing near field communication connection with the target equipment, and reading a reference Bluetooth address and a target equipment application identifier of the target equipment stored in a chip of the target equipment based on the near field communication connection.
3. The method of claim 1, further comprising:
and downloading and installing the target equipment application based on the target equipment application identification under the condition that the target equipment application corresponding to the target equipment application identification is not installed in the terminal.
4. The method of claim 3, wherein prior to downloading and installing the target device application based on the target device application identification, further comprising:
displaying the downloading prompt information of the target equipment application;
and when a confirmation instruction aiming at the downloading prompt information is received, executing the step of downloading and installing the target equipment application based on the target equipment application identification.
5. The method according to claim 1, wherein, in the case that it is determined that the terminal has installed the target device application corresponding to the target device application identifier, connecting with the bluetooth of the target device based on the reference bluetooth address comprises:
when the terminal is determined to have installed the target device application corresponding to the target device application identifier, displaying the starting prompt information of the target device application;
and when a confirmation instruction aiming at the starting prompt information is received, starting the target equipment application and establishing Bluetooth connection with the target equipment indicated by the reference Bluetooth address.
6. The method of claim 5, wherein the establishing the Bluetooth connection with the target device indicated by the reference Bluetooth address comprises:
receiving a Bluetooth broadcast packet sent by at least one Bluetooth device, wherein the Bluetooth broadcast packet carries a Bluetooth address of the Bluetooth device;
determining a target bluetooth address matching the reference bluetooth address;
and sending a connection establishment request to the target equipment indicated by the target Bluetooth address, and receiving confirmation information fed back by the target equipment based on the connection establishment request.
7. The method of claim 5, wherein the establishing the Bluetooth connection with the target device indicated by the reference Bluetooth address comprises:
and sending a connection establishment request to the target equipment indicated by the reference Bluetooth address, and receiving confirmation information fed back by the target equipment based on the connection establishment request.
8. The method of claim 1, wherein prior to the connection based on near field communication with the target device, further comprising:
and when the start-up is detected, synchronously starting the Bluetooth function and the near field communication function.
9. A computer storage medium, characterized in that it stores a plurality of instructions adapted to be loaded by a processor and to carry out the method steps according to any one of claims 1 to 8.
10. An electronic device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps of any of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911363064.7A CN113055864A (en) | 2019-12-26 | 2019-12-26 | Bluetooth connection method, device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911363064.7A CN113055864A (en) | 2019-12-26 | 2019-12-26 | Bluetooth connection method, device, storage medium and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113055864A true CN113055864A (en) | 2021-06-29 |
Family
ID=76505926
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911363064.7A Pending CN113055864A (en) | 2019-12-26 | 2019-12-26 | Bluetooth connection method, device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113055864A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113473434A (en) * | 2021-08-17 | 2021-10-01 | 杭州涂鸦信息技术有限公司 | Bluetooth connection method, device, computer equipment and computer readable storage medium |
CN113923641A (en) * | 2021-12-07 | 2022-01-11 | 荣耀终端有限公司 | Connection method and device |
CN114390724A (en) * | 2022-01-11 | 2022-04-22 | 维沃移动通信有限公司 | Connection method and device and electronic equipment |
CN116546471A (en) * | 2022-01-26 | 2023-08-04 | 广州星际悦动股份有限公司 | Bluetooth connection method of toothbrush equipment, terminal equipment and toothbrush equipment |
WO2023169593A1 (en) * | 2022-03-08 | 2023-09-14 | 广州视源电子科技股份有限公司 | Application downloading method and apparatus, device, and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789997A (en) * | 2010-01-15 | 2010-07-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for linking bluetooth and mobile terminal |
CN104980882A (en) * | 2015-05-12 | 2015-10-14 | 上海道臻信息技术有限公司 | Method for calling NFC (Near Field Communication) in automatic power-on process of printing equipment and automatic Bluetooth pairing process |
CN105122931A (en) * | 2013-04-23 | 2015-12-02 | 三星电子株式会社 | Electronic device and method of registering personal cloud apparatus in user portal server thereof |
US20160057790A1 (en) * | 2014-08-25 | 2016-02-25 | Hyundai Motor Company | Bluetooth pairing system and method |
CN105392114A (en) * | 2015-12-03 | 2016-03-09 | 北京握奇智能科技有限公司 | NFC based rapid Bluetooth connection system and method |
CN106341782A (en) * | 2016-09-27 | 2017-01-18 | 美的智慧家居科技有限公司 | Mobile terminal and household electric appliance communication method and system |
-
2019
- 2019-12-26 CN CN201911363064.7A patent/CN113055864A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101789997A (en) * | 2010-01-15 | 2010-07-28 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for linking bluetooth and mobile terminal |
CN105122931A (en) * | 2013-04-23 | 2015-12-02 | 三星电子株式会社 | Electronic device and method of registering personal cloud apparatus in user portal server thereof |
US20160057790A1 (en) * | 2014-08-25 | 2016-02-25 | Hyundai Motor Company | Bluetooth pairing system and method |
CN104980882A (en) * | 2015-05-12 | 2015-10-14 | 上海道臻信息技术有限公司 | Method for calling NFC (Near Field Communication) in automatic power-on process of printing equipment and automatic Bluetooth pairing process |
CN105392114A (en) * | 2015-12-03 | 2016-03-09 | 北京握奇智能科技有限公司 | NFC based rapid Bluetooth connection system and method |
CN106341782A (en) * | 2016-09-27 | 2017-01-18 | 美的智慧家居科技有限公司 | Mobile terminal and household electric appliance communication method and system |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113473434A (en) * | 2021-08-17 | 2021-10-01 | 杭州涂鸦信息技术有限公司 | Bluetooth connection method, device, computer equipment and computer readable storage medium |
CN113923641A (en) * | 2021-12-07 | 2022-01-11 | 荣耀终端有限公司 | Connection method and device |
CN113923641B (en) * | 2021-12-07 | 2022-05-06 | 荣耀终端有限公司 | Connection method and device |
CN114390724A (en) * | 2022-01-11 | 2022-04-22 | 维沃移动通信有限公司 | Connection method and device and electronic equipment |
CN116546471A (en) * | 2022-01-26 | 2023-08-04 | 广州星际悦动股份有限公司 | Bluetooth connection method of toothbrush equipment, terminal equipment and toothbrush equipment |
WO2023169593A1 (en) * | 2022-03-08 | 2023-09-14 | 广州视源电子科技股份有限公司 | Application downloading method and apparatus, device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111246545B (en) | Method, medium, control terminal and system for guiding intelligent device to access network | |
CN113055864A (en) | Bluetooth connection method, device, storage medium and electronic equipment | |
CN107094294B (en) | Network connection method and device | |
CN110944315A (en) | Data processing method, terminal device, Bluetooth device and storage medium | |
CN111867148B (en) | Method and device for establishing device connection and data transmission | |
CN111356209B (en) | Multi-frequency WiFi hotspot opening method and device, storage medium and electronic equipment | |
CN106095456A (en) | User is guided to download the method for application program, device and mobile terminal | |
CN107911818B (en) | Method and device for data transmission between mobile terminals and mobile terminal | |
CN104581993B (en) | It is wirelessly connected the method and terminal of the method established, data transmission | |
CN109032491B (en) | Data processing method and device and mobile terminal | |
CN110572508B (en) | Address book synchronization method and device, storage medium and electronic equipment | |
WO2019011324A1 (en) | Method for determining access method of mobile terminal, storage medium, and mobile terminal | |
CN111866824A (en) | Method and equipment for establishing communication connection and data transmission | |
CN113489630A (en) | Network distribution method, device, storage medium and electronic terminal | |
CN111586662A (en) | Sharing method and audio output device | |
CN107317828B (en) | File downloading method and device | |
CN104917905A (en) | Strange incoming call processing method, terminal and server | |
WO2017000495A1 (en) | Method and device for adding contacts | |
CN105703808A (en) | Method and device for transmitting data | |
CN107979688B (en) | application program management method and mobile terminal | |
CN110891262A (en) | Bluetooth pairing method, system and terminal equipment | |
CN106330875B (en) | Message display method and device | |
CN113677039A (en) | Bluetooth-based equipment connection method and device, electronic equipment and storage medium | |
CN106817370A (en) | The method and device of transmitting network data | |
CN109410555A (en) | Terminal control method, device, 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 |