Earphone access box real-time display method and device, wireless earphone system and medium
By introducing a position detection module into the charging box of the wireless headphone system, the headphone position is measured in real time and animation is displayed, the problem of state detection errors caused by poor contact at charging contact points is solved, and accurate detection and intuitive reflection of the status of the headphone entry and exit box is achieved.
Patent Information
- Application Number
- CN202311186266.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-13
- Publication Date
- 2025-03-14
AI Technical Summary
Due to the displacement stroke of the displacement moving parts in the charging box, the charging contact point is poor, which makes the status detection of the headphone entry and exit box incorrect, and it is impossible to intuitively reflect the headphone entry and exit box in the headphone entry and exit box.
By adding a position detection module to the charging box, the position of the wireless headphones is measured in real time and the entry and exit box animation is displayed according to the measured value, which intuitively reflects the entry and exit box process of the headphones, thereby improving the accuracy of status detection.
It realizes accurate detection of the headphone entry and exit status, intuitively reflecting the displacement status of the headphones in the charging box, helping users better understand the charging status of the headphones.
Smart Images

Figure CN119629534A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of audio equipment, and more particularly to a method and device for real-time display of earphone entry and exit boxes, a wireless earphone system, and a medium. Background Art
[0002] With the continuous development of audio equipment technology, wireless earphone systems are becoming more and more popular due to their advantages such as easy use and portability. At present, wireless earphone systems usually include wireless earphones and charging boxes. For lidless charging boxes, a displacement movable part will also be provided inside the box. When the user needs to put the wireless earphones into the charging box, the wireless earphones are attracted to the displacement movable part. At this time, the displacement movable part is in the initial position, and most of the earphone body is outside the charging box. The user continues to push the wireless earphones toward the bottom of the charging box to the limit and then lets go. The displacement movable part will rebound for a certain stroke and be fixed in a position where most of the earphone body is inside the charging box, thereby maintaining good combination of the wireless earphones and the charging box; when the user needs to take the wireless earphones out of the charging box, the wireless earphones are pushed toward the bottom of the charging box to the limit and then let go. The displacement movable part will rebound to the initial position, and the earphone body will return to a position where most of the earphone body is outside the charging box, making it convenient for the user to take it out.
[0003] However, since the charging box can only confirm the status of the wireless headset in and out of the box by judging the electrical contact between the wireless headset and the charging contacts, the movable parts in the aforementioned wireless headset system will have a certain displacement stroke when the headset enters and exits the box, which can easily aggravate the poor contact effect of the charging contact points, resulting in the charging box's incorrect detection of the status of the headset in and out of the box, and it is also unable to intuitively reflect the process of the wireless headset in and out of the box. Summary of the invention
[0004] The embodiments of the present application provide a method, device, wireless headset system and medium for real-time display of earphones entering and exiting a box, which solves the problem that the charging contact points are in poor contact due to the displacement stroke of the displacement movable parts in the charging box, resulting in incorrect status detection of the earphones entering and exiting the box, and the earphones entering and exiting the box process cannot be intuitively reflected. The method improves the accuracy of the status detection of the earphones entering and exiting the box by adding position detection, and intuitively reflects the wireless headset entering and exiting the box process by displaying the animation of the wireless headset entering and exiting the box, thereby helping users to better understand the displacement status of the wireless headset in the charging box.
[0005] In a first aspect, an embodiment of the present application provides a method for real-time display of earphone entry and exit boxes, which is applied to a wireless earphone system, wherein the wireless earphone system includes a wireless earphone and a charging box, wherein the charging box includes a displacement movable part and a display device, wherein the displacement movable part is a linearly movable locking structure, and a position detection module is arranged in the charging box, wherein the position detection module is used to measure the real-time position of the wireless earphone in the direction of the wireless earphone entering and exiting the box;
[0006] The method for real-time display of earphone entry and exit box comprises:
[0007] When a preset sampling period arrives, obtaining a first measurement value of the position detection module and a recorded second measurement value of the position detection module corresponding to a previous sampling period;
[0008] In the case where it is determined according to the first measurement value and the second measurement value that the wireless headset is in the process of being unboxed, displaying a corresponding unboxing animation according to the real-time measurement value of the position detection module until the real-time measurement value of the position detection module reaches a set maximum position threshold, and then the display of the unboxing animation ends;
[0009] When the first measurement value and the second measurement value determine that the wireless headset is in the process of entering the box, the corresponding entering the box animation is displayed according to the real-time measurement of the position detection module until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the entering the box animation ends.
[0010] Optionally, determining that the wireless headset is in a boxing process according to the first measurement value and the second measurement value includes:
[0011] When the second measurement value is within a set reference range of the box-out state, the first measurement value is compared with the second measurement value to obtain a displacement change direction;
[0012] If the displacement change direction satisfies the set box-entering movement direction, it is determined that the wireless headset is in the box-entering process.
[0013] Optionally, determining that the wireless headset is in a process of being taken out of a box according to the first measurement value and the second measurement value includes:
[0014] When the second measurement value is within a set box-entering state reference range, the first measurement value is compared with the second measurement value to obtain a displacement change direction;
[0015] If the displacement change direction satisfies the set out-of-box movement direction, it is determined that the wireless headset is in the out-of-box process.
[0016] Optionally, displaying a corresponding box-out animation according to the real-time measurement value of the position detection module includes:
[0017] When a preset update period arrives, obtaining a current measurement value from the real-time measurement value of the position detection module;
[0018] A corresponding preset box output screen is acquired according to the current measurement value, and the preset box output screen is displayed on the display device.
[0019] Optionally, displaying a corresponding box-entering animation according to the real-time measurement value of the position detection module includes:
[0020] When a preset update period arrives, obtaining a current measurement value from the real-time measurement value of the position detection module;
[0021] A corresponding preset box-entering picture is obtained according to the current measurement value, and the preset box-entering picture is displayed on the display device.
[0022] Optionally, the displacement movable member includes a charging contact;
[0023] After the display of the box-entering animation ends, the method further includes:
[0024] Detecting a connection state between the wireless headset and the charging contact;
[0025] When the status result is that the wireless headset is in the box state and the wireless headset is not connected to the charging contact, an abnormal alarm message is output.
[0026] Optionally, after the box animation is finished, the method further includes:
[0027] Control the charging box to enter a low power consumption mode.
[0028] In a second aspect, an embodiment of the present application provides a real-time display device for earphones entering and exiting a box, which is applied to a wireless earphone system, wherein the wireless earphone system includes a wireless earphone and a charging box, wherein the charging box includes a displacement movable part and a display device, wherein the displacement movable part is a linearly movable locking structure, and a position detection module is arranged in the charging box, wherein the position detection module is used to measure the real-time position of the wireless earphone in the direction of the wireless earphone entering and exiting the box;
[0029] The headphone in and out box real-time display device comprises:
[0030] A measurement value acquisition module, used to acquire a first measurement value of the position detection module and a recorded second measurement value of the position detection module corresponding to a previous sampling period when a preset sampling period is reached;
[0031] an out-of-box animation display module, configured to display a corresponding out-of-box animation according to the real-time measurement value of the position detection module when it is determined that the wireless headset is in an out-of-box process according to the first measurement value and the second measurement value, until the real-time measurement value of the position detection module reaches a set maximum position threshold, and then stop displaying the out-of-box animation;
[0032] The box-entering animation display module is used to display the corresponding box-entering animation according to the real-time measurement of the position detection module when the first measurement value and the second measurement value determine that the wireless headset is in the box-entering process, until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the box-entering animation ends.
[0033] Optionally, the box-entering animation display module is specifically used to compare the first measurement value with the second measurement value to obtain the direction of displacement change when the second measurement value is within the set reference range of the out-of-box state; if the displacement change direction satisfies the set box-entering movement direction, it is determined that the wireless headset is in the box-entering process.
[0034] Optionally, the out-of-box animation display module is specifically used to compare the first measurement value with the second measurement value to obtain the direction of displacement change when the second measurement value is within the set reference range of the in-box state; if the displacement change direction satisfies the set out-of-box movement direction, it is determined that the wireless headset is in the out-of-box process.
[0035] Optionally, the box-out animation display module is also specifically used to obtain the current measurement value from the real-time measurement value of the position detection module when the preset update cycle arrives; obtain the corresponding preset box-out screen according to the current measurement value, and display the preset box-out screen on the display device.
[0036] Optionally, the box-entering animation display module is also specifically used to obtain the current measurement value from the real-time measurement value of the position detection module when the preset update cycle arrives; obtain the corresponding preset box-entering screen according to the current measurement value, and display the preset box-entering screen on the display device.
[0037] Optionally, the displacement movable part includes a charging contact and also includes an entry-box control module for detecting the connection status between the wireless headset and the charging contact; when the status result is that the wireless headset is in an entry-box state and the wireless headset is not connected to the charging contact, an abnormal alarm message is output.
[0038] Optionally, a box-ejecting control module is also included, which is used to control the charging box to enter a low power consumption mode.
[0039] In a third aspect, an embodiment of the present application provides a wireless headset system, which includes a wireless headset and a charging box. The charging box includes a displacement movable part, a display device and a processor. The displacement movable part is a movable locking structure for linear motion. A position detection module is arranged in the charging box. The processor is used to execute the real-time display method of the headset entering and exiting the box as described in any one of the embodiments of the present application.
[0040] In a fourth aspect, an embodiment of the present application provides a non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, are configured to execute the real-time display method of the headphone entry and exit box as described in any one of the embodiments of the present application.
[0041] In the embodiment of the present application, when the preset sampling period arrives, the first measurement value of the position detection module is obtained, and the second measurement value of the position detection module corresponding to the previous sampling period is recorded; when it is determined that the wireless headset is in the process of being out of the box according to the first measurement value and the second measurement value, the corresponding out-of-box animation is displayed according to the real-time measurement value of the position detection module, until the real-time measurement value of the position detection module reaches the set maximum position threshold, and the display of the box animation ends; when it is determined that the wireless headset is in the process of being in the box according to the first measurement value and the second measurement value, the corresponding box-entering animation is displayed according to the real-time measurement of the position detection module, until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the box-entering animation ends. The accuracy of the detection of the state of the headset entering and exiting the box is improved by adding position detection, and the process of the wireless headset entering and exiting the box is intuitively reflected by displaying the animation of the wireless headset entering and exiting the box, so as to help users better understand the displacement of the wireless headset in the charging box. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 is a schematic diagram of an exemplary wireless headset and a displacement movable member in an initial position;
[0043] Figure 2 is a schematic diagram of an exemplary wireless headset and a displacement movable member in a pressed-in position;
[0044] Figure 3 It is a flow chart of a method for real-time display of earphone entry and exit box provided by an embodiment of the present application;
[0045] Figure 4 It is a schematic diagram of a specific process of an out-of-box animation display provided by an embodiment of the present application;
[0046] Figure 5 It is a schematic diagram of a specific process of box entry animation display provided by an embodiment of the present application;
[0047] Figure 6It is a structural schematic diagram of a headphone entry and exit box real-time display device provided in an embodiment of the present application;
[0048] Figure 7 It is a structural schematic diagram of a wireless headset system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0050] The method for real-time display of earphones entering and exiting the box provided in the embodiment of the present application is applicable to an application scenario in which a charging box in a wireless earphone system displays an animation of wireless earphones entering and exiting the box in real time, wherein the charging box includes a displacement movable part and a display device, wherein the displacement movable part is a linearly movable locking structure, Figure 1 is a schematic diagram of an exemplary wireless headset and a displacement movable part in an initial position, Figure 2 is a schematic diagram of an exemplary wireless headset and a displacement movable part in a pressed-in position, such as Figure 1 As shown, when the user needs to put the wireless headset 101 into the charging box 103, the wireless headset 102 and the displacement movable member 102 are attracted together. At this time, the wireless headset 101 and the displacement movable member 102 will be located at the initial position, and most of the body of the wireless headset 101 is located outside the charging box 103, as shown in FIG. Figure 2As shown, the user pushes the wireless headset 101 to the bottom of the charging box 103 to the limit and then lets go, the displacement movable part 102 will rebound a certain distance and then lock, fixed in a position where most of the body of the wireless headset 101 is inside the charging box 103, maintaining good combination between the wireless headset 101 and the charging box 103; when the user needs to take the wireless headset 101 out of the charging box 103, the wireless headset 101 is pushed to the bottom of the charging box 103 to the limit and then let go, the wireless headset 101 and the displacement movable part 102 will rebound to the initial position, and the body of the wireless headset 101 will return to a position where most of the body is outside the charging box 103, which is convenient for the user to take. In the real-time display method for earphones entering and exiting the box provided in the embodiment of the present application, the execution subject of each step can be the processor module of the charging box, and the processor module has data calculation, processing and storage capabilities, and can complete the data processing process involved in the real-time display method for earphones entering and exiting the box. The several application scenarios listed above are only exemplary and explanatory. In actual applications, the headphone entry and exit box real-time display method can also be used in the real-time display process of the headphone entry and exit box in other scenarios. The present application aims to provide a headphone entry and exit box real-time display method, device, wireless headphone system and medium, which solves the problem that the charging contact points are poorly contacted due to the displacement stroke of the movable parts in the charging box, resulting in incorrect status detection of the headphone entry and exit box and the inability to intuitively reflect the headphone entry and exit box process.
[0051] Figure 3 A flow chart of a real-time display method for earphones entering and exiting a box provided in an embodiment of the present application. The real-time display method for earphones entering and exiting a box provided in this embodiment can be implemented by a wireless earphone system, the wireless earphone system includes a wireless earphone and a charging box, the charging box includes a displacement movable part and a display device, the displacement movable part is a movable locking structure for linear motion, a position detection module is arranged in the charging box, wherein the position detection module can be a laser sensor, a magnetoresistive sensor, a linear Hall sensor, etc., and the present invention is not limited here.
[0052] The following description takes the processor of the charging box as an example to implement the method for real-time display of earphones entering and exiting the box. Figure 3 The real-time display method of the earphone in and out of the box specifically includes:
[0053] Step S101: when a preset sampling period arrives, obtain a first measurement value of a position detection module and a second measurement value of the position detection module corresponding to a previous sampling period.
[0054] It is worth noting that the position detection module can be used to measure the real-time position of the wireless headset in the direction of entering and exiting the box. Taking the position detection module as a laser sensor as an example, the laser sensor can be set at the bottom of the charging box. When the wireless headset moves with the displacement movable part, the laser sensor can measure the distance between the wireless headset and itself through the displacement movable part. The processor confirms the real-time position of the wireless headset inside the charging box by obtaining the distance; taking the linear Hall sensor as an example, the linear Hall sensor can be set on one side inside the charging box, on the same side as the magnetic structure corresponding to the linear Hall sensor built into the wireless headset. When the wireless headset moves with the displacement movable part, the linear Hall sensor can detect the magnetic field strength when the wireless headset is located at different positions inside the charging box. The processor can confirm the real-time position of the wireless headset inside the charging box through the corresponding relationship between the magnetic field strength and the position of the wireless headset. In addition, in addition to confirming the real-time position of the wireless headset by obtaining the first measurement value of the position detection module, it is also necessary to obtain the second measurement value corresponding to the recorded position detection module in the previous sampling period to confirm whether the wireless headset is located at the initial position of the entry movement or the initial position of the exit movement, so as to further confirm whether the wireless headset is in the exit movement or the entry movement.
[0055] Step S102: When it is determined that the wireless headset is in the process of being unboxed according to the first measurement value and the second measurement value, a corresponding unboxing animation is displayed according to the real-time measurement value of the position detection module until the real-time measurement value of the position detection module reaches the set maximum position threshold, and the display of the unboxing animation ends.
[0056] Specifically, determining that the wireless headset is in the process of being taken out of the box according to the first measurement value and the second measurement value includes:
[0057] When the second measurement value is within the set reference range of the box-entering state, the first measurement value is compared with the second measurement value to obtain the displacement change direction; if the displacement change direction satisfies the set box-out movement direction, it is determined that the wireless headset is in the box-out process.
[0058] It is worth noting that the reference range of the in-box state refers to the reference range of the measurement values corresponding to the wireless headset being in the in-box state. When the second measurement value is within the reference range of the in-box state, the wireless headset may be in the initial position of starting the out-box movement, or it may be in the end position of completing the in-box movement. Therefore, in order to confirm whether the wireless headset is in the out-box process, the processor may further compare the first measurement value with the second measurement value to obtain the direction of displacement change. It can be understood that when the wireless headset is in the out-box movement, the direction of its displacement change should be in the direction of the out-box movement. Therefore, if the obtained displacement change direction satisfies the out-box movement direction, then it can be determined that the wireless headset is in the out-box process.
[0059] Furthermore, the corresponding box-out animation is displayed according to the real-time measurement value of the position detection module, including:
[0060] When the preset update cycle arrives, the current measurement value is obtained from the real-time measurement value of the position detection module; the corresponding preset box-out screen is obtained according to the current measurement value, and the preset box-out screen is displayed on the display device.
[0061] Among them, if the out-of-box animation display is performed based on the frequency of the real-time measurement values generated by the position detection module, it may not be adapted to the screen refresh time, resulting in display abnormality. Therefore, the preset update cycle can be set to periodically extract the measurement values from the real-time measurement values of the position detection module as a reference for the current position of the wireless headset inside the charging box. The processor can confirm the corresponding position of the wireless headset inside the charging box based on the current measurement value obtained, and based on the corresponding position, it can obtain the corresponding preset out-of-box screen, wherein each position of the wireless headset inside the charging box will store a preset out-of-box screen. In addition, the processor can display the preset out-of-box screen in the form of a pop-up window through an LCD display or digital display set on the charging box.
[0062] Specifically, taking the position detection module as a laser sensor as an example, Figure 4 As shown, the distance measurement value of the wireless headset 101 and the displacement movable part 102 at the initial position of the out-of-box movement can be D0, and the allowable error is Δe1, then the in-box state reference range is [D0-Δe1, D0+Δe1]. When the processor confirms that the second measurement value is within the in-box state reference range [D0-Δe1, D0+Δe1], the first measurement value can be further compared with the second measurement value to obtain the displacement change direction. If the displacement change direction satisfies the out-of-box movement direction, then according to the preset update cycle, the measurement value D1 is obtained at time t1, and the preset out-of-box screen at the corresponding position is P1, then the preset out-of-box screen P1 will be synchronously displayed on the display device of the charging box 103; the measurement value D2 is obtained at time t2, and the preset out-of-box screen at the corresponding position is P2, then the preset out-of-box screen P2 will be synchronously displayed on the display device of the charging box 103, until the current measurement value obtained reaches the set maximum position threshold D max,, the earphone is at the maximum travel, the wireless earphone 101 completes the out-of-box movement, and the processor finishes displaying the out-of-box animation. Specifically, the earphone can be displayed in a gray state in the animation effect, and it can be cleared after a set period of time. Taking the position detection module as a linear Hall sensor as an example, the wireless earphone has a built-in magnet. The linear Hall sensor can convert the change in magnetic field strength caused by the earphone entering and exiting the box into a voltage amplitude. When the wireless earphone is in the initial position to start the out-of-box movement, the magnetic field strength measurement value detected by the linear Hall sensor can be B0, which corresponds to the minimum voltage threshold E0 that the processor can detect after conversion. The allowable error is set to Δe2, then the in-box state reference range is [E0-Δe2, E0+Δe2]. When the processor confirms that the voltage amplitude corresponding to the second measurement value is within the in-box state reference range [E0-Δe2, E0+Δe2], the first measurement value can be further converted to a voltage amplitude. The voltage amplitude corresponding to the measured value is compared with the voltage amplitude corresponding to the second measured value to obtain the displacement change direction. If the displacement change direction satisfies the box-out movement direction, then according to the preset update cycle, the voltage amplitude E1 corresponding to the measured value B1 is obtained at time t1, and the preset box-out screen at the corresponding position is P′1, then the preset box-out screen P′1 will be synchronously displayed on the display device of the charging box; the voltage amplitude E2 corresponding to the measured value B2 is obtained at time t2, and the preset box-out screen at the corresponding position is P′2, then the preset box-out screen P′2 will be synchronously displayed on the display device of the charging box, until the voltage amplitude corresponding to the current measured value obtained reaches the set maximum voltage threshold E max , the wireless headset completes the unboxing movement, and the processor finishes displaying the unboxing animation.
[0063] Step S103: When the first measurement value and the second measurement value determine that the wireless headset is in the process of entering the box, the corresponding box-entering animation is displayed according to the real-time measurement of the position detection module until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the box-entering animation ends.
[0064] Specifically, determining that the wireless headset is in a boxing process according to the first measurement value and the second measurement value includes:
[0065] When the second measured value is within the set out-of-box state reference range, the first measured value is compared with the second measured value to obtain the displacement change direction; if the displacement change direction satisfies the set in-box movement direction, it is determined that the wireless headset is in the in-box process.
[0066] It is worth noting that the out-of-box state reference range refers to the reference range of measured values corresponding to the wireless headset being in the out-of-box state. When the second measured value is within the out-of-box state reference range, it may be that the wireless headset is at the end position of completing the out-of-box movement, or it may be the initial position of the wireless headset starting the into-box movement. Therefore, in order to confirm whether the wireless headset is in the process of entering the box, the processor may further compare the first measured value with the second measured value to obtain the direction of displacement change. It can be understood that when the wireless headset is entering the box, its displacement change direction should be in the direction of the entry movement. Therefore, if the obtained displacement change direction satisfies the entry movement direction, then it can be determined that the wireless headset is in the process of entering the box.
[0067] Furthermore, the corresponding box-entering animation is displayed according to the real-time measurement value of the position detection module, including:
[0068] When the preset update cycle arrives, the current measurement value is obtained from the real-time measurement value of the position detection module; the corresponding preset box entry screen is obtained according to the current measurement value, and the preset box entry screen is displayed on the display device.
[0069] Specifically, taking the position detection module as a laser sensor as an example, Figure 5 As shown, the distance measurement value of the wireless headset 101 and the displacement movable member 102 at the initial position of the box-entering movement can be D′0, and the allowable error is Δe′1, then the box-entering state reference range is [D ′ 0-Δe ′ 1,D ′ 0+Δ′e1], when the processor confirms that the second measurement value is within the reference range of the box entry state [D′0-Δ′e1, D′0+Δ′e1], the first measurement value can be further compared with the second measurement value to obtain the direction of displacement change. If the direction of displacement change satisfies the box entry movement direction, then according to the preset update cycle, the measurement value D′1 is obtained at time t′1, and the preset box entry screen at the corresponding position is P″′1, then the preset box entry screen P″′1 will be synchronously displayed on the display device of the charging box 103; the measurement value D′2 is obtained at time t′2, and the preset box entry screen at the corresponding position is P″′2, then the preset box entry screen P″′2 will be synchronously displayed on the display device of the charging box 103, until the current measurement value obtained reaches the set minimum position threshold D′ min , the wireless headset 101 completes the box entry movement, and the processor ends the display of the box entry animation. Taking the position detection module as a linear Hall sensor as an example, the wireless headset has a built-in magnet. When the wireless headset is in the initial position of the box entry movement, the magnetic field strength measurement value detected by the linear Hall sensor can be B′0, which corresponds to the maximum voltage threshold E′0 that the processor can detect after conversion. The allowable error is set to Δe′2, then the box entry state reference range is [E ′0-Δe′2,E′0+Δe′2], when the processor confirms that the voltage amplitude corresponding to the second measurement value is within the reference range of the box entry state [E′0-Δe′2,E′0+Δe′2], the voltage amplitude corresponding to the first measurement value can be further compared with the voltage amplitude corresponding to the second measurement value to obtain the displacement change direction. If the displacement change direction satisfies the box entry movement direction, then according to the preset update cycle, at time t′1, the voltage amplitude E′1 corresponding to the measurement value B′1 is obtained, and the preset box entry screen at the corresponding position is P″″1, then the preset box entry screen P″″1 will be synchronously displayed on the display device of the charging box; at time t′2, the voltage amplitude E′2 corresponding to the measurement value B′2 is obtained, and the preset box entry screen at the corresponding position is P″″2, then the preset box entry screen P″″2 will be synchronously displayed on the display device of the charging box, until the voltage amplitude corresponding to the current measurement value obtained reaches the set minimum voltage threshold B′ min , the wireless headset completes the box-entering movement, and the processor finishes displaying the box-entering animation.
[0070] In the above, when the preset sampling period arrives, the first measurement value of the position detection module is obtained, and the second measurement value of the position detection module corresponding to the previous sampling period is recorded; when it is determined that the wireless headset is in the process of being out of the box according to the first measurement value and the second measurement value, the corresponding out-of-box animation is displayed according to the real-time measurement value of the position detection module, until the real-time measurement value of the position detection module reaches the set maximum position threshold, and the display of the box animation ends; when it is determined that the wireless headset is in the process of being in the box according to the first measurement value and the second measurement value, the corresponding box-entering animation is displayed according to the real-time measurement of the position detection module, until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the box-entering animation ends. It is achieved that the accuracy of the detection of the state of the headset entering and exiting the box is improved by adding the position detection method, and the process of the wireless headset entering and exiting the box is intuitively reflected by displaying the animation of the wireless headset entering and exiting the box, so as to help users better understand the displacement of the wireless headset in the charging box.
[0071] In one embodiment, after the display of the box-entering animation ends, the processor may detect the connection state between the wireless headset and the charging contact, and then determine whether the wireless headset is in a normal charging state after the box-entering animation is completed. Based on the above embodiment, after the display of the box-entering animation ends, it also includes:
[0072] Detect the connection status between the wireless headset and the charging contact; if the status result is that the wireless headset is in the box state and the wireless headset is not connected to the charging contact, output abnormal alarm information.
[0073] It is worth mentioning that, through the earphone in and out box detection method provided in the embodiment of the present application, it is not necessary to judge the earphone in and out box status through the connection status between the wireless earphone and the charging contacts. In the case where the charging contact points are prone to poor contact, the measurement value of the position detection module is used to judge whether the wireless earphone is in the box state, and then confirm whether the wireless earphone is in the charging box, and further judge the connection status between the wireless earphone and the charging contacts. When the wireless earphone is not connected to the charging contacts, it is determined that there is a charging abnormality, and thus an abnormal alarm message can be output to remind the user to check the charging abnormality in time, so that the user can grasp the charging status of the wireless earphone and the charging box in time, and ensure the user experience.
[0074] In another embodiment, based on the above embodiment, after the box animation is displayed, the method further includes:
[0075] Control the charging box to enter low power consumption mode.
[0076] Therefore, when the wireless earphones are out of the box, the charging box can be controlled to enter a low power consumption mode, thereby reducing the remaining power loss of the charging box and ensuring the power supply of the wireless earphones.
[0077] Figure 6 This is a schematic diagram of the structure of a real-time display device for earphone in and out of a box provided by an embodiment of the present application. Figure 6 , a real-time display device for earphones entering and exiting a box provided in this embodiment is applied to a wireless earphone system, the wireless earphone system includes a wireless earphone and a charging box, the charging box includes a displacement movable part and a display device, the displacement movable part is a linear motion movable locking structure, a position detection module is arranged in the charging box, and the position detection module is used to measure the real-time position of the wireless earphone in the direction of the wireless earphone entering and exiting the box;
[0078] The real-time display device for earphone in and out box includes:
[0079] The measurement value acquisition module 201 is used to acquire the first measurement value of the position detection module and the second measurement value of the position detection module corresponding to the previous sampling period when the preset sampling period arrives;
[0080] The out-of-box animation display module 202 is used to determine that the wireless headset is in the out-of-box process according to the first measurement value and the second measurement value, and display the corresponding out-of-box animation according to the real-time measurement value of the position detection module until the real-time measurement value of the position detection module reaches the set maximum position threshold, and then stop displaying the out-of-box animation;
[0081] The box-entering animation display module 203 is used to display the corresponding box-entering animation according to the real-time measurement of the position detection module when the first measurement value and the second measurement value determine that the wireless headset is in the box-entering process, until the real-time measurement value of the position detection module reaches the set minimum position threshold, and then the display of the box-entering animation ends.
[0082] Based on the above embodiment, the box-entering animation display module 203 is specifically used to compare the first measurement value with the second measurement value to obtain the direction of displacement change when the second measurement value is within the set reference range of the out-of-box state; if the displacement change direction satisfies the set box-entering movement direction, it is determined that the wireless headset is in the box-entering process.
[0083] Based on the above embodiment, the out-of-box animation display module 202 is specifically used to compare the first measurement value with the second measurement value to obtain the direction of displacement change when the second measurement value is within the set reference range of the in-box state; if the displacement change direction satisfies the set out-of-box movement direction, it is determined that the wireless headset is in the out-of-box process.
[0084] On the basis of the above embodiment, the box-out animation display module 202 is also specifically used to obtain the current measurement value from the real-time measurement value of the position detection module when the preset update cycle arrives; obtain the corresponding preset box-out screen according to the current measurement value, and display the preset box-out screen on the display device.
[0085] On the basis of the above-mentioned embodiment, the box-entering animation display module 203 is also specifically used to obtain the current measurement value from the real-time measurement value of the position detection module when the preset update cycle arrives; obtain the corresponding preset box-entering screen according to the current measurement value, and display the preset box-entering screen on the display device.
[0086] Based on the above embodiment, the displacement movable part includes charging contacts and also includes an entry-box control module, which is used to detect the connection status between the wireless headset and the charging contacts; when the status result is that the wireless headset is in the entry-box state and the wireless headset is not connected to the charging contacts, an abnormal alarm message is output.
[0087] On the basis of the above embodiment, it also includes a box output control module for controlling the charging box to enter a low power consumption mode.
[0088] In the above, when the preset sampling period arrives, the first measurement value of the position detection module is obtained, and the second measurement value of the position detection module corresponding to the previous sampling period is recorded; when it is determined that the wireless headset is in the process of being out of the box according to the first measurement value and the second measurement value, the corresponding out-of-box animation is displayed according to the real-time measurement value of the position detection module, until the real-time measurement value of the position detection module reaches the set maximum position threshold, and the display of the box animation ends; when it is determined that the wireless headset is in the process of being in the box according to the first measurement value and the second measurement value, the corresponding box-entering animation is displayed according to the real-time measurement of the position detection module, until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the box-entering animation ends. It is achieved that the accuracy of the detection of the state of the headset entering and exiting the box is improved by adding the position detection method, and the process of the wireless headset entering and exiting the box is intuitively reflected by displaying the animation of the wireless headset entering and exiting the box, so as to help users better understand the displacement of the wireless headset in the charging box.
[0089] Figure 7 A schematic diagram of the structure of a wireless headset system provided in an embodiment of the present application, referring to Figure 7 The wireless headset system includes a wireless headset 301 and a charging box 302. The charging box includes a displacement movable part 3021, a display device 3022 and one or more processors 3023. The displacement movable part 3021 is a movable locking structure for linear motion. A position detection module 3024 is provided in the charging box. One or more processors 3023 implement the real-time display method of the headset entering and exiting the box in any embodiment of the present application. The processor 3023 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the storage device, that is, the above-mentioned real-time display method of the headset entering and exiting the box is implemented.
[0090] The wireless headset system provided above can be used to execute the real-time display method of the headset entering and exiting the box provided in the above embodiment, and has corresponding functions and beneficial effects.
[0091] An embodiment of the present application also provides a storage medium containing computer executable instructions. When the computer executable instructions are executed by a computer processor, they are used to execute a real-time display method for headphones entering and exiting a box. The real-time display method for headphones entering and exiting a box includes: when a preset sampling period arrives, obtaining a first measurement value of the position detection module and a second measurement value corresponding to the position detection module in the previous sampling period; when it is determined that the wireless headset is in the process of being out of the box according to the first measurement value and the second measurement value, displaying a corresponding box-out animation according to the real-time measurement value of the position detection module until the real-time measurement value of the position detection module reaches a set maximum position threshold, and the box-out animation is displayed; when it is determined that the wireless headset is in the process of being in the box according to the first measurement value and the second measurement value, displaying a corresponding box-in animation according to the real-time measurement of the position detection module until the real-time measurement value of the position detection module reaches a set minimum position threshold, and the box-in animation is displayed.
[0092] Storage medium - any of various types of storage devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape devices; computer system storage devices or random access storage devices, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile storage devices, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of storage device elements, etc. The storage medium may also include other types of storage devices or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0093] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the real-time display method of the headphone entry and exit box as described above, and can also execute related operations in the real-time display method of the headphone entry and exit box provided in any embodiment of the present application.
[0094] The headphone entry and exit box real-time display device, wireless headphone system and storage medium provided in the above embodiments can execute the headphone entry and exit box real-time display method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the headphone entry and exit box real-time display method provided in any embodiment of the present application.
[0095] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for real-time display of earphones entering and exiting a box, applied to a wireless earphone system, wherein the wireless earphone system comprises a wireless earphone and a charging box, wherein the charging box comprises a displacement movable part and a display device, wherein the displacement movable part is a linearly movable locking structure, characterized in that: A position detection module is provided in the charging box, and the position detection module is used to measure the real-time position of the wireless headset in the direction of the wireless headset entering and exiting the box; The method for real-time display of earphone entry and exit box comprises: When a preset sampling period arrives, obtaining a first measurement value of the position detection module and a recorded second measurement value of the position detection module corresponding to a previous sampling period; In the case where it is determined according to the first measurement value and the second measurement value that the wireless headset is in the process of being unboxed, displaying a corresponding unboxing animation according to the real-time measurement value of the position detection module until the real-time measurement value of the position detection module reaches a set maximum position threshold, and then the display of the unboxing animation ends; When the first measurement value and the second measurement value determine that the wireless headset is in the process of entering the box, the corresponding entering the box animation is displayed according to the real-time measurement of the position detection module until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the entering the box animation ends.
2. The method for real-time display of earphone in and out box according to claim 1, characterized in that: The determining, according to the first measurement value and the second measurement value, that the wireless headset is in a boxing process includes: When the second measurement value is within a set reference range of the box-out state, the first measurement value is compared with the second measurement value to obtain a displacement change direction; If the displacement change direction satisfies the set box-entering movement direction, it is determined that the wireless headset is in the box-entering process.
3. The method for real-time display of earphone in and out box according to claim 1, characterized in that: The determining, according to the first measurement value and the second measurement value, that the wireless headset is in a process of being taken out of a box includes: When the second measurement value is within a set box-entering state reference range, the first measurement value is compared with the second measurement value to obtain a displacement change direction; If the displacement change direction satisfies the set out-of-box movement direction, it is determined that the wireless headset is in the out-of-box process.
4. The method for real-time display of earphone in and out box according to claim 1, characterized in that: The displaying of the corresponding box-out animation according to the real-time measurement value of the position detection module includes: When a preset update period arrives, obtaining a current measurement value from the real-time measurement value of the position detection module; A corresponding preset box output screen is acquired according to the current measurement value, and the preset box output screen is displayed on the display device.
5. The method for real-time display of earphone in and out box according to claim 1, characterized in that: The displaying of the corresponding box-entering animation according to the real-time measurement value of the position detection module includes: When a preset update period arrives, obtaining a current measurement value from the real-time measurement value of the position detection module; A corresponding preset box-entering picture is obtained according to the current measurement value, and the preset box-entering picture is displayed on the display device.
6. The method for real-time display of earphone in and out box according to claim 1, characterized in that: The displacement movable member includes a charging contact; After the display of the box-entering animation ends, the method further includes: Detecting a connection state between the wireless headset and the charging contact; When the status result is that the wireless headset is in the box state and the wireless headset is not connected to the charging contact, an abnormal alarm message is output.
7. The method for real-time display of earphone in and out box according to claim 1, characterized in that: After the box animation is displayed, the method further includes: Control the charging box to enter a low power consumption mode.
8. A real-time display device for earphones entering and exiting a box, applied to a wireless earphone system, wherein the wireless earphone system comprises a wireless earphone and a charging box, wherein the charging box comprises a displacement movable part and a display device, wherein the displacement movable part is a linearly movable locking structure, characterized in that: A position detection module is provided in the charging box, and the position detection module is used to measure the real-time position of the wireless headset in the direction of the wireless headset entering and exiting the box; The headphone in and out box real-time display device comprises: A measurement value acquisition module, used to acquire a first measurement value of the position detection module and a recorded second measurement value of the position detection module corresponding to a previous sampling period when a preset sampling period is reached; an out-of-box animation display module, configured to display a corresponding out-of-box animation according to the real-time measurement value of the position detection module when it is determined that the wireless headset is in an out-of-box process according to the first measurement value and the second measurement value, until the real-time measurement value of the position detection module reaches a set maximum position threshold, and then stop displaying the out-of-box animation; The box-entering animation display module is used to display the corresponding box-entering animation according to the real-time measurement of the position detection module when the first measurement value and the second measurement value determine that the wireless headset is in the box-entering process, until the real-time measurement value of the position detection module reaches the set minimum position threshold, and the display of the box-entering animation ends.
9. A wireless headset system, characterized in that: The wireless headset system includes a wireless headset and a charging box. The charging box includes a displacement movable part, a display device and a processor. The displacement movable part is a movable locking structure for linear motion. A position detection module is arranged in the charging box. The processor is used to execute the real-time display method of headset entering and exiting the box according to any one of claims 1 to 7.
10. A non-volatile storage medium storing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, they are configured to execute the headphone entry and exit box real-time display method according to any one of claims 1 to 7.