Bluetooth scanning method and electronic device

The Bluetooth Agent module controls Bluetooth chip scanning and wakes up the application module, solving the problem of real-time user interaction and high battery consumption of Bluetooth functions, and achieving convenient device service execution and low-power operation.

JP7628586B2Active Publication Date: 2025-02-10HUAWEI TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2023125505
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2019-04-16
Filing Date
2023-08-01
Publication Date
2025-02-10
Estimated Expiration
2040-04-13

AI Technical Summary

Technical Problem

The existing Bluetooth functionality requires real-time user interaction in electronic devices, resulting in inconvenience, while continuously monitoring device identifiers will increase battery consumption and memory usage.

Method used

The Bluetooth Agent module is used to control the Bluetooth chip scanning device identifier, and wake up the application module after identification to establish channels, reduce the continuous operation of applications and processors, and manage the scanning and channel establishment process through the Bluetooth Agent module to reduce battery consumption and memory usage.

Benefits of technology

It realizes convenient service execution without real-time interaction of users, reduces battery consumption and memory usage of electronic devices, and improves the convenience and efficiency of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007628586000001
    Figure 0007628586000001
  • Figure 0007628586000002
    Figure 0007628586000002
  • Figure 0007628586000003
    Figure 0007628586000003
Patent Text Reader

Abstract

To provide a Bluetooth(R) scanning method that improves the convenience of service execution and reduces power consumption and memory usage of electronic devices.SOLUTION: A Bluetooth scanning method is applied to an electronic device. The electronic device includes a secure element (SE) including a Bluetooth agent module and an applet. The method includes receiving a first device identifier transmitted by a first device, determining that the first device is registered with the electronic device on the basis of the first device identifier, establishing a channel to the first device on the basis of the first device identifier by the Bluetooth agent module, receiving a ciphertext verification instruction from the first device through the channel, obtaining a first ciphertext from an SE applet, and transmitting the first ciphertext to the first device, and when the first ciphertext verification is successful, the first device executes the corresponding service.SELECTED DRAWING: Figure 16
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 201910305349.9, entitled “Bluetooth Scanning Method and Electronic Device,” filed with the State Intellectual Property Office on April 16, 2019, the entirety of which is incorporated herein by reference.

[0002] The present application relates to the field of electronic technology, and in particular to a Bluetooth scanning method and electronic device. [Background technology]

[0003] With the continuous development of Bluetooth functions on electronic devices, the Bluetooth functions on electronic devices are more widely applied in users' lives. The Bluetooth functions on electronic devices can be used in scenarios such as assisting another device in unlocking a vehicle and performing face payment, so as to bring convenience to users.

[0004] For example, the Bluetooth function is used to unlock a vehicle. A user can initiate an application corresponding to a vehicle key on the electronic device and a Bluetooth scan function on the electronic device. After the processor of the electronic device obtains a device identifier corresponding to the vehicle through scanning and by using the Bluetooth chip, the vehicle can perform security verification against the application corresponding to the vehicle key. If the verification is successful, the vehicle lock is unlocked.

[0005] The above-mentioned process of unlocking a vehicle using Bluetooth function requires real-time user operation, which reduces the convenience. In addition, if the processor of the electronic device keeps monitoring the scanning result of the vehicle's device identifier for a long time, the power consumption and memory usage of the electronic device will increase significantly. Summary of the Invention [Means for solving the problem]

[0006] The present application discloses a Bluetooth scanning method and an electronic device for improving the convenience of service execution and reducing the power consumption and memory usage of the electronic device.

[0007] According to a first aspect, an embodiment of the present application provides a Bluetooth scanning method, the method being applied to an electronic device. The electronic device includes a Bluetooth chip and a Bluetooth agent module, the Bluetooth chip being connected to the Bluetooth agent module. The method includes the Bluetooth agent module indicating a Bluetooth chip to scan for a device identifier. If a first device identifier of the device identifiers is obtained through scanning, the Bluetooth chip notifies the Bluetooth agent module. The Bluetooth agent module establishes a channel to the first device based on the first device identifier or notifies an application corresponding to the first device identifier. The Bluetooth agent module indicates a Bluetooth chip to scan for a device identifier.

[0008] The first device identifier is obtained through scanning, which may mean that the first device identifier is stored in the Bluetooth chip in the application registration process. The first device is an external Bluetooth device. The first device identifier is the first device identification information in this embodiment of the present application. For example, the first device identifier is the UUID of the external Bluetooth device.

[0009] When the electronic device is in a sleep state (e.g., the electronic device is in a screen-off sleep state), if the Bluetooth chip detects that the received device identifier is not included in the device identifier list pre-stored in the Bluetooth chip, the Bluetooth agent module can be in a sleep state. If the Bluetooth chip detects that the received first device identifier is included in the device identifier list pre-stored in the Bluetooth chip, the Bluetooth chip wakes up the Bluetooth agent module and transmits the first device identifier to the Bluetooth agent module. In the above Bluetooth scanning method, the Bluetooth agent module is started only when the Bluetooth chip acquires the first device identifier among the device identifiers through scanning. In order to reduce the power consumption and memory usage of the electronic device, the Bluetooth agent module and the application processor of the electronic device do not need to be in an operating state all the time.

[0010] In the above-mentioned Bluetooth scanning method, the Bluetooth agent module can execute the application, and the user does not need to execute the application manually. In this way, the execution process is imperceptible to the user, and the convenience of the service execution process is improved. Although the Bluetooth agent module can execute the application, the application does not need to be executed all the time on the electronic device, and the application can be stopped from executing by the application processor to further reduce the power consumption and memory usage of the electronic device.

[0011] In the above-mentioned Bluetooth scanning method, the Bluetooth agent module is connected to the SE and can directly establish a Bluetooth channel between the Bluetooth chip and the Bluetooth device without running an application, so as to further reduce the power consumption and memory usage of the electronic device. The Bluetooth agent module further provides a Bluetooth scanning management platform for the Bluetooth-related service execution process.

[0012] In this embodiment of the present application, at the stage of registering the application on the electronic device, the Bluetooth agent module indicates a device identifier that needs to be scanned by the Bluetooth chip.

[0013] In one possible implementation, after the Bluetooth agent module establishes a channel to the first device based on the first device identifier, the method further includes the Bluetooth agent module obtaining service information corresponding to the first device identifier and transmitting the service information to the first device over the channel.

[0014] Optionally, the Bluetooth agent module is further connected to a secure storage area (e.g., a SE or a TEE). The Bluetooth agent module obtaining service information corresponding to the first device identifier and transmitting the service information over the channel to the first device includes the Bluetooth agent module obtaining service information corresponding to the first device identifier from the secure storage area and transmitting the service information over the channel to the first device.

[0015] Optionally, the service information is verification information, which is used by the first device to perform a verification based on the locally stored information and the verification information, and if the verification is successful, the corresponding service is executed.

[0016] In one possible implementation, the service information is verification result information, and the verification result information is sent to a server, so that the server executes a corresponding service based on the verification result information.

[0017] The first device may establish a communication connection to the server. For example, the service information is a fingerprint comparison result from the SE of the electronic device. The fingerprint verification is performed locally, and then the verification result is sent to the server. This can improve the security of the user identity information (e.g., fingerprint) and reduce the risk of information leakage.

[0018] In one possible implementation, the service information is information related to validating an electronic vehicle key, and performing a corresponding service refers to unlocking a corresponding vehicle lock.

[0019] In the vehicle unlocking scenario described above, the Bluetooth agent module is initiated only after the Bluetooth chip detects that the device (Bluetooth device) from which the Bluetooth broadcast signal originates is registered with the electronic device. To reduce the power consumption and memory usage of the electronic device, the Bluetooth agent module and application processor of the electronic device do not need to be in an operational state all the time.

[0020] In the above service execution method process, a Bluetooth channel is directly established between the SE and the Bluetooth device without running an application, so as to reduce the power consumption and memory usage of the electronic device.

[0021] In the above-mentioned service execution method process, the user does not need to execute the application manually, thus the service execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0022] In the above-mentioned service execution method process, the application does not need to be kept in a running state, so as to further reduce the power consumption and memory usage of the electronic device. In this embodiment of the present application, the Bluetooth agent module further provides a management platform for establishing a Bluetooth channel for the Bluetooth-related service execution process.

[0023] In one possible implementation, after the Bluetooth agent module establishes a channel to the first device based on the first device identifier, the method further includes the Bluetooth agent module notifying an application corresponding to the first device identifier. The application obtains service information corresponding to the first device identifier. The application sends the service information corresponding to the first device identifier to the Bluetooth agent module. The Bluetooth agent module sends the service information corresponding to the first device identifier to the first device over the channel.

[0024] The application is further connected to a secure storage area (e.g., a SE or a TEE). The application obtaining service information corresponding to the first device identifier includes the application obtaining the service information corresponding to the first device identifier from the secure storage area.

[0025] In one possible implementation, after the Bluetooth agent module notifies the application corresponding to the first device identifier based on the first device identifier, the method further includes the Bluetooth agent module sending service information from the first device to the application, such that the application displays the service information to a user.

[0026] The first device may be a weight scale, and the service information may be weight information.

[0027] The application on the electronic device can establish a channel to the weight scale using a Bluetooth broadcast signal, and the weight scale can upload the detected weight data to the application in real time. In the above process of uploading the weight scale data, the weight scale data can be uploaded silently without the user manually operating the application on the electronic device.

[0028] In the above process of the weight scale uploading weight information to the application, in the process of establishing a Bluetooth connection between the Bluetooth device and the Bluetooth chip, the Bluetooth agent module is started only after the Bluetooth chip detects that the device (weight scale) that sent the Bluetooth broadcast signal is registered in the electronic device. In order to reduce the power consumption and memory usage of the electronic device, the Bluetooth agent module and the application processor of the electronic device do not need to be in an active state all the time.

[0029] In the above process in which the weight scale uploads weight information to the application, the user does not need to manually execute the application, thus making the execution process imperceptible to the user and improving the convenience of the service execution process.

[0030] In the above process in which the weight scale uploads weight information to the application, the application does not need to be kept in a running state, so as to further reduce the power consumption and memory usage of the electronic device. In this embodiment of the present application, the Bluetooth agent module further provides a management platform for the Bluetooth-related service execution process.

[0031] In one possible implementation, the Bluetooth agent module notifying the application corresponding to the first device identifier based on the first device identifier includes the Bluetooth agent module executing the application corresponding to the first device identifier based on the first device identifier and sending the first device identifier to the application. After the Bluetooth agent module notifies the application corresponding to the first device identifier based on the first device identifier, the method further includes the application obtaining service information from the first device and sending the service information and the user account information to the server, such that the server performs verification based on the service information and the user account information sent by the application and the user information obtained by the first device, and performs the service transaction if the verification is successful.

[0032] In one possible implementation, the user information is a facial image, and performing a service transaction refers to performing a payment transaction using the user account information as a transaction account.

[0033] Optionally, if the application is already in a running state, there is no need to run the application.

[0034] In a payment transaction scenario, the Bluetooth agent module is started only after the device from which the Bluetooth broadcast signal received by the Bluetooth chip is registered with the electronic device. In order to reduce the power consumption and memory usage of the electronic device, the Bluetooth agent module and the application processor of the electronic device do not need to be in an operational state all the time.

[0035] In a payment transaction scenario, the Bluetooth agent module can execute the application, and the user does not need to execute the application manually. In this way, the service transaction execution process is imperceptible to the user, and the convenience of the service transaction process is improved.

[0036] In a payment transaction scenario, the Bluetooth agent module may run an application, but the application does not need to be running all the time on the electronic device, and the application may be suspended by the application processor to further reduce power consumption and memory usage of the electronic device.

[0037] In a payment transaction scenario, the Bluetooth agent module further provides a Bluetooth scan management platform for Bluetooth-related service transaction processes.

[0038] In a payment transaction scenario, the service information may be first device identity information, which may be sent by the Bluetooth chip to the Bluetooth agent module together with the first device identifier. The first device identity information may be the device ID of the first device. The device ID has a one-to-one correspondence with the first device.

[0039] In one possible implementation, before the Bluetooth agent module indicates the Bluetooth chip to scan for a device identifier, the method further includes the Bluetooth agent module enabling the Bluetooth scanning function when detecting that the Bluetooth scanning function is disabled. The Bluetooth agent module can enable the Bluetooth scanning function, so that the user does not need to manually enable the Bluetooth scanning function. In this way, the service transaction execution process is imperceptible to the user, and the convenience of the service transaction process is improved.

[0040] In one possible implementation, the Bluetooth agent module is an application / interface at the application framework layer.

[0041] In one possible implementation, before the Bluetooth agent module indicates the Bluetooth chip to scan for the device identifier, the method further includes the Bluetooth agent module performing an authorization verification for the application. When the authorization verification is successful, the Bluetooth agent module transmits the first device identifier to the Bluetooth chip, such that the Bluetooth chip notifies the Bluetooth agent module when it obtains the first device identifier through the scan.

[0042] In one possible implementation, the Bluetooth agent module performing the authorization verification for the application includes the Bluetooth agent module detecting whether the first device identifier is included in a locally stored authorized device identifier list. When the first device identifier is included in the authorized device identifier list, the authorization verification is successful. The authorized device identifier list stored locally on the electronic device is used to verify the application, so that the verification process can be reduced, and the memory usage and power consumption of the device in the verification process can be reduced.

[0043] In one possible implementation, before the Bluetooth agent module performs authorization verification for the application, the method further includes the application obtaining a first certificate used to prove authorization of the application from the server. The Bluetooth agent module performing authorization verification for the application includes the Bluetooth agent module performing authorization verification for the application based on the first certificate.

[0044] When an application is installed on an electronic device, the application can send a message to the server to request the server to deliver a first certificate, and then the server sends the first certificate to the application. In another possible implementation form, when an application is installed on an electronic device, the server delivers the first certificate to the application. The certificate delivered by the server is used for the application's identity verification. This reduces the cases where local verification is tampered with, and improves the security of the identity verification.

[0045] The application for which the permission verification is performed during installation and the application participating in the service execution process may be the same application or different applications. If the applications are different, the application participating in the service execution process is connected to the server and the Bluetooth agent module.

[0046] Optionally, when the authorization verification is successful, the method further includes the Bluetooth agent module storing registration information of the application. The registration information indicates the Bluetooth agent module to establish a channel to the first device based on the first device identifier. Alternatively, the registration information indicates the Bluetooth agent module to notify an application corresponding to the first device identifier based on the first device identifier.

[0047] The registration information may include an OPTION, and the OPTION may indicate that the data receiving entity is an application. In addition, the Bluetooth chip wakes up the application after the first device identifier is obtained through scanning.

[0048] Alternatively, the registration information may be sent by the application along with the certificate to the Bluetooth agent module.

[0049] In one possible implementation, the method further includes the Bluetooth agent module instructing the Bluetooth chip to stop scanning for the first device identifier when the application is uninstalled from the electronic device.

[0050] Optionally, the Bluetooth chip may delete a stored device identifier corresponding to the application. The Bluetooth agent module may further delete the registration information of the application.

[0051] According to a second aspect, an embodiment of the present application provides an electronic device comprising one or more processors, a memory, a Bluetooth chip, and a Bluetooth agent module. The memory and the Bluetooth chip are coupled to the one or more processors, and the Bluetooth chip is connected to the Bluetooth agent module. The memory is configured to store computer program code, and the computer program code includes computer instructions. When the one or more processors execute the computer instructions, the electronic device is enabled to perform a Bluetooth scanning method according to the first aspect or any one of the possible implementations of the first aspect.

[0052] According to a third aspect, the present application provides a computer storage medium comprising computer instructions which, when run on an electronic device, enable the electronic device to perform a Bluetooth scanning method according to the first aspect or any one of the possible implementations of the first aspect.

[0053] According to a fourth aspect, an embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to perform a Bluetooth scanning method according to the first aspect or any one of the possible implementations of the first aspect.

[0054] It will be understood that the electronic device according to the second aspect, the computer storage medium according to the third aspect, or the computer program product according to the fourth aspect are all configured to execute the Bluetooth scanning method according to the first aspect or any one of the possible implementation forms of the first aspect. Therefore, for the beneficial effects that can be achieved, please refer to the beneficial effects in the corresponding method, and the details will not be repeated here.

[0055] The accompanying drawings used in the embodiments of the present application will now be described. [Brief description of the drawings]

[0056] [Figure 1] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Diagram 2] 1 is a schematic diagram of the structure of an electronic device 10 according to an embodiment of the present application. [Diagram 3] FIG. 1 is a block diagram of the software architecture of an electronic device 10 according to one embodiment of the present application. [Figure 4] 1 is a schematic diagram of a Bluetooth system architecture according to the prior art; [Diagram 5] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Figure 6] 1 is a schematic diagram of a Bluetooth system architecture according to the prior art; [Figure 7] 1 is a schematic flow chart of a service transaction method according to the prior art; [Figure 8] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Figure 9] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Figure 10] 2 is a schematic flowchart of a registration process of an APP 102 according to an embodiment of the present application. [Figure 11(a)]FIG. 2 is a schematic diagram of an application interface according to an embodiment of the present application. [Figure 11(b1)] FIG. 2 is a schematic diagram of an application interface according to an embodiment of the present application. [Figure 11(b2)] FIG. 2 is a schematic diagram of an application interface according to an embodiment of the present application. [Figure 12A] 1 is a schematic flowchart of a service execution method according to an embodiment of the present application; [Figure 12B] 1 is a schematic flowchart of a service execution method according to an embodiment of the present application; [Figure 13] 2 is a schematic flowchart of deregistration of an APP 102 according to an embodiment of the present application. [Figure 14] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Figure 15] 2 is a schematic flowchart of a registration process of an APP 102 according to an embodiment of the present application. [Figure 16] 1 is a schematic flowchart of a service execution method according to an embodiment of the present application; [Figure 17] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Figure 18] FIG. 1 is a schematic diagram of a Bluetooth system architecture according to an embodiment of the present application. [Figure 19] 1 is a schematic flowchart of a service execution method according to an embodiment of the present application; [Figure 20] 1 is a schematic diagram of the structure of an electronic device 10 according to an embodiment of the present application. [Figure 21] 4 is a schematic flowchart of a Bluetooth scanning method according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0057] Hereinafter, the embodiments of the present application will be described with reference to the accompanying drawings of the embodiments of the present application. The terms used in the implementation form of the present application are intended only to describe specific embodiments of the present application and are not intended to limit the present application.

[0058] First, application scenarios related to the embodiments of the present application are described. Bluetooth functions are more widely used in imperceptible services. The imperceptible services include imperceptible vehicle unlocking, imperceptible payment, etc. With reference to the system architecture, the following provides an explanation using the application scenarios of imperceptible vehicle unlocking and imperceptible payment separately as examples.

[0059] It should be understood that the embodiment of the present application is not limited to the above application scenario, and may further include another Bluetooth function, for example, a service process implemented using a Bluetooth electronic scale, which is not limited in the embodiment of the present application.

[0060] FIG. 1 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in FIG. 1, the Bluetooth system includes an electronic device 10 and a Bluetooth device 20 (e.g., a vehicle 20). The vehicle 20 can broadcast a Bluetooth broadcast signal. In the process of a user carrying the electronic device 10 and moving close to the vehicle 20, the electronic device 10 can receive the Bluetooth broadcast signal. The electronic device 10 may have an application (APP) corresponding to the vehicle 20 installed therein. The APP on the electronic device 10 can use the Bluetooth broadcast signal to establish a communication connection to the vehicle and complete security verification. After the security verification is successful, the vehicle lock of the vehicle 20 is automatically unlocked. In the above process of unlocking the vehicle lock of the vehicle 20, the vehicle lock of the vehicle 20 can be automatically unlocked unnoticed without the user manually operating the APP on the electronic device 10.

[0061] The following describes the electronic device 10 of the Bluetooth system in this embodiment of the present application. Figure 2 is a schematic diagram of the structure of the electronic device 10 according to an embodiment of the present application.

[0062] The electronic device 10 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) port 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display 194, a subscriber identification module (SIM) card interface 195, and the like. The sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, an optical proximity sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, and the like.

[0063] It may be understood that the structure shown in this embodiment of the invention does not constitute a particular limitation with respect to the electronic device 10. In some other embodiments of the present application, the electronic device 10 may include more or fewer components than those shown in the figures, or some components may be combined, some components may be divided, or other arrangements of components may exist. The components shown may be implemented by hardware, software, or a combination of software and hardware.

[0064] The processor 110 may include one or more processing units.

[0065] The memory may further be disposed in the processor 110 and configured to store instructions and data. In some embodiments, the memory of the processor 110 is a cache memory. The memory may store instructions or data that have just been used by the processor 110 or that are periodically used by the processor 110. If the processor 110 needs to use the instructions or data again, the processor 110 may retrieve the instructions or data directly from the memory to avoid repeated accesses and reduce the waiting time of the processor 110, thereby improving system efficiency.

[0066] In some embodiments, the processor 110 may include one or more interfaces, which may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, a universal serial bus (USB) interface, and the like.

[0067] The charging management module 140 is configured to receive a charging input from a charger.

[0068] The power management module 141 is configured to connect to the battery 142, the charging management module 140, and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140 and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, the wireless communication module 160, etc.

[0069] The wireless communication functionality of the electronic device 10 may be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, a modem processor, a baseband processor, and the like.

[0070] Antenna 1 and Antenna 2 are configured to transmit and receive electromagnetic signals. Each antenna of electronic device 10 may be configured to cover one or more communication frequency bands.

[0071] The mobile communication module 150 can be applied to the electronic device 10 to provide a solution including wireless communication technologies such as 2G, 3G, 4G, and 5G. The mobile communication module 150 can include at least one filter, switch, power amplifier, and low noise amplifier (LNA), etc. The mobile communication module 150 can receive the processed electromagnetic wave through the antenna 1, perform processing such as filtering or amplification on the received electromagnetic wave, and send the processed electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 can further amplify the signal modulated by the modem processor and convert the signal into an electromagnetic wave for radiation through the antenna 1.

[0072] The wireless communication module 160 may provide wireless communication solutions applied to the electronic device 10, including wireless local area networks (WLAN) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC) technology, infrared (IR) technology, etc. The wireless communication module 160 may be one or more components integrating at least one communication processor module. The wireless communication module 160 receives electromagnetic waves through the antenna 2, performs frequency modulation and filtering processing on the electromagnetic wave signal, and transmits the processed signal to the processor 110.

[0073] The wireless communication module 160 includes the Bluetooth chip 101 provided in the embodiment of the present application, ie, the Bluetooth chip 101 shown in any one of FIGS. 8 to 10 and 12A to 19.

[0074] In some embodiments, antenna 1 of electronic device 10 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160, such that electronic device 10 can communicate with networks and other devices by using wireless communication technologies.

[0075] The electronic device 10 implements display functionality through a GPU, a display 194, an application processor, etc. The GPU is a microprocessor for image processing and connects the display 194 to the application processor.

[0076] Display 194 is configured to display images, videos, and the like.

[0077] The electronic device 10 may perform image capture functions through an ISP, a camera 193, a video codec, a GPU, a display 194, an application processor, and the like.

[0078] The ISP is configured to process the data fed back by the camera 193.

[0079] The camera 193 is configured to capture still images or video. An optical image of an object is generated through a lens and projected onto a photosensitive element. The photosensitive element converts the optical signal into an electrical signal, which is then sent to the ISP for conversion into a digital image signal.

[0080] The external memory interface 120 may be configured to connect to an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 10. The external storage card communicates with the processor 110 through the external memory interface 120 to perform data storage functions.

[0081] The internal memory 121 may be configured to store computer-executable program code. The executable program code includes instructions. The processor 110 executes the instructions stored in the internal memory 121 to perform various functional applications of the electronic device 10 and to process data. The internal memory 121 may include a program storage area and a data storage area.

[0082] The electronic device 10 may perform audio functions such as music playback and recording through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a headset jack 170D, an application processor, and the like.

[0083] The electronic device 10 may also include various types of sensors.

[0084] The software system of the electronic device 10 can use a layered architecture, an event-driven architecture, a microkernel architecture, a microservices architecture, or a cloud architecture. In this embodiment of the present invention, the Android system with a layered architecture is used as an example to describe the software structure of the electronic device 10.

[0085] FIG. 3 is a block diagram of the software architecture of the electronic device 10 according to one embodiment of the present application.

[0086] In a layered architecture, software is divided into layers, each of which has a distinct role and task. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: application layer, application framework layer, Android runtime and system libraries, and kernel layer.

[0087] The application layer can include a series of application packages.

[0088] As shown in FIG. 3, the application package may include applications such as “Camera”, “Gallery”, “Calendar”, “Phone”, “Maps”, “Navigation”, “WLAN”, “Bluetooth”, “Music”, “Video”, and “Messages”.

[0089] The application framework layer provides an application programming interface (API) and a programming framework for applications in the application layer. The application framework layer includes some predetermined functions.

[0090] As shown in Fig. 3, the application framework layer may include a window manager, a content provider, a view system, a telephone manager, a resource manager, a notification manager, etc. The application framework layer may further include a Bluetooth agent module 105 provided in the embodiments of the present application, i.e., the Bluetooth agent module 105 in any one of the examples shown in Figs. 8 to 10 and 12A to 19. The Bluetooth agent module 105 may be an application / interface at the application framework layer.

[0091] A window manager is configured to manage window programs. A window manager can get the size of the display, determine if there is a status bar, perform screen locking, take screen shots, etc.

[0092] Content providers are configured to store and retrieve data and make the data accessible by applications. Data may include video, images, audio, calls made or received, browsing history and bookmarks, address books, etc.

[0093] The view system includes a visual control, such as a text display control or a picture display control. The view system can be configured to build an application. A display interface can include one or more views.

[0094] The telephone manager is configured to provide communication functions for the electronic device 10, such as managing call status (including answering or rejecting).

[0095] The resource manager provides various resources to the application, such as localized strings, icons, pictures, layout files, video files, etc.

[0096] The notification manager allows applications to display notification information in the status bar and may be configured to communicate notification messages. The notification manager may disappear automatically after a short pause without user interaction. For example, the notification manager may be configured to provide download completion notifications, message notifications, etc. Alternatively, the notification manager may be notifications that are displayed in the top status bar of the system in the form of graphs or scrollbar text.

[0097] The Bluetooth agent module 105 is configured to indicate which Bluetooth chips to scan for a device identifier. The Bluetooth agent module is further configured to establish a channel to an external Bluetooth device based on the first device identifier or notify an application corresponding to the external Bluetooth device identifier.

[0098] The Android Runtime includes the kernel library and the virtual machine, and is responsible for scheduling and managing the Android system.

[0099] The kernel library includes two parts: the functions that need to be called by the java language and the Android kernel library.

[0100] The application layer and the application framework layer run on a virtual machine.

[0101] The system library can include multiple functional modules, for example, a surface manager, Media Libraries, a 3D graphics processing library (eg, OpenGL ES), and a 2D graphics engine (eg, SGL).

[0102] The kernel layer is a layer between the hardware and the software, and includes at least a display driver, a camera driver, an audio driver, and a sensor driver.

[0103] In the following, the process of starting the vehicle 20 in the scenario shown in Fig. 1 will be described with reference to the structures of the electronic device 10 and the vehicle 20. Fig. 4 is a schematic diagram of the architecture of a Bluetooth system according to the prior art. As shown in Fig. 4, the electronic device 10 can establish a communication connection to the vehicle 20, and the communication connection can be a Bluetooth connection. Specifically, in the scenario shown in Fig. 1, in the process of a user carrying the electronic device 10 and approaching the vehicle 20, the electronic device 10 establishes a Bluetooth communication connection to the vehicle 20.

[0104] As shown in FIG. 4, the electronic device 10 includes a Bluetooth chip 101, an APP 102, an open mobile alliance application programming interface (OMA API) 103, and a secure element (SE) 104. The SE 104 includes an applet. The vehicle 20 includes an in-vehicle Bluetooth chip 201 and an in-vehicle SE 202. The in-vehicle SE 202 includes an in-vehicle applet. The OMA API 103 is an interface for calling the applet of the SE using a rich execution environment (REE). Alternatively, the in-vehicle Bluetooth chip 201 and the in-vehicle SE 202 may be connected through an in-vehicle OMA API. The applet of the SE 104 may include a cryptogram for unlocking. The in-vehicle SE 202 also includes a cryptogram for unlocking. The SE 104 applet ciphertext has a one-to-one correspondence with the vehicle-mounted SE 202 ciphertext.

[0105] For example, when the vehicle key service is enabled, a background server at the vehicle factory separately establishes secure channels with SE 104 of electronic device 10 and SE 202 of vehicle 20 and places the same cryptogram in SE 104 and SE 202 separately.

[0106] The Bluetooth chip 101 is connected to the APP 102. The APP 102 establishes a connection with the SE 104 through the OMA API 103. The in-vehicle Bluetooth chip 201 may continuously broadcast a Bluetooth broadcast signal. The Bluetooth chip 101 can detect the Bluetooth broadcast signal, and then detect whether the vehicle 20 from which the Bluetooth broadcast signal originates is a registered device. The following describes an implementation of detecting whether the device from which the Bluetooth broadcast signal originates is registered in the electronic device 10. The Bluetooth chip 101 stores the device identification information of the vehicle 20 (e.g., the universally unique identifier (UUID) of the vehicle 20). The Bluetooth broadcast signal broadcast by the in-vehicle Bluetooth chip 201 includes the device identification information of the vehicle 20. After receiving the Bluetooth broadcast signal, the Bluetooth chip 101 detects that the device identification information of the vehicle 20 is stored in the Bluetooth chip 101. In this case, the Bluetooth chip 101 determines that the device from which the Bluetooth broadcast signal originated (the vehicle 20 ) is registered with the electronic device 10 .

[0107] In one possible implementation, vehicles of the same brand may have the same device identification information, and vehicles of the same model may have the same device identification information.

[0108] An application processor (AP) of the electronic device 10 can monitor the scanning result of the Bluetooth chip 101. Through scanning, the Bluetooth chip 101 detects that the vehicle 20 is a device registered in the electronic device 10. When the APP 102 on the electronic device 10 is in a running state, the vehicle 20 establishes a communication channel to the APP 102 on the electronic device 10. The communication channel can be used for communication between the on-board Bluetooth chip 201 and the APP 102 in the service execution process.

[0109] It will be appreciated that the cryptogram of the electronic device 10 is not limited to being stored in the applet of the SE 104, but may alternatively be stored in another secure storage area, for example, in a trusted execution environment (TEE) application (TA). In this case, the Bluetooth agent module 105 may establish a channel to the vehicle 20. The Bluetooth agent module 105 may obtain service information from the TEE and transmit the service information to the vehicle 20 through the channel.

[0110] The vehicle 20 can send a ciphertext verification command to the electronic device 10 over the Bluetooth channel. After receiving the ciphertext verification command, the electronic device 10 sends the ciphertext of the applet in the SE 104 to the vehicle 20 over the Bluetooth connection. The vehicle 20 compares the received ciphertext with the ciphertext in the onboard SE 202. If the comparison is successful (e.g., the comparison is successful if the two ciphertexts are the same), the vehicle lock of the vehicle 20 is unlocked.

[0111] In the above process of unlocking the vehicle 20, the user needs to manually start the APP 102 and turn on the Bluetooth scanning switch, which reduces the convenience of unlocking the vehicle 20. In addition, the AP of the electronic device 10 needs to monitor the scanning result of the Bluetooth chip 101, which increases the power consumption and memory usage of the electronic device 10.

[0112] The following describes an imperceptible payment scenario in an embodiment of the present application. Figure 5 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in Figure 5, the Bluetooth system includes an electronic device 10, a Bluetooth device 30 (e.g., a payment device 30), and a server 40.

[0113] The electronic device 10 can establish a communication connection with the server 40, and the payment device 30 can establish a communication connection with the server 40. The payment device 30 can broadcast a Bluetooth broadcast signal. When a user carries the electronic device 10 and moves close to the payment device 30, the electronic device 10 can receive the Bluetooth broadcast signal. An APP corresponding to the payment device 30 can be installed on the electronic device 10. For example, if the APP is WeChat, the server 40 is a WeChat server. When payment is required, the user faces the payment device 30, and the payment device 30 collects a face image and uploads the face image to the server 40. The server 40 can complete the user's face verification and automatically complete the payment service process. In the above-mentioned face payment process, imperceptible payment can be implemented without the user manually operating the APP on the electronic device 10.

[0114] The following describes the process of imperceptible payment in the scenario shown in Fig. 6 with reference to the structures of the electronic device 10 and the payment device 30. Fig. 6 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in Fig. 6, the electronic device 10 includes a Bluetooth chip 101 and an APP 102. The Bluetooth chip 101 is connected to the APP 102. The payment device 30 may continuously broadcast a Bluetooth broadcast signal.

[0115] 7 is a schematic flowchart of a service transaction method according to the prior art. As shown in FIG. 7, based on the system architecture described in FIG. 7 and FIG. 8, the service transaction method includes steps S101 to S108.

[0116] S101: The payment device 30 broadcasts a Bluetooth broadcast signal.

[0117] The Bluetooth broadcast signal carries device identity information and device identification information (e.g., UUID). For example, the device identity information may include a device ID. The device ID may uniquely identify the payment device 30. The UUID may identify a payment device that can connect the APP 102 and the server 40. For example, for an Alipay application, the payment devices that can connect the Alipay application and the Alipay server have the same UUID, and the UUID may be stored in the Bluetooth chip 101. Alternatively, the UUID of the payment device that can connect the Alipay application to the Alipay server is one of several UUIDs. The several UUIDs may be stored in the Bluetooth chip 101.

[0118] S102: The Bluetooth chip 101 receives a Bluetooth broadcast signal from the payment device 30, and detects whether the device from which the Bluetooth broadcast signal originates (the payment device 30) is registered with the electronic device 10.

[0119] For the Bluetooth scan (specifically, detecting whether the device that transmits the Bluetooth broadcast signal is registered in the electronic device 10), please refer to the specific description in the example illustrated in FIG. 2. Details will not be described repeatedly in this specification. The Bluetooth chip 101 may be a Bluetooth low energy (BLE) chip. In this case, the Bluetooth chip 101 can execute step S102 only when the Bluetooth scan switch on the electronic device 10 is turned on.

[0120] S103: The application processor of the electronic device 10 monitors the Bluetooth chip 101, and executes the APP 102 when it detects that the device (payment device 30) that sent the Bluetooth broadcast signal is registered in the electronic device 10.

[0121] After detecting that the device that transmits the Bluetooth broadcast signal is registered, the application processor may detect whether the APP 102 is running. If the APP 102 is not running, step S104 is executed to execute the APP 102. For a system having a release later than Android 8.0, the AP of the electronic device 10 can automatically execute the APP 102 by executing step S103.

[0122] S104: The APP 102 sends a message to the server 40 carrying the device identity information and the account ID.

[0123] The APP can send a message carrying the device ID and the account ID to the server 40. The device ID can be obtained from the Bluetooth broadcast signal by the Bluetooth chip 101 and sent to the APP 102. The server 40 can obtain one or more account IDs that can receive the Bluetooth broadcast signal from the payment device 30. For example, there are currently 10 electronic devices near the payment device 30, the Alipay application is installed on each of the 10 electronic devices, and the imperceptible payment service is enabled. Each Alipay application on the 10 electronic devices has an Alipay account ID (e.g., Alipay account). In this case, for each of the 10 electronic devices, the service information (e.g., device identity information) from the external Bluetooth device 51 may be sent to the APP 102 using steps S101 to S104, and the APP 102 sends the service information to the server 40. The server 40 can obtain the Alipay account ID on each of the 10 electronic devices. In steps S105 to S108, face comparison is performed to determine which Alipay account ID will carry out the transaction process.

[0124] S105: The payment device 30 collects a facial image.

[0125] S106: The payment device 30 sends the collected face image and the device ID to the server 40.

[0126] The device ID has a one-to-one correspondence with the payment device 30 .

[0127] S107: The server 40 obtains an account ID through recognition based on the received face image and device ID.

[0128] After receiving the facial image and the device ID, the server 40 can determine the account ID of the uploaded service information based on the device ID (e.g., device identity information). For example, in the above example, the server 40 can determine 10 Alipay account IDs based on the device ID to upload the service information (e.g., device identity information) to the server 40 through the payment device 30. The server 40 can obtain a facial image corresponding to each of the 10 Alipay account IDs. The facial image received from the payment device 30 is then compared with the 10 facial images to obtain the Alipay account ID corresponding to the received facial image.

[0129] The server 40 can store the account ID and the corresponding facial image, and the facial image may be pre-stored by the user. Alternatively, the facial image corresponding to the account may be obtained by the server 40 from another device (e.g., the electronic device 10). This is not limited in this embodiment of the present application.

[0130] S108: The server 40 completes the service transaction based on the account ID.

[0131] The server 40 can use the account ID obtained in step S107 as the debit account to complete the service transaction.

[0132] In the above-mentioned imperceptible payment process, in step S102, the application processor of the electronic device 10 needs to be constantly active in the Bluetooth scanning process to monitor whether the device from which the Bluetooth broadcast signal is sent is registered in the electronic device 10. This increases the power consumption and memory usage of the electronic device 10. In addition, the Bluetooth scanning switch used to start the Bluetooth scanning of the electronic device 10 is turned off by default, which affects the Bluetooth scanning and reduces the convenience of the payment process.

[0133] The embodiment of the present application provides a service execution method to improve the convenience of the service execution process and reduce the power consumption and memory usage of the electronic device 10. The electronic device 10 according to the service execution method includes a Bluetooth agent module. Figure 8 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in Figure 8, the Bluetooth system includes an electronic device 10, a Bluetooth device 50 (e.g., a vehicle or a payment device), and a server 40.

[0134] 8, the electronic device 10 includes a Bluetooth chip 101, an APP 102, an OMA API 103, an SE 104, a Bluetooth agent module 105, a TEE 106, an APP 1021, and an APP 1022. The APP 1021 and the APP 1022 may be different service applications (e.g., one is a payment application and the other is an application associated with the vehicle 20). Each of the APP 1021 and the APP 1022 corresponds to a Bluetooth device. For example, the APP 1021 corresponds to the Bluetooth device 51, and the APP 1022 corresponds to the Bluetooth device 52.

[0135] In this embodiment of the present application, the application for which the permission verification is performed during installation and the application participating in the service execution process can be the same APP or different APP. If the APP is different, the APP participating in the service execution process is connected to the server 40 and the Bluetooth agent module.

[0136] There may be multiple Bluetooth devices corresponding to the APP 1021. The Bluetooth agent module 105 and the Bluetooth chip 101 store device identification information of the Bluetooth device, and the Bluetooth device corresponds to one APP on the electronic device 10. There may also be multiple Bluetooth devices corresponding to the APP 1022. For example, the Alipay application can support multiple payment devices, and the service execution process can be completed on multiple payment devices.

[0137] For the description of the Bluetooth chip 101, the OMA API 103, the SE 104, and the TEE 106, please refer to the example shown in Figure 2. For the description of the APP 1021, the APP 1022, and the server 40, please refer to the example shown in Figure 6.

[0138] This embodiment of the present application is described using an example in which APP 1021 is a payment application and Bluetooth device 51 is a payment device corresponding to APP 1021, and an example in which APP 1022 is a vehicle application and Bluetooth device 52 is a vehicle corresponding to APP 1022.

[0139] The Bluetooth agent module 105 is connected to the APP 1022. The Bluetooth agent module 105 is further connected to the TEE 106, and the Bluetooth agent module 105 is further connected to the SE 104 through the OMA API 103.

[0140] In a vehicle unlock scenario, the Bluetooth agent module 105 is initiated when the Bluetooth chip 101 detects that the device from which the Bluetooth broadcast signal originates is registered with the electronic device 10. The Bluetooth agent module 105 establishes a channel to the external Bluetooth device, and the Bluetooth agent module 105 may be connected to the SE 104 so that service information (e.g., cryptograms) in the SE 104 may be transmitted to the external Bluetooth device (e.g., the vehicle). The Bluetooth agent module 105 is further connected to the TEE 106 so that service information (e.g., cryptograms) of the TEE 106 may also be transmitted to the external Bluetooth device (e.g., the vehicle).

[0141] In a payment scenario, the Bluetooth chip 101 is connected to the Bluetooth agent module 105, the Bluetooth agent module 105 is connected to the APP 1021, and the APP 1021 establishes a communication connection to the server 40. The Bluetooth device 51 establishes a communication connection with the server 40. In this service method, when the Bluetooth chip 101 obtains a first device identifier of the device identifiers through scanning, the Bluetooth chip 101 notifies the Bluetooth agent module 105. The Bluetooth agent module 105 can wake up the APP 1021, and the service information from the external Bluetooth device 51 (e.g., the device ID of the Bluetooth device 51) can be sent to the APP 1021. The APP 1021 establishes a communication connection to the server 40, so that the service information from the external Bluetooth device 51 (e.g., the device ID of the Bluetooth device 51) is sent to the server 40. The server 40 can complete the service based on the service information sent from the APP 1021 and the user information (e.g., face image) collected from the Bluetooth device 51. The device identifier stored in the Bluetooth chip 101 is the device identifier corresponding to the application that has been successfully verified. In other words, the verification for the application on the electronic device 10 that corresponds to the first device identifier is successful.

[0142] The Bluetooth agent module 105 is started only when the Bluetooth chip 101 acquires a first device identifier in the device identifiers through scanning. In order to reduce the power consumption and memory usage of the electronic device 10, the Bluetooth agent module 105 and the application processor of the electronic device 10 do not need to be in an active state all the time.

[0143] In this embodiment of the present application, the Bluetooth agent module can execute the APP, and the user does not need to execute the APP manually. In this way, the execution process is invisible to the user, and the convenience of the service execution process is improved.

[0144] In this embodiment of the present application, the Bluetooth agent module 105 can execute the APP 1021, but the APP 1021 does not need to be executed all the time on the electronic device 10, and the execution of the APP 1021 can be stopped by the application processor to further reduce the power consumption and memory usage of the electronic device 10.

[0145] In this embodiment of the present application, the Bluetooth agent module 105 further provides a Bluetooth scan management platform for the Bluetooth-related service execution process.

[0146] The Bluetooth agent module 105 is connected to the SE 104 and directly establishes a Bluetooth channel between the Bluetooth chip 101 and the Bluetooth device 60 without running the APP 1022, to further reduce the power consumption and memory usage of the electronic device 10.

[0147] Optionally, the APP 1022 may further be connected to the TEE 106. In this case, the Bluetooth agent module 105 may wake up the APP 1022. The APP 1022 may obtain service information (e.g., a ciphertext) from the TEE 106 and send the service information to the Bluetooth agent module 105. The Bluetooth agent module 105 establishes a channel to an external Bluetooth device and sends the service information to the external Bluetooth device (e.g., a vehicle). The external Bluetooth device can perform a corresponding service, for example, unlocking a vehicle key, based on the service information.

[0148] Optionally, the APP 1022 may further be connected to the SE 104 through an OMA API. In this case, the Bluetooth agent module 105 may wake up the APP 1022, and the APP 1022 may obtain service information (e.g., a ciphertext) from the SE 104 and send the service information to the Bluetooth agent module 105. The Bluetooth agent module 105 establishes a channel to an external Bluetooth device (e.g., a vehicle) and sends the service information to the external Bluetooth device (e.g., a vehicle). The external Bluetooth device can perform a corresponding service, such as unlocking a vehicle key, based on the service information.

[0149] The following describes an example of a service execution method provided in an embodiment of the present application. Examples of service execution processes in the following scenarios are described separately: (1) imperceptible face payment, (2) imperceptible vehicle unlocking, and (3) automatic uploading of weight scale data.

[0150] (1) Invisible Face Payments This service execution method is based on the system architecture described in Figure 5. For example, the service execution process is to perform payment by imperceptible face. The Bluetooth device 50 can be the payment device 30 shown in Figure 5. In this embodiment of the present application, the scenario of payment by imperceptible face is used as an example for explanation, and it is understood that another service scenario may be used instead, which is not limited in this embodiment of the present application.

[0151] 9 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in FIG. 9, the Bluetooth system includes an electronic device 10, a Bluetooth device 50 (e.g., a payment device 30), and a server 40. As shown in FIG. 9, the electronic device 10 includes a Bluetooth chip 101, a Bluetooth agent module 105, and an APP 102. The Bluetooth chip 101 establishes a connection to the Bluetooth agent module 105, and the Bluetooth agent module 105 establishes a connection to the APP 102.

[0152] Before the system architecture is used to perform imperceptible face payment, the user needs to install the APP 102 on the electronic device 10, and the electronic device 10 completes a registration process. The following processes are described separately: (a) registration process, (b) transaction process, and (c) deregistration process.

[0153] (a) Registration Process The following describes the registration process with reference to the system architecture shown in Figure 9 and the process shown in Figure 10. Figure 10 is a schematic flowchart of the registration process of APP 102 according to an embodiment of the present application. The registration process of APP 102 includes steps S201 to S206.

[0154] S201: When the APP 102 is installed in the electronic device 10, the APP 102 sends first registration information to the Bluetooth agent module 105.

[0155] The first registration information may include one or more of the following:

[0156] (1) APP_ID: Identification of the APP 102 for which registration was performed.

[0157] (2) APP_AWAKE_ID: the ID used to wake up the APP 102 after the Bluetooth chip 101 obtains the first device identification information through scanning.

[0158] (3) CORRESPONDENT_ID: The ID of the contact during the transmission of service information.

[0159] For example, the communicator ID may be the ID of the APP 102. In this case, the APP 102 may be woken up when a Bluetooth broadcast signal is detected through a scan. In another example, the communicator ID may alternatively be the UUID of the TA. In this case, the APP 102 may be woken up to establish a channel to an external Bluetooth device when a Bluetooth broadcast signal is detected through a scan. As another example, the communicator ID may alternatively be an applet identification (AID). In this case, the APP 102 may be woken up to establish a channel to an external Bluetooth device when a Bluetooth broadcast signal is detected through a scan.

[0160] (4) First device identification information: identification information of the Bluetooth device that the APP 102 is going to scan for, for example, the identification information includes, but is not limited to, the UUID of the external Bluetooth device.

[0161] In one possible implementation, the APP 102 corresponds to a UUID list. The UUID list includes one or more UUIDs. For each UUID in the UUID list, the Bluetooth agent module 105 verifies a Bluetooth broadcast signal broadcast by an external Bluetooth device corresponding to the UUID.

[0162] (5) OPTION: the entity that receives the service information, such as the APP 102, the TA of the TEE 106, or the applet of the SE 104, and whether the Bluetooth chip 101 wakes up the APP 102 after obtaining the first device identification information through scanning.

[0163] S202: The Bluetooth agent module 105 performs authorization verification for the APP 102 based on the first registration information.

[0164] In one possible implementation form, the Bluetooth agent module 105 may store APP_IDs of multiple APPs, and the multiple APP_IDs are authorized by the Bluetooth agent module 105. The Bluetooth agent module 105 detects whether the APP_ID of the first registration information is included in the stored multiple APP_IDs. If the APP_ID in the first registration information is included in the stored multiple APP_IDs, the authorization verification is successful, and step S203 is executed. If the APP_ID of the first registration information is not included in the stored multiple APP_IDs, the authorization verification is unsuccessful, and the process ends.

[0165] It is understood that the above example of the authorization verification process is only used to explain this embodiment of the present application and does not constitute a limitation. The Bluetooth agent module 105 may alternatively have another authorization verification method, which is not limited to this embodiment of the present application.

[0166] In this embodiment of the present application, the Bluetooth agent module 105 may be located in the application framework layer, or may be an application / interface in the application framework layer, in the example shown in Figure 7. The Bluetooth agent module 105 is not limited to being located in the application framework layer, and may be located in another layer.

[0167] S203: When the authorization verification is successful, the Bluetooth agent module 105 sends the first device identification information to the Bluetooth chip 101.

[0168] The Bluetooth chip 101 may store the device identification information that has been successfully authorized. For example, the authorization verification performed by the Bluetooth agent module 105 for APP 1 is successful, and the registration information of APP 1 includes UUID 1, UUID 2, UUID 3, and UUID 4. The authorization verification performed by the Bluetooth agent module 105 for APP 2 is successful, and the registration information of APP 2 includes UUID 5 and UUID 6. In this case, the Bluetooth chip 101 may receive and store UUID 1, UUID 2, UUID 3, UUID 4, UUID 5, and UUID 6.

[0169] It should be understood that in this embodiment of the present application, an example in which the device identification information is a UUID is used for explanation. However, the device identification information is not limited to a UUID, and may alternatively be other device information.

[0170] In one possible implementation form, when the authorization verification is successful, the Bluetooth agent module 105 stores the first registration information of the APP 102. The Bluetooth agent module 105 can use the first registration information and the UUID obtained by the Bluetooth chip 101 through scanning to discover the corresponding APP, TA, or applet.

[0171] S204: The Bluetooth agent module 105 detects whether the Bluetooth scanning function of the Bluetooth chip 101 is enabled.

[0172] When the Bluetooth scanning function of the Bluetooth chip 101 is enabled, the Bluetooth chip 101 can receive a Bluetooth broadcast signal and detect whether the device identification information carried in the Bluetooth broadcast signal is stored in the Bluetooth chip 101. When the Bluetooth scanning function of the Bluetooth chip 101 is disabled, the Bluetooth chip 101 cannot receive the Bluetooth broadcast signal.

[0173] S205: When detecting that the Bluetooth scanning function of the Bluetooth chip 101 is not enabled, the Bluetooth agent module 105 enables the Bluetooth scanning function.

[0174] For example, if the Bluetooth chip 101 is a BLE Bluetooth chip, EnableBLE may be called to enable the Bluetooth scanning function.

[0175] 11(a), 11(b1), and 11(b2) are schematic diagrams of application interfaces according to an embodiment of the present application. Application interface 100 is an application interface in a system settings application. As shown in FIG. 11(a), application interface 100 includes a Bluetooth scan switch 1001, a Bluetooth scan prompt 1002, a WLAN scan switch 1011, and a WLAN scan prompt 1012.

[0176] When the Bluetooth scan switch 1001 is in an on state, the Bluetooth scanning function is enabled. When the Bluetooth scan switch 1001 is in an off state, the Bluetooth scanning function is disabled. When the Bluetooth scan switch 1001 is in an off state, the Bluetooth scan switch 1001 can be changed to an on state using step S105 to enable the Bluetooth scanning function.

[0177] As shown in Fig. 11(a), the Bluetooth scan prompt 1002 prompts that applications and services are allowed to scan for nearby devices at any time even if Bluetooth is disabled. This can be used to improve location-based features and services. When Bluetooth is disabled and the Bluetooth scan switch 1001 is on, the Bluetooth chip 101 can still perform scanning in step S206.

[0178] When the WLAN scan switch 1011 is in an on state, the WLAN scan function is enabled. When the WLAN scan switch 1011 is in an off state, the WLAN scan function is disabled. The WLAN scan prompt 1012 prompts that applications and services are allowed to scan for WLAN networks at any time, even if WLAN is disabled. This can be used to improve location-based features and services.

[0179] S206: The Bluetooth chip 101 performs a scan.

[0180] In the scanning process, the Bluetooth chip 101 can receive a Bluetooth broadcast signal and detect whether the UUID carried in the Bluetooth broadcast signal is stored in the Bluetooth chip 101 .

[0181] Using steps S201 to S206, the registration of the APP 102 on the electronic device 10 is completed. After the registration is completed, the electronic device 10 can log in to an account on the APP 102 in response to a user operation. For example, for an Alipay application, after the registration is completed, the electronic device 10 can log in to an Alipay account on the Alipay application in response to a user operation. The Alipay account can be the account ID of the Alipay application on the electronic device 10. In the process of logging in to the account, for example, the account password corresponding to the account ID needs to be verified.

[0182] In some possible implementations, the setting interface on the electronic device 10 may include a setting entry for a Bluetooth agent module. As shown in Fig. 11(b1), the setting interface 200 includes a setting entry 201 for a Bluetooth agent module. In response to a user operation, such as a tap operation, by a user on the setting entry 201 for the Bluetooth agent module, the electronic device 10 displays a Bluetooth agent module setting interface 300. As shown in Fig. 11(b2), the Bluetooth agent module setting interface 300 includes a Bluetooth agent module switch 301, a switch instruction 302, and a list of registered applications 303. Details are as follows.

[0183] In response to a tap operation performed by a user on the Bluetooth agent module switch 301, the Bluetooth agent module may perform authorization verification for the application to complete the application registration, i.e., perform steps S201 to S206.

[0184] The switch indication 302 may indicate a function of the Bluetooth agent module switch 30. Specifically, after the switch is turned on, the Bluetooth agent module is permitted to verify the identity of the installed application, so that the application is enabled to perform imperceptible payments, imperceptible vehicle unlocking, etc.

[0185] The list of registered applications 303 may include identifiers of applications registered on the electronic device 10 using steps S201 to S206. For example, the list of registered applications 303 includes an Alipay identifier 3031 and a Bluetooth vehicle key identifier 3032. Optionally, the application identifiers in the list of registered applications 303 may be sorted based on application categories, for example, and displayed categorized as a payment application and another application.

[0186] (b) Trading Process After the registration is completed and the account is logged in, the electronic device 10 can execute a service execution method according to an embodiment of the present application. Figures 12A and 12B are schematic flowcharts of a service transaction method according to an embodiment of the present application. The service transaction method is based on the system architecture shown in Figure 9, and includes steps S301 to S310.

[0187] S301: The Bluetooth device 50 broadcasts a Bluetooth broadcast signal.

[0188] The Bluetooth broadcast signal may carry a first device identification information (e.g., a first UUID) and a first device identity information (e.g., a first device ID). The first device identity information has a one-to-one correspondence with the Bluetooth device 50.

[0189] S302: The Bluetooth chip 101 receives a Bluetooth broadcast signal, and detects whether the device (Bluetooth device 50) that sent the received Bluetooth broadcast signal is registered in the electronic device 10.

[0190] When the electronic device 10 is in a sleep state (e.g., the electronic device 10 is in a screen-off sleep state), if the Bluetooth chip 101 detects that the device from which the received Bluetooth broadcast signal is sent is not registered on the electronic device 10, the Bluetooth agent module 105 may go to a sleep state.

[0191] S303: When the device from which the received Bluetooth broadcast signal originates is registered in the electronic device 10, the Bluetooth chip 101 wakes up the Bluetooth agent module 105 and sends the first device identification information.

[0192] If the Bluetooth agent module 105 is already in a started state, the first device identification information may be sent to the Bluetooth agent module 105 without waking up the Bluetooth agent module 105.

[0193] S304: The Bluetooth agent module 105 executes the APP 102 based on the first device identification information and the first registration information.

[0194] The Bluetooth agent module 105 stores the first registration information in step S203 in the registration process shown in Figure 9. The Bluetooth agent module 105 uses the first device identification information to find the first registration information, and uses the APP_AWAKE_ID of the first registration information to find and run the APP 102.

[0195] The (5) OPTION in the first registration information may indicate that the data receiving entity is the APP 102, and the Bluetooth chip 101 wakes up the APP 102 after obtaining the first device identification information through scanning. The Bluetooth agent module 105 may further determine that the APP 102 needs to be executed based on the OPTION. Then, the APP 102 is executed using the APP_AWAKE_ID in the first registration information.

[0196] Optionally, if the APP 102 is already in a running state, there is no need to run the APP 102.

[0197] S305: The Bluetooth agent module 105 sends the first device identity information to the APP 107.

[0198] The first device identity information may be sent by the Bluetooth chip 101 to the Bluetooth agent module 105 together with the first device identification information in step S303.

[0199] S306: The APP 102 sends a message to the server 40, carrying the first device identity information and the first account ID.

[0200] Steps S301 to S306 are executed, so that the service information from the external Bluetooth device 50 (e.g., the device ID of the Bluetooth device 50) can be sent to the APP 102, and the APP 102 sends the service information to the server 40 for preparation for the subsequent transaction process. The first account ID is the ID of the login account of the APP 102. For example, the account ID of the Alipay APP may be an Alipay account.

[0201] After step S306, the user can carry out a transaction process (e.g., payment by imperceptible face) with a verification manner, such as face verification or fingerprint verification. For details, please refer to steps S307 to S310. For steps S307 to S310, please refer to the description of steps S105 to S108 in the example shown in Figure 7. Details will not be repeated in this specification.

[0202] S307: The Bluetooth device 50 collects a first face image.

[0203] S308: The Bluetooth device 50 sends a message to the server 40, carrying the first face image and the first device identity information.

[0204] S309: The server 40 obtains a first account ID through recognition based on the first face image and the first device identity information.

[0205] S310: The server 40 completes a service transaction based on the first account ID.

[0206] In the above-mentioned service transaction method process, the Bluetooth agent module 105 is started only after the device from which the Bluetooth broadcast signal received by the Bluetooth chip 101 is sent is registered in the electronic device 10. In order to reduce the power consumption and memory usage of the electronic device 10, the Bluetooth agent module 105 and the application processor of the electronic device 10 do not need to be in an operational state all the time.

[0207] In this embodiment of the present application, the Bluetooth agent module 105 can execute the APP 102, and the user does not need to manually execute the APP 102. In this way, the service transaction execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0208] In this embodiment of the present application, the Bluetooth agent module 105 can execute the APP 102, but it is not necessary to always run the APP 102 on the electronic device 10, and the APP 102 can be stopped from executing by the application processor to further reduce the power consumption and memory usage of the electronic device 10.

[0209] In this embodiment of the present application, the Bluetooth agent module 105 further provides a Bluetooth scan management platform for Bluetooth-related service transaction processes.

[0210] In one possible implementation, the Bluetooth scanning function in step S302 may be implemented by the user manually turning on the Bluetooth scanning switch 1001. See FIG. 11(a), FIG. 11(b1), and FIG. 11(b2). In another possible implementation, the Bluetooth scanning function may alternatively be enabled when the electronic device 10 detects that the Bluetooth scanning function is not enabled. For example, in the example of the registration process described in FIG. 12A and FIG. 12B, the Bluetooth agent module 105 enables the Bluetooth scanning function by executing steps S204 and S205. Alternatively, after the registration is completed, the Bluetooth agent module 105 can automatically enable the Bluetooth scanning function in the service transaction process. The Bluetooth agent module 105 can enable the Bluetooth scanning function, so that the user does not need to manually enable the Bluetooth scanning function. In this way, the service transaction execution process is imperceptible to the user, and the convenience of the service transaction process is improved.

[0211] (c) Unsubscription process The registered APP 102 on the electronic device 10 can also be deregistered in response to user operation. The deregistration process according to this embodiment of the present application is specifically described below. Figure 13 is a schematic flowchart of the deregistration of APP 102 according to an embodiment of the present application. The deregistration process of APP 102 includes steps S401 to S406.

[0212] S401: When detecting that the APP 102 is uninstalled, the Bluetooth agent module 105 sends a first notification to the Bluetooth chip 101. The first notification instructs the Bluetooth chip 101 to stop scanning for a first device identification information.

[0213] The first device identification information is the first device identification information included in the registration information of the APP 102 during registration. For example, the first device identification information included in the registration information of the APP 102 during registration is UUID 1, UUID 2, UUID 3, and UUID 4. In this case, the first notification instructs the Bluetooth chip 101 to stop scanning UUID 1, UUID 2, UUID 3, and UUID 4. After step S402 is executed, when detecting that the Bluetooth broadcast signal includes UUID 1, UUID 2, UUID 3, and UUID 4, the Bluetooth chip 101 considers that the device from which the Bluetooth broadcast signal is sent is not registered in the electronic device 10, and does not wake up the Bluetooth agent module 105.

[0214] In this embodiment of the present application, the application processor can detect that the APP 102 has been uninstalled, and broadcast a broadcast indicating that the APP 102 has been uninstalled. The Bluetooth agent module 105 determines that the APP 102 has been detected to have been uninstalled based on the broadcast indicating that the APP 102 has been uninstalled, and executes step S401.

[0215] S402: The Bluetooth chip 101 stops scanning for the first device identification information based on the first notification.

[0216] The Bluetooth chip 101 may delete the stored device identification information corresponding to the APP 102. In the example of step S401, the Bluetooth chip 101 may delete UUID 1, UUID 2, UUID 3, and UUID 4 that it stores.

[0217] S403: The Bluetooth agent module 105 deletes the registration information of the APP 102.

[0218] Alternatively, step S403 may be performed before step S402.

[0219] After the deregistration process of the APP 102 is executed, when the Bluetooth chip 101 detects that the Bluetooth broadcast signal contains the first device identification information, it considers that the device from which the Bluetooth broadcast signal originates is not registered in the electronic device 10. In addition, the Bluetooth agent module 105 is not woken up and a Bluetooth channel is not established.

[0220] (2) Imperceptible vehicle unlocking This service execution method is based on the system architecture described in Figure 1. For example, the service execution process is to unlock a vehicle imperceptibly. The Bluetooth device 60 may be the vehicle 20 shown in Figure 1. In this embodiment of the present application, the imperceptible vehicle unlocking scenario is used as an example for illustration, and it will be understood that another service scenario may be used instead, which is not limited in this embodiment of the present application.

[0221] FIG. 14 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in FIG. 14, the Bluetooth system includes an electronic device 10, a Bluetooth device 60 (e.g., a vehicle 20), and a server 70. As shown in FIG. 14, the electronic device 10 includes a Bluetooth chip 101, a Bluetooth agent module 105, an APP 102, an OMA API 103, a SE 104, and a TEE 106. The Bluetooth system may include either the SE 104 or the TEE 106 connected to the OMA API 103, or may include both the SE 104 and the TEE 106. The Bluetooth chip 101 establishes a connection with the Bluetooth agent module 105. The Bluetooth agent module 105 is connected to the TEE 106, and the Bluetooth agent module 105 is connected to the SE 104 through the OMA API 103.

[0222] Before the system architecture is used for imperceptible vehicle unlocking, the user needs to install the APP 102 on the electronic device 10, and the electronic device 10 completes the registration process. The following processes are described separately, namely (d) the registration process and (e) the service execution process. In this embodiment of the present application, for the deregistration process of the APP 102, please refer to the specific description of the example shown in Figure 13. The details are not repeated in this specification.

[0223] (d) Registration Process The following describes the registration process with reference to the system architecture shown in Figure 14 and the process shown in Figure 15. Figure 15 is a schematic flowchart of the registration process of APP 102 according to an embodiment of the present application. The registration process of APP 102 includes steps S501 to S506.

[0224] S501: When the APP 102 is installed on the electronic device 10, the APP 102 obtains a first certificate from the server 70.

[0225] In this embodiment of the present application, if the APP ID of the APP 102 is not stored in the Bluetooth agent module 105, the APP 102 may obtain a first certificate from the server 70. The first certificate may be used to prove the authorization of the APP 102 to the Bluetooth agent module 105.

[0226] In one possible implementation, when the APP 102 is installed on the electronic device 10, the APP 102 can send a message to the server 70 used to request the delivery of a first certificate. The server 70 then sends the first certificate to the APP 102. In another possible implementation, when the APP 102 is installed on the electronic device 10, the server 70 delivers the first certificate to the APP 102.

[0227] S502: The APP 102 sends the first registration information and the first certificate to the Bluetooth agent module 105.

[0228] Optionally, the APP 102 may further send the first certificate to the Bluetooth agent module 105. The first certificate may prove the authorization of the APP 102 to the Bluetooth agent module 105, so that the authorization verification performed on the APP 102 in step S503 is successful.

[0229] S503: The Bluetooth agent module 105 performs authorization verification for the APP 102 based on the first registration information and the first certificate.

[0230] S504: When the authorization verification is successful, the Bluetooth agent module 105 sends the first device identification information to the Bluetooth chip 101.

[0231] S505: The Bluetooth agent module 105 detects whether the Bluetooth scanning function of the Bluetooth chip 101 is enabled.

[0232] S506: When detecting that the Bluetooth scanning function of the Bluetooth chip 101 is not enabled, the Bluetooth agent module 105 enables the Bluetooth scanning function.

[0233] S507: The Bluetooth chip 101 performs a scan.

[0234] The following describes the first certificate in step S502 and the authorization verification process in step S503.

[0235] The first certificate is a digital certificate digitally signed by a certificate authority (CA). The certificate authority is recognized by the Bluetooth agent module 105. The first certificate may include the public key of the server 70, the name of the server 70, and the digital signature of the certificate authority. When the Bluetooth agent module 105 uses the first certificate to perform identity authentication, the first certificate may randomly generate an identity code. Each digital certificate can generate a corresponding identity code, but the identity code generated each time is different.

[0236] The first certificate is electronic data that is reviewed and issued by the authentication center and includes identity information of the server 70. Therefore, the first certificate can use the digital signature of the authentication authority to prove to the Bluetooth agent module 105 that the server 70 is authenticated by the authentication authority.

[0237] The Bluetooth agent module 105 stores the public key of the certificate authority, and uses the public key of the certificate authority to verify the digital signature of the certificate authority in the first certificate. When the verification is successful, the authorization verification is successful. Then, steps S504 to S507 are executed.

[0238] For steps S504 to S507, please refer to the description of steps S203 to S206 in the example shown in Figure 10. Details will not be repeated in this specification.

[0239] (e) Service Execution Process After the registration is completed and the account is logged in, the electronic device 10 can execute a service execution method according to an embodiment of the present application. Figure 16 is a schematic flowchart of a service execution method according to an embodiment of the present application. In the service execution method, an example is used in which a Bluetooth channel is established between the external Bluetooth device 60 and the SE 104. The establishment of a Bluetooth channel between the external Bluetooth device 60 and the TEE 106 is similar. The service execution method is based on the system architecture shown in Figure 14, and the service execution method includes steps S601 to S608.

[0240] S601: The Bluetooth device 60 broadcasts a Bluetooth broadcast signal.

[0241] The Bluetooth broadcast signal may carry a first device identification information (e.g., a first UUID) and a first device identity information (e.g., a first device ID). The first device identity information has a one-to-one correspondence with the Bluetooth device 50.

[0242] S602: The Bluetooth chip 101 receives a Bluetooth broadcast signal from the Bluetooth device 60, and detects whether the device from which the received Bluetooth broadcast signal is sent is registered in the electronic device 10.

[0243] When the electronic device 10 is in a sleep state (e.g., the electronic device 10 is in a screen-off sleep state), if the Bluetooth chip 101 detects that the device (Bluetooth device 50) that sent the Bluetooth broadcast signal is not registered on the electronic device 10, the Bluetooth agent module 105 may go to a sleep state.

[0244] S603: When detecting that the device from which the Bluetooth broadcast signal originates is registered in the electronic device 10, the Bluetooth chip 101 wakes up the Bluetooth agent module 105 and sends the first device identification information.

[0245] The Bluetooth agent module 105 stores the first registration information in step S203 in the registration process shown in FIG. 10. The Bluetooth agent module 105 discovers the first registration information using the first device identification information. The (5) OPTION in the first registration information may indicate that the data receiving entity is the TEE 106, and the Bluetooth chip 101 does not wake up the APP 102 after acquiring the first device identification information through scanning. When detecting that the device that transmits the Bluetooth broadcast signal is registered in the electronic device 10, the Bluetooth agent module 105 may establish a channel to the Bluetooth device 60. In this case, the channel between the Bluetooth agent module 105 and the external Bluetooth device is established using steps S601 to S603, and the Bluetooth agent module 105 may acquire the service information of the TEE 106 and send the service information to the external Bluetooth device.

[0246] After step S603, when the user carries the electronic device 10 and moves close to the Bluetooth device 60, the user can execute a transaction process (e.g., unlock the vehicle lock silently). See steps S604 to S608. For steps S307 to S310, see the description of steps S105 to S108 in the example shown in Figure 7. Details will not be repeated in this specification.

[0247] For example, in a scenario where the Bluetooth device 60 unlocks the vehicle lock of the vehicle 20, when the vehicle 20 detects that the distance between the vehicle 20 and the electronic device 10 is less than or equal to a specific distance (e.g., 30 meters), the vehicle 20 can execute steps S601 to S603 to establish a Bluetooth channel to the Bluetooth agent module 105. After the channel between the Bluetooth agent module 105 and the vehicle 20 is established using steps S601 to S603, the vehicle 20 can detect the distance between the electronic device 10 and the vehicle 20 in real time. When the vehicle 20 detects that the distance between the vehicle 20 and the electronic device 10 is less than or equal to a specific distance (e.g., 10 meters), the vehicle 20 can execute steps S604 to S607 to complete the verification process. When the vehicle 20 detects that the distance between the vehicle 20 and the electronic device 10 is less than or equal to a specific distance (e.g., 3 meters), step S608 is executed to unlock the vehicle lock.

[0248] S604: The Bluetooth device 60 transmits a ciphertext verification command to the Bluetooth agent module 105 over the channel.

[0249] The ciphertext verification command may be sent after being encrypted using a digital signature. The ciphertext verification command may include a digital signature of the Bluetooth device 60, for example, a digital signature including a private key of the Bluetooth device 60. The Bluetooth agent module 105 may store a public key corresponding to the private key of the Bluetooth device 60. After receiving the ciphertext verification command, the Bluetooth agent module 105 first verifies the digital signature of the Bluetooth device 60 using the public key. If the verification is successful, step S605 is executed.

[0250] S605: The Bluetooth agent module 105 obtains the first ciphertext from the applet of the SE 104.

[0251] S606: The Bluetooth agent module 105 sends the first ciphertext to the Bluetooth device 60 through the Bluetooth chip 101.

[0252] In the transmission process of step S606, the first ciphertext may be encrypted for transmission. The encryption method is not limited in this embodiment of the present application.

[0253] S607: The Bluetooth device 60 compares the first ciphertext with the ciphertext of the SE.

[0254] S608: If the comparison of the cryptograms is successful, the Bluetooth device 60 unlocks the vehicle lock of the Bluetooth device 60.

[0255] For example, if the first ciphertext is the same as the ciphertext in the applet of the SE of the Bluetooth device 60, the comparison is successful.

[0256] In the above-mentioned service execution method process, the Bluetooth agent module 105 is started only after the Bluetooth chip 101 detects that the device (Bluetooth device 60) that sent the Bluetooth broadcast signal is registered in the electronic device 10. In order to reduce the power consumption and memory usage of the electronic device 10, the Bluetooth agent module 105 and the application processor of the electronic device 10 do not need to be in an active state all the time.

[0257] In the above service execution method process, a Bluetooth channel is directly established between the SE 104 and the Bluetooth device 60 without running the APP 102, so as to reduce the power consumption and memory usage of the electronic device 10.

[0258] In the above-mentioned service execution method process, the user does not need to manually execute the APP 102. In this way, the service execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0259] In the above-mentioned service execution method process, the APP 102 does not need to be kept in a running state, so as to further reduce the power consumption and memory usage of the electronic device 10. In this embodiment of the present application, the Bluetooth agent module 105 further provides a management platform for establishing a Bluetooth channel for the Bluetooth-related service execution process.

[0260] In one possible implementation, the Bluetooth scanning function in step S602 may be implemented by the user manually turning on the Bluetooth scanning switch 1001. See FIG. 11(a), FIG. 11(b1), and FIG. 11(b2). In another possible implementation, the Bluetooth scanning function may alternatively be enabled when the electronic device 10 detects that the Bluetooth scanning function is not enabled. For example, in the example of the registration process described in FIG. 15, the Bluetooth agent module 105 enables the Bluetooth scanning function by executing steps S505 and S506. Alternatively, after the registration is completed, the Bluetooth agent module 105 can automatically enable the Bluetooth scanning function in the service process. The Bluetooth agent module 105 can enable the Bluetooth scanning function, so that the user does not need to manually enable the Bluetooth scanning function. In this way, the service execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0261] In some other embodiments of the present application, the APP 102 can further establish a connection to the SE 104 through the OMA API 103. The (5) OPTION in the first registration information may indicate that the data receiving entity is the SE 104, and the Bluetooth chip 101 wakes up the APP 102 after acquiring the first device identification information through scanning. After step S603, the Bluetooth agent module 105 wakes up the APP 102. The Bluetooth agent module 105 establishes a channel to the external Bluetooth device 60, and the Bluetooth agent module 105 can be connected to the SE 104, so that the service information (e.g., a ciphertext) in the SE 104 can be transmitted to the Bluetooth device 60 (e.g., a vehicle).

[0262] In this embodiment of the present application, the Bluetooth device 60 can further establish a communication connection to a server 70, as shown in Fig. 14. The Bluetooth device 60 can exchange service information with the server 70 through the communication connection. For example, the service information is a fingerprint comparison result from the SE 104 of the electronic device 10.

[0263] Specifically, after a channel is established between the Bluetooth agent module 105 and the external Bluetooth device, the server 70 verifies the user identity on the electronic device 10 in the transaction process, for example, if the user's fingerprint or face image needs to be verified, after the verification is completed, the electronic device 10 can send a comparison result to the server 70 through the Bluetooth device 60. Fingerprint verification is used as an example. First, the electronic device 10 compares the detected fingerprint with a pre-stored fingerprint and stores the comparison result in the SE 104 of the electronic device 10. The Bluetooth agent module 105 obtains the comparison result from the SE 104. The Bluetooth agent module 105 sends the comparison result to the Bluetooth device 60 through the Bluetooth connection. The Bluetooth device 60 sends the comparison result to the server 70 through the communication connection between the Bluetooth device 60 and the server 70 to complete the transaction process.

[0264] It should be understood that the communication connection between the Bluetooth device 60 and the server 70 is not limited to the above-mentioned functional examples, and may be further used to transmit other service information in the service execution process, which is not limited in this embodiment of the present application.

[0265] For the service execution process of imperceptible vehicle unlocking, the server 70 may alternatively not be required in the registration process of the APP 102. The Bluetooth agent module 105 may store the APP_ID of the APP 102, and the Bluetooth agent module 105 may use the APP_ID of the APP 102 to perform authorization verification for the APP. Specifically, FIG. 17 is a schematic diagram of the architecture of a Bluetooth system according to an embodiment of the present application. As shown in FIG. 17, the Bluetooth system includes an electronic device 10 and a Bluetooth device 80 (e.g., a vehicle 20). As shown in FIG. 17, the electronic device 10 includes a Bluetooth chip 101, a Bluetooth agent module 105, an APP 102, an OMA API 103, an SE 104, and a TEE 106. The Bluetooth system may include either the SE 104 or the TEE 106 connected to the OMA API 103, or may include both the SE 104 and the TEE 106. The Bluetooth chip 101 establishes a connection with a Bluetooth agent module 105. The Bluetooth agent module 105 is connected to a TEE 106, which in turn is connected to an SE 104 through an OMA API 103.

[0266] After the APP 102 is installed on the electronic device 10, the registration process of the APP needs to be completed. For the registration process, please refer to the embodiment described in FIG. 10. The registration process is completed only for the electronic device 10. For the service execution process, please refer to the embodiment described in FIG. 16. Neither the registration process nor the service execution process requires interaction with the server. For the service deregistration process, please refer to the specific description of the example shown in FIG. 13. Details will not be repeated in this specification.

[0267] (3) Automatic upload of weight scale data In this service execution method, an example in which service information (e.g., weight information) is uploaded to an electronic device without the user's knowledge is used for the description. The Bluetooth device 50 may be a weight scale 90. In this embodiment of the present application, a scenario in which the data of the weight scale 90 is automatically uploaded is used as an example for description, and it is understood that another service scenario may be used instead. This is not limited in this embodiment of the present application. The electronic device 10 may receive a Bluetooth broadcast signal. An APP 102 corresponding to the weight scale 90 may be installed in the electronic device 10. The APP 102 on the electronic device 10 can establish a channel to the weight scale 90 using the Bluetooth broadcast signal, and the weight scale 90 can upload the weight data detected in real time to the APP 102. In the above process of uploading the data of the weight scale 90, the data of the weight scale 90 can be uploaded without the user's knowledge without manually operating the APP 102 on the electronic device 10.

[0268] 18 is a schematic diagram of the architecture of a Bluetooth system according to one embodiment of the present application. As shown in FIG. 18, the Bluetooth system includes a Bluetooth device (eg, a weight scale 90) and an electronic device 10.

[0269] 18, the electronic device 10 includes a Bluetooth chip 101, a Bluetooth agent module 105, and an APP 102. The Bluetooth chip 101 establishes a connection to the Bluetooth agent module 105, and the Bluetooth agent module 105 establishes a connection to the APP 102.

[0270] After the APP 102 is installed on the electronic device 10, the registration process of the APP needs to be completed. For the registration process, please refer to the embodiment described in Figure 10. The registration process is completed only for the electronic device 10.

[0271] After the registration is completed and the account is logged in, the electronic device 10 can execute the service execution method according to an embodiment of the present application. Figure 19 is a schematic flowchart of the service execution method according to an embodiment of the present application. As shown in Figure 19, the service execution method includes steps S701 to S706.

[0272] S701: The Bluetooth device 90 broadcasts a Bluetooth broadcast signal.

[0273] The Bluetooth broadcast signal may carry a first device identification information (e.g., a first UUID) and a first device identity information (e.g., a first device ID). The first device identity information has a one-to-one correspondence with the Bluetooth device 50.

[0274] S702: The Bluetooth chip 101 receives a Bluetooth broadcast signal, and detects whether the device from which the Bluetooth broadcast signal originates (the Bluetooth device 90) is registered in the electronic device 10.

[0275] When the electronic device 10 is in a sleep state (e.g., the electronic device 10 is in a screen-off sleep state), if the Bluetooth chip 101 detects that the device (Bluetooth device 90) that sent the Bluetooth broadcast signal is not registered on the electronic device 10, the Bluetooth agent module 105 may go to a sleep state.

[0276] S703: When detecting that the device from which the Bluetooth broadcast signal originates is registered in the electronic device 10, the Bluetooth chip 101 wakes up the Bluetooth agent module 105 and sends the first device identification information.

[0277] S704: The Bluetooth agent module 105 executes the APP 102 based on the first device identification information and the first registration information.

[0278] For the description of steps S701 to S704, please refer to the specific description of steps S301 to S304 of the service execution method described in Figures 12A and 12B.

[0279] When detecting that the device from which the Bluetooth broadcast signal originates is registered with the electronic device 10, the Bluetooth agent module 105 may establish a channel to the Bluetooth device 90 using steps S701 to S704. Service information (e.g., weight information) from the Bluetooth device 90 may be sent to the Bluetooth agent module 105. The Bluetooth agent module 105 may wake up the APP and send the service information (e.g., weight information) to the APP 102.

[0280] Optionally, the service information (e.g., weight information) from the external Bluetooth device 90 may alternatively be received by the Bluetooth chip 101 in the form of a broadcast signal and sent to the Bluetooth agent module 105. The Bluetooth agent module 105 then sends the service information to the APP 102.

[0281] S705: The Bluetooth device 90 detects weight information.

[0282] The weight information may include data such as weight value, body fat value, health index, etc. For example, the weight information may be transmitted to the APP 102 through a Bluetooth connection.

[0283] S706: The Bluetooth device 90 transmits the weight information to the APP 102 through a channel between the Bluetooth device 90 and the APP 102.

[0284] The APP 102 may store the weight information, and the APP 102 may further display the weight information.

[0285] In the above method process, in the process of establishing a Bluetooth connection between the Bluetooth device 90 and the Bluetooth chip 101, the Bluetooth agent module 105 is initiated only after the Bluetooth chip 101 detects that the device (Bluetooth device 90) that sent the Bluetooth broadcast signal is registered with the electronic device 10. In order to reduce the power consumption and memory usage of the electronic device 10, the Bluetooth agent module 105 and the application processor of the electronic device 10 do not need to be in an active state all the time.

[0286] In the above process in which the weight scale uploads weight information to the application, the user does not need to manually execute the APP 102. In this way, the execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0287] In the aforementioned process in which the weight scale uploads weight information to the application, the APP 102 does not need to be kept in a running state, so as to further reduce the power consumption and memory usage of the electronic device 10. In this embodiment of the present application, the Bluetooth agent module 105 further provides a management platform for the Bluetooth-related service execution process.

[0288] In another possible implementation, the Bluetooth scanning function may alternatively be enabled when the electronic device 10 detects that the Bluetooth scanning function is not enabled. For example, in the example of the registration process, the Bluetooth agent module 105 enables the Bluetooth scanning function. Alternatively, after the registration is completed, the Bluetooth agent module 105 can automatically enable the Bluetooth scanning function in the service execution process. The Bluetooth agent module 105 can enable the Bluetooth scanning function, so that the user does not need to manually enable the Bluetooth scanning function. In this way, the service execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0289] Figure 20 is a schematic diagram of the structure of an electronic device 10 according to an embodiment of the present application. The method is executed on the electronic device 10. The electronic device 10 may be the electronic device 10 of any system architecture of Figure 8, Figure 9, Figure 14, Figure 17, or Figure 18. As shown in Figure 20, the electronic device 10 includes a Bluetooth chip 101 and a Bluetooth agent module 105. The Bluetooth chip 101 is connected to the Bluetooth agent module 105.

[0290] Figure 21 is a schematic flowchart of a Bluetooth scanning method according to an embodiment of the present application. As shown in Figure 21, based on the electronic device 10 described in Figure 20 and any system architecture of Figure 8, Figure 9, Figure 14, Figure 17, or Figure 18, the Bluetooth scanning method includes steps S801 to S803.

[0291] S801: The Bluetooth agent module indicates which Bluetooth chips to scan for device identifiers.

[0292] In this embodiment of the present application, in the stage of registering the application in the electronic device, the Bluetooth agent module indicates a device identifier that needs to be scanned by the Bluetooth chip. For the stage of registering the application, please refer to the examples described in Figure 10 and Figure 15. Details will not be repeated here.

[0293] The device identifier is the UUID of the external Bluetooth device.

[0294] S802: If a first device identifier of the device identifiers is obtained through scanning, the Bluetooth chip notifies the Bluetooth agent module.

[0295] The first device identifier is obtained through scanning, which may mean that in the registration process of the application corresponding to the first device identifier, the first device identifier is stored in the Bluetooth chip, and the Bluetooth chip detects that the first device identifier is stored in the Bluetooth chip. In other words, the first device that is the source of the Bluetooth broadcast signal is registered in the electronic device 10. In this embodiment of the present application, the first device may be an external Bluetooth device, such as a payment device or a vehicle.

[0296] S803: The Bluetooth agent module establishes a channel to the first device based on the first device identifier, or notifies an application corresponding to the first device identifier.

[0297] When the electronic device 10 is in a sleep state (e.g., the electronic device 10 is in a screen-off sleep state), if the Bluetooth chip 101 detects that the received device identifier is not included in the device identifier list pre-stored in the Bluetooth chip 101, the Bluetooth agent module 105 may be in a sleep state. If the Bluetooth chip 101 detects that the received first device identifier is included in the device identifier list pre-stored in the Bluetooth chip 101, the Bluetooth chip 101 wakes up the Bluetooth agent module 105 and transmits the first device identifier to the Bluetooth agent module 105. In the above-mentioned Bluetooth scanning method, the Bluetooth agent module 105 is started only when the Bluetooth chip 101 obtains the first device identifier among the device identifiers through scanning. In the electronic device 10, the Bluetooth agent module 105 and the application processor do not need to be in an operating state all the time in order to reduce the power consumption and memory usage of the electronic device 10.

[0298] In the above-mentioned Bluetooth scanning method, the Bluetooth agent module 105 can execute the APP 102, and the user does not need to execute the APP 102 manually. In this way, the execution process is imperceptible to the user, and the convenience of the service execution process is improved. Although the Bluetooth agent module 105 can execute the APP 102, it is not necessary to always execute the APP 102 on the electronic device 10, and the execution of the APP 102 can be stopped by the application processor to further reduce the power consumption and memory usage of the electronic device 10.

[0299] In the aforementioned Bluetooth scanning method, the Bluetooth agent module 105 is connected to the SE and can directly establish a Bluetooth channel between the Bluetooth chip 101 and the Bluetooth device without running the APP 102, so as to further reduce the power consumption and memory usage of the electronic device 10. The Bluetooth agent module 105 further provides a Bluetooth scanning management platform for the Bluetooth-related service execution process.

[0300] The Bluetooth agent module 105 is connected to the SE and can directly establish a Bluetooth channel between the Bluetooth chip 101 and the Bluetooth device 60 without running the APP 102, to further reduce the power consumption and memory usage of the electronic device 10.

[0301] In one possible implementation, after the Bluetooth agent module establishes a channel to the first device based on the first device identifier, the method further includes the Bluetooth agent module obtaining service information corresponding to the first device identifier and transmitting the service information to the first device over the channel.

[0302] The Bluetooth agent module 105 establishes a channel to an external Bluetooth device (first device), and the Bluetooth agent module 105 may be connected to the SE (or TEE) so that service information (e.g., cryptograms) in the SE (TEE) may be transmitted to the external Bluetooth device (e.g., vehicle).

[0303] For example, the service information is verification information, and the verification information is used by the first device to perform verification based on the locally stored information and the verification information, and if the verification is successful, the corresponding service is executed. For example, the service information is a ciphertext in the example shown in FIG.

[0304] In one possible implementation, the service information is verification result information, and the verification result information is sent to a server, so that the server executes a corresponding service based on the verification result information.

[0305] For example, the verification result information is a fingerprint comparison result or a face comparison result on the electronic device, and the payment process or the vehicle unlocking process is executed only when the comparison result indicates a successful comparison.

[0306] In one possible implementation, the service information is information related to validating an electronic vehicle key, and performing a corresponding service refers to unlocking a corresponding vehicle lock.

[0307] For the vehicle unlocking service execution process, please refer to the example shown in Figure 16. Details will not be repeated in this specification.

[0308] In one possible implementation, after the Bluetooth agent module establishes a channel to the first device based on the first device identifier, the method further includes the Bluetooth agent module notifying an application corresponding to the first device identifier. The application obtains service information corresponding to the first device identifier. The application sends the service information corresponding to the first device identifier to the Bluetooth agent module. The Bluetooth agent module sends the service information corresponding to the first device identifier to the first device over the channel.

[0309] For example, the service information is verification information, and the verification information is used by the first device to perform verification based on the locally stored information and the verification information, and if the verification is successful, the corresponding service is executed. For example, the service information is a ciphertext in the example shown in FIG.

[0310] In one possible implementation, after the Bluetooth agent module notifies the application corresponding to the first device identifier based on the first device identifier, the method further includes the Bluetooth agent module sending service information from the first device to the application, such that the application displays the service information to a user.

[0311] For example, the first device may alternatively be a weight scale, and the service information may be weight information. For the service execution process of transmitting weight information, please refer to the example described in Figure 19. Details will not be repeated in this specification.

[0312] In the above-mentioned service execution method process, in the process of establishing a Bluetooth connection between a Bluetooth device and a Bluetooth chip, the Bluetooth agent module is started only after the Bluetooth chip detects that the device (Bluetooth device) that sends the Bluetooth broadcast signal is registered in the electronic device. In order to reduce the power consumption and memory usage of the electronic device, the Bluetooth agent module and the application processor of the electronic device do not need to be in an active state all the time.

[0313] In this embodiment of the present application, the user does not need to manually execute the APP. In this way, the service transaction execution process is imperceptible to the user, and the convenience of the service execution process is improved.

[0314] In this embodiment of the present application, the APP does not need to be kept in a running state, so as to further reduce the power consumption and memory usage of the electronic device. In this embodiment of the present application, the Bluetooth agent module further provides a management platform for Bluetooth-related service transaction processes.

[0315] In one possible implementation, the Bluetooth agent module notifying the application corresponding to the first device identifier based on the first device identifier includes the Bluetooth agent module executing the application corresponding to the first device identifier based on the first device identifier and sending the first device identifier to the application. After the Bluetooth agent module notifies the application corresponding to the first device identifier based on the first device identifier, the method further includes the application obtaining service information from the first device and sending the service information and the user account information to the server, such that the server performs verification based on the service information and the user account information sent by the application and the user information obtained by the first device, and performs the service transaction if the verification is successful.

[0316] The user information is a face image, and performing a service transaction refers to performing a payment transaction using the user account information as a transaction account. For the service transaction process of imperceptible payment, please refer to the example described in Figure 12A and Figure 12B. Details will not be repeated in this specification.

[0317] In one possible implementation, before the Bluetooth agent module indicates which Bluetooth chips to scan for a device identifier, the method further includes the Bluetooth agent module enabling a Bluetooth scanning function when it detects that the Bluetooth scanning function is disabled.

[0318] For example, in one example of the registration process, the Bluetooth agent module enables the Bluetooth scanning function. Alternatively, after the registration is completed, the Bluetooth agent module can automatically enable the Bluetooth scanning function in the service transaction process. The Bluetooth agent module can enable the Bluetooth scanning function, so that the user does not need to manually enable the Bluetooth scanning function. In this way, the service transaction execution process is imperceptible to the user, and the convenience of the service transaction process is improved.

[0319] In one possible implementation, the Bluetooth agent module is an application / interface at the application framework layer.

[0320] In one possible implementation, before the Bluetooth agent module indicates the Bluetooth chip to scan for the device identifier, the method further includes the Bluetooth agent module performing an authorization verification for the application. When the authorization verification is successful, the Bluetooth agent module transmits the first device identifier to the Bluetooth chip, such that the Bluetooth chip notifies the Bluetooth agent module when it obtains the first device identifier through the scan.

[0321] For a description of the authorization verification in the registration process, please refer to step S202 in the example illustrated in Figure 10. Details will not be repeated here.

[0322] In one possible implementation, the Bluetooth agent module performing an authorization verification for the application includes the Bluetooth agent module detecting whether the first device identifier is included in a locally stored list of authorized device identifiers. When the first device identifier is included in the list of authorized device identifiers, the authorization verification is successful.

[0323] For the locally performed authorization verification process, please refer to step S202 in the example illustrated in Figure 10. Details will not be repeated here.

[0324] In one possible implementation, before the Bluetooth agent module performs authorization verification for the application, the method further includes the application obtaining a first certificate used to prove authorization of the application from the server. The Bluetooth agent module performing authorization verification for the application includes the Bluetooth agent module performing authorization verification for the application based on the first certificate.

[0325] For the process of performing authorization verification using the certificate on the server side, please refer to steps S501 to S503 in the example illustrated in Figure 15. Details will not be repeated in this specification.

[0326] In one possible implementation, the method further includes the Bluetooth agent module instructing the Bluetooth chip to stop scanning for the first device identifier when the application is uninstalled from the electronic device.

[0327] For the APP deregistration process, please refer to the example illustrated in Figure 13. Details will not be repeated here.

[0328] It is understood that in this embodiment of the present application, Bluetooth scanning is used as an example for explanation. However, this embodiment of the present application is not limited to the service performed by Bluetooth scanning. Alternatively, other short-range scanning, such as Wi-Fi scanning, Wi-Fi connection, or ZigBee connection, may be used. This is not limited in this embodiment of the present application.

[0329] For example, in a Wi-Fi scanning or Wi-Fi connection scenario, the Bluetooth agent module 105 can be a Wi-Fi agent module. Similar to the Bluetooth agent module 105, the Wi-Fi agent module is connected to a Wi-Fi chip and a corresponding application. The Wi-Fi agent module is configured to instruct the Wi-Fi chip to scan for a device identifier, and establish a channel to the device based on the device identifier, or notify the application corresponding to the device identifier.

[0330] An embodiment of this application further provides a computer-readable storage medium, which stores instructions that, when executed on a computer or processor, enable the computer or processor to perform one or more steps according to any one of the methods described above.

[0331] An embodiment of the present application further provides a computer program product comprising instructions, which when executed on a computer or processor, enable the computer or processor to perform one or more steps of any one of the methods described above.

[0332] In the above-mentioned embodiments, all or part of the functions may be implemented using software, hardware, or a combination of software and hardware. When software is used to implement the embodiments, all or part of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed in a computer, all or part of the procedures or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or another programmable device. The computer instructions may be stored in a computer-readable storage medium. The computer-readable storage medium may be any available medium that can be accessed by a computer, or a data storage device, such as a server or a data center, that integrates one or more available media. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk (SSD)), etc.

[0333] The above description is merely a specific implementation of the embodiments of the present application, and is not intended to limit the scope of protection of the embodiments of the present application. Any modifications or replacements within the technical scope disclosed in the embodiments of the present application shall fall within the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application shall be subject to the scope of protection of the claims. [Explanation of symbols]

[0334] 1 Antenna 2 Antennas 10 Electronic Devices 20 Bluetooth Devices (Vehicles) 30 Bluetooth devices (payment devices) 40 Servers 50 Bluetooth devices 51 Bluetooth Devices 52 Bluetooth Devices 60 Bluetooth Devices 70 Servers 80 Bluetooth Devices 90 Bluetooth Devices (Weight Scales) 100 Application Interface 101 Bluetooth Chip 102 APP 103 Open Mobile Alliance Application Programming Interface (OMA API) 104 Secure Element (SE) 105 Bluetooth Agent Module 106 Secure Storage Area (TEE) 110 Processor 120 External Memory Interface 121 Internal Memory 130 Universal Serial Bus (USB) ports 140 Charging Management Module 141 Power Management Module 142 Battery 150 Mobile Communication Module 160 Wireless communication module 170 Audio Module 170A Speaker 170B Receiver 170C Microphone 170D Headset Jack 180 Sensor Module 180A PRESSURE SENSOR 180B Gyro sensor 180C Barometric Pressure Sensor 180D Magnetic Sensor 180E Acceleration Sensor 180F Distance Sensor 180G Optical Proximity Sensor 180H Fingerprint Sensor 180J Temperature Sensor 180K touch sensor 180L Ambient Light Sensor 180M Bone Conduction Sensor 190 Button 191 Motor 192 Indicator 193 Camera 194 Display 195 Subscriber Identity Module (SIM) Card Interface 200 Configuration Interface 201 In-vehicle Bluetooth chip, configuration entry 202 Automotive SE 300 Bluetooth agent module configuration interface 301 Bluetooth Agent Module Switch 302 Switch Instructions 303 List 1001 Bluetooth Scan Switch 1002 Bluetooth scan prompt 1011 Wireless Local Area Network (WLAN) Scan Switch 1012 WLAN scan prompt 1021 APP 1022 APP 3031 Alipay identifier 3032 Bluetooth Vehicle Key Identifier

Claims

1. 1. A Bluetooth scanning method applied to an electronic device, the electronic device comprising a Bluetooth agent module and a secure element (SE), the SE including an applet, the method comprising: receiving, by the electronic device, a first device identifier transmitted by a first device; determining, by the electronic device, in response to the first device identifier received by the electronic device, whether the first device is registered with the electronic device; based on the step of determining, by the electronic device, that the first device is registered with the electronic device, waking up the Bluetooth agent module and transmitting the first device identifier to the Bluetooth agent module; establishing, by the Bluetooth agent module based on the step of determining that the first device is registered with the electronic device, a channel to the first device based on the first device identifier; receiving, by said Bluetooth agent module, a ciphertext verification command from said first device over said channel; obtaining, by the Bluetooth agent module, a first ciphertext from the applet of the SE; sending the first cryptogram to the first device by the Bluetooth agent module, wherein when verification of the first cryptogram is successful, the first device executes a corresponding service; A Bluetooth scanning method.

2. 2. The Bluetooth scanning method of claim 1, wherein the step of determining, by the electronic device, whether the first device is registered on the electronic device includes a step of comparing, by the electronic device, the first device identifier with a device identifier of a registered device and stored on the electronic device.

3. The method includes the steps of establishing, by the Bluetooth agent module, a channel to the first device based on the first device identifier; 2. The Bluetooth scanning method of claim 1, further comprising: obtaining, by the Bluetooth agent module, service information corresponding to the first device identifier; and transmitting the service information to the first device through the channel.

4. The Bluetooth scanning method of claim 3, wherein the service information includes verification information, the verification information is used by the first device to perform verification based on locally stored information and the verification information, and if the verification is successful, a corresponding service is executed.

5. The Bluetooth scanning method according to claim 3, wherein the service information is verification result information, and the verification result information is sent to a server, so that the server executes a corresponding service according to the verification result information.

6. 2. The Bluetooth scanning method according to claim 1, wherein the first cryptogram is information related to verifying an electronic vehicle key, and performing the corresponding service refers to unlocking a corresponding vehicle lock.

7. The method further includes the step of instructing, by the Bluetooth agent module, the electronic device to execute an application corresponding to the first device identifier based on the first device identifier and the step of determining that the first device is registered on the electronic device, and after the step of establishing, by the Bluetooth agent module, a channel to the first device based on the first device identifier, the method further comprises: notifying, by the Bluetooth agent module, the application corresponding to the first device identifier; obtaining, by the application, the service information corresponding to the first device identifier; sending, by the application, the service information corresponding to the first device identifier to the Bluetooth agent module; and transmitting, by the Bluetooth agent module, the service information corresponding to the first device identifier to the first device through the channel.

8. After the step of notifying, by the Bluetooth agent module, the application corresponding to the first device identifier based on the first device identifier, the method further comprises:

8. The Bluetooth scanning method of claim 7, further comprising the step of transmitting, by the Bluetooth agent module, the service information from the first device to the application so that the application displays the service information to a user.

9. The step of notifying the application corresponding to the first device identifier by the Bluetooth agent module based on the first device identifier includes: executing, by the Bluetooth agent module based on the first device identifier, the application corresponding to the first device identifier, and transmitting the first device identifier to the application; After the step of notifying the application corresponding to the first device identifier by the Bluetooth agent module based on the first device identifier, the method further comprises: The Bluetooth scanning method of claim 7, further comprising: a server performing verification based on the service information and user account information sent by the application and the user information acquired by the first device; and if the verification is successful, acquiring, by the application, the service information from the first device and sending the service information and the user account information to the server, so as to execute a service transaction.

10. 10. The Bluetooth scanning method of claim 9, wherein the user information is a face image, and performing the service transaction refers to performing a payment transaction using the user account information as a transaction account.

11. The Bluetooth scanning method according to any one of claims 1 to 10, wherein the Bluetooth agent module is an application / interface in an application framework layer.

12. 2. The Bluetooth scanning method of claim 1, wherein the electronic device includes a Bluetooth chip, and the Bluetooth agent module indicates the Bluetooth chip to scan for a device identifier before the electronic device determines whether the first device is registered on the electronic device.

13. Before the Bluetooth agent module instructs the Bluetooth chip to scan for the device identifier, the method further comprises: sending, by an application, Bluetooth scan registration information to the Bluetooth agent module, the Bluetooth scan registration information including at least the first device identifier and application information corresponding to the first device identifier; performing, by said Bluetooth agent module, an authorization verification for said application; 13. The Bluetooth scanning method of claim 12, further comprising: when the authorization verification is successful, transmitting the first device identifier to the Bluetooth chip by the Bluetooth agent module, so that the Bluetooth chip notifies the Bluetooth agent module when it obtains the first device identifier through scanning.

14. The step of performing an authorization verification for the application by the Bluetooth agent module comprises:

14. The Bluetooth scanning method of claim 13, further comprising the step of detecting, by the Bluetooth agent module, whether the first device identifier is included in a locally stored authorized device identifier list, and when the first device identifier is included in the authorized device identifier list, the authorization verification is successful.

15. Prior to the step of performing an authorization verification for the application by the Bluetooth agent module, the method further comprises: obtaining, by the application, from a server, a first certificate used to authenticate the application; The step of performing authorization verification for the application by the Bluetooth agent module comprises:

15. The Bluetooth scanning method of claim 14, further comprising the step of performing, by the Bluetooth agent module, authorization verification for the application based on the first certificate.

16. The method comprises:

16. The Bluetooth scanning method of claim 12, further comprising the step of instructing, by the Bluetooth agent module, the Bluetooth chip to stop scanning for the first device identifier when an application is uninstalled from the electronic device.

17. 17. The Bluetooth scanning method of claim 1, further comprising the step of instructing the electronic device, by the Bluetooth agent module, based on the first device identifier and the step of determining that the first device is registered on the electronic device, to execute an application corresponding to the first device identifier, wherein the application corresponding to the first device identifier comprises any one or more of a common terminal operating system application, a trusted execution environment application, or a secure element application.

18. 1. An electronic device, the electronic device comprising one or more processors, a memory, a Bluetooth agent module, and a secure element (SE), the SE including an applet; 18. An electronic device, wherein the memory is configured to store computer program code, the computer program code comprising computer instructions, and when the one or more processors execute the computer instructions, the electronic device is enabled to perform a Bluetooth scanning method according to any one of claims 1 to 17.

19. 18. A computer-readable storage medium comprising instructions which, when executed on an electronic device, enable the electronic device to perform the method of any one of claims 1 to 17.

Citation Information

Patent Citations

  • API execution control device and program

    JP2013182500A

  • Terminal verification method, device, program, and recording medium

    JP2017503289A

  • Vehicle computing system in communication with a wearable device

    US20150362997A1

  • Automated bluetooth pairing

    US20160309323A1

  • Electronic device for including signature in electronic document and method of controlling the same

    US20190058596A1