Headphone usage data recording method, device, TWS headset and charging box

By using the clock module in the TWS earphones and charging box to record and synchronize real-time time, it solves the problem that the TWS earphones cannot record usage data without connecting to the specified terminal device or opening the specified APP, achieving the integrity of data recording and Improved applicability.

CN115278472BActive Publication Date: 2024-10-22GUANGDONG XIAOTIANCAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210844922.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-18
Publication Date
2024-10-22
Estimated Expiration
2042-07-18

AI Technical Summary

Technical Problem

Existing TWS headsets have problems with missing and incomplete data records when recording headset usage data. They cannot synchronize the clock and record usage data without connecting to a designated terminal device or opening a designated APP.

Method used

By introducing a clock module into the TWS headset and charging box, it receives the real-time time on the charging box to generate a local time starting point, records the usage time period in the wake-up state, saves and sends it to the target device, ensuring that even when the specified terminal device is not connected or The usage time period can be completely recorded without opening the specified APP.

Benefits of technology

The TWS headset can completely record the user's usage time period under any circumstances, solving the problem of missing and incomplete data recording, with a wide range of applications and low restrictions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115278472B_ABST
    Figure CN115278472B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention disclose a method and device for recording earphone usage data, a TWS earphone, and a charging box. The method comprises: in an awake state, receiving a first real-time time, generating a local time starting point according to the first real-time time, and updating the local time from the local time starting point, wherein the first real-time time is obtained by the clock module on the charging box based on the initial time timing; in the process of connecting to a first terminal device and playing audio, recording the usage time period based on the local time; when a charging box connection event is detected, saving the usage time period and then hibernating, so that when the charging box is subsequently connected to the target device, the usage time period is sent to the target device, and the charging box connection event indicates that the TWS earphone is placed in the charging box. The embodiments of the present invention solve the technical problems in the prior art that when TWS earphones record earphone usage data, there are omissions in data records and incomplete usage data records.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of headphones, and in particular, to a method and device for recording headphone usage data, a TWS headphone, and a charging box. Background Art

[0002] With the development of science and technology, TWS headphones are gradually replacing traditional wired headphones due to their convenience. TWS (True Wireless Stereo) headphones refer to true wireless Bluetooth headphones. The TWS headphone system generally includes a charging box and two TWS headphones. When the TWS headphones are not in use, users can store the TWS headphones in the charging box for charging. When the TWS headphones need to be connected to the terminal device, the terminal device connects to the TWS headphones via Bluetooth to achieve wireless separation of the left and right ear channels.

[0003] In order to meet the user's demand for hearing health protection, some TWS headphones on the market are able to record the user's headphone usage data (such as usage time period and usage duration, etc.) when in use, so that users can understand the usage of the headphones. However, the current TWS headphones need to be connected to the terminal device of a designated manufacturer or open the designated APP (Application) before the TWS headphones can synchronize the clock and record the headphone usage data, and the headphone usage data can be sent to the terminal or APP for display later. When the user uses the TWS headphones to connect to the terminal device of other manufacturers or does not open the designated APP connection, the TWS headphones cannot synchronize the clock data, resulting in the TWS headphones being unable to record the headphone usage data, and the user cannot know the usage of the headphones.

[0004] To sum up, in the prior art, when TWS headphones record headphone usage data, there are technical problems such as data omissions and incomplete usage data records. Summary of the invention

[0005] The embodiments of the present invention provide a method and device for recording earphone usage data, a TWS earphone, and a charging box, which solve the technical problems in the prior art that when TWS earphones record earphone usage data, there are omissions in data records and incomplete usage data records.

[0006] In a first aspect, an embodiment of the present invention provides a method for recording earphone usage data, the method being applicable to a TWS earphone in a TWS earphone system, comprising:

[0007] In the awake state, receiving a first real-time time, generating a local time starting point according to the first real-time time, and updating the local time from the local time starting point, wherein the first real-time time is obtained by a clock module on the charging box based on an initial time;

[0008] During the process of connecting to the first terminal device and playing the audio, recording the usage time period based on the local time;

[0009] When a charging box connection event is detected, the usage time period is saved and then hibernated, so that when it is subsequently connected to the target device, the usage time period is sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

[0010] Preferably, it also includes:

[0011] When connected to the target device, a second real-time time sent by the target device is received, and the local time is updated according to the second real-time time.

[0012] Preferably, after detecting a charging box connection event, the method further includes:

[0013] The local time is sent to the charging box so that the charging box calibrates the first real-time time in the clock module according to the local time.

[0014] Preferably, before receiving the first real-time time of the charging box in the awake state, the method further includes:

[0015] When connecting with the target device for the first time, receiving a second real-time time sent by the target device, generating a local time starting point according to the second real-time time, and updating the local time starting from the local time starting point;

[0016] When a charging box connection event is detected, the local time is sent to the charging box, so that the charging box obtains the initial time of the clock module according to the local time.

[0017] Preferably, receiving the first real time in the awake state includes:

[0018] When receiving the wake-up instruction of the charging box, the device enters the wake-up state and receives the first real-time time sent by the charging box.

[0019] Preferably, receiving the first real time in the awake state includes:

[0020] When it is detected that the connection with the charging box is disconnected, the device enters a wake-up state and receives a first real-time time forwarded by a target TWS headset that is paired with each other and located in the charging box. The first real-time time is sent to the target TWS headset after the charging box wakes up the target TWS headset.

[0021] Preferably, the charging box includes a Bluetooth module and a remote communication module;

[0022] Accordingly, receiving the first real time in the awake state includes:

[0023] When it is detected that the connection with the charging box is disconnected, the wake-up state is entered to receive the first real-time time sent by the Bluetooth module of the charging box, and the first real-time time is obtained by the charging box accessing the server through the remote communication module.

[0024] In a second aspect, an embodiment of the present invention provides a method for recording earphone usage data, the method being applicable to a charging box in a TWS earphone system, the charging box including a clock module, and the method comprising:

[0025] When an earphone removal event is detected, the current first real-time time is obtained from the clock module and saved, and the earphone removal event indicates that the TWS earphone leaves the charging box;

[0026] When an earphone insertion event is detected, a usage timeline is obtained from the TWS earphone, the usage timeline takes the moment when the TWS earphone leaves the charging box as the timing start point and the moment when the TWS earphone is placed in the charging box as the timing end point, and the usage time of the TWS earphone when playing audio is recorded in the usage timeline, and the earphone insertion event indicates that the TWS earphone is placed in the charging box;

[0027] Based on the saved first real-time time and the usage time in the usage timeline, the usage time period of the TWS headset is determined and saved, so that when the headset removal event is subsequently detected, the usage time period is forwarded to the target device connected to the TWS headset through the TWS headset.

[0028] In a third aspect, an embodiment of the present invention provides a headphone usage data recording device, which is applicable to a TWS headphone in a TWS headphone system, including:

[0029] A local time update module, configured to receive a first real-time time in an awake state, generate a local time starting point according to the first real-time time, and update the local time from the local time starting point, wherein the first real-time time is obtained by a clock module on the charging box based on an initial time;

[0030] A data recording module, used to record the usage time period based on the local time during the process of connecting to the first terminal device and playing the audio;

[0031] The data saving module is used to save the usage time period and then sleep when a charging box connection event is detected, so that when the target device is subsequently connected, the usage time period is sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

[0032] In a fourth aspect, an embodiment of the present invention provides a headphone usage data recording device, the device being applicable to a charging box in a TWS headphone system, the charging box including a clock module, including:

[0033] A time recording module, configured to obtain and save the current first real-time time from the clock module when an earphone removal event is detected, wherein the earphone removal event indicates that the TWS earphone leaves the charging box;

[0034] A timeline acquisition module is used to acquire a usage timeline from the TWS headset when an earphone insertion event is detected. The usage timeline takes the moment when the TWS headset leaves the charging box as the timing start point and the moment when the TWS headset is placed in the charging box as the timing end point. The usage timeline records the usage time of the TWS headset when playing audio. The earphone insertion event indicates that the TWS headset is placed in the charging box.

[0035] A data forwarding module is used to determine and save the usage time period of the TWS headset based on the saved first real-time time and the usage time in the usage timeline, so that when the headset is subsequently detected to be removed, the usage time period is forwarded to a target device connected to the TWS headset through the TWS headset.

[0036] In a fifth aspect, an embodiment of the present invention provides a TWS headset, wherein the TWS headset includes a processor and a memory;

[0037] The memory is used to store a computer program and transmit the computer program to the processor;

[0038] The processor is used to execute the headphone usage data recording method as described in the first aspect according to the instructions in the computer program.

[0039] In a sixth aspect, an embodiment of the present invention provides a charging box, wherein the charging box includes a processor, a memory, and a clock module;

[0040] The memory is used to store a computer program and transmit the computer program to the processor;

[0041] The processor is used to execute the headphone usage data recording method according to the second aspect according to the instructions in the computer program;

[0042] The clock module is used to obtain a first real time based on an initial time.

[0043] In a seventh aspect, an embodiment of the present invention provides a storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are used to execute a headphone usage data recording method as described in the first aspect or the second aspect.

[0044] As mentioned above, in the embodiment of the present invention, when the TWS headset is in the awake state, it generates the local time starting point by receiving the first real-time time on the charging box, and updates the local time according to the local time starting point, so that the TWS headset can record the usage time period of the TWS headset according to the local time when playing audio, and report the usage time period to the target device when the data reporting conditions are met later. In the embodiment of the present invention, even if the TWS headset is not connected to the designated terminal device or the user does not open the designated APP on the terminal device, the TWS headset can fully record the user's usage time period, so it is not restricted or constrained by the connected terminal device, has a wide range of applications, and is less restrictive, which solves the technical problems of data omissions and incomplete usage data records when the TWS headset records the headset usage data in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 The present invention provides a flowchart of a method for recording earphone usage data according to an embodiment of the present invention.

[0046] Figure 2 A schematic diagram of the structure of a TWS headset system provided in an embodiment of the present invention.

[0047] Figure 3 A schematic diagram of the structure of a clock module provided by an embodiment of the present invention.

[0048] Figure 4 A schematic diagram of a processor of a TWS headset provided in an embodiment of the present invention.

[0049] Figure 5 A flowchart of another method for recording earphone usage data provided by an embodiment of the present invention.

[0050] Figure 6 The present invention provides a flowchart of another method for recording earphone usage data in an embodiment of the present invention.

[0051] Figure 7 The present invention provides a flowchart of another method for recording earphone usage data in an embodiment of the present invention.

[0052] Figure 8 A schematic diagram of using a time axis provided by an embodiment of the present invention.

[0053] Fig. 9 A schematic structural diagram of a headphone usage data recording device provided by an embodiment of the present invention.

[0054] Fig.10 A schematic structural diagram of another headphone usage data recording device provided by an embodiment of the present invention.

[0055] Fig.11 A schematic diagram of the structure of a TWS headset provided in an embodiment of the present invention.

[0056] Fig.12 A schematic diagram of the structure of a charging box provided in an embodiment of the present invention.

[0057] Reference numerals:

[0058] Charging box 1, TWS earphones 2, clock module 11, real-time clock chip 12, external crystal oscillator 13. DETAILED DESCRIPTION

[0059] The following description and accompanying drawings fully illustrate the specific embodiments of the present application so that those skilled in the art can practice them. The examples represent possible variations only. Unless explicitly required, separate components and functions are optional, and the order of operation can vary. The parts and features of some embodiments may be included in or replace the parts and features of other embodiments. The scope of the embodiments of the present application includes the entire scope of the claims, and all available equivalents of the claims. In this article, each embodiment may be represented individually or generally by the term "invention", which is only for convenience, and if more than one invention is disclosed in fact, it is not intended to automatically limit the scope of the application to any single invention or inventive concept. In this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, without requiring or implying any actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed. The various embodiments are described in a progressive manner herein, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. As for the structures, products, etc. disclosed in the embodiments, since they correspond to the parts disclosed in the embodiments, the description is relatively simple, and the relevant parts can be referred to the description of the method part.

[0060] like Figure 1 As shown, Figure 1A flowchart of a method for recording headphone usage data provided by an embodiment of the present invention. The method for recording headphone usage data provided by an embodiment of the present invention can be executed by a headphone usage data recording device, which can be implemented by software and / or hardware. The headphone usage data recording device can be composed of two or more physical entities, or can be composed of one physical entity. For example, the headphone usage data recording device can be a headphone with a processor, such as a TWS headphone. The method for recording headphone usage data provided by an embodiment of the present invention is applicable to a TWS headphone in a TWS headphone system, such as a TWS system. Figure 2 As shown, it includes a charging box 1 and two TWS earphones 2. The two TWS earphones 2 can be placed in the charging box 1 for charging. The method includes the following steps:

[0061] Step 101, in the awake state, receive the first real-time time, generate the local time starting point according to the first real-time time, and update the local time from the local time starting point. The first real-time time is obtained by the clock module on the charging box based on the initial time.

[0062] The awake state refers to the TWS headset entering a working state with high power consumption. For example, in the awake state, the TWS headset can transmit data with the charging box or other devices, or perform audio playback tasks under the control of other devices. It can be understood that the higher power consumption is relative to when the TWS headset is in sleep mode. When the TWS headset is in sleep mode, it does not perform any tasks, so the power consumption can be maintained at a low level.

[0063] In this embodiment, there are multiple ways to wake up the TWS headset. For example, when the TWS headset is taken out of the charging box, the TWS headset can be woken up; or, the charging box can wake up the TWS headset that is still in the charging box. After the TWS headset is awakened and enters the awakened state, the first real-time time is received. It should be noted that in this embodiment, a clock module is provided on the charging box, and the first real-time time is generated by the clock module on the charging box. For example, Figure 3 As shown, Figure 3 This is a structural diagram of the clock module provided on the charging box, wherein the clock module 11 includes a real-time clock chip 12 and an external crystal oscillator 13, wherein the real-time clock chip 11 is used to provide an initial time, and the external crystal oscillator 13 is used for timing, so as to update the initial time in real time to obtain the current first real-time time.

[0064] After receiving the first real-time time, the TWS headset needs to determine the current time point according to the acquired first real-time time, and generate the local time starting point according to the first real-time time, and start timing from the local time starting point to update the local time, because the TWS headset is not provided with a clock module. Figure 4 As shown, the timing function can be achieved by reusing the external crystal oscillator in the processor of the TWS headset.

[0065] It should be further explained that, in the present embodiment, there may be multiple ways for the TWS earphones to receive the first real-time time. For example, the first real-time time sent by the charging box may be directly received, or the first real-time time sent by the paired target TWS earphones may be received. In the present embodiment, different ways for the TWS earphones to receive the first real-time time are explained respectively.

[0066] In one embodiment, in step 101, receiving a first real time in the wake-up state includes:

[0067] When receiving the wake-up command from the charging box, it enters the wake-up state and receives the first real-time time sent by the charging box.

[0068] In one embodiment, when the TWS headset is dormant in the charging box, the charging box sends a wake-up instruction to the TWS headset, and the TWS headset enters a wake-up state after receiving the wake-up instruction. Afterwards, the charging box sends the first real-time time to the TWS headset, so that the TWS headset can generate a local time starting point according to the first real-time time.

[0069] In another embodiment, in step 101, receiving the first real time in the awake state includes:

[0070] When it is detected that the connection with the charging box is disconnected, the device enters the wake-up state and receives the first real-time time that is paired with the target TWS headset located in the charging box. The first real-time time is sent to the target TWS headset after the charging box wakes up the target TWS headset.

[0071] In one embodiment, when the user takes out a single TWS headset from the charging box, the TWS headset will detect that it is disconnected from the charging box, and the TWS headset will enter the wake-up state. At the same time, the charging box will wake up the other target TWS headset that is still in the charging box. After waking up, the other target TWS headset will be paired with the TWS headset taken out of the charging box to form a TWS headset pair. Afterwards, the charging box will send the first real-time time to the target TWS headset. After receiving the first real-time time, the target TWS headset will forward the first real-time time to the paired TWS headset, so that the TWS headset outside the charging box can also generate a local time starting point according to the first real-time time and update the local time.

[0072] In another embodiment, the charging box includes a Bluetooth module and a remote communication module.

[0073] In one embodiment, the charging box also includes a Bluetooth module and a remote communication module. The remote communication module is used to access the Internet, for example, the remote communication module can be a WIFI module or a 4G communication module, and the Bluetooth module is used to connect to the TWS headset to achieve data transmission between the TWS headset and the TWS headset.

[0074] Accordingly, in step 101, receiving the first real time in the awake state includes:

[0075] When it is detected that the connection with the charging box is disconnected, it enters the awake state and receives the first real-time time sent by the Bluetooth module of the charging box. The first real-time time is obtained by the charging box accessing the server through the remote communication module.

[0076] In one embodiment, the charging box can access a server on the Internet through a remote communication module, obtain the network time from the server, and update the current first real-time time according to the network time. When the user takes the two TWS earphones out of the charging box, both TWS earphones detect that they are disconnected from the charging box and enter the wake-up state. After that, the charging box is connected to the TWS earphones through the Bluetooth module, and the first real-time time is sent to the TWS earphones through the Bluetooth module, so that the TWS earphones can generate a local time starting point according to the first real-time time and update the local time.

[0077] The above is the process of the TWS headset receiving the first real time in different ways.

[0078] Step 102: During the process of connecting to the first terminal device and playing audio, the usage time period is recorded based on the local time.

[0079] Afterwards, when the user subsequently connects the TWS headset to the first terminal device, the TWS headset can play the corresponding audio according to the audio data transmitted by the first terminal device, and during the audio playback, the usage time period is recorded based on the local time. For example, when the TWS headset starts playing audio, the time when the audio starts playing is recorded according to the local time, such as 16:00. When the TWS headset stops playing audio, the time when the audio stops playing is also recorded according to the local time, such as 17:00. Afterwards, the usage time period when the user uses the TWS headset to play audio can be determined based on the recorded time when the audio starts playing and the time when the audio stops playing, that is, the usage time period of the TWS headset is 16:00-17:00.

[0080] Step 103, when a charging box connection event is detected, the usage time period is saved and then hibernated, so that when it is subsequently connected to the target device, the usage time period is sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

[0081] When the user does not need to use the earphones to play audio data, the TWS earphones can be placed in the charging box for charging. When the user places the TWS earphones in the charging box, the TWS earphones can detect a charging box connection event indicating that the earphones are placed in the charging box. At this time, the TWS earphones can store the previously recorded usage time period in FLASH (a type of storage chip) and then go into sleep mode.

[0082] When the subsequent user needs to use the TWS headset again, the TWS headset can be taken out from the charging box. After the TWS headset is taken out, the charging box sends the first real-time time to the TWS headset, and the TWS headset generates a local time starting point based on the first real-time time and updates the local time. After that, the user can connect the TWS headset to the target device. When the TWS headset detects that it is connected to the target device, it can report the usage time period to the target device. Exemplarily, the target device is a terminal device of a specified model or a terminal device with a specified software turned on. When the TWS headset is connected to the target device, if the target device is a terminal device of a specified model (for example, a terminal device generated by the same manufacturer as the TWS headset) or a terminal device with a specified software turned on (for example, software customized for the TWS headset), the TWS headset determines that the data reporting conditions are met at this time. The TWS headset determines whether there is an unreported usage time period. If so, the unreported usage time period is reported to the target device. After obtaining the usage time period, the target device can determine the user's headset usage time based on the usage time period, and display the usage time period and headset usage time in the corresponding interface.

[0083] As mentioned above, in the embodiment of the present invention, when the TWS headset is in the awake state, it generates the local time starting point by receiving the first real-time time on the charging box, and updates the local time according to the local time starting point, so that the TWS headset can record the usage time period of the TWS headset according to the local time when playing audio, and report the usage time period to the target device when the data reporting conditions are met later. In the embodiment of the present invention, even if the TWS headset is not connected to the designated terminal device or the user does not open the designated APP on the terminal device, the TWS headset can fully record the user's usage time period, so it is not restricted or constrained by the connected terminal device, has a wide range of applications, and is less restrictive, which solves the technical problems of data omissions and incomplete usage data records when the TWS headset records the headset usage data in the prior art.

[0084] In one embodiment, when the TWS headset is connected to the target device, the TWS headset can also update the local time according to the real-time time in the target device, as follows:

[0085] When connected to the target device, the second real-time time sent by the target device is received, and the local time is updated according to the second real-time time.

[0086] In this embodiment, when the TWS headset is connected to the target device, the target device will also send its own second real-time time to the TWS headset, so that the TWS headset can calibrate the local time according to the second real-time time after receiving the second real-time time. In this embodiment, the purpose of recalibrating the local time is that the TWS headset may have slight deviations in the process of timing according to the external crystal oscillator, resulting in the local time on the TWS headset being inaccurate, and the second real-time time in the target device can be updated in real time by accessing the server, which is more accurate than the local time obtained by the TWS headset itself. Therefore, in this embodiment, the target device further sends the second real-time time to the TWS headset, so that the TWS headset calibrates the local time according to the second real-time time to ensure the accuracy of the local time.

[0087] In one embodiment, after the TWS headset calibrates the local time according to the second real-time time on the target device, if the TWS headset is subsequently connected to the charging box, the TWS headset can also send the local time to the charging box, so that the charging box updates the first real-time time, as follows:

[0088] When a charging box connection event is detected, it also includes:

[0089] The local time is sent to the charging box so that the charging box calibrates the first real-time time in the clock module according to the local time.

[0090] After the TWS headset calibrates the local time according to the second real-time time on the target device, when the TWS headset detects a charging box connection event, the TWS headset further sends the local time to the charging box, so that the charging box can calibrate the first real-time time in the clock module according to the local time. After that, the TWS headset enters sleep mode, and the clock module of the charging box continues to time and update the first real-time time.

[0091] Specifically, in one embodiment, when the user takes out the TWS headset from the charging box, the TWS headset enters the awake state, receives the first real-time time of the charging box, generates the local time starting point according to the first real-time time, and updates the local time. After that, when the user connects the TWS headset to the terminal device, the TWS headset determines whether the terminal device is the target device. If the terminal device is the target device, the TWS headset further determines whether there is a usage time period that has not been reported; if so, the usage time period is reported to the target device; if not or after the usage time period is reported to the target device, the TWS headset receives the second real-time time sent by the target device, updates the local time according to the second real-time time, and records the user's usage time period during the process of playing the audio data sent by the target device. When the subsequent TWS headset detects the charging box connection event, it sends the current local time to the charging box, so that the charging box can calibrate the first real-time time of the clock module according to the current local time. Finally, the TWS headset saves the usage time period and goes into sleep mode, and the clock module of the charging box continues to time and update the first real-time time.

[0092] If the TWS headset determines that the connected terminal device is not the target device, the TWS headset will record the user's usage time period while playing the audio data sent by the terminal device. When the TWS headset detects the charging box connection event, the usage time period is saved and put into hibernation, and the clock module of the charging box continues to update the first real-time time. The overall process is as follows: Figure 5 shown.

[0093] In this embodiment, after the TWS headset is connected to the target device, the local time is further calibrated according to the second real-time time sent by the target device. In addition, after the TWS headset is placed in the charging box, the TWS headset further sends the local time to the charging box, so that the charging box can calibrate the first real-time time in the clock module according to the local time. In the embodiment of the present invention, by setting the technical means for the TWS headset to calibrate the local time according to the second real-time time of the target device and the technical means for the charging box to calibrate the first real-time time according to the local time, the use time period recorded by the TWS headset can be made more accurate, thereby improving the user experience.

[0094] In another embodiment, before the user uses the TWS headset system for the first time, the clock module in the charging box does not have an initial time and does not count. After the TWS headset provides the local time to the charging box, the charging box calibrates the initial time and starts counting, as follows;

[0095] In the awake state, before receiving the first real-time time of the charging box, it also includes:

[0096] Step 201: When connecting with a target device for the first time, receiving a second real-time time sent by the target device, generating a local time starting point according to the second real-time time, and updating the local time from the local time starting point.

[0097] In this embodiment, when the user uses the TWS headset system for the first time, after taking the TWS headset out of the charging box, the user can connect the TWS headset to the target device. After the TWS headset is connected to the target device for the first time, the target device sends its current second real-time time to the TWS headset. After receiving the second real-time time, the TWS headset generates a local time starting point according to the second real-time time, and starts timing from the local time starting point to update the local time. In the subsequent process of playing audio, the TWS headset records the user's usage time period according to its own local time.

[0098] Step 202: When a charging box connection event is detected, the local time is sent to the charging box so that the charging box obtains the initial time of the clock module according to the local time.

[0099] When the user subsequently puts the TWS earphones into the charging box, the TWS earphones detect the charging box connection event. At this time, the TWS earphones send the current local time to the charging box. After receiving the local time, the charging box uses the current local time as the initial time of the clock module and starts timing based on the initial time to obtain the first real-time time. After that, the TWS earphones will save the time period and enter sleep mode. The clock module of the charging box will continue timing and update the first real-time time. When the user uses the TWS earphones next time, the following will be executed: Figure 5 The process shown in the figure can be referred to for details. Figure 5 In one embodiment, the overall process of a method for recording earphone usage data is as follows: Figure 6 shown.

[0100] As mentioned above, in the embodiment of the present invention, when the TWS headset is connected to the target device for the first time, the TWS headset generates a local time starting point according to the second real-time information sent by the target device, and starts timing to update the local time. After the TWS headset is subsequently placed in the charging box, the TWS headset sends the local time to the charging box, so that the charging box can use the local time as the initial time and start timing. In this embodiment, even if the initial time is not set for the charging box before leaving the factory, the charging box can obtain the accurate initial time through the TWS headset and start timing based on the initial time, so as to provide the TWS headset with an accurate first real-time time later, thereby realizing the function of fully recording the user's usage time period.

[0101] like Figure 7 As shown, Figure 7 A schematic flow chart of another headphone usage data recording method provided by an embodiment of the present invention, Figure 7 The earphone usage data recording method shown is applicable to a charging box in a TWS earphone system, and the charging box includes a clock module. The method includes:

[0102] Step 301: When an earphone removal event is detected, the current first real-time time is obtained from the clock module and saved. The earphone removal event indicates that the TWS earphone leaves the charging box.

[0103] In this embodiment, when the user takes out the TWS earphones from the charging box, the charging box can detect an earphone removal event indicating that the TWS earphones have left the charging box. At this time, the charging box obtains the current first real-time time from the clock module and saves the first real-time time. For example, the first real-time time saved by the user is 10:00.

[0104] Step 302: When an earphone insertion event is detected, a usage timeline is obtained from the TWS earphone. The usage timeline starts with the moment when the TWS earphone leaves the charging box and ends with the moment when the TWS earphone is placed in the charging box. The usage time of the TWS earphone when playing audio is recorded in the usage timeline. The earphone insertion event indicates that the TWS earphone is placed in the charging box.

[0105] When the user takes out the TWS earphones from the charging box, the TWS earphones will generate a usage timeline while the user is using the TWS earphones to play audio. The usage timeline starts with the time when the TWS earphones leave the charging box and ends with the time when the TWS earphones are put into the charging box. The usage timeline also records the usage time of the TWS earphones when playing audio. For example, the usage timeline is as follows: Figure 8As shown, 0 represents the time when the TWS earphone leaves the charging box, 60min represents the time when the TWS earphone is placed in the charging box, and 2min-59min represents the time when the TWS earphone plays audio, that is, 2min-59min is the usage time of the TWS earphone. When the user subsequently puts the TWS earphone into the charging box, the charging box can detect the earphone placement event indicating that the TWS earphone is placed in the charging box. At this time, the charging box obtains the usage timeline from the TWS earphone.

[0106] Step 303: Determine and save the usage time period of the TWS headset based on the saved first real-time time and the usage time in the usage timeline, so that when an earphone removal event is detected later, the usage time period is forwarded to the target device connected to the TWS headset through the TWS headset.

[0107] Finally, the charging box determines the time period during which the user uses the TWS headset to play audio data based on the acquired usage timeline and the recorded first real-time time. For example, if the first real-time time saved in the charging box is 10:00, and the usage timeline is as follows: Figure 8 As shown, the charging box can calculate the usage time period of the TWS headset as 10:02-10:59 based on the usage time in the timeline based on 10:00. After that, the charging box will save the usage time period, and when the headset is subsequently detected to be taken out, the usage time period will be sent to the TWS headset. After the TWS headset is connected to the target device, the usage time period will be sent to the target device.

[0108] As mentioned above, in the embodiment of the present invention, when the charging box detects that the user has taken out the TWS earphones, it records the current first real-time time and saves it. After the user subsequently puts the TWS earphones back into the charging box, the charging box obtains the usage timeline from the TWS earphones, and determines the user's usage time period based on the saved first real-time time and the usage timeline, and then forwards the usage time period to the target device through the TWS earphones. In the embodiment of the present invention, even if the TWS earphones are not connected to the designated terminal device or the user does not open the designated APP on the terminal device, the TWS earphone system can fully record the user's usage time period, so it is not restricted by the connected terminal device, has a wide range of applications, and solves the technical problems in the prior art that when the TWS earphones record earphone usage data, there are omissions in data records and incomplete usage data records.

[0109] like Fig. 9 As shown, Fig. 9 An earphone usage data recording device provided in an embodiment of the present invention is applicable to a TWS earphone in a TWS earphone system, comprising:

[0110] The local time updating module 401 is used to receive the first real-time time in the awake state, generate the local time starting point according to the first real-time time, and update the local time from the local time starting point, where the first real-time time is obtained by the clock module on the charging box based on the initial time;

[0111] The data recording module 402 is used to record the usage time period based on the local time during the process of connecting to the first terminal device and playing the audio;

[0112] The data saving module 403 is used to save the usage time period and then sleep when a charging box connection event is detected, so that when the target device is subsequently connected, the usage time period can be sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

[0113] Based on the above embodiment, a local time calibration module is further included, which is used to receive a second real-time time sent by the target device when connected to the target device, and update the local time according to the second real-time time.

[0114] Based on the above embodiment, a real-time time calibration module is also included, which is used to send the local time to the charging box when a charging box connection event is detected, so that the charging box can calibrate the first real-time time in the clock module according to the local time.

[0115] On the basis of the above embodiment, it also includes an initial time acquisition module, which is used to receive the second real-time time sent by the target device when connected to the target device for the first time before receiving the first real-time time of the charging box in the awake state, generate a local time starting point according to the second real-time time, and update the local time from the local time starting point; when a charging box connection event is detected, the local time is sent to the charging box so that the charging box obtains the initial time of the clock module according to the local time.

[0116] Based on the above embodiment, the local time update module 401 is specifically used to enter the wake-up state and receive the first real-time time sent by the charging box when receiving the wake-up instruction from the charging box.

[0117] Based on the above embodiment, the local time update module 401 is specifically used to enter the wake-up state when it detects that the connection with the charging box is disconnected, and receive the first real-time time forwarded by the target TWS earphones that are paired with each other and located in the charging box. The first real-time time is sent to the target TWS earphones after the charging box wakes up the target TWS earphones.

[0118] Based on the above embodiment, the charging box includes a Bluetooth module and a remote communication module;

[0119] The local time update module 401 is specifically used to enter the wake-up state when it detects that the connection with the charging box is disconnected, and receive the first real-time time sent by the Bluetooth module of the charging box. The first real-time time is obtained by the charging box accessing the server through the remote communication module.

[0120] like Fig.10 As shown, Fig.10 A schematic diagram of the structure of another headphone usage data recording device provided by an embodiment of the present invention, Fig.10 The earphone usage data recording device shown is applicable to a charging box in a TWS earphone system, and the charging box includes a clock module, including:

[0121] The time recording module 501 is used to obtain and save the current first real-time time from the clock module when an earphone removal event is detected. The earphone removal event indicates that the TWS earphone leaves the charging box;

[0122] The timeline acquisition module 502 is used to acquire a usage timeline from the TWS earphone when an earphone insertion event is detected. The usage timeline starts with the moment when the TWS earphone leaves the charging box and ends with the moment when the TWS earphone is placed in the charging box. The usage time of the TWS earphone when playing audio is recorded in the usage timeline. The earphone insertion event indicates that the TWS earphone is placed in the charging box.

[0123] The data forwarding module 503 is used to determine and save the usage time period of the TWS headset based on the saved first real-time time and the usage time in the usage timeline, so that when an earphone removal event is detected later, the usage time period is forwarded to the target device connected to the TWS headset through the TWS headset.

[0124] This embodiment also provides a TWS headset, such as Fig.11 As shown, the TWS headset 60 includes a processor 600 and a memory 601;

[0125] The memory 601 is used to store a computer program 602 and transmit the computer program 602 to the processor;

[0126] The processor 600 is used to execute the steps in the embodiment of the above-mentioned method for recording earphone usage data according to the instructions in the computer program 602.

[0127] Exemplarily, the computer program 602 may be divided into one or more modules / units, which are stored in the memory 601 and executed by the processor 600 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program 602 in the TWS headset 60.

[0128] The TWS headset 60 may include, but is not limited to, a processor 600 and a memory 601. Those skilled in the art will appreciate that Fig.11 It is only an example of the TWS headset 60 and does not constitute a limitation of the TWS headset 60. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the TWS headset 60 may also include input and output devices, network access devices, buses, etc.

[0129] The processor 600 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0130] The memory 601 may be an internal storage unit of the TWS headset 60 or an external storage device of the TWS headset 60. Furthermore, the memory 601 may include both an internal storage unit and an external storage device of the TWS headset 60. The memory 601 is used to store the computer program and other programs and data required by the TWS headset 60. The memory 601 may also be used to temporarily store data that has been output or is to be output.

[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0132] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0133] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0134] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0135] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store computer programs.

[0136] This embodiment also provides a charging box, such as Fig.12 As shown, the charging box 70 includes a processor 700, a memory 701 and a clock module 702;

[0137] The memory 701 is used to store a computer program 703 and transmit the computer program 703 to the processor;

[0138] The processor 700 is used to execute the steps in the embodiment of the above-mentioned method for recording earphone usage data according to the instructions in the computer program 703.

[0139] The clock module 702 is used to obtain a first real time based on an initial time.

[0140] It can be understood that the hardware structure or implementation method of the processor 700, memory 701 and computer program 703 in this embodiment is similar to the hardware structure or implementation method of the processor 600, memory 601 and computer program 702 of the TWS headset 60, and will not be repeated in this embodiment.

[0141] An embodiment of the present invention further provides a storage medium containing computer executable instructions, wherein the computer executable instructions are used to execute a method for recording earphone usage data when executed by a computer processor, the method comprising the following steps:

[0142] In the awake state, receiving a first real-time time, generating a local time starting point according to the first real-time time, and updating the local time from the local time starting point, wherein the first real-time time is obtained by a clock module on the charging box based on an initial time;

[0143] During the process of connecting to the first terminal device and playing the audio, recording the usage time period based on the local time;

[0144] When a charging box connection event is detected, the usage time period is saved and then hibernated, so that when it is subsequently connected to the target device, the usage time period is sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

[0145] Or including the following steps:

[0146] When an earphone removal event is detected, the current first real-time time is obtained from the clock module and saved, and the earphone removal event indicates that the TWS earphone leaves the charging box;

[0147] When an earphone insertion event is detected, a usage timeline is obtained from the TWS earphone, the usage timeline takes the moment when the TWS earphone leaves the charging box as the timing start point and the moment when the TWS earphone is placed in the charging box as the timing end point, and the usage time of the TWS earphone when playing audio is recorded in the usage timeline, and the earphone insertion event indicates that the TWS earphone is placed in the charging box;

[0148] Based on the saved first real-time time and the usage time in the usage timeline, the usage time period of the TWS headset is determined and saved, so that when the headset removal event is subsequently detected, the usage time period is forwarded to the target device connected to the TWS headset through the TWS headset.

[0149] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.

Claims

1. A method for recording earphone usage data, characterized in that: The method is applicable to a TWS headset in a TWS headset system, including: In the awake state, receiving a first real-time time, generating a local time starting point according to the first real-time time, and updating the local time from the local time starting point, wherein the first real-time time is obtained by a clock module on the charging box based on an initial time; During the process of connecting to the first terminal device and playing the audio, recording the usage time period based on the local time; When a charging box connection event is detected, the usage time period is saved and then hibernated, so that when it is subsequently connected to the target device, the usage time period is sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

2. The method for recording earphone usage data according to claim 1, characterized in that: Also includes: When connected to the target device, a second real-time time sent by the target device is received, and the local time is updated according to the second real-time time.

3. The method for recording earphone usage data according to claim 2, characterized in that: When a charging box connection event is detected, it also includes: The local time is sent to the charging box so that the charging box calibrates the first real-time time in the clock module according to the local time.

4. The method for recording earphone usage data according to claim 3, characterized in that: Before receiving the first real-time time of the charging box in the awake state, the method further includes: When connecting with the target device for the first time, receiving a second real-time time sent by the target device, generating a local time starting point according to the second real-time time, and updating the local time starting from the local time starting point; When a charging box connection event is detected, the local time is sent to the charging box, so that the charging box obtains the initial time of the clock module according to the local time.

5. The method for recording earphone usage data according to claim 1, characterized in that: The step of receiving a first real time in the awake state includes: When receiving the wake-up instruction of the charging box, the device enters the wake-up state and receives the first real-time time sent by the charging box.

6. The method for recording earphone usage data according to claim 1, characterized in that: The step of receiving a first real time in the awake state includes: When it is detected that the connection with the charging box is disconnected, the device enters a wake-up state and receives a first real-time time forwarded by a target TWS headset that is paired with each other and located in the charging box. The first real-time time is sent to the target TWS headset after the charging box wakes up the target TWS headset.

7. The method for recording earphone usage data according to claim 1, characterized in that: The charging box includes a Bluetooth module and a remote communication module; Accordingly, receiving the first real time in the awake state includes: When it is detected that the connection with the charging box is disconnected, it enters the awake state and receives the first real-time time sent by the Bluetooth module of the charging box. The first real-time time is obtained by the charging box accessing the server through the remote communication module.

8. A method for recording earphone usage data, characterized in that: The method is applicable to a charging box in a TWS earphone system, the charging box includes a clock module, and the method includes: When an earphone removal event is detected, the current first real-time time is obtained from the clock module and saved, and the earphone removal event indicates that the TWS earphone leaves the charging box; When an earphone insertion event is detected, a usage timeline is obtained from the TWS earphone, the usage timeline takes the moment when the TWS earphone leaves the charging box as the timing start point and the moment when the TWS earphone is placed in the charging box as the timing end point, and the usage time of the TWS earphone when playing audio is recorded in the usage timeline, and the earphone insertion event indicates that the TWS earphone is placed in the charging box; Based on the saved first real-time time and the usage time in the usage timeline, the usage time period of the TWS headset is determined and saved, so that when the headset removal event is subsequently detected, the usage time period is forwarded to the target device connected to the TWS headset through the TWS headset.

9. A headphone usage data recording device, characterized in that: The device is applicable to a TWS headset in a TWS headset system, and includes: A local time update module, configured to receive a first real-time time in an awake state, generate a local time starting point according to the first real-time time, and update the local time from the local time starting point, wherein the first real-time time is obtained by a clock module on the charging box based on an initial time; A data recording module, used to record the usage time period based on the local time during the process of connecting to the first terminal device and playing the audio; The data saving module is used to save the usage time period and then sleep when a charging box connection event is detected, so that when the target device is subsequently connected, the usage time period is sent to the target device. The charging box connection event indicates that the TWS headset is placed in the charging box.

10. A headphone usage data recording device, characterized in that: The device is suitable for a charging box in a TWS earphone system, and the charging box includes a clock module, including: A time recording module, configured to obtain and save the current first real-time time from the clock module when an earphone removal event is detected, wherein the earphone removal event indicates that the TWS earphone leaves the charging box; A timeline acquisition module is used to acquire a usage timeline from the TWS headset when an earphone insertion event is detected. The usage timeline takes the moment when the TWS headset leaves the charging box as the timing start point and the moment when the TWS headset is placed in the charging box as the timing end point. The usage timeline records the usage time of the TWS headset when playing audio. The earphone insertion event indicates that the TWS headset is placed in the charging box. A data forwarding module is used to determine and save the usage time period of the TWS headset based on the saved first real-time time and the usage time in the usage timeline, so that when the headset is subsequently detected to be removed, the usage time period is forwarded to a target device connected to the TWS headset through the TWS headset.

11. A TWS headset, characterized in that: The TWS headset includes a processor and a memory; The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute the headphone usage data recording method according to any one of claims 1 to 7 according to the instructions in the computer program.

12. A charging box, characterized in that: The charging box includes a processor, a memory and a clock module; The memory is used to store a computer program and transmit the computer program to the processor; The processor is used to execute the method for recording earphone usage data according to claim 8 according to the instructions in the computer program; The clock module is used to obtain a first real time based on an initial time.

13. A storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are used to execute a method for recording earphone usage data according to any one of claims 1 to 8.