Storage bin control method, earphone storage bin and storage medium

By integrating wireless and wired communication modules in the headphone storage compartment, the problem of low flexibility and convenience of smart devices is solved, wireless Bluetooth communication is realized, and the device usage experience is improved.

CN119854689APending Publication Date: 2025-04-18GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411974982.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-30
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

Smart devices have low flexibility and convenience, especially when wireless Bluetooth functions are abandoned, users have to return to the traditional wired connection method.

Method used

By integrating the wireless communication module and the wired communication module in the headphone storage compartment, the headphone storage compartment serves as a communication bridge between the wireless headphones and the host device, receives the audio to be played by the host device and forwards it to the headphone unit through the wireless connection module, thereby realizing wireless Bluetooth communication between the headphone unit and the host device.

Benefits of technology

When the host device is not equipped with a wireless Bluetooth module, communication between the wireless headset and the host device can still be established, improving the flexibility and convenience of using smart devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854689A_ABST
    Figure CN119854689A_ABST
Patent Text Reader

Abstract

The invention discloses a control method of a storage bin, an earphone storage bin and a storage medium, relates to the technical field of earphone storage bins, and discloses the control method of the storage bin, the control method is applied to the earphone storage bin, the earphone storage bin comprises a wireless communication module and a wired communication module, and when an earphone unit is in an out-of-bin state, the wireless communication module is connected with the wired communication module. The earphone unit is in communication connection with the earphone storage bin based on the wireless communication module. The control method of the storage bin comprises the following steps: receiving a to-be-played audio sent by the host device based on the wired communication module; and forwarding the audio to be played to the earphone unit based on the wireless communication module, so that the host equipment can establish communication with the earphone unit. On the basis, after the earphone storage bin is in wired connection with the host equipment, the earphone storage bin is used as a communication bridge for communication between the host equipment and the earphone unit, so that the host equipment without a wireless Bluetooth module can establish communication with the wireless earphone based on the earphone storage bin, and the use flexibility of the host equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of earphone storage bins, and in particular to a storage bin control method, an earphone storage bin, and a storage medium. Background Art

[0002] Wireless headphones have gradually become the first choice for users at home or in the office due to their convenience and excellent sound quality.

[0003] However, most smart device manufacturers often abandon the wireless Bluetooth function for cost considerations. For example, in order to improve the cost-effectiveness of computer components, computer manufacturers omit the wireless Bluetooth module in the computer motherboard design, resulting in the lack of wireless Bluetooth function in the assembled computer. This situation forces users who are accustomed to using wireless headphones to return to the traditional wired connection method, resulting in low flexibility and convenience in the use of smart devices.

[0004] The above contents are only used to assist in understanding the technical solution of the present application and do not constitute an admission that the above contents are prior art. Summary of the invention

[0005] The main purpose of this application is to provide a storage bin control method, an earphone storage bin and a storage medium, aiming to solve the technical problems of low flexibility and convenience in the use of smart devices.

[0006] To achieve the above-mentioned purpose, the present application proposes a control method for a storage bin, which is applied to an earphone storage bin, wherein the earphone storage bin is provided with a wireless communication module and a wired communication module. When the earphone unit is in an out-of-bin state, the earphone unit is communicatively connected to the earphone storage bin based on the wireless communication module, and the wired communication module is communicatively connected to a host device. The method comprises:

[0007] Receiving the audio to be played sent by the host device based on the wired communication module;

[0008] The audio to be played is forwarded to the earphone unit based on the wireless communication module, so that the host device can establish communication with the earphone unit.

[0009] In one embodiment, after the step of receiving the audio to be played sent by the host device based on the wired communication module, the method further includes:

[0010] If a triggering action of the mode switching button is detected, the earphone storage compartment is controlled to enter a normal mode or a transfer mode;

[0011] If the transfer mode is triggered, the Bluetooth connection process with the headset unit is started.

[0012] In one embodiment, before the step of initiating the Bluetooth connection process with the headset unit, the method further includes:

[0013] If the earphone unit is in a Bluetooth connection state with the Bluetooth device, controlling the earphone unit to disconnect from the Bluetooth device;

[0014] When the headset unit is disconnected from the Bluetooth device, the step of starting the Bluetooth connection process with the headset unit is performed.

[0015] In one embodiment, before the step of forwarding the audio to be played to the earphone unit based on the wireless communication module so that the host device can establish communication with the earphone unit, the step further includes:

[0016] Determining a current state of the headset unit;

[0017] If the earphone unit is in the storage state, forwarding the audio to be played to the connected audio system based on the wireless communication module;

[0018] If the earphone unit is in an out-of-box state, the step of forwarding the audio to be played to the earphone unit based on the wireless communication module is performed.

[0019] In one embodiment, after the step of determining the current state of the earphone unit, the method further includes:

[0020] If the earphone unit is in a Bluetooth connection state, controlling the earphone unit to disconnect from the current device;

[0021] Start a Bluetooth connection process with the headset unit and establish a Bluetooth connection with the headset unit.

[0022] In one embodiment, after the step of receiving the audio to be played sent by the host device based on the wired communication module, the method further includes:

[0023] If the transfer mode is triggered and the earphone unit is in the storage state, start the Bluetooth connection process with the earphone unit and establish a Bluetooth connection with the earphone unit;

[0024] If the normal mode is triggered and the earphone unit is in the out-of-box state, the Bluetooth connection with the earphone unit is disconnected.

[0025] In one embodiment, the control method of the storage bin further includes:

[0026] Receiving input audio collected by the headphone unit;

[0027] The input audio is forwarded to the host device based on the wired communication module, so that the host device and the earphone unit complete data communication.

[0028] In one embodiment, the control method of the storage bin further includes:

[0029] Acquiring access information of the wired communication module;

[0030] If the wired communication module is in communication connection with the host device, the step of receiving the audio to be played sent by the host device based on the wired communication module is performed.

[0031] In addition, to achieve the above-mentioned purpose, the present application also proposes an earphone storage bin, which includes: a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the storage bin control method as described above.

[0032] In addition, to achieve the above-mentioned purpose, the present application also proposes a storage medium, which is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by the processor, the steps of the control method of the storage bin as described above are implemented.

[0033] One or more technical solutions proposed in this application have at least the following technical effects:

[0034] The earphone storage bin is used as a bridge for the Bluetooth connection between the wireless earphone and the host device. After the earphone storage bin is connected to the host device by wire, the earphone storage bin is enumerated as a Bluetooth device, so that the earphone storage bin can establish a Bluetooth connection with the wireless earphone through the wireless communication module. Based on this, after the earphone storage bin receives the audio to be played sent by the host device based on the wired communication module, the audio to be played is forwarded to the earphone unit through the wireless connection module, thereby realizing wireless Bluetooth communication between the earphone unit and the host device. When the host device is not equipped with a wireless Bluetooth module, communication between the wireless earphone and the host device can still be established, thereby improving the flexibility and convenience of using smart devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0036] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0037] Figure 1This is a connection diagram of the earphone storage compartment, host device and wireless earphones in this application;

[0038] Figure 2 A schematic diagram of the headphone storage compartment establishing a connection with a host device via a USB connection;

[0039] Figure 3 A schematic diagram of the connection between the earphone unit and the earphone storage compartment;

[0040] Figure 4 A schematic diagram of the Bluetooth pairing connection between the earphone unit and the earphone storage compartment;

[0041] Figure 5 This is a schematic diagram of data transmission after the earphone unit and the earphone storage compartment are paired;

[0042] Figure 6 A schematic diagram of a flow chart of a first embodiment of a control method for a storage bin of the present application;

[0043] Figure 7 A schematic diagram of data transmission between the earphone unit, the earphone storage compartment and the host device;

[0044] Figure 8 This is a schematic diagram of the working mode switching of the earphone storage compartment;

[0045] Fig. 9 A flowchart diagram of a second embodiment of the control method for a storage bin of the present application;

[0046] Fig.10 A flowchart of an optional implementation of the storage bin control method provided in the present application;

[0047] Fig.11 This is a schematic diagram of the equipment structure of the hardware operating environment involved in the storage bin control method in the embodiment of the present application.

[0048] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0049] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.

[0050] The main solution of the embodiment of the present application is: the earphone storage compartment is provided with a wireless communication module and a wired communication module, and is connected to the host device based on the wired communication module. When the earphone unit is in an out-of-compartment state, a wireless Bluetooth communication connection is established with the earphone unit through the wireless communication module. Based on this, after the earphone storage compartment receives the audio to be played sent by the host device, it can forward the audio to be played to the earphone unit through the wireless communication module, so that the host device and the earphone unit establish communication, thereby eliminating the need to add an additional Bluetooth module in the host device, thereby improving the flexibility of using the smart host device.

[0051] In related technologies, most smart device manufacturers often abandon the wireless Bluetooth function due to cost considerations. For example, in order to improve the cost-effectiveness of computer components, computer manufacturers omit the wireless Bluetooth module in the computer motherboard design, resulting in the lack of wireless Bluetooth function in the assembled computer. This situation forces users who are accustomed to using wireless headphones to return to the traditional wired connection method, resulting in low flexibility and convenience in the use of smart devices.

[0052] The present application provides a solution, which integrates the Bluetooth adapter function into the earphone storage compartment, and uses the earphone storage compartment as a communication bridge between the wireless earphone and the host device. Therefore, after the earphone storage compartment receives the audio to be played sent by the host device based on the wired communication module, the audio to be played is forwarded to the earphone unit through the wireless communication module, so that the host device that is not equipped with a Bluetooth module can establish communication with the wireless earphone unit, thereby improving the flexibility and convenience of using the wireless earphone based on the host device.

[0053] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.

[0054] Please refer to Figure 1 , Figure 1 This is a schematic diagram of the connection between the earphone storage bin, the host device and the wireless earphone in the control method of the storage bin of this application. As an optional implementation, the host device is a desktop computer without a Bluetooth module, the earphone storage bin is also called an earphone charging bin, and the earphone unit is a wireless earphone, such as a TWS (True Wireless Stereo) earphone, an OWS (Open Wearable Stereo) earphone, etc. TWS earphones are preferred.

[0055] Specifically, the earphone storage compartment is provided with a wired communication module and a wireless communication module, wherein a wired communication connection between the earphone storage compartment and the host device can be established through a wired connection such as USB (Universal Serial Bus) or Type-C access. As an optional implementation, please refer to Figure 2 The earphone storage compartment can be connected to the host device via USB connection. Figure 2 The DATA+ and DATA- shown in the figure represent data lines for transmitting data signals. DATA+ represents the positive data line, and DATA- represents the negative data line or the ground reference data line. These two data lines usually appear in pairs for data transmission between devices. DATA+, DATA-, together with the 5V power supply and GND (ground terminal), form a simple circuit connection between the storage bin and the host device, so that the earphone storage bin can access the data of the host device through this circuit access method.

[0056] In this embodiment, the wireless communication module refers to the wireless Bluetooth module of the earphone storage compartment. The wireless communication module can be obtained by changing the main control chip of the charging storage compartment from the commonly used MCU (Microcontroller Unit) microprocessor to the Bluetooth chip BT SOC (Bluetooth System on Chip), so that the earphone storage compartment has the Bluetooth function of wireless communication.

[0057] Optionally, in addition to wireless Bluetooth communication, the earphone storage compartment can also be connected to the earphone unit through a physical connection and provide a charging function for the earphone unit. Taking TWS earphones as an example, please refer to Figure 3 The TWS earphones include a master earphone and a slave earphone. When establishing a physical connection with the earphone storage bin, they include a first part of a power supply interface consisting of 5V and GND, and a second part of a UART communication interface consisting of TX and RX. Based on this, the physical connection between the earphone unit and the earphone storage bin is achieved.

[0058] Furthermore, since the main control chip of the earphone storage compartment is changed to a Bluetooth chip, if the earphone unit and the earphone storage compartment are matching devices, they need to be paired with Bluetooth before leaving the factory, so that when the earphone storage compartment is connected to the host device, there is no need to perform the Bluetooth pairing process of the earphone storage compartment, thereby improving data processing efficiency. Exemplarily, the earphone unit is a TWS earphone, including a master earphone and a slave earphone unit. The pairing process of the earphone storage compartment and the TWS earphone is as follows: Figure 4As shown, in this process, the earphone storage compartment sends a "read Bluetooth address command" to the master earphone to read the Bluetooth address of the master earphone, and receives the returned Bluetooth address, and at the same time sends a "read Bluetooth address command" to the slave earphone to read the Bluetooth address of the slave earphone, and receives the returned Bluetooth address; then the slave ear Bluetooth address is sent to the master earphone and the ACK (confirmation signal) returned by the master earphone is received, indicating that the slave ear Bluetooth address has been successfully sent and received, and at the same time the master ear Bluetooth address is sent to the slave earphone and the ACK returned by the slave earphone is received, indicating that the master ear Bluetooth address has been successfully sent and received; then the earphone storage compartment initiates a master-slave pairing command to the master earphone, that is, the master ear and the slave ear establish a pairing relationship, after receiving the ACK returned by the master ear, it indicates that the master-slave pairing command has been successfully executed; after completing the master-slave pairing, the master earphone sends a pairing request to the slave earphone, requesting the slave earphone to pair, at this time the slave earphone responds to the pairing request, indicating that it agrees to pair, and then after the pairing is successful, the two earphone units begin to periodically send and receive data to maintain the pairing state.

[0059] After completing the pairing of the master earphone and the slave earphone, it is necessary to perform Bluetooth pairing between the earphone storage bin and the earphone unit. During this process, the earphone storage bin turns on Bluetooth and sends the earphone storage bin's own CASE Bluetooth address to the master earphone. After receiving the ACK returned by the master earphone, it confirms that the CASE Bluetooth address has been successfully sent and received; the earphone storage bin then initiates a CASE pairing command, requesting to establish a pairing relationship with the master earphone, and when the return ACK is received, it indicates that the CASE pairing command has been successfully executed, and then the master earphone synchronizes the CAS pairing information to the slave earphone to ensure that the pairing status of both parties is consistent, and when the slave earphone replies, it indicates that the synchronization operation has been completed, and finally the two earphone units continue to periodically send and receive data to maintain the pairing status with the earphone storage bin and the earphone.

[0060] After the TWS earphones and earphone storage compartment complete Bluetooth pairing, the connection diagram between the earphone unit and the earphone storage compartment is as follows Figure 5 As shown, during normal operation, the master earphone is connected to the earphone storage bin via Bluetooth, and the master earphone synchronizes the received message to the slave earphone based on binaural message synchronization, so that the slave earphone can realize the Bluetooth monitoring function.

[0061] It should be noted that the above-mentioned TWS headphones are only used for explanation and are not intended to limit the type of headphone unit of the present application.

[0062] Optionally, if the earphone unit and the earphone storage bin are not matching devices, the earphone storage bin can be paired with the earphone unit when it is enumerated as a Bluetooth device. After the earphone storage bin is connected to the host device by wire, the earphone storage bin can enumerate itself as a Bluetooth device, or after the user clicks the Bluetooth pairing control of the earphone storage bin (which can be a virtual button on the display or a physical button), the earphone storage bin can enumerate itself as a Bluetooth device. In addition, the pairing process of the earphone storage bin can be triggered by other common Bluetooth pairing methods and it can be enumerated as a Bluetooth device.

[0063] Furthermore, an embodiment of the present application provides a control method for a storage bin. In this embodiment, the control method for the storage bin is applied to an earphone storage bin, and the earphone storage bin is provided with a wireless communication module and a wired communication module. When the earphone unit is in an out-of-bin state, the earphone unit and the earphone storage bin are connected in communication based on the wireless communication module, and at the same time, the earphone storage bin is connected in communication with a host device through the wired communication module. Among them, the wireless communication module of the earphone storage bin is a wireless Bluetooth module. In addition to providing a wireless Bluetooth function through the wireless Bluetooth module, the earphone storage bin also provides a basic charging function for the earphone unit. The host device can be a computer that is not equipped with a wireless Bluetooth module, including a desktop computer, a laptop computer, and a tablet computer, a car audio system without a built-in Bluetooth module, a game console, and a smart TV.

[0064] For details, please refer to Figure 6 , Figure 6 This is a flow chart of the first embodiment of the control method of the storage bin of the present application, wherein the control method of the storage bin includes steps S10 to S20:

[0065] Step S10: receiving the audio to be played sent by the host device based on the wired communication module.

[0066] It should be noted that after the earphone storage compartment establishes a wired connection with the host device, data transmission and communication are performed with the host device based on the wired communication module. The audio to be played refers to the common audio information output through the smart device, such as music, video audio, audio books, radio programs, conference audio, etc., to be played after the user connects the earphone storage compartment to the host device.

[0067] In this embodiment, after the headphone storage bin establishes a wired connection with the host device, if the host device is in an audio output state, the audio output device is automatically switched to the headphone unit, thereby sending the audio information to be played to the headphone storage bin, so that the headphone unit of the headphone storage bin can directly connect to the currently playing content.

[0068] Optionally, after the earphone storage compartment establishes a wired connection with the host device, if the host device is not in an audio output state, the host device can send the audio to be played to the earphone storage compartment after the user clicks a virtual or physical control to play the audio.

[0069] It should be noted that, during normal use, after the user connects the earphone storage bin to the host device, the earphone unit will be taken out at the same time, and after the earphone unit is taken out and is in the out-of-bin state, a Bluetooth connection will be established with the earphone storage bin immediately. That is, when the earphone storage bin receives the audio to be played based on the wired communication module, it means that the earphone storage bin is connected to the host device and a wireless Bluetooth connection is established with the earphone unit. Therefore, in this embodiment, based on the connection state between the earphone storage bin and the host device, the current working mode of the earphone storage bin is determined, wherein the working mode of the earphone storage bin includes a normal mode and a transfer mode. In the normal mode, the earphone storage bin provides basic wireless pairing and charging functions, and in the transfer mode, the earphone storage bin acts as a wireless Bluetooth device and establishes a wireless Bluetooth connection with the earphone unit. Further, the working mode of the earphone storage bin can be determined by the connection state between the host device and the earphone storage bin. When the host device and the earphone storage bin are in a connected state, the earphone storage bin enters the transfer mode, and when the earphone storage bin is disconnected from the host device, the earphone storage bin enters the normal mode. Therefore, when the earphone storage compartment receives the audio to be played sent by the host device based on the wired communication module, the earphone storage compartment is in the transit mode.

[0070] It is understandable that after the earphone storage compartment is connected to the host device based on the wired communication module, it enters the transit mode, that is, the transit mode is triggered. Therefore, when the transit mode is triggered and the earphone unit is in the storage state, it is necessary to connect to the Bluetooth process of the earphone unit and establish a Bluetooth connection with the earphone unit, so that when the earphone unit is in the storage state, a Bluetooth connection can be established with the earphone unit to avoid connecting to other Bluetooth devices after the earphone unit is out of the compartment. Optionally, if the normal mode is triggered and the earphone unit is in the out-of-compartment state, that is, the earphone storage compartment is disconnected from the host device, the earphone storage compartment will disconnect the Bluetooth connection with the earphone unit, so that the earphone unit can establish a Bluetooth connection with other Bluetooth devices.

[0071] Step S20, forwarding the audio to be played to the earphone unit based on the wireless communication module, so that the host device can establish communication with the earphone unit.

[0072] In this embodiment, after the earphone storage bin enters the transfer mode, if the earphone unit is in the out-of-bin state at this time, the earphone storage bin will establish a wireless Bluetooth connection with the earphone unit. Therefore, as an optional implementation, after the earphone storage bin is connected to the host device, it is also necessary to determine whether the earphone storage bin is wirelessly connected to the earphone unit. That is, after receiving the audio to be played and before forwarding the audio to be played to the earphone unit, it is necessary to determine the current state of the earphone unit so as to establish a Bluetooth connection with the earphone unit through the current state of the earphone unit. Among them, the current state of the earphone unit includes the out-of-bin state, the storage state and the Bluetooth connection state. The storage state refers to the earphone unit being placed in the earphone storage bin and being in a dormant or non-working state, at which time the earphone unit does not establish a wireless connection with other devices; the out-of-bin state refers to the state in which the earphone unit leaves the earphone storage bin and establishes a wireless Bluetooth connection with the earphone storage bin; the Bluetooth connection state refers to the state in which the earphone unit leaves the earphone storage bin and establishes a Bluetooth connection with other Bluetooth devices such as mobile phones. Therefore, when the earphone unit is in the out-of-bin state, the step of forwarding the audio to be played to the earphone unit based on the wireless communication module is performed.

[0073] Specifically, after the earphone storage compartment receives the audio to be played, it determines that the earphone unit is in the out-of-compartment state through the current state of the earphone unit, and then forwards the audio to be played to the earphone unit that currently establishes a Bluetooth connection with the earphone storage compartment, so that the audio to be played is played through the earphone unit, so that the host device without a built-in Bluetooth module can also receive the audio information of the host device output through the wireless earphone, thereby improving the use flexibility of smart devices without a built-in Bluetooth module. Among them, after the earphone unit receives the audio to be played, it will turn on its own speaker module and microphone module to output and play the audio and record the voice information.

[0074] Optionally, if the user connects the earphone storage compartment to the host device without taking out the earphone unit, that is, when the earphone storage compartment receives the audio to be played and the earphone unit is in the storage state, the earphone storage compartment can not only directly establish a Bluetooth connection with the earphone unit, but also output a voice prompt or screen prompt to remind the user to take out the earphone. Optionally, if the earphone unit is in the storage state, the audio to be played can also be forwarded to other wireless Bluetooth devices other than the earphone unit, that is, if the earphone unit is in the storage state, the audio to be played is forwarded to the connected audio based on the wireless communication module, so that the host device without a built-in Bluetooth module can play the audio through the Bluetooth output device.

[0075] Optionally, if the earphone unit is in a Bluetooth connection state, the earphone storage compartment also needs to control the earphone unit to disconnect the Bluetooth connection with the current device, then start the Bluetooth connection process with the earphone unit, and establish a Bluetooth connection with the earphone unit. It is understandable that when using the earphone storage compartment, if the earphone unit is currently connected to a smart device such as a mobile phone, at this time, in order to ensure that the audio of a desktop computer without a built-in Bluetooth module can be output through the earphone unit, the earphone storage compartment can actively control the earphone unit to disconnect from the mobile phone, and then establish a Bluetooth connection between the earphone storage compartment and the earphone unit through the Bluetooth connection process, ensuring that the earphone storage compartment can forward the audio to be played to the earphone unit.

[0076] Exemplarily, the earphone unit is a TWS earphone, the earphone storage compartment is an earphone charging box, and the host device is a computer. After forwarding the audio to be played to the earphone unit, the host device establishes a communication link with the earphone unit for transmission. Figure 7 As shown, during normal operation, the master earphone establishes a Bluetooth wireless connection with the earphone storage compartment, and the charging box establishes a wired connection with the computer via a USB cable. After the earphone storage compartment receives the audio signal (audio to be played) transmitted by the computer, it sends the computer audio signal to the master earphone. The master earphone synchronizes the computer audio signal to the slave earphone based on binaural message synchronization, so that the slave earphone can realize the Bluetooth monitoring function. At the same time, the master earphone collects voice information through the earphone microphone. If voice information is collected, it is fed back to the charging box. Finally, the charging box returns the signal collected by the earphone MIC (microphone) to the computer. Based on this, wireless communication between a computer and earphones without a built-in Bluetooth module is realized.

[0077] This embodiment provides a control method for a storage bin. After the earphone storage bin is connected to the host device and a Bluetooth connection is established with the earphone unit, when the audio to be played of the host device is received and the earphone unit is in the out-of-bin state, the audio to be played is forwarded to the earphone unit, so that the audio to be played is output through the earphone unit, so that a computer without a Bluetooth module can be used with a wireless Bluetooth headset, so that users who are accustomed to using wireless Bluetooth headsets can use wireless Bluetooth headsets for computer video conferencing. At the same time, users do not have to buy wired headsets specifically for their computers, saving the cost of wired headsets; at the same time, they do not have to worry about the small size and easy loss of Bluetooth adapters, which greatly improves the user experience.

[0078] Based on the first embodiment of the present application, in the second embodiment of the present application, the same or similar contents as those in the first embodiment can be referred to the above description, and will not be described in detail later. On this basis, in addition to connecting to the host device and directly entering the transfer mode of the Bluetooth connection, the earphone storage bin can also control the earphone storage bin to enter the transfer mode by switching the working mode after connecting to the host device, such as controlling the earphone storage bin to enter the transfer mode by pressing a button.

[0079] Therefore, in this embodiment, the earphone storage bin is provided with a working mode switching function, which can be triggered based on a mode switching button of the earphone storage bin, such as a physical button, or a virtual switching button on the display screen of the earphone storage bin after the earphone storage bin is connected to the host device. Taking the physical button as an example, after the earphone storage bin is connected to the host device, when the earphone storage bin detects that the mode switching button of the wireless Bluetooth mode is in the OFF state, the earphone storage bin turns off the Bluetooth function at this time, that is, the earphone storage bin is in normal mode, and the user can charge the earphone through the earphone storage bin. If it is in the ON state, the earphone storage bin turns on the Bluetooth function at this time, that is, the earphone storage bin enters the transit mode. It can be understood that the earphone storage bin has two working modes, normal mode and transit mode. In normal mode, the earphone storage bin only supports the two functions of charging the earphone and pairing the earphone with the smart Bluetooth device. In transit mode, a wireless Bluetooth connection can be established with the earphone unit.

[0080] It should be noted that the earphone storage compartment is a Bluetooth adapter between the earphone unit and the host device. If the earphone storage compartment is not connected to the host device, it is usually in standby or charging state and will not actively transmit or receive Bluetooth signals. Therefore, when the earphone unit is not connected to the host device, even if the mode switch button is pressed, the earphone storage compartment will not enter the transfer mode.

[0081] Exemplarily, the transfer mode is also called the wireless Bluetooth mode. The switching process of the earphone storage compartment from the normal mode to the wireless Bluetooth mode, or from the wireless Bluetooth mode to the normal mode can be as follows: Figure 8 Under normal circumstances, the earphone storage bin is in normal working mode. When the earphone storage bin is connected to the host device via a USB cable and the mode switch button is in the ON state, the working mode jumps from the normal mode to the wireless Bluetooth mode. Similarly, if the earphone storage bin is disconnected from the host device in the wireless Bluetooth mode, or the mode switch button is in the OFF state, the earphone storage bin returns to the normal working mode.

[0082] Based on this, please refer to Fig. 9 After step S10, the control method of the storage bin further includes steps S30 to S40:

[0083] Step S30: If the triggering action of the mode switching button is detected, the earphone storage compartment is controlled to enter the normal mode or the transfer mode.

[0084] It should be noted that the trigger action refers to the action instruction that the earphone storage bin responds to after the user adjusts the physical button of the earphone storage bin or presses the virtual button. The mode switching button refers to whether to turn on the transfer mode, and the button includes ON and OFF.

[0085] In this embodiment, if the triggering action of the mode switch button is characterized by turning on the Bluetooth function of the earphone storage compartment, that is, the mode switch button is in the ON state at this time, it is necessary to control the earphone storage compartment to enter the transfer mode. If the triggering action is characterized by turning off the Bluetooth function of the earphone storage compartment, that is, the mode switch button is in the OFF state at this time, the earphone storage compartment is controlled to enter the normal mode.

[0086] Step S40: If the transfer mode is triggered, the Bluetooth connection process with the headset unit is started.

[0087] In this embodiment, after receiving the audio to be played, if the earphone storage compartment triggers the transfer mode, that is, after the earphone unit turns on the Bluetooth function, it is necessary to start the Bluetooth connection process with the earphone unit to establish a Bluetooth connection with the earphone unit, so that after the earphone unit and the earphone storage compartment establish a wireless Bluetooth connection, the earphone storage compartment directly forwards the audio to be played to the earphone unit. Among them, after the transfer mode is triggered, that is, the earphone storage compartment enters the transfer mode, the Bluetooth connection process can be directly started and a Bluetooth connection can be established with the earphone unit, that is, when the earphone unit is in the storage state, a Bluetooth connection can be directly established with it to avoid establishing a Bluetooth connection with other devices such as mobile phones and tablets after the earphone unit is out of the compartment, and when the earphone unit is in the out-of-compartment state, a Bluetooth connection is established with the earphone unit based on the Bluetooth connection process.

[0088] Optionally, before starting the Bluetooth connection process with the earphone unit, it is also necessary to determine whether the earphone unit is connected to other Bluetooth devices. Therefore, if the earphone unit is in a Bluetooth connection state with the Bluetooth device, the earphone unit is first controlled to disconnect from the Bluetooth device, and when the earphone unit is disconnected from the Bluetooth device, the step of starting the Bluetooth connection process with the earphone unit is executed.

[0089] Through the transfer mode triggered by the headphone storage bin, the Bluetooth connection process with the headphone unit is started and a Bluetooth connection is established with the headphone unit, allowing the user to adjust the working mode of the headphone storage bin based on actual needs, thereby improving the flexibility of using the headphone unit to output audio to be played.

[0090] Optionally, if the normal mode is triggered and the earphone unit is in the out-of-warehouse state, the earphone storage compartment and the earphone unit disconnect the Bluetooth connection.

[0091] The present embodiment provides a control method for a storage bin, which controls the earphone storage bin to enter a normal mode or a transfer mode according to the triggering action of a mode switching button detected after acquiring the audio to be played. When entering the transfer mode, the Bluetooth connection process with the earphone unit is directly started so that the earphone storage bin can quickly establish a Bluetooth connection with the earphone unit. At the same time, the connection between the earphone unit and other Bluetooth devices can be disconnected, thereby improving the flexibility of outputting the audio to be played based on the earphone unit. After the audio to be played is forwarded to the earphone unit, users who are accustomed to using wireless Bluetooth headsets can use wireless Bluetooth headsets for computer video conferencing.

[0092] Based on the first embodiment of the present application, in the third embodiment of the present application, the same or similar contents as those in the second embodiment above can be referred to the above description, and will not be described in detail later. On this basis, before step S10, it is also necessary to obtain the access information of the wired communication module. If the wired communication module is connected to the host device for communication, that is, after the access status change information of the wired communication module is detected, such as the information of the USB access module changes from 0 to 1 (0 indicates that the host device is not connected, and 1 indicates that the host device is connected), the processing action of step S10 is executed, otherwise the current operation mode of the earphone storage compartment needs to be maintained.

[0093] Based on this, the earphone storage compartment can intelligently adjust its working mode according to the access status of the wired communication module to adapt to usage needs under different connection states, thereby providing a more intelligent and convenient user experience.

[0094] Based on any of the above embodiments, in the fourth embodiment of the present application, the same or similar contents as those in the above embodiments can be referred to the above introduction, and will not be described in detail later. Figure 7 In addition to forwarding the audio to be played to the headphone unit, the headphone storage bin can also forward the input audio collected by the headphone unit to the host device, so that the host device and the headphone unit can complete data communication. Therefore, the control method of the storage bin also includes: receiving the input audio collected by the headphone unit, and forwarding the input audio to the host device based on the wired communication module, so that the host device and the headphone unit can complete data communication. Therefore, a computer without a Bluetooth module can be used with a wireless Bluetooth headset, and audio output and voice information input are performed through the wireless Bluetooth headset, thereby improving the flexibility of the headphone unit when establishing a communication connection between the headphone unit and the host device through the headphone storage bin.

[0095] Optionally, if the audio to be played includes at least two target audios corresponding to different audio sources, the audio to be played is forwarded to the earphone unit based on the wireless communication module, so that the host device can establish communication with the earphone unit. At the same time, after the audio to be played is output based on the earphone unit, if an audio separation instruction is received, the host device's speakers can be controlled to play the first target audio, and the earphone unit can be controlled to play the second target audio. Among them, the first target audio and the second target audio can be pre-set audio, such as call audio, recording audio and other more important audio content is usually the second target audio, and music, movie audio and other audio are the first target audio. Optionally, audio with higher sound quality requirements can also be set as the second target audio, that is, the user wants to play audio through a Bluetooth headset with better sound quality, or set audio with higher sound quality requirements as the first target audio, so as to play audio through an external speaker of the host device with better sound quality.

[0096] Specifically, when users need to handle multiple tasks on a desktop computer at the same time and each task requires different audio output, separating the sound sources can improve efficiency and concentration. For example, a user can listen to a meeting or private call through the headphone unit while letting the desktop computer play background music or prompts without interfering with each other. At the same time, in some cases, users may have different sound quality requirements for different types of audio content. For example, for entertainment content such as music or movies, users may want to use high-quality Bluetooth headphones to get a better sound quality experience; for simple audio content such as system prompts or notification sounds, they can be played through the built-in speakers of the desktop computer.

[0097] In this embodiment, audio from different sources is output through the earphone unit and the speakers of the host device respectively, thereby improving the audio playback effect.

[0098] For example, in order to help understand the control method of the storage bin obtained by combining all the above embodiments, a flowchart of the earphone storage bin when operating in wireless Bluetooth mode is shown. Fig.10, after the earphone storage bin is initialized, it is in an idle working state, that is, in a normal state. At this time, the earphone storage bin provides the most basic charging and earphone and Bluetooth device pairing functions. Then, if the earphone storage bin detects a USB connection, the USB connection flag is set to 1, indicating that the earphone storage bin is connected to the host device at this time. If no USB connection is detected, the host device maintains the current working state. Then the earphone storage bin obtains the mode switching button state so as to determine whether the Bluetooth function needs to be turned on based on the button state. If the state is ON, the Bluetooth function is turned on and a Bluetooth connection instruction is initiated to establish a Bluetooth connection with the earphone, that is, the Bluetooth connection process with the earphone unit is started. If the state is not ON, the current state is maintained. Furthermore, if the connection is not successful, that is, the earphone storage bin is not in the out-of-bin state, the Bluetooth connection is continuously initiated. After the earphone storage bin is successfully connected to the earphone, the earphone storage bin enumerates itself as an earphone device to perform call uplink data transmission, that is, the transmission of voice information received by the earphone unit, and downlink data transmission, that is, the transmission of audio to be played, thereby realizing the communication connection between the wireless earphone and the host device that is not equipped with a Bluetooth module.

[0099] It should be noted that after connecting to the host device, the storage compartment will turn on the Bluetooth function, connect to the headset via Bluetooth, and start the USB enumeration function to enumerate itself as a headset device, thereby enabling call uplink data transmission and downlink data transmission.

[0100] The present application provides an earphone storage bin, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the control method of the storage bin in the first embodiment described above.

[0101] Reference below Fig.11 , which shows a structural schematic diagram of an earphone storage bin suitable for implementing an embodiment of the present application. Fig.11 The earphone storage compartment shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0102] like Fig.11As shown, the earphone storage bin may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. Various programs and data required for the operation of the earphone storage bin are also stored in RAM1004. The processing device 1001, ROM1002, and RAM1004 are connected to each other via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; playback devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 1003 including, for example, a tape, a hard disk, etc.; and communication devices 1009. The communication device 1009 can allow the headphone storage bin to communicate wirelessly or wired with other devices to exchange data. Although the figure shows a headphone storage bin with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems may be implemented or have alternatively.

[0103] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0104] The earphone storage bin provided by the present application adopts the control method of the storage bin in the above embodiment, which can solve the technical problem of low flexibility and convenience in the use of smart devices. Compared with the prior art, the beneficial effects of the earphone storage bin provided by the present application are the same as the beneficial effects of the control method of the storage bin provided by the above embodiment, and the other technical features of the earphone storage bin are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0105] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0106] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0107] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the control method of the storage bin in the above-mentioned embodiment.

[0108] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, systems or devices, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, system or device. The program code contained on the computer-readable storage medium may be transmitted using any appropriate medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination of the above.

[0109] The computer-readable storage medium may be contained in the earphone storage compartment; or it may exist independently without being assembled into the earphone storage compartment.

[0110] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the earphone storage bin, the earphone storage bin:

[0111] Receiving the audio to be played sent by the host device based on the wired communication module;

[0112] The audio to be played is forwarded to the earphone unit based on the wireless communication module, so that the host device can establish communication with the earphone unit.

[0113] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0114] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0115] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.

[0116] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned storage bin control method, and can solve the technical problem of low flexibility and convenience in the use of smart devices. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the storage bin control method provided by the above-mentioned embodiment, and will not be elaborated here.

[0117] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. All equivalent structural changes made using the contents of the present application specification and drawings under the technical concept of the present application, or direct / indirect applications in other related technical fields are included in the patent protection scope of the present application.

Claims

1. A method for controlling a storage bin, characterized in that: Applied to an earphone storage bin, the earphone storage bin is provided with a wireless communication module and a wired communication module. When the earphone unit is in an out-of-bin state, the earphone unit is connected to the earphone storage bin through communication based on the wireless communication module, and the wired communication module is connected to the host device through communication. The control method of the storage bin includes: Receiving the audio to be played sent by the host device based on the wired communication module; The audio to be played is forwarded to the earphone unit based on the wireless communication module, so that the host device can establish communication with the earphone unit.

2. The storage bin control method according to claim 1, characterized in that: After the step of receiving the audio to be played sent by the host device based on the wired communication module, the method further includes: If a triggering action of the mode switching button is detected, the earphone storage compartment is controlled to enter a normal mode or a transfer mode; If the transfer mode is triggered, the Bluetooth connection process with the headset unit is started.

3. The control method of the storage bin according to claim 2, characterized in that: Before the step of starting the Bluetooth connection process with the headset unit, the method further includes: If the earphone unit is in a Bluetooth connection state with the Bluetooth device, controlling the earphone unit to disconnect from the Bluetooth device; When the headset unit is disconnected from the Bluetooth device, the step of starting the Bluetooth connection process with the headset unit is performed.

4. The control method of the storage bin according to claim 1, characterized in that: Before the step of forwarding the audio to be played to the earphone unit based on the wireless communication module so that the host device can establish communication with the earphone unit, the step further includes: Determining a current state of the headset unit; If the earphone unit is in the storage state, forwarding the audio to be played to the connected audio system based on the wireless communication module; If the earphone unit is in an out-of-box state, the step of forwarding the audio to be played to the earphone unit based on the wireless communication module is performed.

5. The storage bin control method according to claim 4, characterized in that: After the step of determining the current state of the earphone unit, the method further includes: If the earphone unit is in a Bluetooth connection state, controlling the earphone unit to disconnect from the current device; Start a Bluetooth connection process with the headset unit and establish a Bluetooth connection with the headset unit.

6. The storage bin control method according to claim 1, characterized in that: After the step of receiving the audio to be played sent by the host device based on the wired communication module, the method further includes: If the transfer mode is triggered and the earphone unit is in the storage state, start the Bluetooth connection process with the earphone unit and establish a Bluetooth connection with the earphone unit; If the normal mode is triggered and the earphone unit is in the out-of-box state, the Bluetooth connection with the earphone unit is disconnected.

7. The control method of a storage bin according to any one of claims 1 to 6, characterized in that: The control method of the storage bin further includes: Receiving input audio collected by the headphone unit; The input audio is forwarded to the host device based on the wired communication module, so that the host device and the earphone unit complete data communication.

8. The storage bin control method according to claim 1, characterized in that: The control method of the storage bin further includes: Acquiring access information of the wired communication module; If the wired communication module is in communication connection with the host device, the step of receiving the audio to be played sent by the host device based on the wired communication module is performed.

9. An earphone storage compartment, characterized in that: The earphone storage bin includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program is configured to implement the steps of the storage bin control method as described in any one of claims 1 to 8.

10. A storage medium, characterized in that: The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, the steps of the control method of the storage bin as described in any one of claims 1 to 8 are implemented.