Ear temperature data processing method and electronic device

By binding an asymmetric key between the wireless earphone and the electronic device, the privacy issue of ear temperature data leakage when the account changes is resolved, thus achieving secure data protection and legitimate access.

CN116644461BActive Publication Date: 2026-11-20BEIJING HONOR DEVICE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210143572.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-16
Publication Date
2026-11-20
Estimated Expiration
2042-02-16

AI Technical Summary

Technical Problem

Wireless headphones pose a privacy risk of leaking ear temperature data when switching connected electronic devices, especially when account information changes, making it difficult to effectively protect user privacy data.

Method used

By binding an asymmetric key between the electronic device and the headset, the headset can delete the stored ear temperature data when the account changes, and then transmit the ear temperature data again after successful authentication, thus achieving data security protection.

Benefits of technology

It effectively protects users' ear temperature data privacy, prevents data leakage when accounts are changed, and ensures that data is only accessed under legitimate accounts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116644461B_ABST
    Figure CN116644461B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent terminals, and provides an ear temperature data processing method and an electronic device. The method comprises the following steps: in a first time period, a first electronic device is connected with an earphone, the earphone collects ear temperature data, and the first electronic device logs in a first application through a first account; the first electronic device displays the ear temperature data collected in the first time period in a first interface of the first application; in a second time period, the connection state of the first electronic device and the earphone is disconnected, and the earphone collects ear temperature data; in a third time period, a second electronic device is connected with the earphone, and the second electronic device logs in the first application through a second account; in a fourth time period, the first electronic device is connected with the earphone; the first electronic device displays a second interface of the first application, and the second interface does not include the ear temperature data collected by the earphone in the second time period. The above method can be used for protecting the safety of user privacy data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of smart terminal technology, specifically to a method for processing ear temperature data and an electronic device. Background Technology

[0002] Wireless headphones have gained increasing popularity due to their independent structure from electronic devices, ease of pairing, and longer battery life, leading to their rapid development. Along with this development, not only has the audio quality improved, but their functionality has also expanded. For example, some wireless headphones can now detect ear temperature. However, since ear temperature data is sensitive personal data, there is a risk of privacy breaches. Summary of the Invention

[0003] This application provides a method for processing ear temperature data and an electronic device that can protect the security of user privacy data.

[0004] In a first aspect, a method for processing ear temperature data is provided, comprising: an earphone collecting ear temperature data; a first electronic device connecting to the earphone during a first time period, the first electronic device logging into a first application through a first account; the first electronic device displaying a first interface of the first application, the first interface including the ear temperature data collected by the earphone during the first time period; the connection between the first electronic device and the earphone being disconnected during a second time period, the earphone collecting ear temperature data; the connection between the first electronic device and the earphone being disconnected during a third time period, a second electronic device connecting to the earphone, the second electronic device logging into the first application through a second account; the connection between the second electronic device and the earphone being disconnected during a fourth time period, the first electronic device connecting to the earphone; the first electronic device displaying a second interface of the first application, the second interface including the ear temperature data collected by the earphone during the first time period, but excluding the ear temperature data collected by the earphone during the second time period; the first time period, the second time period, the third time period, and the fourth time period are consecutive time periods.

[0005] When the electronic device and the earphones interact, if the account connected to the earphones changes, the earphones delete the stored ear temperature data. This ensures that when the earphones are connected to a new account, the electronic device logged into the new account cannot access the ear temperature data of the previous account, thus protecting the privacy of the user's ear temperature data.

[0006] Optionally, during the third time period, the second electronic device displays a third interface, which is the third interface of the first application. The third interface includes a first option and a second option. The first option can be a confirm option, and the second option can be a cancel option. The third interface may include a prompt message to inform the user that if the user selects the confirm option, the headphones will delete the stored ear temperature data. The second electronic device also receives a first operation for selecting the first option.

[0007] Optionally, during the third time period, after the second electronic device receives the first operation for selecting the first option, the earphone collects ear temperature data during the third time period; therefore, the second electronic device displays the fourth interface of the first application. Since the earphone has deleted the previous ear temperature data, the fourth interface includes the ear temperature data collected by the earphone during the third time period, but does not include the ear temperature data collected by the earphone during the first time period and the temperature data collected by the earphone during the second time period.

[0008] Optionally, the first electronic device displays a first interface of the first application, including: the first electronic device receiving a second operation, which may be a refresh operation in the interface of the first application; in response to the second operation, the first electronic device displays the first interface of the first application.

[0009] Optionally, the first account is bound to the earphone. During the third time period, in response to a third operation performed on the second electronic device, the second electronic device sends an authentication request to the earphone. The earphone authenticates the second account logged into the second electronic device and returns a prompt message including verification information to the second electronic device, wherein the verification result indicates that the earphone is bound to the first account. The second electronic device displays a fifth interface, which includes a prompt message, a first option, and a second option. The prompt message is also used to indicate that if the first option is selected, the earphone will delete the stored ear temperature data. The second electronic device receives a fourth operation for selecting the first option.

[0010] Optionally, before the first time period, the first account is bound to the headset. The steps of binding the first account to the headset include: the first electronic device obtains a pair of asymmetric keys through a key store, stores the private key in the asymmetric key, and sends the public key in the asymmetric key to the headset; the headset stores the public key.

[0011] Optionally, the headset authenticates the second account logged into the second electronic device, including: the headset sending a first random number to the second electronic device; the electronic device signing the first random number using a stored private key and sending the signing result to the headset; since the headset is bound to the first account, the public key stored in the headset and the private key corresponding to the first account are an asymmetric key pair, so the headset fails to design the signature result using the stored public key, and the verification result is that the headset is bound to an account other than the second account.

[0012] Before the first electronic device displays the first interface of the first application, the earpiece authenticates the first account logged into the first electronic device. The steps for the earpiece to authenticate the first account logged into the first electronic device include: the earpiece sending a second random number to the first electronic device; the first electronic device signing the second random number using its stored private key and sending the signing result to the earpiece; since the earpiece is bound to the first account, the public key stored in the earpiece and the private key corresponding to the first account are a pair of asymmetric keys. Therefore, the earpiece successfully designs the signature result using its stored public key, and the verification result is that the earpiece is bound to the first account.

[0013] In a second aspect, an electronic device is provided, comprising: a processor, a memory, and an interface; the processor, memory, and interface cooperate with each other to enable the electronic device to perform any one of the methods in the technical solution of the first aspect.

[0014] Thirdly, a computer-readable storage medium is provided, in which a computer program is stored, which, when executed by a processor, causes the processor to perform any one of the methods in the first aspect of the technical solution.

[0015] Fourthly, a computer program product is provided, comprising: computer program code, which, when executed on an electronic device, causes the electronic device to perform any one of the methods in the technical solution of the first aspect. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the structure of a terminal device 100 provided in an embodiment of this application;

[0017] Figure 2 This is a software structure block diagram of the terminal device 100 provided in the embodiments of this application;

[0018] Figure 3 This is a schematic diagram of an earphone shell;

[0019] Figure 4 This is a schematic diagram of another type of headphone shell;

[0020] Figure 5a This is a schematic diagram of the graphical user interface of the first electronic device provided in the embodiments of this application;

[0021] Figure 5b This is a schematic diagram of the graphical user interface of the second type of electronic device provided in the embodiments of this application;

[0022] Figure 6 This is an interaction diagram provided in an embodiment of this application, showing an electronic device initiating authentication to an earphone;

[0023] Figure 7a This is an interaction diagram provided in an embodiment of this application, showing an electronic device initiating authentication to an earphone;

[0024] Figure 7b This is another interaction diagram provided in this application embodiment, showing an electronic device initiating authentication to an earphone;

[0025] Figure 8 This is an interactive diagram of an earphone after successfully designing signature data, provided in an embodiment of this application.

[0026] Figure 9 This is a schematic diagram of the graphical user interface of the third type of electronic device provided in the embodiments of this application;

[0027] Figure 10 This is an interaction diagram of an earphone after a signature data descrambling, provided in an embodiment of this application.

[0028] Figure 11 This is a schematic diagram of a user account management system provided in an embodiment of this application;

[0029] Figure 12a This is a schematic diagram of the graphical user interface of the fourth type of electronic device provided in the embodiments of this application;

[0030] Figure 12b This is a schematic diagram of the graphical user interface of the fifth type of electronic device provided in the embodiments of this application;

[0031] Figure 12c This is a schematic diagram of the graphical user interface of the sixth type of electronic device provided in the embodiments of this application;

[0032] Figure 13 This is a flowchart of a method for processing ear temperature data provided in an embodiment of this application. Detailed Implementation

[0033] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; "and / or" in this text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.

[0034] Hereinafter, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first," "second," or "third" may explicitly or implicitly include one or more of that feature.

[0035] The ear temperature data processing method provided in this application embodiment can be applied to terminal devices such as mobile phones, tablets, wearable devices, in-vehicle devices, augmented reality (AR) / virtual reality (VR) devices, laptops, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). This application embodiment does not impose any restrictions on the specific type of terminal device.

[0036] For example, Figure 1 This is a schematic diagram of the structure of a terminal device 100 provided in an embodiment of this application. The terminal device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 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 headphone jack 170D, a sensor module 180, buttons 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a 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, etc.

[0037] It is understood that the structures illustrated in the embodiments of this application do not constitute a specific limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0038] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.

[0039] The controller can serve as the central nervous system and command center of the terminal device 100. The controller can generate operation control signals based on the instruction opcode and timing signals to control the fetching and execution of instructions.

[0040] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.

[0041] In some embodiments, the processor 110 may include one or more interfaces. Interfaces 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, and / or a universal serial bus (USB) interface, etc.

[0042] It is understood that the interface connection relationships between the modules illustrated in the embodiments of this application are merely illustrative and do not constitute a structural limitation on the terminal device 100. In other embodiments of this application, the terminal device 100 may also adopt different interface connection methods or a combination of multiple interface connection methods as described in the above embodiments.

[0043] In some embodiments, antenna 1 of terminal device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling terminal device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology may include Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).

[0044] Terminal device 100 implements display functions through a GPU, display screen 194, and application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.

[0045] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel may be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniature LED, a microLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, terminal device 100 may include one or N displays 194, where N is a positive integer greater than 1.

[0046] Terminal device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.

[0047] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, transforming it into an image visible to the naked eye. The ISP can also perform algorithmic optimization of image noise, brightness, and skin tone. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.

[0048] Terminal device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.

[0049] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.

[0050] The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into or removed from the SIM card interface 195 to make contact with and separate from the terminal device 100. The terminal device 100 can support one or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, etc. Multiple cards can be inserted into the same SIM card interface 195 simultaneously. The multiple cards can be of the same or different types. The SIM card interface 195 is also compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The terminal device 100 interacts with the network through the SIM card to realize functions such as calls and data communication. In some embodiments, the terminal device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.

[0051] The software system of terminal device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This application embodiment uses the layered architecture Android system as an example to exemplify the software structure of terminal device 100.

[0052] Figure 2 This is a software structure block diagram of the terminal device 100 according to an embodiment of this application. The layered architecture divides the software into several layers, each with a clear role and division of labor. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer. The application layer may include a series of application packages.

[0053] like Figure 2 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.

[0054] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.

[0055] like Figure 2 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.

[0056] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.

[0057] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.

[0058] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.

[0059] The phone manager is used to provide communication functions for terminal device 100. For example, it manages call status (including connection, hang-up, etc.).

[0060] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.

[0061] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of download completion or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating the device, and flashing indicator lights.

[0062] The Android runtime consists of core libraries and a virtual machine. The Android runtime is responsible for scheduling and managing the Android system.

[0063] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.

[0064] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.

[0065] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.

[0066] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.

[0067] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.

[0068] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0069] A 2D graphics engine is a graphics engine for 2D drawing.

[0070] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.

[0071] The headphones involved in this application embodiment can be audio output devices, and the headphones involved in this application embodiment can be wireless headphones that do not require headphone wires, such as TWS (True Wireless Stereo) Bluetooth headphones and other true wireless headphones.

[0072] For example, the headphones involved in this application embodiment can communicate with electronic devices via a wireless connection. For instance, the electronic device can transmit audio to the headphones involved in this application embodiment via a wireless connection. It should be noted that the wireless headphones may include a left and a right earpiece, which can work together for user use. For example, the left earpiece outputs the left channel, and the right earpiece outputs the right channel. In some scenarios, only the right earpiece has sound, or only the left earpiece has sound, or the volume of the right earpiece is lower than that of the left earpiece, achieving a stereo effect. The left and right earpieces can also be used independently by the user; for example, the user can wear only one earpiece to listen to audio. Therefore, the headphones involved in this application embodiment can refer to either the left or right earpiece in a pair of headphones, without specific limitation. In some scenarios, the wireless headphones can be placed in an earphone case when not in use. The earphone case may have a slot for holding the headphones and provide charging functions for the wireless headphones; this application does not limit this.

[0073] The earphones involved in the embodiments of this application can detect the wearer's ear temperature data. Figure 3The earphone 31 has a thermistor material 311 on the surface that contacts the ear, which can be used as a temperature sensor. The ear temperature data of the wearer can be detected through the thermistor material 311 and the matching back-end circuit. Figure 4 The earphone 32 has an infrared temperature sensor 321 inside, which detects the wearer's ear temperature data through the sound hole of the earphone 32. The earphone in this application may also have other structures, which are not limited here.

[0074] For ease of understanding, the following embodiments of this application will be described using the following methods: Figure 1 and Figure 2 Electronic devices with the structure shown Figure 3 or Figure 4 Taking the wireless earphone shown as an example, and in conjunction with the accompanying drawings and application scenarios, the method for processing ear temperature data provided in this application embodiment will be specifically described.

[0075] Some headphones can detect and store the user's ear temperature data while the headphones are worn. However, when these headphones are replaced with different electronic devices connected to them, data leakage may occur. To address the issue of user privacy data leakage, this application proposes a method for processing ear temperature data. Here, "headphone data" refers to user data detected through the headphones, which may include ear temperature data, etc. The following embodiments use ear temperature data as an example for illustration. The electronic device can be the one described above. Figure 1 and Figure 2 The described terminal device. The electronic device has been paired with the headset via Bluetooth or similar means, thereby establishing a communication relationship with the headset.

[0076] As an example, an electronic device runs a first application and is logged into that application through an account. This first application could be related to sports and health, smart living, or headphone details. The first application could provide a headphone details page, which includes an area displaying ear temperature data. The electronic device could automatically request ear temperature data from the headphones, or it could request ear temperature data from the electronic device based on user actions on the headphone details page.

[0077] Figure 5a An example of a headphone details page is shown. The headphone details page 500a includes a status area 501, a control area 502, and a body temperature monitoring area 503. It should be noted that the body temperature data displayed in the body temperature monitoring area 503 can be the same as the ear temperature data sent by the headphones to the electronic device, or it can be obtained through preset calculations based on the ear temperature data sent by the headphones to the electronic device; there is no limitation on this.

[0078] The body temperature monitoring area 503 is used to display the most recently acquired ear temperature data. Optionally, when the user pulls down the headphone details page, the body temperature data in the body temperature monitoring area 503 is updated, and a refresh indicator 505 is displayed in the headphone details page 500a. At this time, the electronic device receives the user's input to request ear temperature data. Optionally, the user clicks on the body temperature monitoring area 503 to request ear temperature data from the headphones, and the ear temperature data obtained based on the request is displayed as follows: Figure 5b The body temperature monitoring interface 500b shown allows users to display body temperature data in a chart format, using any of the following dimensions: day, week, or month. Figure 5b In this example, identifier 506 can be displayed, indicating that the electronic device is requesting ear temperature data from the headphones. The example displays hourly temperature readings from 6:00 AM to 12:00 PM on a daily basis, along with the average daily temperature. Therefore, when the electronic device's first application enters the temperature monitoring interface 500b, the device also receives the user's input requesting ear temperature data. Other operations requesting ear temperature data may also be received on the headphone details page, which will not be elaborated upon here.

[0079] It should be noted that, in Figure 5a In the temperature monitoring area 503, a temperature measurement control 504 is included. Users can click this control to trigger the headphones to detect the current ear temperature in real time and send the detected data to the electronic device, thus updating the temperature data in the monitoring area 503. When the user triggers the temperature measurement control 504 to collect ear temperature data, since the collected data is real-time, it represents the ear temperature of the user currently wearing the headphones, preventing the leakage of other users' privacy data. Therefore, when the user's ear temperature is measured by clicking the temperature measurement control 504, the electronic device can directly send an ear temperature data request to the headphones without executing step S401. In other words, triggering the temperature measurement control 504 is not part of the aforementioned operation for requesting ear temperature data.

[0080] It should also be noted that when a user pulls down the headphone details page, the body temperature data in the body temperature monitoring area 503 will be updated to the most recently measured body temperature data. If the most recently measured ear temperature data is obtained by triggering the body temperature measurement control 504, then this pull-down operation is not considered an operation to request ear temperature data as described above. If the most recently measured ear temperature data is collected by the headphones according to a periodic schedule, then this pull-down operation is considered an operation to request ear temperature data as described above.

[0081] After receiving a request for ear temperature data, the electronic device initiates authentication with the headphones. Figure 6This is an interaction diagram of an electronic device initiating authentication to an earphone according to an embodiment of this application, combined with... Figure 6 As shown.

[0082] S601, the first application sends an authentication request to the headset.

[0083] In response to the first input operation, the electronic device sends an authentication request to the earphone. After receiving the authentication request, the earphone determines whether it is currently bound to an account.

[0084] As an alternative implementation, the earphones themselves can detect whether they are idle and return the detection result as a response to the electronic device. Here, "idle" means that the earphones are not linked to any account.

[0085] In the solution of this application, after receiving the operation to request ear temperature data, the electronic device needs to request ear temperature data from the earphone in order to respond to the operation. If the electronic device directly requests ear temperature data from the earphone, and the earphone has been worn by other users before and stores other users' ear temperature data, it may lead to the leakage of privacy data of the previously worn users. Therefore, in the solution of this application, after receiving the operation to request ear temperature data, the electronic device does not directly request ear temperature data from the earphone, but first performs authentication by sending an authentication request.

[0086] S602, the earphone determines that it does not have a stored public key.

[0087] When an account is linked to the headset, the electronic device generates an asymmetric key pair for the account currently logged into the first application. The public key of the asymmetric key is stored in the headset, and the private key is stored in the electronic device. Therefore, the headset can determine whether it is linked to an account by checking if it has stored the public key. If the headset does not store the public key, it is determined that the headset is currently idle, meaning it is not linked to any account.

[0088] S603, the headset sends a response message to the electronic device that does not store the public key.

[0089] After the earphones send a response message to the electronic device that does not store a public key, the electronic device can determine that the earphones are not bound to any account, and therefore can be bound to the earphones using the account currently logged into the first application.

[0090] This application protects the security of privacy data by binding the earphones to an account, meaning that each ear temperature data point has an associated account. Without an account bound to the earphones, it's impossible to determine the account to which the ear temperature data belongs, thus compromising privacy. Therefore, in the absence of an account bound to the earphones, a primary account is first bound to the earphones via an electronic device before ear temperature data is obtained.

[0091] In the above steps, the first account is bound to the headset via an electronic device, thereby assigning account attributes to the headset. Once the headset confirms that it is not bound to any account, it will return a response message to the electronic device. Upon receiving this response message, the electronic device will initiate the process of binding the first account to the headset.

[0092] S604, the first application requests a key pair from the key store.

[0093] The keystore provides the capability of the electronic device's system itself to generate key pairs upon request. In the above steps, the keystore can generate an asymmetric key pair for the account currently logged into the first application upon request.

[0094] S605, the keystore returns the generated asymmetric key to the first application.

[0095] S606, the first application sends the public key from the asymmetric key to the headset.

[0096] S607, the earphone stores the public key.

[0097] The earphone stores the public key, and at this point, the earphone is successfully bound to the account currently logged into the first application.

[0098] S608, the earphone sends a notification message to the first application indicating that the public key has been saved.

[0099] S609, the first application obtains the currently logged-in account identifier and the event identifier corresponding to the ear temperature data.

[0100] S610, the first application stores the private key, account identifier, and event identifier from the asymmetric key into the Asset in the electronic device.

[0101] The Asset stores multiple keys for electronic devices, not just the private key generated in S604. Therefore, when storing the private key in the Asset, it is also necessary to store the account identifier of the first account, the event identifier, and the aforementioned private key accordingly. This allows the corresponding private key to be retrieved based on the account identifier and event identifier when using the private key. The event identifier indicates what type of data the private key is used to encrypt, thus distinguishing keys for different services. For example, ear temperature data could be identified as e-Tem, and step count data as s-Cou, etc.

[0102] If the binding of the headset and the account currently logged into the first application fails, the headset will send a binding failure message to the application. The application can discard the private key and return to S604 to re-enter the step of requesting a key pair from the key store.

[0103] Figure 6 The interaction diagram in the image describes the process of binding the headphones to an account logged into the first application on an electronic device when the headphones are not yet bound to an account. In other cases, where the headphones are already bound to an electronic device and have been linked to any account, the interaction diagram for the electronic device initiating authentication with the headphones can be as follows: Figure 7a and Figure 7b As shown, first with Figure 7a Let's take an example.

[0104] S701, the first application sends an authentication request to the headset.

[0105] Step S701 is the same as step S601, and will not be repeated here.

[0106] S702, the earphone determines that it has stored the public key.

[0107] Based on steps S604-S610 above, it can be seen that the earphone determines that it has stored a public key, meaning that the earphone is already bound to an account. If the earphone is already bound to an account, it is necessary to determine whether the account currently bound to the earphone is the first account used to log in to the first application.

[0108] S703: The earphone generates a random number and sends the random number to the first application.

[0109] Once the earphones detect that they are already linked to an account, they can directly send random numbers to electronic devices.

[0110] S704, the first application obtains the event identifier based on the random number and obtains the identifier of the currently logged-in account.

[0111] Once the first application receives the random number sent by the earphone, it can determine that the event identifier is the ear temperature data identifier.

[0112] S705, the first application sends a private key query request carrying the event identifier and account identifier to Asset.

[0113] When an application queries the Asset for a private key, it needs to send the account identifier of the first account and the event identifier corresponding to the headphone data to the Asset so that the Asset can query the corresponding private key based on the account identifier of the currently logged-in first application and the event identifier corresponding to the headphone data.

[0114] S706, Asset returns the private key retrieved based on the event identifier and account identifier to the first application.

[0115] Asset retrieves the private key based on the account identifier of the first account and the event identifier corresponding to the ear temperature data, and returns the retrieved private key to the application.

[0116] S707, the first application uses the private key returned by Asset to sign the random number, obtaining the signed data.

[0117] S708, the first application sends signature data to the earphone.

[0118] S709: The earphone uses the stored public key to design the signed data.

[0119] The headset uses the stored public key to design the signed data and obtain the designing result. If the designing result is the same as the random number in S703, it means that the designing is successful. The public key stored in the headset and the private key requested by the first application from the Asset are a pair of keys, that is, the account bound to the headset is the account currently logged into the first application. If the designing result is different from the random number in S703, it means that the designing fails. The public key stored in the headset and the private key requested by the application from the Asset are not a pair of keys, that is, the account bound to the headset is not the account currently logged into the first application.

[0120] In S706, there's a special case where the account currently logged into the first application hasn't previously been linked to headphones, therefore the private key corresponding to both the account identifier and event identifier cannot be found in the Asset. In this situation, such as... Figure 7b As shown, Figure 7b S701-S705 are already in use. Figure 7a The above has been explained in detail, so it will not be repeated here.

[0121] S710, Asset could not find the private key based on the event identifier and account identifier.

[0122] If the account has not been previously bound to the headphones, then the Asset does not contain the private key corresponding to the event identifier and the account identifier.

[0123] S711, Asset returns information to the first application that the private key was not found.

[0124] S712, the first application requests a pair of asymmetric keys from the key store.

[0125] S713, the keystore returns a pair of asymmetric keys to the first application.

[0126] In step S713, the first application requests a pair of asymmetric keys from the key library provided by the system. Therefore, the first application can use the private key in the requested asymmetric key to sign the random number.

[0127] S714, the first application uses the private key returned by the key store to sign the random number and obtain the signed data.

[0128] S715, the first application sends the signature data to the headset.

[0129] The S716 uses a stored public key to design data.

[0130] Steps S715-S716 are similar to steps S708-S709, and will not be described again here.

[0131] After the headset designs the signature data, if the designing is successful, it can be done according to... Figure 8 Interact with the interactive diagram shown.

[0132] S801, the random number obtained by the earphone is the same as the random number generated in step S703.

[0133] In this example, the random number obtained by the earphone after unsigning is the same as the random number issued in step S703, that is, the account bound to the earphone is the account currently logged into the first application, so the earphone can send ear temperature data to the electronic device.

[0134] S802, the earphone sends a verification result carrying a token to the first application.

[0135] S803, the first application sends an ear temperature data request carrying a token to the earphone.

[0136] S804, the earphone returns ear temperature data to the first application.

[0137] After the headset attempts to design the signature data, if the designing fails, you can proceed as follows: Figure 10 Interact with the interactive diagram shown.

[0138] S101, the random number obtained by the earphone is different from the random number generated in step S703.

[0139] In this example, the random number obtained by the earphone after unsigning is different from the random number issued in step S703. That is, the account bound to the earphone is not the account currently logged into the first application. Therefore, the earphone is prohibited from sending the stored ear temperature data to the electronic device.

[0140] S102, the earphone sends the verification result to the electronic device.

[0141] In this example, the headphones send a verification result indicating that the verification failed to the electronic device.

[0142] S103, The electronic device displays an inquiry message.

[0143] If the account linked to the headphones is not the same account currently logged into the first application, sending stored ear temperature data directly to the electronic device would leak the privacy data of the account currently linked to the headphones. In the above solution, if the account linked to the headphones is not the same account currently logged into the first application, the headphones can directly delete the stored ear temperature data, or the electronic device can display a prompt asking the user whether to link the first account to the headphones.

[0144] like Figure 9 As shown, if the account bound to the headphones is not the account currently logged into the first application, a query message 901 is displayed on the headphones' details page (900). Specifically, it might read: "This headphone is already bound to another account. If you bind it to the current account, the body temperature data in the headphones will be cleared and the headphone will be unbound from the current account. Do you want to bind it?" The electronic device uses this query message to prompt the user that if they bind the headphone to the account currently logged into the first application, the headphone will be unbound from the currently bound account and the stored ear temperature data will be cleared. If the user selects the "Confirm" button (902), the electronic device receives a confirmation. If the user selects the "Cancel" button, the user indicates that the first account will not be bound to the headphones, and the request ends here.

[0145] S104, the user performs a confirmation operation on the electronic device.

[0146] S105, in response to the confirmation operation, the electronic device sends a confirmation command to the headset.

[0147] S106, the earphone deletes the stored public key and ear temperature data.

[0148] Deleting the stored public key from the earphones will unbind them from the currently linked account.

[0149] S107, the earphone returns information to the electronic device that the public key and ear temperature data have been deleted.

[0150] S108, the first application and the headset are bound together by performing steps S604 to S610.

[0151] Electronic devices can be paired with headphones in the following ways: Figure 6 As shown in S604 to S610, they will not be repeated here. It should be noted that for... Figure 7bIn the special case mentioned above, since the first application has already requested a pair of asymmetric keys in S712, during the process of binding the account currently logged into the first application with the headset, the first application does not need to execute S604 to request a key from the key store again. Instead, it can directly use the asymmetric key obtained in S605 to execute the subsequent steps.

[0152] It should be noted that in the solution of this application, the account used to log in to the first application is bound to the headphones. This is different from the solution of directly binding the headphones to the electronic device. Binding the headphones to the first application account can avoid data leakage caused by users with different accounts logging into the first application on the same electronic device. It can also facilitate the inconvenience caused by data loss when users with the same account change electronic devices.

[0153] Figure 11 This diagram illustrates the user account management process in this application. Figure 11 As shown, electronic device A and electronic device B are two different electronic devices. Both electronic device A and electronic device B run the first application and each has its own asset. Both electronic device A and electronic device B can establish a communication relationship with the headset via Bluetooth. Figure 7a and Figure 7b As shown in the binding process, when a user binds their first account to the earphone on electronic device A, the keystore of electronic device A generates an asymmetric key pair for the first account. After successful binding, electronic device A sends the public key from the asymmetric key to the earphone and stores the private key in Asset1 of electronic device A. Afterward, electronic device A can bind the asymmetric key to the account and upload it to the server via Asset1. The server then synchronizes the asymmetric key of the first account to electronic device B, which is logged into the first account. In this way, when a user logs into the first account on electronic device B to request ear temperature data, they can also use the asymmetric key of the first account to authenticate the first account.

[0154] The following examples illustrate the application of the above solution in several different scenarios. These scenarios may include a first mobile phone, a second mobile phone, a third mobile phone, and earphones. In this example, the earphones collect ear temperature data periodically on the hour.

[0155] In one optional embodiment, the first mobile phone and the earphones have established a Bluetooth connection, and the user logs into Smart Life on the first mobile phone using a first account. The user puts on the earphones at 9:30 and opens Smart Life at 12:30, clicking... Figure 5aThe body temperature monitoring area is 503. At this point, the earphone has measured ear temperatures at 10:00, 11:00, and 12:00. The first mobile phone display is as follows... Figure 12a The interface 120a shown displays the ear temperature collected by the earphone between 9:30 and 12:30, that is, the ear temperature at 10:00, 11:00 and 12:00.

[0156] The earphones continuously measured ear temperature, but the user did not continue to obtain ear temperature on the first phone.

[0157] At 13:30, the user disconnects the first mobile phone from the earphone and connects the second mobile phone to the earphone. The user then logs into the Smart Life app on the second mobile phone using a second account. Based on the earphone's account verification described in the above embodiment, after the user opens the Smart Life app on the second mobile phone and clicks on the temperature monitoring area 503, the second mobile phone can display the following... Figure 9 The interface shown is 900.

[0158] Optionally, the user selects the confirmation control 902 on interface 900 to delete the previously measured ear temperature from the earphones and bind them to the second account. The earphones then continue monitoring ear temperature. At 14:30, the user opens the Smart Life app on the second phone and clicks on the temperature monitoring area 503. The second phone displays the following... Figure 12b Interface 120b is shown. Since the ear temperature data associated with the first account has been deleted, interface 120b only displays the ear temperature collected by the earphone after the second account and earphone are bound, specifically the ear temperature collected by the earphone at 14:00. After 14:30, the user disconnects the second phone from the earphone, and the first phone reconnects to the earphone. The user opens the Smart Life app on the first phone and clicks on the temperature monitoring area 503. Because the ear temperature data associated with the first account has been deleted, and the first phone has not collected ear temperatures between 12:30 and 13:30, the first phone can only display ear temperatures between 9:30 and 12:30, and cannot display ear temperatures between 12:30 and 13:30. In other words, the ear temperature data displayed by the first phone can be the same as the ear temperature data in interface 120a.

[0159] Optionally, the user can select the cancellation control 903 in interface 900. The second account is not bound to the headset, therefore the second phone cannot use the headset to periodically measure ear temperature, but can only do so by clicking... Figure 5a The body temperature measurement control 504 measures real-time ear temperature. At 14:30, the user disconnects the second phone from the earphone, and the first phone reconnects. The user then opens the Smart Life app on the first phone and clicks on the body temperature monitoring area 503. The first phone can then display the following... Figure 12cThe interface shown is 120c. Because the user selected the cancel control in interface 900, the ear temperature corresponding to the first account was not deleted from the headset. Therefore, the ear temperature measured from 09:30 to 14:30 can be displayed in interface 120c, that is, the ear temperature measured by the headset at 10:00, 11:00, 12:00 and 13:00.

[0160] Optionally, at 13:30, the user disconnects the first phone from the earphone, and the third phone connects to the earphone. The user logs into the Smart Life app on the third phone using the first account, while the earphone continues to measure ear temperature. At 14:30, the user opens the Smart Life app on the third phone and clicks on temperature monitoring area 503. Although the device connected to the earphone changes, because the account logged into the Smart Life app on the third phone remains the first account, the earphone is always bound to the first account. Therefore, the ear temperature between 9:30 and 13:30 can be displayed on the third phone, meaning the ear temperature data displayed on the third phone can be the same as the ear temperature data in interface 120c.

[0161] See Figure 13 This is a flowchart illustrating a method for processing ear temperature data provided in an embodiment of this application. This method can be applied to... Figure 1 The electronic devices shown, such as Figure 13 As shown, it mainly includes the following steps.

[0162] S131, during the first time period, the first electronic device connects to the earphone, the earphone collects ear temperature data, and the first electronic device logs into the first application through the first account.

[0163] The first electronic device connects to the headphones via Bluetooth. For example, the headphone shell may have a button; when the user presses the button, the headphones enter discovery mode. At this time, the first electronic device can search for the headphones via Bluetooth and connect to them. Other connection methods between the first electronic device and the headphones are also possible, but will not be listed here.

[0164] During the first time period, the headphones are worn and ear temperature data is monitored. The first application can be related to sports and health, smart living, headphone details, etc. The first application is logged in through the first account on the first electronic device.

[0165] S132, the first electronic device displays a first interface of the first application, the first interface including ear temperature data collected by the earphone during a first time period.

[0166] In one optional embodiment, the earphones collect ear temperature data periodically on the hour. A first electronic device has established a Bluetooth connection with the earphones. The user puts on the earphones at 9:30 AM and logs into the Smart Life app on the first electronic device using a first account. The user opens the Smart Life app at 12:30 PM. The first time period is from 9:30 AM to 12:30 PM. The user then clicks... Figure 5a The body temperature monitoring area is 503. At this point, the earphone has measured ear temperatures at 10:00, 11:00, and 12:00. The first interface can be as follows: Figure 12a The interface 120a shown displays the ear temperature collected by the earphone between 9:30 and 12:30, that is, the ear temperature at 10:00, 11:00 and 12:00.

[0167] S133, during the second time period, the connection between the first electronic device and the earphone is disconnected, and the earphone collects ear temperature data.

[0168] In the example above, the second time period can be from 12:30 to 13:30. During the second time period, the connection between the first electronic device and the earphone is disconnected, meaning that the first electronic device does not acquire the ear temperature data measured by the earphone during the second time period.

[0169] S134, During the third time period, the connection between the first electronic device and the earphone is disconnected, the second electronic device is connected to the earphone, and the second electronic device logs into the first application through the second account.

[0170] In the example above, the third time period can be from 13:30 to 14:30. During this third time period, the second electronic device connects to the headphones. After the second electronic device connects to the headphones, since the second account logged into the first application on the second electronic device is different from the first account logged into the first application on the first electronic device, the headphones can automatically delete the stored ear temperature data, or delete the stored ear temperature data based on the user's operation on the second electronic device, to avoid leakage of the ear temperature data corresponding to the first account.

[0171] S135, during the fourth time period, the connection between the second electronic device and the earphone is disconnected, while the first electronic device is connected to the earphone.

[0172] In the example above, the fourth time period could be from 14:30 to 15:30. During the fourth time period, the first electronic device reconnects to the headphones.

[0173] S136, the first electronic device displays a second interface of the first application. The second interface includes ear temperature data collected by the earphone during a first time period, but does not include ear temperature data collected by the earphone during a second time period. The first time period, the second time period, the third time period, and the fourth time period are consecutive time periods.

[0174] After the first electronic device reconnects to the headphones, since the headphones have deleted the stored ear temperature data, the first application of the first electronic device cannot obtain the ear temperature data collected by the headphones during the first and second time periods when refreshing. However, since the first electronic device has already obtained the ear temperature data during the first time period in step S132, although the first electronic device cannot obtain new ear temperature data from the headphones, it can still display the previously obtained ear temperature data during the first time period, so that the ear temperature data in the second interface can be the same as the ear temperature data in the first interface.

[0175] In one implementation, during a third time period, the method further includes: a second electronic device displaying a third interface of the first application, the third interface including a first option and a second option; and the second electronic device receiving a first operation for selecting the first option.

[0176] In an optional embodiment, the aforementioned third interface can be as follows: Figure 9 As shown, the first option is the "Confirm" control 902, and the second option is the "Cancel" control 903. When the user selects the "Confirm" control 902 on interface 900, the headphones are unbound from the first account and the stored ear temperature data is deleted, while the second account is bound to the headphones.

[0177] In one implementation, during a third time period, after the second electronic device receives a first operation for selecting a first option, the method further includes: the earphone collecting ear temperature data during the third time period; therefore, the second electronic device displays a fourth interface of the first application, the fourth interface including the ear temperature data collected by the earphone during the third time period, but excluding the ear temperature data collected by the earphone during the first time period and the temperature data collected by the earphone during the second time period.

[0178] The headphones continuously monitor ear temperature data during the third time period. In the example above, the headphones detected ear temperature data at 14:00 during the third time period. The fourth interface can be as follows: Figure 12b As shown, the ear temperature data at 14:00 is displayed in interface 120b.

[0179] In one implementation, the first electronic device displays a first interface of a first application, including: the first electronic device receiving a second operation; and in response to the second operation, the first electronic device displays the first interface of the first application.

[0180] The first operation mentioned above could be an operation where the user refreshes data in the first application, for example, when the user refreshes data in a certain application. Figure 5a The operation of clicking on the body temperature monitoring area 503 in the interface 500a shown.

[0181] In one implementation, a first account is bound to the earphone. During a third time period, the method further includes: responding to a third operation performed on a second electronic device, wherein the second electronic device sends an authentication request to the earphone; the earphone authenticates the second account logged into the second electronic device and returns a prompt message including verification information to the second electronic device, wherein the verification result indicates that the earphone is bound to the first account; the second electronic device displays a fifth interface, the fifth interface including a prompt message, a first option, and a second option, wherein the prompt message is also used to indicate that if the first option is selected, the earphone deletes the stored ear temperature data; and the second electronic device receives a fourth operation for selecting the first option.

[0182] The third operation mentioned above could be an operation where the user refreshes data in the first application, for example, when the user refreshes data in a certain application. Figure 5a The user clicks on the body temperature monitoring area 503 in interface 500a. After the user performs the third operation, the second electronic device sends an authentication request to the earphone. After authenticating the second account, the earphone determines that the second account is not the account currently bound to the earphone, therefore the second account does not have permission to access the ear temperature data stored in the earphone. Based on the verification result, the second electronic device displays the fifth interface, which can be configured as follows: Figure 9 As shown, the first option is to confirm control 902, and the second option is to cancel control 903.

[0183] In one implementation, before the first time period, the method further includes binding the first account to the headset. The binding step of the first account to the headset includes: the first electronic device obtaining a pair of asymmetric keys, storing the private key in the asymmetric keys, and sending the public key in the asymmetric keys to the headset; the headset storing the public key.

[0184] The method for binding the first account to the headset can be as shown in steps S604 to S610 above, and will not be repeated here.

[0185] In one implementation, the headset authenticates the second account logged into the second electronic device by: the headset sending a first random number to the second electronic device; the electronic device signing the first random number using a stored private key and sending the signing result to the headset; the headset failing to design the signing result using a stored public key, and the verification result indicating that the headset is bound to an account different from the second account.

[0186] The method by which the headset verifies the identity of the second account can be as shown in steps S701 to S709. In step S709, since the account bound to the headset is the first account, the public key stored in the headset and the private key corresponding to the second account are not a pair of keys, that is, the headset fails to design, thus it can be determined that the account currently bound to the headset is not the second account.

[0187] In one implementation, before the first electronic device displays the first interface of the first application, the earpiece authenticates the first account logged into the first electronic device. The steps of the earpiece authenticating the first account logged into the first electronic device include: the earpiece sending a second random number to the first electronic device; the first electronic device signing the second random number using a stored private key and sending the signing result to the earpiece; and the earpiece successfully designing the signing result using a stored public key, verifying that the earpiece is bound to the first account.

[0188] The method by which the headset verifies the identity of the second account can be as shown in steps S701 to S709. In step S709, since the account bound to the headset is the first account, the public key stored in the headset and the private key corresponding to the first account are a pair of keys, that is, the headset successfully de-signs, thus confirming that the account currently bound to the headset is the first account.

[0189] This application also provides an electronic device, including the processor described above. The electronic device provided in this embodiment may be... Figure 1 The terminal device 100 shown is used to execute the aforementioned ear temperature data processing method. When using an integrated unit, the electronic device may include a processing module, a storage module, and a storage module. The processing module can be used to control and manage the operations of the terminal device; for example, it can support the terminal device in executing the steps performed by the display unit, the detection unit, and the processing unit. The storage module can be used to support the terminal device in executing stored program code and data. The storage module can also be used to support communication between the terminal device and other devices.

[0190] The processing module can be a processor or a controller. It can implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor can also be a combination of functions that implement computing capabilities, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module can be a memory. The communication module can specifically be a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, or other devices that interact with other terminal devices.

[0191] In one embodiment, when the processing module is a processor and the storage module is a memory, the terminal device involved in this embodiment can be a device having... Figure 1 The device with the structure shown.

[0192] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the ear temperature data processing method described in any of the above embodiments.

[0193] This application also provides a computer program product that, when run on a computer, causes the computer to perform the aforementioned steps to implement the ear temperature data processing method described in the above embodiments.

[0194] In addition, embodiments of this application also provide an apparatus, which may specifically be a chip, component, or module. The apparatus may include a connected processor and a memory; wherein the memory is used to store computer execution instructions, and when the apparatus is running, the processor may execute the computer execution instructions stored in the memory to cause the chip to execute the methods in the above-described method embodiments.

[0195] In this embodiment, the electronic device, computer-readable storage medium, computer program product or chip are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can be referred to the beneficial effects of the corresponding methods provided above, and will not be repeated here.

[0196] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0197] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0198] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0199] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0200] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for processing ear temperature data, characterized in that, include: During the first time period, the first electronic device connects to the earphone, the earphone collects ear temperature data, and the first electronic device logs into the first application through the first account. The first electronic device displays a first interface of the first application, the first interface including ear temperature data collected by the earphone during the first time period; During the second time period, the connection between the first electronic device and the earphone is disconnected, and the earphone collects ear temperature data. During the third time period, the connection between the first electronic device and the earphone is disconnected, the second electronic device is connected to the earphone, and the second electronic device logs into the first application through the second account; Since the second account is different from the first account, the earphone automatically deletes the stored ear temperature data, or deletes the stored ear temperature data based on the user's operation on the second electronic device. The stored ear temperature data includes the ear temperature data collected by the earphone during the first time period and the second time period. During the fourth time period, the connection between the second electronic device and the earphone is disconnected, while the first electronic device is connected to the earphone. The first electronic device displays a second interface of the first application, the second interface including ear temperature data collected by the earphone during a first time period, but excluding ear temperature data collected by the earphone during a second time period; The first time period, the second time period, the third time period, and the fourth time period are consecutive time periods.

2. The method according to claim 1, characterized in that, During the third time period, the method further includes: The second electronic device displays a third interface of the first application, the third interface including: a first option and a second option; The second electronic device receives a first operation for selecting the first option; The user's operation on the second electronic device is the first operation.

3. The method according to claim 2, characterized in that, During the third time period, after the second electronic device receives a first operation for selecting the first option, the method further includes: The earphones collect ear temperature data during the third time period. The second electronic device displays a fourth interface of the first application. The fourth interface includes ear temperature data collected by the earphone during the third time period, but does not include ear temperature data collected by the earphone during the first time period or ear temperature data collected by the earphone during the second time period.

4. The method according to claim 1, characterized in that, The first electronic device displays a first interface of the first application, including: The first electronic device receives the second operation; In response to the second operation, the first electronic device displays the first interface of the first application.

5. The method according to claim 1, characterized in that, The first account is bound to the headset, and during the third time period, the method further includes: In response to a third operation performed on the second electronic device, the second electronic device sends an authentication request to the headset; The headset authenticates the second account logged into the second electronic device and returns a prompt message to the second electronic device including the verification result, wherein the verification result indicates that the headset is bound to the first account; The second electronic device displays a fifth interface, which includes the prompt information, a first option, and a second option. The prompt information is also used to indicate that if the first option is selected, the earphone will delete the stored ear temperature data. The second electronic device receives a fourth operation for selecting the first option.

6. The method according to claim 1, characterized in that, Before the first time period, the method further includes binding the first account to the headset, the step of binding the first account to the headset including: The first electronic device acquires a pair of asymmetric keys, stores the private key in the asymmetric keys, and sends the public key in the asymmetric keys to the earphone; The earphone stores the public key.

7. The method according to claim 5, characterized in that, The headset authenticates the second account logged into the second electronic device, including: The earphone sends a first random number to the second electronic device; The second electronic device signs the first random number using a stored private key and sends the signature result to the earphone; The headset failed to design the signature using the stored public key, and the verification result indicated that the headset was bound to an account other than the second account.

8. The method according to claim 5, characterized in that, Before the first electronic device displays the first interface of the first application, the earpiece authenticates the first account logged into the first electronic device. The steps of the earpiece authenticating the first account logged into the first electronic device include: The earphone sends a second random number to the first electronic device; The first electronic device signs the second random number using a stored private key and sends the signing result to the earphone; The headset successfully designed the signature using the stored public key, and the verification result indicates that the headset is bound to the first account.

9. An electronic device, characterized in that, The device includes a memory for storing computer program instructions and a processor for executing the program instructions, wherein when the computer program instructions are executed by the processor, the electronic device is triggered to perform the method according to any one of claims 1-8.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein, when the program is executed, it controls the device on which the computer-readable storage medium is located to perform the method according to any one of claims 1-8.

11. A computer program product, characterized in that, The computer program product includes executable instructions that, when executed on a computer, cause the computer to perform the method described in any one of claims 1-8.

Citation Information

Patent Citations

  • Android device personal information protection method based on user identification

    CN103559455A

  • User data protection method and apparatus, and intelligent wearable device

    CN106650466A