CN114143765A - Bluetooth connection method, device and storage medium - Google Patents

Bluetooth connection method, device and storage medium Download PDF

Info

Publication number
CN114143765A
CN114143765A CN202210116901.1A CN202210116901A CN114143765A CN 114143765 A CN114143765 A CN 114143765A CN 202210116901 A CN202210116901 A CN 202210116901A CN 114143765 A CN114143765 A CN 114143765A
Authority
CN
China
Prior art keywords
bluetooth
terminal device
application
terminal equipment
terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210116901.1A
Other languages
Chinese (zh)
Other versions
CN114143765B (en
Inventor
张瑞芳
黄鹏飞
宋业全
牛永民
张雅姝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Honor Device 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 Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202210116901.1A priority Critical patent/CN114143765B/en
Publication of CN114143765A publication Critical patent/CN114143765A/en
Application granted granted Critical
Publication of CN114143765B publication Critical patent/CN114143765B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)

Abstract

The embodiment of the application provides a Bluetooth connection method, a Bluetooth connection device and a storage medium, which relate to the technical field of short-distance wireless communication, and the method comprises the following steps: the first terminal equipment starts a Bluetooth application; in a first stage of a Bluetooth application starting process, if first terminal equipment detects that second terminal equipment and first terminal equipment are magnetically adsorbed, the first terminal equipment updates a value of a first indicator in the Bluetooth application to a target value; in this way, the device information of the second terminal device is added to the white list only when the value of the first indicator obtained by the bluetooth protocol stack in the first terminal device at the second stage of starting the bluetooth application is the target value, the first terminal device initiates scanning, and then the first terminal device sends a communication connection request to the second terminal device when the first terminal device scans the bluetooth signal of the second terminal device. Therefore, the first terminal equipment initiates the connection back to the second terminal equipment.

Description

Bluetooth connection method, device and storage medium
Technical Field
The present application relates to the field of short-range wireless communication technologies, and in particular, to a bluetooth backhaul method, apparatus, and storage medium.
Background
With the development of wireless communication technology, people have been used to connect different terminal devices in a wireless manner. Among them, the bluetooth technology is widely applied to terminal devices as a low-cost, low-power-consumption short-distance wireless communication technology, for example, a tablet computer and a bluetooth keyboard can be connected through bluetooth.
Currently, after the tablet computer establishes a bluetooth communication connection with the bluetooth keyboard, if the tablet computer is closed and placed overnight, the bluetooth keyboard may disconnect the bluetooth communication connection from the tablet computer. When the tablet personal computer is opened again, the tablet personal computer cannot automatically connect back to the Bluetooth keyboard, the user needs to trigger the Bluetooth connection control in the tablet personal computer, and the tablet personal computer can be connected with the Bluetooth keyboard again only in response to the trigger operation.
Disclosure of Invention
The embodiment of the application provides a Bluetooth connection method, a Bluetooth connection device and a storage medium, relates to the technical field of short-distance wireless communication, and is beneficial to realizing connection of terminal equipment and Bluetooth equipment.
In a first aspect, an embodiment of the present application provides a bluetooth backhaul method, where the method includes: the first terminal equipment starts a Bluetooth application; in a first stage of a Bluetooth application starting process, if first terminal equipment detects that second terminal equipment and first terminal equipment are magnetically adsorbed, the first terminal equipment updates a value of a first indicator in the Bluetooth application to a target value; the first indicator is used for indicating the magnetic adsorption state of the second terminal equipment and the first terminal equipment; in the second stage of the Bluetooth application starting process, the first terminal equipment initiates a communication connection request to the second terminal equipment under the condition that the first terminal equipment determines that the value of the first indicator is the target value; the second phase is later than the first phase.
In the embodiment of the application, in a first stage of a bluetooth application starting process, if the first terminal device detects that the second terminal device and the first terminal device are magnetically adsorbed, a value of the first indicator is updated to a target value, and the first terminal device initiates a communication connection request only when the value of the first indicator is the target value.
In a possible implementation, the first terminal device comprises a magnetic sensor; the magnetic sensor is used for detecting the magnetic adsorption state of the second terminal device and the first terminal device; if the first terminal device detects that the second terminal device and the first terminal device are magnetically adsorbed, the updating, by the first terminal device, of the value of the first indicator in the bluetooth application to the target value includes: in the first stage of the starting process of the Bluetooth application, the Bluetooth application monitors the magnetic sensor; the magnetic sensor detects the magnetic adsorption state of the second terminal device and the first terminal device; the magnetic sensor sends a state notification to the Bluetooth application; the status notification includes a magnetic attraction status; and under the condition that the state notification received by the Bluetooth application is used for representing that the second terminal equipment and the first terminal equipment are magnetically adsorbed, the first terminal equipment updates the value of the first indicator in the Bluetooth application to a target value. In this way, in the first stage of the bluetooth application starting process, the bluetooth application monitors the magnetic sensor, the magnetic sensor can detect that the second terminal device and the first terminal device are magnetically adsorbed in time, the magnetic sensor sends a state notification of the detected magnetic adsorption of the second terminal device and the first terminal device to the bluetooth application, and the bluetooth application can update the value of the first indicator according to the state notification.
In a possible implementation, the first phase of the bluetooth application starting process includes: the process that the bluetooth application starts the adapter service, the first terminal equipment updates the value of the first indicator in the bluetooth application to the target value, including: in the process of starting the adapter service by the Bluetooth application, the first terminal equipment updates the value of the first indicator in the Bluetooth application to a target value. Since the adapter service is started earlier, the value of the first indicator is updated in the process of starting the adapter service, so that the value of the first indicator is ensured to be changed into the latest adsorption state of the first terminal device and the second terminal device before the bluetooth protocol stack reads the value of the first indicator.
In a possible implementation manner, at a second stage of the bluetooth application starting process, a bluetooth protocol stack is also run in the first terminal device, and the method further includes: the Bluetooth protocol stack acquires the value of the first indicator; under the condition that the Bluetooth protocol stack determines that the value of the first indicator is the target value, the Bluetooth protocol stack adds the equipment information of the second terminal equipment into a white list; the initiating, by the first terminal device, a communication connection request to the second terminal device includes: and the first terminal equipment initiates a communication connection request to the second terminal equipment according to the white name. In this way, the first terminal device may initiate scanning if the white list is not empty, and may initiate a communication connection request to the second terminal device if the broadcast message of the second terminal device is scanned.
In a possible implementation, the second phase of the bluetooth application launching procedure starts with the bluetooth protocol stack retrieving the value of the first indicator.
In a possible implementation manner, the initiating, by the first terminal device, the communication connection request to the second terminal device according to the white name includes: the method comprises the steps that a first terminal device initiates scanning under the condition that a white list is not empty; and under the condition that the first terminal equipment scans the broadcast message from the second terminal equipment, the first terminal equipment initiates a communication connection request to the second terminal equipment.
In a possible implementation manner, the initiating, by the first terminal device, the communication connection request to the second terminal device according to the white name includes: the method comprises the steps that a first terminal device initiates scanning under the condition that a white list comprises device information of a second terminal device; and under the condition that the first terminal equipment scans the broadcast message from the second terminal equipment, the first terminal equipment initiates a communication connection request to the second terminal equipment. Therefore, under the condition that the white list comprises the information of the second terminal equipment, the first terminal equipment initiates the communication connection request to the second terminal equipment, and the first terminal equipment can more accurately initiate the communication connection request to the second terminal equipment according to the white name.
In a second aspect, an embodiment of the present application provides a terminal device, including: the processing module is used for starting the Bluetooth application; in a first stage of a Bluetooth application starting process, if first terminal equipment detects that second terminal equipment and first terminal equipment are magnetically adsorbed, the first terminal equipment updates a value of a first indicator in the Bluetooth application to a target value; the first indicator is used for indicating the magnetic adsorption state of the second terminal equipment and the first terminal equipment; the communication module is used for initiating a communication connection request to the second terminal equipment under the condition that the first terminal equipment determines that the value of the first indicator is the target value at the second stage of the Bluetooth application starting process; the second phase is later than the first phase.
Optionally, the first terminal device comprises a magnetic sensor; the magnetic sensor is used for detecting the magnetic adsorption state of the second terminal device and the first terminal device; if the first terminal device detects that the second terminal device and the first terminal device are magnetically adsorbed, the processing module is used for monitoring the magnetic sensor at a first stage of a Bluetooth application starting process; the magnetic sensor detects the magnetic adsorption state of the second terminal device and the first terminal device; the magnetic sensor sends a state notification to the Bluetooth application; the status notification includes a magnetic attraction status; and under the condition that the state notification received by the Bluetooth application is used for representing that the second terminal equipment and the first terminal equipment are magnetically adsorbed, the processing module is used for updating the value of the first indicator in the Bluetooth application to a target value.
Optionally, the first stage of the bluetooth application starting process includes: the process of starting the adapter service by the Bluetooth application; the processing module is specifically configured to: in the process of starting the adapter service by the Bluetooth application, the value of the first indicator in the Bluetooth application is updated to a target value.
Optionally, at a second stage of the bluetooth application starting process, a bluetooth protocol stack is further run in the first terminal device, and the bluetooth protocol stack is used for acquiring the value of the first indicator; under the condition that the value of the first indicator is determined to be the target value, adding the device information of the second terminal device into a white list; the communication module is specifically configured to: and initiating a communication connection request to the second terminal equipment according to the white name. In a possible implementation, the second phase of the bluetooth application launching procedure starts with the bluetooth protocol stack retrieving the value of the first indicator.
Optionally, the communication module is specifically configured to: initiating scanning under the condition that the white list is not empty; and in the case that the first terminal equipment scans the broadcast message from the second terminal equipment, initiating a communication connection request to the second terminal equipment.
Optionally, the communication module is specifically configured to: initiating scanning under the condition that the white list comprises the equipment information of the second terminal equipment; and initiating a communication connection request to the second terminal equipment under the condition that the broadcast message from the second terminal equipment is scanned.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory, where the processor is configured to call a computer program in the memory to execute the bluetooth loopback method provided in the first aspect.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program or an instruction is stored, and when the computer program or the instruction runs on a computer, the computer is caused to execute the bluetooth loopback method described in the first aspect or any one of the possible implementations of the first aspect.
In a fifth aspect, the present application provides a computer program product including a computer program, which when run on a computer, causes the computer to execute the bluetooth fallback method described in the first aspect or any one of the possible implementations of the first aspect.
In a sixth aspect, the present application provides a chip or a chip system, where the chip or the chip system includes at least one processor and a communication interface, where the communication interface and the at least one processor are interconnected by a line, and the at least one processor is configured to execute a computer program or instructions to perform a bluetooth loopback method described in the first aspect or any one of the possible implementation manners of the first aspect.
In one possible implementation, the chip or chip system described above in this application further comprises at least one memory having instructions stored therein. The memory may be a storage unit inside the chip, such as a register, a cache, etc., or may be a storage unit of the chip (e.g., a read-only memory, a random access memory, etc.).
It should be understood that the second aspect to the sixth aspect of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by the aspects and the corresponding possible implementations are similar and will not be described again.
Drawings
Fig. 1 is a schematic diagram of a tablet computer and a bluetooth keyboard suitable for use in the embodiment of the present application;
fig. 2 is a schematic diagram illustrating a closed state of a tablet computer and a bluetooth keyboard according to an embodiment of the present disclosure;
fig. 3 is a schematic flowchart of a bluetooth application starting process in a tablet computer in a possible implementation manner;
fig. 4 is a schematic structural diagram of a terminal device to which the embodiment of the present application is applied;
FIG. 5 is a schematic structural diagram of a wireless keyboard according to an embodiment of the present application;
fig. 6 is a software structure diagram of a terminal device to which the embodiment of the present application is applied;
fig. 7 is a schematic diagram of an architecture of a bluetooth protocol applicable to the embodiment of the present application;
fig. 8 is a flowchart illustrating a bluetooth application starting process according to an embodiment of the present application;
fig. 9 is a flowchart illustrating a bluetooth backhaul method according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a chip according to an embodiment of the present application.
Detailed Description
In the embodiments of the present application, terms such as "first" and "second" are used to distinguish the same or similar items having substantially the same function and action. For example, the first chip and the second chip are only used for distinguishing different chips, and the sequence order thereof is not limited. Those skilled in the art will appreciate that the terms "first," "second," etc. do not denote any order or quantity, nor do the terms "first," "second," etc. denote any order or importance.
It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
In the embodiments of the present application, "at least one" means one or more, "a plurality" means two or more. "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, wherein A and B can be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c can be single or multiple.
With the rapid development of bluetooth technology, bluetooth devices are widely used. Illustratively, as shown in FIG. 1, the electronic device 10 is magnetically attached to the Bluetooth keyboard 20, and the electronic device 10 may establish a Bluetooth communication connection with the Bluetooth keyboard 20.
Currently, in some usage scenarios, to save power consumption, the system of the electronic device 10 may govern the behavior of the application. For example, as shown in fig. 2, in a situation where the electronic device 10 and the bluetooth keyboard 20 are placed in a closed manner, the bluetooth keyboard 20 no longer sends a bluetooth signal to the electronic device 10, so that the bluetooth communication connection between the electronic device 10 and the bluetooth keyboard 20 is disconnected. In the case where the electronic device 10 is disconnected from the bluetooth communication connection of the bluetooth keyboard 20, the power saving sprite in the electronic device 10 may turn off the bluetooth application of the electronic device 10 in order to save power consumption, and the electronic device 10 restarts the bluetooth application at a preset time. The restarted bluetooth application cannot trigger the electronic device 10 to automatically connect back to the bluetooth keyboard 20, when the user opens the electronic device 10 and the bluetooth keyboard 20 again, the bluetooth connection control in the electronic device 10 needs to be triggered, and the electronic device 10 can re-establish the bluetooth communication connection with the bluetooth keyboard 20 only in response to the triggering operation. Affecting the user experience.
When the electronic device 10 and the bluetooth keyboard 20 are closed, and the bluetooth application in the electronic device 10 is restarted, the default value of the first indicator in the bluetooth application is used to represent that the states of the electronic device 10 and the bluetooth keyboard 20 are the non-absorption state. The first indicator is used for representing states of the bluetooth keyboard 20 and the electronic device 10, the bluetooth application starts a turning on state, the electronic device 10 initiates a loop connection to the bluetooth keyboard 20 when the bluetooth protocol stack judges that a value of the first indicator is a target value, the bluetooth application starts monitoring of an actual adsorption state of the bluetooth keyboard 20 when the bluetooth protocol stack judges that the value of the first indicator is the target value, and the bluetooth application updates the value of the first indicator to the target value when monitoring that the states of the bluetooth keyboard 20 and the electronic device 10 are the adsorption state. This results in the bluetooth protocol stack determining that the value of the first indicator, which is still the default value, has not been updated by the bluetooth application, and thus the electronic device 10 does not initiate a loopback connection to the bluetooth keyboard 20.
After the bluetooth application in the electronic device 10 is started to the turning on state as shown in the right flowchart of fig. 3, the bluetooth application starts the device management service and starts the bluetooth peripheral device controller. Then, the bluetooth application listens to the sensor to acquire the magnetic attraction state of the bluetooth keyboard 20 and the electronic device 10, and in the case where the bluetooth application receives the state notification from the sensor, the bluetooth application starts the accessory management service. The accessory management service is used for managing the connection, disconnection and connection back of the Bluetooth. Then, the accessory management service listens to the sensor to acquire the magnetic attraction state of the bluetooth keyboard 20 and the electronic device 10, and the accessory management service updates the value of the first indicator to the target value upon receiving the state notification from the sensor.
As shown in the left flowchart of fig. 3, after the bluetooth application in the electronic device 10 is started to the turning on state, the bluetooth application starts a Human Interface Device (HID) service management center, and a bluetooth protocol stack in the electronic device 10 acquires a value of the first indicator. At this time, the value of the first indicator is also a default value. The value of the first indicator obtained by the bluetooth protocol stack is a default value, the bluetooth protocol stack judges whether the value of the first indicator is a target value, if so, the bluetooth protocol stack waits for 200ms and then obtains the value of the first indicator again, judges whether the value of the first indicator is the target value, and if so, the bluetooth protocol stack adds the device information of the bluetooth keyboard 20 into a white list. The bluetooth protocol stack will not add the device information of the bluetooth keyboard 20 to the white list any time the value of the first indicator is determined to be the default value. The device information of the bluetooth keyboard 20 may be a media access control (mac) address, and the device information of the bluetooth keyboard 20 is not in the white list, so the electronic device 10 does not initiate a connection back to the bluetooth keyboard 20.
In view of the above, an embodiment of the present invention provides a bluetooth connection method, in which, when an electronic device detects that a bluetooth keyboard and the electronic device are magnetically attached to each other in a first stage of a bluetooth application starting process, the electronic device updates a value of a first indicator to a target value. Thus, in the second phase of the bluetooth application start, the value of the first indicator obtained by the bluetooth protocol stack is the target value, and therefore, the electronic device 10 initiates a loopback to the bluetooth keyboard 20.
The function of the electronic device in the bluetooth loopback method provided by the embodiment of the application can be implemented by the electronic device shown in fig. 4. The electronic device shown in fig. 4 may also be referred to as a terminal (terminal), a User Equipment (UE), a Mobile Station (MS), a Mobile Terminal (MT), or the like. The electronic device may be a tablet computer (Pad). The embodiment of the present application does not limit the specific technology and the specific device form adopted by the electronic device.
In order to better understand the embodiments of the present application, the following describes the structure of an electronic device to which the embodiments of the present application are applied. As shown in fig. 4, which is a schematic structural diagram of an electronic device provided in an embodiment of the present disclosure, the electronic device 40 shown in fig. 4 may include a processor 410, an input surface 420, a coordination engine 430, a power subsystem 440, a power connector 450, a wireless interface 460, a display 470, a memory 480, and a sensor module 490.
For example, coordination engine 430 may be used to communicate with and/or process data with other subsystems of electronic device 40; measuring and/or obtaining the output of one or more analog or digital sensors (such as touch sensors); measuring and/or obtaining an output of one or more sensor nodes of an array of sensor nodes (such as an array of capacitive sensing nodes);
coordination engine 430 of electronic device 40 includes or is otherwise communicatively coupled to a sensor layer located below or integrated with input surface 420. In one embodiment, the input surface 420 may be referred to as a touch screen.
For example, the sensor layer of coordination engine 430 of electronic device 40 is a grid of capacitive sensing nodes arranged as columns and rows. More specifically, the array of column traces is disposed perpendicular to the array of row traces. The sensor layer may be separate from other layers of the electronic device, or the sensor layer may be disposed directly on another layer, such as, but not limited to: display stack layers, force sensor layers, digitizer layers, polarizer layers, battery layers, structural or decorative outer shell layers, and the like.
The sensor layer can operate in multiple modes. If operating in mutual capacitance mode, the column and row traces form a single capacitive sensing node at each overlap point (e.g., a "vertical" mutual capacitance). If operating in self-capacitance mode, the column and row traces form two (vertically aligned) capacitive sensing nodes at each overlap point. In another embodiment, adjacent column traces and/or adjacent row traces may each form a single capacitive sensing node (e.g., a "horizontal" mutual capacitance) if operating in a mutual capacitance mode. As described above, the sensor layer may detect a touch by a stylus or a user's finger by monitoring a change in capacitance (e.g., mutual capacitance or self-capacitance) present at each capacitive sensing node. In many cases, the coordination engine 430 may be configured to detect tip and ring signals received from the stylus through the sensor layer via capacitive coupling.
In general, the processor 410 may be configured to perform, coordinate, and/or manage the functions of the electronic device 40. Such functions may include, but are not limited to: communicate and/or transact data with other subsystems of the electronic device 40, communicate and/or transact data with the stylus, communicate and/or transact data via a wireless interface, communicate and/or transact data via a wired interface, facilitate power exchange via a wireless (e.g., inductive, resonant, etc.) or wired interface, receive position and angular position of one or more styli, and/or the like.
Processor 410 may be implemented as any electronic device capable of processing, receiving, or transmitting data or instructions. For example, the processor may be a microprocessor, central processing unit, application specific integrated circuit, field programmable gate array, digital signal processor, analog circuit, digital circuit, or a combination of these devices. The processor may be a single threaded or a multi-threaded processor. The processor may be a single core or a multi-core processor.
During use, the processor 410 may be configured to access the memory 480, which stores instructions. The instructions may be configured to cause the processor to perform, coordinate, or monitor one or more operations or functions of the electronic device 40.
The instructions stored in memory 480 may be configured to control or coordinate the operation of other components of electronic device 40, such as, but not limited to: another processor, analog or digital circuitry, a volatile or non-volatile memory module, a display, a speaker, a microphone, a rotary input device, a button or other physical input device, a biometric authentication sensor and/or system, a force or touch input/output component, a communication module (such as a wireless interface and/or a power connector), and/or a haptic or tactile feedback device.
Memory 480 may be used to store one or more computer programs, including instructions. The processor 410 may execute the above-mentioned instructions stored in the memory 480, thereby causing the electronic device 40 to execute various functional applications, data processing, and the like. The memory 480 may include a program storage area and a data storage area. Wherein, the storage program area can store an operating system; the storage program area may also store one or more application programs (such as power saving sprites, accessory management services, bluetooth applications, etc.), and the like.
The storage data area may store data (such as photos, etc.) created during use of the electronic device 40, and the like. For example, the memory 480 may store a data area for storing a white list in the bluetooth connection method provided by the embodiment of the present application. Further, the memory 480 may include a high-speed random access memory, and may further include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. In some embodiments, processor 410 may cause electronic device 40 to perform various functional applications and data processing by executing instructions stored in memory 480 and/or instructions stored in a memory disposed in processor 410.
Electronic device 40 also includes a power subsystem 440. Power subsystem 440 may include a battery or other power source. Power supply subsystem 440 may be configured to provide power to electronic device 40. Power subsystem 440 may also be coupled to power connector 450. The power connector 450 may be any suitable connector or port that may be configured to receive power from an external power source and/or configured to provide power to an external load. For example, in some embodiments, power connector 450 may be used to recharge a battery within power subsystem 440. In another embodiment, power connector 450 may be used to transmit power stored (or available) within power subsystem 440 to the stylus.
The electronic device 40 also includes a wireless interface 460 to facilitate electronic communication between the electronic device 40 and a stylus. In one embodiment, the electronic device 40 may be configured to communicate with the stylus via a low energy bluetooth communication interface or a near field communication interface. In other examples, the communication interface facilitates electronic communication between electronic device 40 and an external communication network, device, or platform.
The wireless interface 460 (whether a communication interface between the electronic device 40 and the stylus or another communication interface) may be implemented as one or more wireless interfaces, bluetooth interfaces, near field communication interfaces, magnetic interfaces, universal serial bus interfaces, inductive interfaces, resonant interfaces, capacitive coupling interfaces, Wi-Fi interfaces, TCP/IP interfaces, network communication interfaces, optical interfaces, acoustic interfaces, or any conventional communication interfaces.
The electronic device 40 also includes a display 470. The display 470 may be located behind the input surface 420 or may be integral therewith. A display 470 may be communicatively coupled to the processor 410. Processor 410 may present information to a user using display 470. In many cases, processor 410 uses display 470 to present an interface with which a user may interact. In many cases, a user manipulates a stylus to interact with the interface.
The electronic device 40 also includes a sensor module 490. The sensor module 490 may include a pressure sensor 490A, a fingerprint sensor 490B, a touch sensor 490C, and a magnetic sensor 490D. The pressure sensor 490A is used for sensing a pressure signal, and converting the pressure signal into an electrical signal. In some embodiments, pressure sensor 490A may be disposed on display screen 460. The pressure sensor 490A may be of a variety of types, such as a resistive pressure sensor, an inductive pressure sensor, a capacitive pressure sensor, and the like. The capacitive pressure sensor may be a sensor comprising at least two parallel plates having an electrically conductive material. When a force acts on the pressure sensor 490A, the capacitance between the electrodes changes. The electronic device 40 determines the intensity of the pressure from the change in capacitance. When a touch operation is applied to the display 470, the electronic apparatus 40 detects the intensity of the touch operation based on the pressure sensor 490A. The electronic apparatus 40 may also calculate the touched position based on the detection signal of the pressure sensor 490A. In some embodiments, the touch operations that are applied to the same touch position but different touch operation intensities may correspond to different operation instructions. For example: and when the touch operation with the touch operation intensity smaller than the first pressure threshold value acts on the short message application icon, executing an instruction for viewing the short message. And when the touch operation with the touch operation intensity larger than or equal to the first pressure threshold value acts on the short message application icon, executing an instruction of newly building the short message.
The fingerprint sensor 490B is used to capture a fingerprint. The electronic device 40 may utilize the collected fingerprint characteristics to unlock the fingerprint, access the application lock, photograph the fingerprint, answer an incoming call with the fingerprint, and so on.
Touch sensor 490C, also referred to as a "touch device". The touch sensor 490C may be disposed on the display screen 460, and the touch sensor 490C and the display screen 460 form a touch screen, which is also called a "touch screen". The touch sensor 490C is used to detect a touch operation applied thereto or therearound. The touch sensor can communicate the detected touch operation to the application processor to determine the touch event type. Visual output associated with the touch operation may be provided through the display screen 460. In other embodiments, the touch sensor 490C may be disposed on a surface of the electronic device 40 at a different location than the display screen 460.
Magnetic sensor 490D. The magnetic sensor 490D may be a hall sensor. For example, a hall sensor may be disposed in the electronic device 10 for detecting the magnetic attraction state of the electronic device 10 and the bluetooth keyboard 20. The embodiment of the present application does not limit the position of the magnetic sensor 490D in the electronic device 10.
It will be apparent to one skilled in the art that some of the specific details presented above with respect to the electronic device 40 may not be required to practice a particular described embodiment or an equivalent thereof. Similarly, other electronic devices may include a greater number of subsystems, modules, components, etc. Some sub-modules may be implemented as software or hardware, where appropriate. Accordingly, it should be understood that the above description is not intended to be exhaustive or to limit the disclosure to the precise form disclosed herein. On the contrary, many modifications and variations are possible in light of the above teaching, as would be apparent to those of ordinary skill in the art.
Fig. 5 is a schematic structural diagram of a wireless keyboard 50 according to an embodiment of the present disclosure. Referring to fig. 5, the wireless keyboard 50 may include a processor 510, a memory 520, a charging interface 530, a charging management module 540, a wireless charging coil 550, a battery 560, a wireless communication module 570, a touch pad 580, and a keyboard 590.
The processor 510, the memory 520, the charging interface 530, the charging management module 540, the battery 560, the wireless communication module 570, the touch pad 580, the keyboard 590, and the like may be disposed on a keyboard body (i.e., the bluetooth keyboard 20 shown in fig. 1) of the wireless keyboard 50. It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the wireless keyboard 50. In other embodiments, wireless keyboard 50 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Memory 520 may be used to store program code, such as program code for wirelessly charging a stylus, among others. The memory 520 may also have stored therein a bluetooth address for uniquely identifying the wireless keyboard 50. In addition, the memory 520 may also store connection data of electronic devices that have been successfully paired with the wireless keyboard 50 before. For example, the connection data may be a bluetooth address of an electronic device that has successfully paired with the wireless keyboard 50. Based on the connection data, wireless keyboard 50 is able to automatically pair with the electronic device without having to configure a connection therewith, such as for legitimacy verification and the like. The bluetooth address may be a Media Access Control (MAC) address.
The processor 510 may be configured to execute the application code and invoke the relevant modules to implement the functions of the wireless keyboard 50100 in the embodiment of the present application. For example, a wired charging function, a reverse wireless charging function, a wireless communication function, etc. of the wireless keyboard 50 are implemented. The processor 510 may include one or more processing units, and the various processing units may be stand-alone devices or may be integrated into one or more of the processors 510. The processor 510 may be specifically an integrated control chip, or may be composed of a circuit including various active and/or passive components, and the circuit is configured to perform the functions described in the embodiments of the present application and pertaining to the processor 510. Wherein the processor of the wireless keyboard 50 may be a microprocessor.
The wireless communication module 570 may be configured to support data exchange between the wireless keyboard 50 and other electronic devices, including Bluetooth (BT), Global Navigation Satellite System (GNSS), Wireless Local Area Network (WLAN) (such as wireless fidelity (Wi-Fi) network), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and other wireless communications.
In some embodiments, the wireless communication module 570 may be a bluetooth chip. The wireless keyboard 50 may be a bluetooth keyboard 20. The wireless keyboard 50 can be paired with the bluetooth chip of the other electronic device and establish a wireless connection, so as to realize wireless communication between the wireless keyboard 50 and the other electronic device through the wireless connection.
In addition, the wireless communication module 570 may further include an antenna, and the wireless communication module 570 receives electromagnetic waves via the antenna, frequency-modulates and filters signals of the electromagnetic waves, and transmits the processed signals to the processor 510. The wireless communication module 570 may also receive signals to be transmitted from the processor 510, frequency modulate them, amplify them, and convert them into electromagnetic waves via the antenna to radiate them.
In some embodiments, wireless keyboard 50 may support wired charging. Specifically, the charging management module 540 may receive a charging input of the wired charger through the charging interface 530.
In other embodiments, wireless keyboard 50 may support forward wireless charging. The charging management module 540 may receive a wireless charging input through the wireless charging coil 550 of the wireless keyboard 50. Specifically, the charging management module 540 is connected to the wireless charging coil 550 through a matching circuit. The wireless charging coil 550 may be coupled to the wireless charging coil of the wireless charger to induce an alternating electromagnetic field emitted by the wireless charging coil 550 of the wireless charger to generate an alternating electrical signal. The alternating electrical signal generated by the wireless charging coil 550 is transmitted to the charging management module 540 through the matching circuit to wirelessly charge the battery 560.
The charging management module 540 may also supply power to the wireless keyboard 50 while charging the battery 560. The charge management module 540 receives an input from the battery 560 to power the processor 510, the memory 520, the external memory, and the wireless communication module 570, etc. The charge management module 540 may also be used to monitor parameters such as battery capacity, battery cycle count, battery state of health (leakage, impedance) of the battery 560, and the like. In some other embodiments, the charging management module 540 may also be disposed in the processor 510.
In other embodiments, wireless keyboard 50 may support reverse wireless charging. Specifically, the charging management module 540 may further receive an input from the charging interface 530 or the battery 560, and convert a dc signal input from the charging interface 530 or the battery 560 into an ac signal. The ac signal is transmitted to the wireless charging coil 550 through the matching circuit. The alternating current signal received by wireless charging coil 550 may generate an alternating electromagnetic field. The wireless charging coils of other mobile terminals induce the alternating electromagnetic field, and wireless charging can be carried out. That is, the wireless keyboard 50 may also be used to wirelessly charge other mobile terminals.
It should be noted that the matching circuit may be integrated in the charging management module 540, or the matching circuit may be independent from the charging management module 540, which is not limited in this embodiment of the application. Fig. 5 is a schematic diagram illustrating a hardware structure of the wireless keyboard 50, taking as an example that the matching circuit may be integrated in the charging management module 540.
The charging interface 530 may be used to provide a wired connection for charging or communication between the wireless keyboard 50 and other electronic devices (e.g., a wired charger of the wireless keyboard 50).
The touch pad 580 has a touch sensor integrated therein. The electronic device 10 may receive control commands from a user for the electronic device 10 via the touch pad 580 and the keyboard 590.
It is to be understood that the illustrated structure of the embodiment of the present application does not constitute a specific limitation to the wireless keyboard 50. It may have more or fewer components than shown in fig. 5, may combine two or more components, or may have a different configuration of components. For example, the external surface of the wireless keyboard 50 may further include keys, indicator lights (which may indicate the status of power, incoming/outgoing calls, pairing mode, etc.), a display screen (which may prompt the user for relevant information), and the like. The key may be a physical key or a touch key (used in cooperation with the touch sensor), and is used for triggering operations such as power on, power off, starting charging, stopping charging, and the like.
The software system of the electronic device 40 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, a cloud architecture, or the like. The embodiment of the present application takes an Android system with a layered architecture as an example, and exemplarily illustrates a software structure of the electronic device 40.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the Android system is divided into five layers as shown in fig. 6, which are an application layer, an application framework layer, an Android runtime (Android runtime) and system library layer, a hardware abstraction layer, and a kernel layer from top to bottom.
The application layer may include a series of application packages. As shown in fig. 6, the application package may include applications such as power saving sprites, accessory management services, and bluetooth applications.
The power-saving sprite is used for conveniently controlling some power-consuming hardware, application programs and setting items through a power-saving mode, and intelligently reminding the application programs with energy consumption larger than a threshold value, services maliciously started in a background and the like. Furthermore, the power-saving sprite can realize the management and control of the application program. For example, the power saving sprite clears the bluetooth application that is inactive at night and then restarts the bluetooth application at two points in the morning. The inactive state means that the bluetooth application is in an unconnected state.
The accessory management service can be used to manage the connection, disconnection, and connection back activities of the bluetooth application. The connection of the bluetooth application means that the bluetooth application establishes a bluetooth communication connection with the bluetooth device through the bluetooth module of the electronic device 40. The bluetooth device may be a bluetooth headset, a bluetooth mouse, a bluetooth keyboard, or the like. Disconnection of the bluetooth application means that the bluetooth application is disconnected from the bluetooth device for bluetooth communication. The connection back means that after the electronic device 40 is disconnected from the bluetooth device for bluetooth communication, the electronic device 40 starts the bluetooth radio frequency device to receive the broadcast signal of the bluetooth device when a preset condition is met, and the electronic device 40 sends a communication connection request to the bluetooth device when receiving the broadcast signal of the bluetooth device. For example, the electronic device turns on the bluetooth radio frequency device to receive the broadcast signal of the bluetooth device in a case where the white list includes the device information of the bluetooth device, and the electronic device 40 transmits the communication connection request to the bluetooth device in a case where the electronic device receives the broadcast signal of the bluetooth device.
The bluetooth application may enable a bluetooth communication connection of the electronic device 40 with a bluetooth device.
The application framework layer provides an Application Programming Interface (API) and a programming framework for the application program of the application layer. The application framework layer includes a number of predefined functions.
The application framework layer may include bluetooth system services and profiles, among others.
The bluetooth system service may implement the bluetooth service at the application framework layer. The bluetooth system service may invoke the bluetooth protocol stack through a Java Native Interface (JNI). Illustratively, the bluetooth system service includes a bluetooth manager (bluetooth manager), a bluetooth adapter (bluetooth adapter), and the like.
The android runtime includes a core library and a virtual machine. The android runtime is responsible for scheduling and managing the android system. The core library comprises two parts: one part is a function which needs to be called by java language, and the other part is a core library of android. The application layer and the application framework layer run in a virtual machine. And executing java files of the application program layer and the application program framework layer into a binary file by the virtual machine. The virtual machine is used for performing the functions of object life cycle management, stack management, thread management, safety and exception management, garbage collection and the like.
The system library may include a plurality of functional modules. For example: bluetooth protocol stack, etc.
The hardware abstraction layer may contain a plurality of library modules, which may include, for example, a hardware configuration module (hwcomposer, HWC), etc. The Android system can load corresponding library modules for the equipment hardware, and then the purpose that the application program framework layer accesses the equipment hardware is achieved.
The kernel layer is a layer between hardware and software. The kernel layer is used for driving hardware so that the hardware works. The inner core layer at least comprises a Bluetooth driver, a sensor driver and the like, and the embodiment of the application does not limit the invention.
As shown in fig. 7, a bluetooth protocol framework applicable to the embodiments of the present application includes, but is not limited to, a Host protocol stack (Host), a Host Controller Interface (HCI), and a controller (controller). The Host protocol stack defines a plurality of applications (profiles) and core protocols (protocols) in the bluetooth framework, and each profile defines a respective corresponding message format and application rule. In order to implement interconnection and interworking of different devices under different platforms, bluetooth protocols are defined for various possible and generally meaningful application scenarios, such as bluetooth audio transmission protocol (A2 DP), hands-free protocol (HFP), and the like.
The core protocol includes, but is not limited to, a bluetooth basic service protocol (SDP), a logical link control and adaptation protocol (L2 CAP), and the like. The core protocol is essential in the bluetooth protocol stack. The HCI provides a unified interface entering a link manager and a unified mode entering a baseband for an upper layer protocol, a plurality of transmission layers exist between a host core protocol stack and a controller, the transmission layers are transparent and complete a data transmission task, and a Bluetooth technology alliance (SIG) specifies four physical bus modes connected with hardware, namely four HCI transmission layers, namely USB, RS232, UART and PC cards. The controller defines a bottom hardware part, including a Radio Frequency (RF), a baseband (BB) and a Link Management (LM), and the RF layer implements filtering and transmission of a data bit stream through microwaves in an ISM band that does not require authorization at 2.4GHz, and mainly defines conditions that a bluetooth transceiver needs to meet in the frequency band for normal operation. The baseband is responsible for frequency hopping and transmission of bluetooth data and information frames. The link management is responsible for connecting, establishing and removing links and performing security control. The Link Manager (LM) layer is a link management layer protocol of the bluetooth protocol stack, and is responsible for translating an upper layer HCI command into an operation that can be accepted by a baseband, establishing an asynchronous link (ACL) and a synchronous link (SCO), and entering a bluetooth device into an operating mode in an energy-saving state. The Link Control (LC) layer is responsible for responding to upper layer LM commands (e.g., LM commands that perform the functions of establishing a transport link for packets, maintaining a link, etc.) during the transmission of a batch of packets.
The bluetooth loopback method according to the embodiment of the present application may be implemented by the communication module 450 of the electronic device 40 shown in fig. 4, and specifically may be executed by a bluetooth module or a bluetooth chip. The function of the bluetooth module or the bluetooth chip is implemented based on the bluetooth protocol framework shown in fig. 7.
The structure of the electronic device illustrated in the embodiment of the present application is not specifically limited to the electronic device 10; the structure of the wireless keyboard illustrated in the embodiment of the present application does not constitute a specific limitation to the bluetooth keyboard 20. It will be appreciated that the electronic device 10 and the bluetooth keyboard 20 may include more or fewer components than illustrated, or some components may be combined, some components may be split, or a different arrangement of components; where the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following embodiments may be implemented independently or in combination, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Before introducing the bluetooth connection method provided in the embodiment of the present application, a starting process of a bluetooth application applied in the embodiment of the present application is described, and fig. 8 is a schematic flowchart of the starting process of the bluetooth application applied in the embodiment of the present application.
S801: the power saving sprite triggers a process to create a bluetooth application.
In a possible implementation manner, the power saving daemon sends an indication message to the campaign management service, the campaign management service sends a process creation request to the incubator process when receiving the indication message, and the incubator process creates a process of the bluetooth application.
For example, when the system time of the electronic device is three points in the morning, the power saving sprite in the electronic device sends an indication message to an activity management service in the system service, and when the activity management service receives the indication message, the activity management service sends a process creation request to an incubator process, and the incubator process creates a process of the bluetooth application.
Hereinafter, the process of the bluetooth application is simply referred to as the bluetooth application for convenience of description.
S802: the bluetooth application sends a first start instruction to the bluetooth adapter.
In this embodiment of the present application, the first start instruction is used for a bluetooth adapter (bluetooth adapter) to start a bluetooth adapter service (adapter service).
In a possible implementation manner, the bluetooth application calls the bluetooth adapter through the first starting instruction to start the bluetooth adapter service.
S803: the bluetooth adapter initiates the bluetooth adapter service.
S804: the bluetooth adapter sends a second start instruction to the bluetooth protocol stack through the bluetooth adapter service. And the second starting instruction is used for starting the Bluetooth protocol stack and the chip.
S805: and sending a starting response message to the Bluetooth application in the starting process of the Bluetooth protocol stack. Wherein the start response message is used for the bluetooth application to modify the state of bluetooth.
S806: the bluetooth application modifies the state of bluetooth.
Illustratively, the bluetooth application modifies the state of the bluetooth from off to BleTurningOn before the bluetooth protocol stack is started, and in the case that the bluetooth application receives a first start response message sent by the bluetooth protocol stack, the bluetooth application modifies the state of the bluetooth from BleTurningOn to BleOn, and before the BR chip is started, the bluetooth application modifies the state of the bluetooth from BleOn to TurningOn.
It should be noted that S802 to S806 are the first stages of the bluetooth application starting process in this embodiment of the present application. S807 is the second stage of the bluetooth application starting process in the embodiment of the present application.
S807: the bluetooth application starts the bluetooth service and starts the loopback.
In the embodiment of the present application, the bluetooth service includes: a human interface device HOST (HID HOST) service, an advanced audio distribution profile service (A2 DP), and the like.
In the embodiment of the present application, the first phase of the bluetooth application starting process takes longer, so that it may be considered to add the value of the first indicator updated by the electronic device 10 to the first phase of the bluetooth application starting process in the electronic device 10. In this way, at the second stage of starting the bluetooth application, the electronic device 10 will add the device information of the bluetooth keyboard 20 to the white list only if the value of the first indicator obtained by the bluetooth protocol stack in the electronic device 10 is the target value, so that the electronic device 10 meets the condition of initiating scanning, the electronic device 10 will initiate scanning, and then the electronic device 10 sends a communication connection request to the bluetooth keyboard 20 when the electronic device 10 scans the bluetooth signal of the bluetooth keyboard 20. Thereby enabling the electronic device 10 to initiate a loopback to the bluetooth keyboard 20.
Fig. 9 is a schematic flowchart of a bluetooth connection method according to an embodiment of the present application, where the bluetooth connection method includes the following steps:
s901: the first terminal equipment and the second terminal equipment establish Bluetooth communication connection.
In this embodiment, the first terminal device and the second terminal device both include bluetooth modules. Illustratively, the first terminal device may be the electronic device 10 in fig. 1, and the second terminal device may be the bluetooth keyboard 20 in fig. 1.
In a possible implementation manner, the first terminal device is paired with the second terminal device when the first terminal device scans a bluetooth broadcast signal of the second terminal device. The first terminal device may store therein device information of the second terminal device. The device information may be a MAC address of the second terminal device. The first terminal device sends a communication connection request to the second terminal device, and the first terminal device establishes Bluetooth communication connection with the second terminal device when the first terminal device receives a response message sent from the second terminal device. The response message is used for representing that the second terminal equipment agrees to establish Bluetooth communication connection with the first terminal equipment.
In one example, as shown in fig. 1, in a case where the electronic device 10 and the bluetooth keyboard 20 are magnetically attached, the electronic device 10 adds the device information of the bluetooth keyboard 20 to a white list, in a case where the device information of the bluetooth keyboard 20 is included in the white list, the electronic device 10 initiates scanning, and in a case where the electronic device 10 scans a bluetooth broadcast signal of the bluetooth keyboard 20, the electronic device 10 is paired with the bluetooth keyboard 20. The electronic device 10 stores therein device information of the paired bluetooth keyboard 20. The electronic device 10 transmits a communication connection request to the bluetooth keyboard 20, and the electronic device 10 establishes a bluetooth communication connection with the bluetooth keyboard 20 in a case where the bluetooth keyboard 20 transmits a response message to the electronic device 10 according to the communication connection request.
S902: under the condition that the Bluetooth communication connection between the first terminal device and the second terminal device is disconnected, the first terminal device closes the Bluetooth application in the first terminal device.
In a possible implementation manner, the first terminal device disconnects the bluetooth communication connection with the second terminal device when the first terminal device does not receive the bluetooth signal from the second terminal device within a preset time period.
Based on the example in S901, as shown in fig. 2, when the electronic device 10 is covered with the bluetooth keyboard 20, the bluetooth keyboard 20 is disconnected from the bluetooth communication connection with the electronic device 10, so that the bluetooth keyboard 20 does not transmit a bluetooth signal to the electronic device 10. If the electronic device 10 does not receive a Bluetooth signal from the Bluetooth keyboard 20 within a preset time period, the electronic device 10 also disconnects Bluetooth communication with the Bluetooth keyboard 20. In the event that the electronic device 10 is in a sleep state and the bluetooth application in the electronic device 10 frequently initiates scanning, the power saving sprite in the electronic device 10 may shut down the bluetooth application in the electronic device 10.
S903: the first terminal device starts a bluetooth application.
In one possible implementation, a system service in the first terminal device triggers the first terminal device to start the bluetooth application at a preset time.
Based on the example in S902, in a case where the power saving sprite in the electronic apparatus 10 turns off the bluetooth application in the electronic apparatus 10, the power saving sprite triggers the electronic apparatus 10 to start the bluetooth application at 3 o' clock in the early morning.
In another possible implementation manner, the first terminal device receives a user operation and starts a bluetooth application in response to the user operation.
Illustratively, the electronic device 10 receives a user's decapping operation, and the electronic device 10 starts a bluetooth application in response to the decapping operation.
S904: in a first stage of a Bluetooth application starting process, a first terminal device detects a magnetic adsorption state of a second terminal device and the first terminal device.
In an embodiment of the present application, the first terminal device includes a magnetic sensor for detecting a magnetic attraction state of the first terminal device and the second terminal device. Illustratively, the first terminal device includes a hall sensor.
In a possible implementation manner, in a first stage of a bluetooth application starting process, the bluetooth application monitors a magnetic sensor in the first terminal device, and the magnetic sensor sends a state notification to the bluetooth application when a magnetic adsorption state of the magnetic sensor changes between the first terminal device and the second terminal device, where the state notification includes the magnetic adsorption state of the first terminal device and the second terminal device.
Illustratively, during the process of the bluetooth application starting the bluetooth adapter service, the bluetooth application starts the state listening of the magnetic sensor. The magnetic sensor is used for detecting the change of the magnetic adsorption state of the electronic device 10 and the bluetooth keyboard 20.
S905: the first terminal device judges whether the magnetic adsorption state of the second terminal device and the first terminal device is magnetic adsorption, if yes, S906 is executed, and if not, the value of the first indicator is not updated.
In a possible implementation manner, the bluetooth application in the first terminal device determines whether the magnetic adsorption state of the first terminal device and the second terminal device in the state notification is magnetic adsorption.
For example, in the process of starting the bluetooth adapter service by the bluetooth application, the bluetooth application in the electronic device 10 determines whether the magnetic adsorption state of the electronic device 10 and the bluetooth keyboard 20 in the state notification is magnetic adsorption. The state notification is sent by the magnetic sensor to the bluetooth application.
S906: the first terminal device updates the value of the first indicator in the bluetooth application to a target value.
In this embodiment of the application, the first indicator is used to indicate a magnetic adsorption state between the second terminal device and the first terminal device. The target value is used for representing that the second terminal equipment and the first terminal equipment are magnetically adsorbed.
Illustratively, after the process of the bluetooth application is created, the initial value of the first indicator is used to characterize that the bluetooth keyboard 20 is not magnetically attached to the electronic device 10. During the process of the bluetooth application starting the bluetooth adapter service, the electronic device 10 updates the value of the first indicator in the bluetooth application from the initial value to the target value.
The embodiment of the application utilizes the characteristic of slow starting of the Bluetooth application, and needs about 2.5s in the first stage of the starting process of the Bluetooth application, so that the value of the first indicator is updated in the first stage of the starting process of the Bluetooth application. Thus, the value of the first indicator acquired by the Bluetooth protocol stack in the second stage of the Bluetooth application starting process is ensured to be the updated value.
S907: in a second stage of the bluetooth application starting process, the first terminal device determines whether the value of the first indicator is a target value, if so, S908 is executed, and if not, the device information of the second terminal device is not added to the white list.
In a possible implementation manner, at a second stage of the bluetooth application starting process, a bluetooth protocol stack is run in the first terminal device, the bluetooth protocol stack acquires the value of the first indicator, and when the bluetooth protocol stack determines that the value of the first indicator is the target value, the bluetooth protocol stack reacquires the value of the first indicator after a preset time interval, and the bluetooth protocol stack determines whether the reacquired value of the first indicator is the target value.
For example, when the bluetooth application is in the turning on state or the bluetooth application is in the on state, the electronic device 10 runs a bluetooth protocol stack, the bluetooth protocol stack acquires the value of the first indicator, and when the bluetooth protocol stack determines that the value of the first indicator is the target value, the bluetooth protocol stack reacquires the value of the first indicator after 200ms, and the bluetooth protocol stack determines whether the reacquired value of the first indicator is the target value.
S908: and the first terminal equipment adds the equipment information of the second terminal equipment into a white list.
Illustratively, the electronic device 10 whitelists the device information of the bluetooth keyboard 20.
S909: the first terminal equipment initiates a communication connection request to the second terminal equipment.
In the embodiment of the application, the communication connection request is used for the first terminal device and the second terminal device to establish the bluetooth communication connection.
In a possible implementation manner, the first terminal device initiates scanning when the white list is not empty, and initiates a communication connection request to the second terminal device when the first terminal device scans a broadcast message from the second terminal device. The initiating scanning is realized by a Bluetooth module of the first terminal device, a host protocol stack in the Bluetooth module sends an instruction to a Bluetooth radio frequency device controller through a host control interface, and the Bluetooth radio frequency device controller executes the instruction to turn on a Bluetooth receiver to monitor the broadcast message.
In another possible implementation manner, the first terminal device initiates scanning when the white list includes device information of the second terminal device, and initiates a communication connection request to the second terminal device when the first terminal device scans a broadcast message from the second terminal device.
Illustratively, the electronic device 10 initiates the scan if the device information of the bluetooth keyboard 20 is not included in the whitelist of the electronic device 10, and the electronic device 10 initiates the communication connection request to the bluetooth keyboard 20 if the electronic device 10 scans for a broadcast message from the bluetooth keyboard 20.
It is understood that the electronic device 10 initiates the scan by sending an instruction from the host protocol stack in the bluetooth protocol stack of the tablet computer to the bluetooth rf device controller through the host control interface, where the instruction is used to turn on the bluetooth receiver to listen for the broadcast message.
In this embodiment of the application, if the first terminal device detects that the first terminal device and the second terminal device are magnetically adsorbed at a first stage of a bluetooth application starting process, the value of the first indicator is updated to a target value. In the second stage of starting the bluetooth application, the value of the first indicator acquired by the bluetooth protocol stack in the first terminal device is a target value, and the first terminal device will add the device information of the second terminal device into the white list, so that the first terminal device meets the condition of initiating scanning, the first terminal device will initiate scanning, and then the first terminal device sends a communication connection request to the second terminal device when the first terminal device scans the bluetooth signal of the second terminal device. Therefore, the first terminal equipment initiates the connection back to the second terminal equipment.
The scheme provided by the embodiment of the application is mainly introduced from the perspective of a method. To implement the above functions, it includes hardware structures and/or software modules for performing the respective functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the exemplary method steps described in connection with the embodiments disclosed herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device implementing the bluetooth loopback method may be divided into functional modules according to the above method examples, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. Illustratively, the functions of the target application, drawing interface, and display engine are integrated in the display control unit. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
As shown in fig. 10, the present embodiment provides a terminal device, and the terminal device 100 shown in fig. 10 includes a processing module 1001 and a communication module 1002. The processing module 1001 is used for starting a bluetooth application; in a first stage of a Bluetooth application starting process, if first terminal equipment detects that second terminal equipment and first terminal equipment are magnetically adsorbed, the first terminal equipment updates a value of a first indicator in the Bluetooth application to a target value; the first indicator is used for indicating the magnetic adsorption state of the second terminal equipment and the first terminal equipment; the communication module 1002 is configured to initiate a communication connection request to the second terminal device when the first terminal device determines that the value of the first indicator is the target value at a second stage of the bluetooth application starting process; the second phase is later than the first phase. For example, with reference to FIG. 8, the processing module 1001 may be configured to perform S800-S807. In conjunction with fig. 9, the communication module 1002 may be configured to perform the transmitting steps in S901 and S909, and the processing module 1001 may be configured to perform S902 to S908.
Optionally, the first terminal device comprises a magnetic sensor; the magnetic sensor is used for detecting the magnetic adsorption state of the second terminal device and the first terminal device; if the first terminal device detects that the second terminal device and the first terminal device are magnetically adsorbed, the processing module 1001 is configured to monitor the magnetic sensor at a first stage of a bluetooth application starting process; the magnetic sensor detects the magnetic adsorption state of the second terminal device and the first terminal device; the magnetic sensor sends a state notification to the Bluetooth application; the status notification includes a magnetic attraction status; in the case that the status notification received by the bluetooth application is used to indicate that the second terminal device and the first terminal device have magnetic attraction, the processing module 1001 is configured to update the value of the first indicator in the bluetooth application to a target value.
Optionally, the first stage of the bluetooth application starting process includes: the process of starting the adapter service by the Bluetooth application; the processing module 1001 is specifically configured to: in the process of starting the adapter service by the Bluetooth application, the value of the first indicator in the Bluetooth application is updated to a target value.
Optionally, at a second stage of the bluetooth application starting process, a bluetooth protocol stack is further run in the first terminal device, and the bluetooth protocol stack is used for acquiring the value of the first indicator; under the condition that the value of the first indicator is determined to be the target value, adding the device information of the second terminal device into a white list; the communication module 1002 is specifically configured to: and initiating a communication connection request to the second terminal equipment according to the white name. In a possible implementation, the second phase of the bluetooth application launching procedure starts with the bluetooth protocol stack retrieving the value of the first indicator.
Optionally, the communication module 1002 is specifically configured to: initiating scanning under the condition that the white list is not empty; and in the case that the first terminal equipment scans the broadcast message from the second terminal equipment, initiating a communication connection request to the second terminal equipment.
Optionally, the communication module 1002 is specifically configured to: initiating scanning under the condition that the white list comprises the equipment information of the second terminal equipment; and initiating a communication connection request to the second terminal equipment under the condition that the broadcast message from the second terminal equipment is scanned.
In one example, in conjunction with fig. 4, the functions of the processing module 1001 may be implemented by the processor 410 in the terminal device 40 shown in fig. 4 calling computer programs or instructions in the memory 480, and the communication module 1002 may be implemented by the wireless interface 460.
Fig. 11 is a schematic structural diagram of a chip according to an embodiment of the present application. Chip 110 includes one or more (including two) processors 1101, a communication line 1102, and a communication interface 1103, and optionally, chip 110 further includes a memory 1104.
In some embodiments, memory 1104 stores the following elements: an executable module or a data structure, or a subset thereof, or an expanded set thereof.
The method described in the embodiments of the present application may be applied to the processor 1101 or implemented by the processor 1101. The processor 1101 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of hardware, integrated logic circuits, or software in the processor 1101. The processor 1101 may be a general purpose processor (e.g., a microprocessor or a conventional processor), a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate, transistor logic device or discrete hardware component, and the processor 1101 may implement or execute the methods, steps and logic blocks disclosed in the embodiments of the present application.
The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium mature in the field, such as a random access memory, a read only memory, a programmable read only memory, or a charged erasable programmable memory (EEPROM). The storage medium is located in the memory 1104, and the processor 1101 reads the information in the memory 1104 and performs the steps of the above method in combination with the hardware thereof.
Communication between the processor 1101, memory 1104, and communication interface 1103 can be via communication lines 1102.
In the above embodiments, the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product. The computer program product may be written in the memory in advance, or may be downloaded in the form of software and installed in the memory.
Embodiments of the present application also provide a computer program product comprising one or more computer instructions. The procedures or functions according to the embodiments of the present application are all or partially generated when the computer program instructions are loaded and executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. Computer instructions may be stored in, or transmitted from, a computer-readable storage medium to another computer-readable storage medium, e.g., from one website, computer, server, or data center to another website, computer, server, or data center via wire (e.g., coaxial cable, fiber optics, Digital Subscriber Line (DSL), or wireless (e.g., infrared, wireless, microwave, etc.), the computer-readable storage medium may be any available medium that a computer can store or a data storage device including one or more available media integrated servers, data centers, etc., the available media may include, for example, magnetic media (e.g., floppy disks, hard disks, or magnetic tape), optical media (e.g., digital versatile disks, DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), etc.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the processor calls a computer program in the memory to implement a method executed by a mobile phone or a method executed by a vehicle-mounted terminal in any of the above bluetooth loopback methods.
The embodiment of the application also provides a computer readable storage medium. The methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may include any medium that can communicate a computer program from one place to another. A storage medium may be any target medium that can be accessed by a computer.
As one possible design, the computer-readable medium may include a compact disk read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disk storage; the computer readable medium may include a disk memory or other disk storage device. Also, any connecting line may also be properly termed a computer-readable medium. For example, if the software is transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.
Combinations of the above should also be included within the scope of computer-readable media. The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A bluetooth backhaul method, comprising:
the first terminal equipment starts a Bluetooth application;
in a first stage of the bluetooth application starting process, if the first terminal device detects that a second terminal device and the first terminal device are magnetically adsorbed, the first terminal device updates a value of a first indicator in the bluetooth application to a target value; the first indicator is used for indicating the magnetic adsorption state of the second terminal device and the first terminal device;
in a second stage of the bluetooth application starting process, the first terminal device initiates a communication connection request to the second terminal device when the first terminal device determines that the value of the first indicator is the target value; the second phase is later than the first phase.
2. The bluetooth loopback method of claim 1, wherein the first terminal device comprises a magnetic sensor; the magnetic sensor is used for detecting the magnetic adsorption state of the second terminal device and the first terminal device; if the first terminal device detects that the second terminal device and the first terminal device are magnetically adsorbed, the updating, by the first terminal device, the value of the first indicator in the bluetooth application to a target value includes:
in a first phase of the bluetooth application startup process, the bluetooth application monitors the magnetic sensor;
the magnetic sensor detects the magnetic adsorption state of the second terminal device and the first terminal device;
the magnetic sensor sends a status notification to the bluetooth application; the status notification includes the magnetic attraction status;
and under the condition that the state notification received by the Bluetooth application is used for representing that the second terminal equipment and the first terminal equipment are magnetically adsorbed, the first terminal equipment updates the value of the first indicator in the Bluetooth application to the target value.
3. The bluetooth loopback method as recited in claim 2, wherein the first phase of the bluetooth application initiation procedure comprises: the process that the bluetooth application starts the adapter service, and the first terminal device updates the value of the first indicator in the bluetooth application to the target value includes:
and in the process of starting the adapter service by the Bluetooth application, the first terminal equipment updates the value of the first indicator in the Bluetooth application to the target value.
4. The bluetooth loopback method according to any of claims 1-3, characterized in that in a second phase of the bluetooth application start-up procedure, a bluetooth protocol stack is further run in the first terminal device, the method further comprising:
the Bluetooth protocol stack acquires the value of the first indicator;
the Bluetooth protocol stack adds the device information of the second terminal device into a white list under the condition that the Bluetooth protocol stack determines that the value of the first indicator is the target value;
the first terminal device initiates a communication connection request to the second terminal device, including:
and the first terminal equipment initiates a communication connection request to the second terminal equipment according to the white list.
5. The bluetooth loopback method as recited in claim 4, wherein a second phase of the bluetooth application initiation procedure begins with the bluetooth protocol stack obtaining the value of the first indicator.
6. The bluetooth loopback method of claim 5, wherein the initiating, by the first terminal device, a communication connection request to the second terminal device according to the white list comprises:
the first terminal equipment initiates scanning under the condition that the white list is not empty;
and under the condition that the first terminal equipment scans the broadcast message from the second terminal equipment, the first terminal equipment initiates a communication connection request to the second terminal equipment.
7. The bluetooth loopback method of claim 4, wherein the initiating, by the first terminal device, a communication connection request to the second terminal device according to the white list comprises:
the first terminal equipment initiates scanning under the condition that the white list is not empty;
and under the condition that the first terminal equipment scans the broadcast message from the second terminal equipment, the first terminal equipment initiates a communication connection request to the second terminal equipment.
8. The bluetooth loopback method of claim 5, wherein the initiating, by the first terminal device, a communication connection request to the second terminal device according to the white list comprises:
the first terminal device initiates scanning under the condition that the white list comprises the device information of the second terminal device;
and under the condition that the first terminal equipment scans the broadcast message from the second terminal equipment, the first terminal equipment initiates a communication connection request to the second terminal equipment.
9. The bluetooth loopback method of claim 4, wherein the initiating, by the first terminal device, a communication connection request to the second terminal device according to the white list comprises:
the first terminal device initiates scanning under the condition that the white list comprises the device information of the second terminal device;
and under the condition that the first terminal equipment scans the broadcast message from the second terminal equipment, the first terminal equipment initiates a communication connection request to the second terminal equipment.
10. A terminal device, characterized in that the terminal device comprises a processor and a memory, the processor being configured to invoke a computer program in the memory to perform the steps performed by the first terminal device in the bluetooth fallback method according to any of the claims 1-9.
11. A computer readable storage medium storing computer instructions which, when run on a terminal device, cause the terminal device to perform the steps performed by the first terminal device in the bluetooth fallback method according to any one of claims 1 to 9.
12. A chip, characterized in that the chip comprises at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used for running a computer program or instructions to execute the method executed by the first terminal device in the bluetooth loopback method according to any one of claims 1 to 9.
CN202210116901.1A 2022-02-08 2022-02-08 Bluetooth connection method, device and storage medium Active CN114143765B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210116901.1A CN114143765B (en) 2022-02-08 2022-02-08 Bluetooth connection method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210116901.1A CN114143765B (en) 2022-02-08 2022-02-08 Bluetooth connection method, device and storage medium

Publications (2)

Publication Number Publication Date
CN114143765A true CN114143765A (en) 2022-03-04
CN114143765B CN114143765B (en) 2022-07-08

Family

ID=80381955

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210116901.1A Active CN114143765B (en) 2022-02-08 2022-02-08 Bluetooth connection method, device and storage medium

Country Status (1)

Country Link
CN (1) CN114143765B (en)

Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103316472A (en) * 2013-05-17 2013-09-25 南京睿悦信息技术有限公司 Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system
CN104242998A (en) * 2014-09-23 2014-12-24 广东欧珀移动通信有限公司 Method and system for fast sharing various types of information through magnetic sensor
CN205193736U (en) * 2015-11-11 2016-04-27 周斌 Multi -functional bluetooth keyboard
US20160205497A1 (en) * 2015-01-09 2016-07-14 Airoha Technology Corp. Magnetic controlled bluetooth device
US20160269456A1 (en) * 2015-03-09 2016-09-15 Autoconnect Holdings Llc Vehicle and Occupant Application Integration
CN106535096A (en) * 2016-11-07 2017-03-22 广东思派康电子科技有限公司 Bluetooth rapid reconnection method
US20170241801A1 (en) * 2016-02-22 2017-08-24 Stephen U. Fedtke Method and system for operating a mobile device using a magnetic sensor
CN109951831A (en) * 2019-02-26 2019-06-28 广东小天才科技有限公司 Bluetooth connecting method, Baffle Box of Bluetooth, user terminal, system and storage medium
CN110428643A (en) * 2019-08-13 2019-11-08 四川长虹电器股份有限公司 A kind of bluetooth berth lock based on geomagnetic sensor
CN110901655A (en) * 2018-09-14 2020-03-24 华为技术有限公司 Automobile main driving position identification method and terminal equipment
CN110944315A (en) * 2019-12-14 2020-03-31 华为技术有限公司 Data processing method, terminal device, Bluetooth device and storage medium
US20200153955A1 (en) * 2016-12-26 2020-05-14 Huawei Technologies Co., Ltd. Device, Method, and Graphical User Interface for Starting Application
CN111225346A (en) * 2019-11-28 2020-06-02 深圳传音控股股份有限公司 Connection switching method of wireless earphone, wireless earphone and storage medium
CN112019654A (en) * 2019-05-28 2020-12-01 Oppo广东移动通信有限公司 Equipment set and terminal equipment thereof
CN112272417A (en) * 2020-10-23 2021-01-26 海信视像科技股份有限公司 double-Bluetooth sound box reconnection method and display device
CN112789934A (en) * 2018-12-25 2021-05-11 华为技术有限公司 Bluetooth service query method and electronic equipment
CN112887866A (en) * 2021-01-28 2021-06-01 吉安集睿科技有限公司 Prevent adsorption type bluetooth headset of maloperation
CN113238649A (en) * 2021-03-15 2021-08-10 荣耀终端有限公司 Control method and device based on touch control pen
CN113490158A (en) * 2021-07-07 2021-10-08 荣耀终端有限公司 Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
CN214411031U (en) * 2021-02-03 2021-10-15 梁伟涵 Switch panel structure controlled by magnetic adsorption
CN113794797A (en) * 2021-06-16 2021-12-14 荣耀终端有限公司 Terminal equipment and method for picking up sound through Bluetooth peripheral
CN113923641A (en) * 2021-12-07 2022-01-11 荣耀终端有限公司 Connection method and device

Patent Citations (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103316472A (en) * 2013-05-17 2013-09-25 南京睿悦信息技术有限公司 Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system
CN104242998A (en) * 2014-09-23 2014-12-24 广东欧珀移动通信有限公司 Method and system for fast sharing various types of information through magnetic sensor
US20160205497A1 (en) * 2015-01-09 2016-07-14 Airoha Technology Corp. Magnetic controlled bluetooth device
US20160269456A1 (en) * 2015-03-09 2016-09-15 Autoconnect Holdings Llc Vehicle and Occupant Application Integration
CN205193736U (en) * 2015-11-11 2016-04-27 周斌 Multi -functional bluetooth keyboard
US20170241801A1 (en) * 2016-02-22 2017-08-24 Stephen U. Fedtke Method and system for operating a mobile device using a magnetic sensor
CN106535096A (en) * 2016-11-07 2017-03-22 广东思派康电子科技有限公司 Bluetooth rapid reconnection method
US20200153955A1 (en) * 2016-12-26 2020-05-14 Huawei Technologies Co., Ltd. Device, Method, and Graphical User Interface for Starting Application
CN110901655A (en) * 2018-09-14 2020-03-24 华为技术有限公司 Automobile main driving position identification method and terminal equipment
CN112789934A (en) * 2018-12-25 2021-05-11 华为技术有限公司 Bluetooth service query method and electronic equipment
CN109951831A (en) * 2019-02-26 2019-06-28 广东小天才科技有限公司 Bluetooth connecting method, Baffle Box of Bluetooth, user terminal, system and storage medium
CN112019654A (en) * 2019-05-28 2020-12-01 Oppo广东移动通信有限公司 Equipment set and terminal equipment thereof
CN110428643A (en) * 2019-08-13 2019-11-08 四川长虹电器股份有限公司 A kind of bluetooth berth lock based on geomagnetic sensor
CN111225346A (en) * 2019-11-28 2020-06-02 深圳传音控股股份有限公司 Connection switching method of wireless earphone, wireless earphone and storage medium
CN110944315A (en) * 2019-12-14 2020-03-31 华为技术有限公司 Data processing method, terminal device, Bluetooth device and storage medium
CN112272417A (en) * 2020-10-23 2021-01-26 海信视像科技股份有限公司 double-Bluetooth sound box reconnection method and display device
CN112887866A (en) * 2021-01-28 2021-06-01 吉安集睿科技有限公司 Prevent adsorption type bluetooth headset of maloperation
CN214411031U (en) * 2021-02-03 2021-10-15 梁伟涵 Switch panel structure controlled by magnetic adsorption
CN113238649A (en) * 2021-03-15 2021-08-10 荣耀终端有限公司 Control method and device based on touch control pen
CN113794797A (en) * 2021-06-16 2021-12-14 荣耀终端有限公司 Terminal equipment and method for picking up sound through Bluetooth peripheral
CN113490158A (en) * 2021-07-07 2021-10-08 荣耀终端有限公司 Bluetooth device pairing connection method, electronic device, Bluetooth device and terminal system
CN113923641A (en) * 2021-12-07 2022-01-11 荣耀终端有限公司 Connection method and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
林中华等: "基于蓝牙技术的智能门禁系统设计", 《科学中国人》 *
茅昕怡等: "基于蓝牙通信的智能拔罐器的设计与实现", 《北京生物医学工程》 *

Also Published As

Publication number Publication date
CN114143765B (en) 2022-07-08

Similar Documents

Publication Publication Date Title
JP6017737B1 (en) Low power near field communication authentication
US11989365B2 (en) Electronic device including electronic pen and method of controlling communication connection between electronic device and electronic pen
CN106293308B (en) Screen unlocking method and device
KR102107132B1 (en) Access point connection method of electronic apparatus and electronic appparatus thereof
US11184754B2 (en) Data sharing method and terminal
KR20200140555A (en) Electronic device for switching between a dual standby mode and a single standby mode and method for the same
CN110060675B (en) Method and equipment for waking up sound box
CN108605373B (en) Method and electronic device for providing network sharing service
KR20190024169A (en) Method for probiding smart key service and electronic device thereof
CN108090345B (en) Linux system external command execution method and device
KR20160084777A (en) Supporting method for register setup and electronic device supporting the same
KR102483836B1 (en) Electronic apparatus and operating method thereof
CN114428546B (en) Background application cleaning method and device, storage medium and terminal equipment
CN111132047A (en) Network connection method and device
CN111399874A (en) System upgrading method and device, storage medium and intelligent wearable device
KR20180121178A (en) Method for wireless connection and electronic device thereof
CN112085872A (en) NFC-based unlocking method, related device and system
EP3585127B1 (en) Wireless communication-based connection method and terminal
WO2015051742A1 (en) Method and device for automatically implementing wireless connection between devices
CN114143765B (en) Bluetooth connection method, device and storage medium
CN114143906B (en) Electronic equipment connection method and electronic equipment
WO2023273856A1 (en) Wake-up method and system
CN107741894B (en) application process monitoring method and device
CN113852962A (en) Network connection control method, device, storage medium and software program product
WO2022021534A1 (en) Data reading method, storage medium, and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant