Device and method for online upgrading of earphone box
The charging and data communication synchronization of the headphone box is achieved through carrier signals, solving the complexity of charging and data upgrade caused by USB interface restrictions in the prior art, and improving real-time and integration.
Patent Information
- Application Number
- CN201910339355.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-25
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2039-04-25
AI Technical Summary
Under the limitation of the number of interface pins, the prior art cannot charge the headset box and upgrade data through the USB interface at the same time, resulting in complex operation and poor real-time performance.
The charging and data communication synchronization of the headphone box is achieved through carrier signals, and the positive and negative power cables of the USB interface are used to eliminate the data cables for signal reception and transmission, which improves product integration and real-time performance.
It simplifies the operation of data upgrades and program upgrades, improves the real-time nature of data upgrades and program upgrades, reduces product volume, and saves wiring space.
Smart Images

Figure CN111857760B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of consumer electronic equipment, and in particular relates to a device and method for online upgrading of an earphone box. Background Art
[0002] At present, the headphones on the market can be roughly divided into two types: wired headphones and wireless headphones. Wired headphones require the left and right headphones to form left and right channels through a wired connection to produce a stereo effect. However, wired headphones are inconvenient to carry and use, and are prone to problems with headphone wire entanglement and safety hazards of strangling the neck. Wireless Bluetooth headphones do not require wired connections. The left and right headphones form a stereo system through Bluetooth, which improves listening to songs, making calls, and wearing. The host can work alone, and hands-free calls are at your fingertips. Therefore, they have become the object of market pursuit. Among wireless Bluetooth headphones, the most popular one is TWS (True Wireless Stereo) headphones.
[0003] The TWS earphone box is a charging device used with TWS earphones. It is mainly responsible for providing power to the earphones, performing corresponding data exchange and storage. Therefore, the functional requirements of the earphone box need to be adjusted according to the application of the earphones. However, once the earphone box is assembled into a complete machine, it is not realistic to disassemble and upgrade it. The most direct and effective way is to upgrade through the USB (Universal Serial Bus) charging port.
[0004] Since TWS earphones are composed of a master earphone and a slave earphone, traditional technology uses wireless communication to connect the terminal and the earphone, and then the terminal upgrades the master earphone and the slave earphone separately according to the first upgrade file and the second upgrade file through wireless communication. This method involves heavy reliance on wireless communication, is easily affected by the environment, has poor real-time performance, and may also cause mutual interference between the master earphone and the slave earphone during the upgrade. In addition, the structure and operation are complex and the size is large.
[0005] On the other hand, since USB is a commonly used PC (personal computer) interface, there are many types, and it usually has 4 pins, two power pins, and two data transmission pins, corresponding to 2 power lines and 2 data transmission lines. Usually, data communication uses serial ports and SPI (Serial Peripheral Interface) buses, etc. These methods require the setting of power interfaces to power the device, and also require the reservation of communication interfaces. However, for some design requirements, it is hoped that the interface leads can be reduced as much as possible to achieve the highest integration and small product size.
[0006] Therefore, the prior art has the problem that the earphone box can only be charged through the USB interface due to the limitation of the number of interface pins, and the design with strict volume requirements makes it impossible to configure the chip of USB protocol, so it is impossible to complete synchronous data communication, and the operation of data upgrade and program upgrade is complicated and the real-time performance is poor. Summary of the invention
[0007] In view of this, an embodiment of the present invention provides a device for online upgrading of an earphone box, aiming to solve the problems existing in traditional technical solutions that the earphone box can only be charged through a USB interface, the design with strict volume requirements leads to the inability to configure a USB protocol chip, and thus the inability to complete synchronous data communication, as well as the complex operation and poor real-time performance during data and program upgrades.
[0008] A first aspect of an embodiment of the present invention provides a device for online upgrading of an earphone box, the device for online upgrading of an earphone box comprising:
[0009] A carrier signal is sent to enable the earphone box to obtain upgrade data and charge according to the carrier signal, and a terminal confirms that the upgrade data is successfully sent according to the negative power supply current of the earphone box.
[0010] The earphone box is connected to the terminal, receives the carrier signal, obtains the upgrade data and charges according to the carrier signal, and outputs a negative power supply current to enable the terminal to confirm that the upgrade data has been sent successfully. The carrier signal carries the upgrade data.
[0011] In one embodiment, the terminal comprises:
[0012] A first switch module is used for connecting or disconnecting an external power supply according to a data signal to generate a carrier signal, wherein the carrier signal and the data signal carry the upgrade data.
[0013] A current sensing module for sensing a negative power supply current to generate a current sensing signal.
[0014] A second control module connected to the current detection module and the first switch module, and configured to confirm that the upgrade data is successfully sent according to the current detection signal.
[0015] In one embodiment, the earphone box comprises:
[0016] A voltage sampling module connected to the first switch module and configured to detect the carrier signal to generate a voltage sampling signal.
[0017] A first control module is connected to the detection module and is used for decoding the voltage sampling signal to generate and store the upgrade data, and generating a response signal.
[0018] A second switch module connected to the first control module and configured to connect or disconnect the negative power supply current according to the response signal.
[0019] A charging management module connected to the first switch module, the detection module and the first control module, and configured to generate a power supply according to the carrier signal to supply power to the first control module.
[0020] In one embodiment, the first control module includes a first microprocessor.
[0021] The first data input and output terminal of the first microprocessor is the voltage sampling signal input terminal of the first control module.
[0022] The power supply terminal of the first microprocessor is the power supply input terminal of the first control module.
[0023] The ground terminal of the first microprocessor and the power ground together constitute the negative power current output terminal of the first control module.
[0024] The second data input and output terminal of the first microprocessor is a response signal output terminal of the first control module.
[0025] In one embodiment, the detection module includes a first resistor and a second resistor.
[0026] The first end of the first resistor is the carrier signal input end of the detection module.
[0027] The second end of the first resistor is a voltage sampling signal output end of the detection module.
[0028] The second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is connected to a power ground.
[0029] In one embodiment, the first switch module includes a first field effect transistor.
[0030] The gate of the first field effect transistor is the data signal input terminal of the first switch module.
[0031] The drain of the first field effect transistor is the external power input terminal of the first switch module.
[0032] The source of the first field effect transistor is the carrier signal output terminal of the first switch module.
[0033] A second aspect of an embodiment of the present invention provides a method for online upgrading of an earphone box based on the above-mentioned device for online upgrading of an earphone box, the method comprising:
[0034] A voltage sampling signal is generated by the detection module detecting a carrier signal, wherein the carrier signal carries the upgrade data.
[0035] The voltage sampling signal is decoded to obtain and store the upgraded data, and a response signal is generated to enable the second switch module to connect or disconnect the negative power supply current according to the response signal.
[0036] In one embodiment, decoding the voltage sampling signal to obtain and store the upgrade data, and generating a response signal so that the second switch module connects or disconnects the negative power supply current according to the response signal includes:
[0037] It is determined whether the frequency of the voltage sampling signal is within a preset frequency range and whether the amplitude of the voltage sampling signal is within a preset amplitude range.
[0038] If it is determined that the frequency of the voltage sampling signal is within a preset frequency range and the amplitude of the voltage sampling signal is within a preset amplitude range, the voltage sampling signal is decoded to generate and store the upgrade data, and the response signal is generated according to the upgrade data.
[0039] A third aspect of the embodiments of the present invention provides a method for online upgrading of an earphone box based on the above-mentioned device for online upgrading of an earphone box, the method comprising:
[0040] The data signal is sent so that the first switch module connects or disconnects the external power supply according to the data signal to generate a carrier signal, wherein the carrier signal and the data signal carry the upgrade data.
[0041] A current detection signal generated by a current detection module detecting a negative power supply current is received.
[0042] The success of sending the upgrade data is confirmed according to the current detection signal.
[0043] In one embodiment, confirming that the upgrade data is successfully sent according to the current detection signal includes:
[0044] It is determined whether the current detection signal is greater than a preset value.
[0045] If it is determined that the current detection signal is greater than the preset value, it is confirmed that the upgrade data is sent successfully.
[0046] If it is determined that the current detection signal is not greater than the preset value, the data signal is sent again and the number of times of sending is counted.
[0047] Determine whether the sending number is greater than a preset number.
[0048] If it is determined that the number of transmissions is greater than the preset number of times, the communication failure is confirmed and the process steps are terminated.
[0049] If it is determined that the number of transmissions is not greater than the preset number, the step of sending the data signal again and counting the number of transmissions is performed.
[0050] In the embodiment of the present invention, a terminal generates a carrier signal according to a data signal and an external power supply and sends the signal to an earphone box, and confirms whether the upgrade data is sent successfully according to the negative power supply current fed back by the earphone box; the earphone box receives the carrier signal and decodes it to obtain the upgrade data and charge, and outputs the negative power supply current according to the upgrade data, wherein the data signal and the carrier signal carry the upgrade data; charging and communication synchronization are achieved through the carrier signal, a signal receiving data line and a signal sending data line are omitted, wiring space is saved, product integration is improved, the product volume is reduced, synchronous data communication is completed while charging, the operations of data upgrade and program upgrade are simplified, and the real-time performance of data upgrade and program upgrade is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0052] Figure 1 A schematic structural diagram of a device for online upgrading of an earphone box provided by an embodiment of the present invention;
[0053] Figure 2 Another structural schematic diagram of a device for online upgrading of an earphone box provided by an embodiment of the present invention;
[0054] Figure 3 A schematic diagram of a circuit structure of a device for online upgrading of an earphone box provided by an embodiment of the present invention;
[0055] Figure 4 A schematic flow chart of a method for online upgrading of an earphone box provided by an embodiment of the present invention;
[0056] Figure 5 Another schematic flow chart of a method for online upgrading of an earphone box provided by an embodiment of the present invention;
[0057] Figure 6 Another schematic flow chart of a method for online upgrading of an earphone box provided by an embodiment of the present invention;
[0058] Figure 7Another flowchart of a method for online upgrading of an earphone box provided by an embodiment of the present invention is provided. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0060] See also Figure 1 , Figure 1 A schematic diagram of the structure of a device for online upgrading of an earphone box provided by an embodiment of the present invention. For the sake of convenience, only the parts related to the present embodiment are shown, which are described in detail as follows:
[0061] A device for upgrading an earphone box online includes a terminal 10 and an earphone box 20.
[0062] The terminal 10 sends a carrier signal so that the earphone box 20 acquires the upgrade data and charges according to the carrier signal, and confirms that the upgrade data is successfully sent according to the negative power supply current of the earphone box 20.
[0063] The earphone box 20 is connected to the terminal 10, receives the carrier signal, obtains the upgrade data and charges according to the carrier signal, and outputs a negative power supply current to allow the terminal 10 to confirm that the upgrade data is successfully sent. The carrier signal carries the upgrade data.
[0064] In a specific implementation, the terminal 10 includes a mobile terminal (such as a mobile phone, a PAD) and a PC terminal, that is, the terminal is any device that can communicate with the earphone box 20. The terminal 10 detects whether the earphone box 20 is connected. If it is detected that the earphone box 20 is connected through the USB interface, the terminal 10 starts to send a data signal and waits for the earphone box 20 to respond. The earphone box 20 generates a response signal according to the upgrade data and outputs a negative power supply current according to the response signal. The terminal 10 confirms that the upgrade data has been sent successfully according to the negative power supply current.
[0065] In the embodiment of the present invention, a terminal generates a carrier signal according to a data signal and an external power supply and sends the signal to an earphone box, and confirms whether the upgrade data is sent successfully according to the negative power supply current fed back by the earphone box; the earphone box receives the carrier signal and decodes it to obtain the upgrade data and charge, and outputs the negative power supply current according to the upgrade data, wherein the data signal and the carrier signal carry the upgrade data, and the charging and communication synchronization is realized through the carrier signal, eliminating the signal receiving data line and the signal sending data line, saving wiring space, improving product integration, reducing the product size, completing synchronous data communication while charging, simplifying the operations of data upgrade and program upgrade, and improving real-time performance.
[0066] See also Figure 2In one embodiment, the terminal 10 includes a first switch module 101 , a second control module 102 and a current detection module 103 .
[0067] The first switch module 101 is used to connect or disconnect the external power supply according to the data signal to generate a carrier signal, wherein the carrier signal and the data signal carry the upgrade data.
[0068] The current detection module 103 is used to detect the negative power supply current to generate a current detection signal.
[0069] The second control module 102 is connected to the current detection module 103 and the first switch module 101, and is used to confirm that the upgrade data is successfully sent according to the current detection signal.
[0070] In a specific implementation, the first switch module 101 is connected to the positive power line VBUS of the USB interface. When the second control module 102 does not send a data signal, the first switch module 101 is connected to the external power supply to charge the earphone box 20. When the second control module 102 sends a data signal, the first switch module 101 is connected or disconnected from the external power supply according to the data signal to generate a carrier signal, and transmits the carrier signal to the earphone box 20 through the positive power line VBUS to charge the earphone box 20 and transmit upgrade data, wherein the data signal and the carrier signal carry the upgrade data.
[0071] The current detection module 103 detects the negative power supply current outputted from the negative power supply line VSS by the earphone box 20, generates a current detection signal and transmits it to the second control module 102. The second control module 102 determines that the upgrade data is successfully sent according to the current detection signal being greater than the preset current value, and can continue to send the data signal to the first switch module 101 as needed, thereby sending the upgrade data to the earphone box 20.
[0072] This embodiment uses the first switch module, the second control module and the current detection module to detect the access of the USB interface, send the upgrade data to the earphone box, and confirm whether the earphone box has successfully received the upgrade data. The positive and negative power lines of the USB interface are used to realize charging and communication synchronization through carrier signals, eliminating the signal receiving data line and the signal sending data line, saving wiring space, improving product integration, reducing the size of the product, completing synchronous data communication while charging, simplifying the operations of data upgrade and program upgrade, and improving the real-time performance of data upgrade and program upgrade, solving the problem that the earphone box cannot be charged and upgraded at the same time due to the limited number of interface pins in the design with strict volume requirements.
[0073] See also Figure 2 In one embodiment, the earphone box 20 includes a voltage sampling module 201, a first control module 202, a second switch module 203 and a charging management module 204.
[0074] The voltage sampling module 201 is connected to the first switch module 101 and is used to detect the carrier signal to generate a voltage sampling signal.
[0075] The first control module 202 is connected to the voltage sampling module 201 and is used for decoding the voltage sampling signal to generate and store the upgrade data, and generating a response signal.
[0076] The second switch module 203 is connected to the first control module 202 and is used for connecting or disconnecting the negative power supply current according to the response signal.
[0077] The charging management module 204 is connected to the first switch module 101 , the voltage sampling module 201 and the first control module 202 , and is used to generate a power supply according to the carrier signal to supply power to the first control module 202 .
[0078] In the specific implementation, the voltage sampling module 201 is connected to the positive power line VBUS of the USB interface, and is used to detect the carrier signal transmitted from the positive power line VBUS and generate a voltage sampling signal. The first control module 202 receives the voltage sampling signal and decodes it to generate and store the upgrade data. The earphone box 20 communicates with the terminal 10 in an asynchronous mode, that is, after receiving and decoding all the upgrade data, the first control module 202 of the earphone box 20 generates a response signal according to the upgrade data, and the second switch module 203 connects or shuts off the negative power current according to the response signal. The negative power current is transmitted to the terminal 10 through the negative power line VSS, and the terminal 10 confirms whether the earphone box 20 successfully receives the data according to the negative power current. Similarly, the terminal 10 also needs to receive the feedback of the negative power current before continuing the next communication. If the terminal 10 does not receive the negative power current fed back from the earphone box 20 for a long time, the terminal 10 will try to send a data signal to connect the earphone box 20 again. If the connection fails multiple times, it is judged as a communication failure, the error mechanism is started, and it is displayed on the terminal 10.
[0079] The charging management module 204 is connected to the positive power line VBUS of the USB interface. The carrier signal includes an external power supply. The charging management module 204 charges the battery of the earphone box 20 through the external power supply and generates a power supply to power the various functional modules of the earphone box 20 (such as the first control module 202). The carrier signal is used to achieve synchronous data communication while charging, eliminating the signal receiving data line and the signal sending data line, saving wiring space, improving product integration, and reducing the size of the product.
[0080] In this embodiment, the voltage sampling module detects the carrier signal in real time to generate a voltage sampling signal. The first control module decodes the voltage sampling signal to generate upgrade data and stores and generates a response signal. The second switch module connects or cuts off the negative power supply current according to the response signal and feeds back the response signal after the earphone box receives the upgrade data to the terminal, thereby utilizing the positive and negative power lines of the USB interface to achieve charging and communication synchronization through the carrier signal, eliminating the signal receiving data line and the signal sending data line, saving wiring space, improving product integration, reducing the product size, simplifying the operations of data upgrade and program upgrade, and improving the real-time performance of data upgrade and program upgrade.
[0081] See also Figure 3 In one embodiment, the first control module 202 includes a first microprocessor U1.
[0082] The first data input-output terminal PA1 of the first microprocessor U1 is the voltage sampling signal input terminal of the first control module 202 .
[0083] The power supply terminal VDD of the first microprocessor U1 is the power supply input terminal of the first control module 202 .
[0084] The ground terminal GND of the first microprocessor U1 and the power ground GND together constitute the negative power current output terminal of the first control module 202 .
[0085] The second data input-output terminal PA2 of the first microprocessor U1 is a response signal output terminal of the first control module 202 .
[0086] In specific implementation, a microprocessor is a central processing unit composed of one or a few large-scale integrated circuits, which can perform the functions of control components and arithmetic logic components, complete operations such as fetching instructions, executing instructions, and exchanging information with external memory and logic components, and meet application requirements such as calculation, analysis and judgment, control and regulation.
[0087] See also Figure 3 In one embodiment, the voltage sampling module 201 includes a first resistor R1 and a second resistor R2.
[0088] The first end of the first resistor R1 is a carrier signal input end of the voltage sampling module 201 .
[0089] The second end of the first resistor R1 is a voltage sampling signal output end of the voltage sampling module 201 .
[0090] The second end of the first resistor R1 is connected to the first end of the second resistor R2 , and the second end of the second resistor R2 is connected to the power ground GND.
[0091] In a specific implementation, the voltage sampling module 201 may also be a voltage sampling chip.
[0092] The carrier signal is detected and sampled through a voltage-dividing resistor and a voltage sampling signal is generated and transmitted to the first control module 202. The voltage detection and sampling are performed through common and easily available components. The detection and sampling are performed in real time, the circuit structure is simple, and the cost is saved.
[0093] See also Figure 3 In one embodiment, the first switch module 101 includes a first field effect transistor Q1.
[0094] The gate of the first field effect transistor Q1 is the data signal input terminal of the first switch module 101 .
[0095] The drain of the first field effect transistor Q1 is the external power input terminal of the first switch module 101 .
[0096] The source of the first field effect transistor Q1 is the carrier signal output terminal of the first switch module 101 .
[0097] In a specific implementation, the first field effect transistor Q1 is a P-channel enhancement type field effect transistor, and by utilizing its characteristic that a low level is a valid enable signal, the first switch module 101 can be turned on in normal state, and the electrical connection between the earphone box 20 and the terminal 10 can be realized through the USB interface. And by utilizing its characteristic of being disconnected at a high level and turned on at a low level, a data signal is applied to the gate of the first field effect transistor Q1 to control the connection or disconnection of the external power supply, thereby generating a carrier signal, which is transmitted to the earphone box 20 through the positive power line VBUS.
[0098] See also Figure 3In a specific implementation, the current detection module 103 includes a third resistor R3. The second switch module 203 includes a second field effect transistor Q2, and the optional second field effect transistor Q2 is an N-channel enhancement type field effect transistor. The power supply terminal VDD of the microprocessor U1 is connected to the battery management module 204 through the fourth resistor R4, and the fourth resistor R4 plays a role of current limiting protection. The gate of the second field effect transistor Q2 is connected to the second data input and output terminal PA2 of the microprocessor U1, the source of the second field effect transistor Q2 is connected to the ground terminal GND of the microprocessor U1, and the drain of the second field effect transistor Q2 is connected to the negative power line VSS. The first end of the third resistor R3 is connected to the negative power line VSS, the second end of the third resistor R3 is connected to the power ground GND, and the first end of the third resistor R3 is the current detection signal output end of the current detection module 103. The second field effect transistor Q2 connects or shuts off the negative power current according to the response signal, and the third resistor R3 generates a current detection signal according to the negative power current and transmits it to the second control module 102. The second control module 102 determines whether the earphone box 20 feeds back a valid response signal according to the current detection signal, and thus sends a data signal to achieve data communication with the earphone box 20 .
[0099] See also Figure 4 A method for online upgrading of an earphone box based on the above-mentioned device for online upgrading of an earphone box, the method comprising:
[0100] Step S101: obtaining a voltage sampling signal generated by a detection module detecting a carrier signal, wherein the carrier signal carries upgrade data.
[0101] Step S102: decoding the voltage sampling signal to obtain and store the upgrade data, and generating a response signal so that the second switch module connects or disconnects the negative power supply current according to the response signal.
[0102] See also Figure 5 In one embodiment, step S102: decoding the voltage sampling signal to obtain and store the upgrade data, and generating a response signal so that the second switch module connects or disconnects the negative power supply current according to the response signal includes:
[0103] Step S1021: determining whether the frequency of the voltage sampling signal is within a preset frequency range and whether the amplitude of the voltage sampling signal is within a preset amplitude range.
[0104] Step S1022: If it is determined that the frequency of the voltage sampling signal is within the preset frequency range and the amplitude of the voltage sampling signal is within the preset amplitude range, the voltage sampling signal is decoded to generate and store upgrade data, and a response signal is generated according to the upgrade data.
[0105] In a specific implementation, the voltage sampling signal is generated by the voltage-dividing resistor (e.g., the first resistor R1 and the second resistor R2) performing voltage-dividing sampling on the carrier signal. The voltage sampling signal and the carrier signal line are linearly related. Therefore, judging whether the frequency of the voltage sampling signal is within the preset frequency range and whether the amplitude of the voltage sampling signal is within the preset amplitude range is to indirectly judge whether the frequency of the voltage sampling signal is within the preset frequency range and whether the amplitude of the voltage sampling signal is within the preset amplitude range. Specifically, if it is judged that the frequency of the voltage sampling signal is within the preset frequency range and the amplitude of the voltage sampling signal is within the preset amplitude range, the voltage sampling signal is decoded to generate and store the upgrade data, and a response signal is generated according to the complete and valid upgrade data.
[0106] The voltage amplitude change of the voltage sampling signal can be judged to determine whether the carrier signal meets the customized communication protocol. If it does, data exchange and data upgrade are performed. The voltage sampling signal is decoded to generate upgrade data, the length of the upgrade data is determined, and the effective carrier signal is confirmed based on the start bit and end bit of the upgrade data.
[0107] See also Figure 6 A method for online upgrading of an earphone box based on the above-mentioned device for online upgrading of an earphone box, the method comprising:
[0108] Step S201: Send a data signal so that the first switch module connects or disconnects the external power supply according to the data signal to generate a carrier signal, wherein the carrier signal and the data signal carry the upgrade data.
[0109] Step S202: receiving a current detection signal generated by a current detection module when detecting a negative power supply current.
[0110] Step S203: confirming that the upgrade data is sent successfully according to the current detection signal.
[0111] See also Figure 7 In one embodiment, step S203: confirming that the upgrade data is successfully sent according to the current detection signal includes:
[0112] Step S2031: determine whether the current detection signal is greater than a preset value.
[0113] Step S2032: If it is determined that the current detection signal is greater than the preset value, it is confirmed that the upgrade data is sent successfully.
[0114] Step S2033: If it is determined that the current detection signal is not greater than the preset value, the data signal is sent again and the number of times of sending is counted.
[0115] Step S2034: Determine whether the number of transmissions is greater than a preset number.
[0116] Step S2035: If it is determined that the number of transmissions is greater than the preset number, the communication is confirmed to have failed and the process steps are terminated.
[0117] Step S2036: If it is determined that the number of transmissions is not greater than the preset number, the step of sending the data signal again and counting the number of transmissions is executed.
[0118] In a specific implementation, the preset value is a preset current value, and the optional preset current value is one tenth of the normal charging current value to meet the requirements for current detection accuracy. The terminal 10 determines whether the upgrade data is successfully sent through the current detection signal. Specifically, the earphone box 20 generates a response signal based on the upgrade data obtained by decoding the voltage sampling signal, and the second switch module 203 connects or disconnects the negative power supply current according to the response signal, and the current detection module 103 generates a current detection signal according to the negative power supply current. If the current detection signal is greater than the preset current value, it is confirmed that the upgrade data is sent successfully; if within a certain time interval, the current detection signal is not greater than the preset current value, indicating that the upgrade data is not sent successfully, then the data signal is sent again and the number of transmissions is counted. If it is determined that the number of transmissions is greater than the preset number, the communication is confirmed to have failed, the error mechanism is activated, and the process steps are terminated; if it is determined that the number of transmissions is not greater than the preset number, the steps of sending the data signal again and counting the number of transmissions are executed.
[0119] This embodiment utilizes the positive and negative power lines of the USB interface to upgrade the earphone box online, and realizes charging and communication synchronization through the carrier signal, eliminating the signal receiving data line and the signal sending data line, saving wiring space, improving product integration, reducing the size of the product, completing synchronous data communication while charging, simplifying the operations of data upgrade and program upgrade, and improving the real-time performance of data upgrade and program upgrade.
[0120] References to "various embodiments", "in an embodiment", "one embodiment" or "an embodiment" etc. throughout the specification are intended to indicate that a particular feature, structure or characteristic described in relation to the embodiment is included in at least one embodiment. Therefore, the appearance of the phrases "in various embodiments", "in some embodiments", "in an embodiment" or "in an embodiment" etc. in appropriate places throughout the specification do not necessarily all refer to the same embodiment. Although certain embodiments are described above in a certain degree of detail, those skilled in the art may make many changes to the disclosed embodiments without departing from the scope of the present disclosure. The use of "for example" throughout the specification should be broadly interpreted and used to provide non-limiting examples of embodiments of the present disclosure, and the present disclosure is not limited to such examples. It is intended that all matters contained in the above description or shown in the accompanying drawings should be interpreted as merely illustrative and not restrictive. Changes in detail or structure may be made without departing from the present disclosure.
[0121] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.
[0122] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A device for upgrading an earphone box online, characterized in that: The device for online upgrading the earphone box comprises: Sending a carrier signal so that the earphone box can obtain the upgrade data and charge according to the carrier signal, and confirming the terminal to which the upgrade data is successfully sent according to the negative power supply current of the earphone box, and detecting whether the earphone box is connected through the terminal, if it is detected that the earphone box is connected through the USB interface, the terminal starts to send a data signal and waits for a response from the earphone box; The earphone box is connected to the terminal via a USB interface, receives the carrier signal, obtains the upgrade data and charges according to the carrier signal, and outputs a negative power supply current to enable the terminal to confirm that the upgrade data has been sent successfully; wherein the carrier signal carries the upgrade data; The terminal comprises: A first switch module for connecting or disconnecting an external power supply to generate a carrier signal according to a data signal; wherein the data signal carries the upgrade data; A current detection module for detecting a negative power supply current to generate a current detection signal; A second control module connected to the current detection module and the first switch module, and configured to confirm that the upgrade data is successfully sent according to the current detection signal; The earphone box comprises: A voltage sampling module connected to the first switch module and configured to detect the carrier signal to generate a voltage sampling signal; A first control module connected to the voltage sampling module, configured to decode the voltage sampling signal to generate and store the upgrade data, and generate a response signal; A second switch module connected to the first control module and configured to connect or disconnect the negative power supply current according to the response signal; A charging management module connected to the first switch module, the voltage sampling module and the first control module, and configured to generate a power supply according to the carrier signal to supply power to the first control module.
2. The device for online upgrading of the earphone box according to claim 1, characterized in that: The first control module includes a first microprocessor; The first data input and output terminal of the first microprocessor is the voltage sampling signal input terminal of the first control module; The power supply terminal of the first microprocessor is the power supply input terminal of the first control module; The ground terminal of the first microprocessor and the power ground together constitute the negative power current output terminal of the first control module; The second data input and output terminal of the first microprocessor is a response signal output terminal of the first control module.
3. The device for online upgrading of the earphone box according to claim 2, characterized in that: The voltage sampling module includes a first resistor and a second resistor; The first end of the first resistor is the carrier signal input end of the voltage sampling module; The second end of the first resistor is a voltage sampling signal output end of the voltage sampling module; The second end of the first resistor is connected to the first end of the second resistor, and the second end of the second resistor is connected to a power ground.
4. The device for online upgrading of the earphone box according to claim 1, characterized in that: The first switch module includes a first field effect transistor; The gate of the first field effect transistor is a data signal input terminal of the first switch module; The drain of the first field effect transistor is the external power input terminal of the first switch module; The source of the first field effect transistor is the carrier signal output terminal of the first switch module.
5. A method for online upgrading of an earphone box based on the device for online upgrading of an earphone box according to any one of claims 1 to 4, characterized in that: The method comprises: Acquire a voltage sampling signal generated by a voltage sampling module detecting a carrier signal; wherein the carrier signal carries upgrade data; The voltage sampling signal is decoded to obtain and store the upgraded data, and a response signal is generated to enable the second switch module to connect or disconnect the negative power supply current according to the response signal.
6. The method for online upgrading of an earphone box of the device for online upgrading of an earphone box as claimed in claim 5, characterized in that: Decoding the voltage sampling signal to obtain and store the upgrade data, and generating a response signal so that the second switch module connects or disconnects the negative power supply current according to the response signal includes: Determining whether the frequency of the voltage sampling signal is within a preset frequency range and whether the amplitude of the voltage sampling signal is within a preset amplitude range; If it is determined that the frequency of the voltage sampling signal is within a preset frequency range and the amplitude of the voltage sampling signal is within a preset amplitude range, the voltage sampling signal is decoded to generate and store the upgrade data, and the response signal is generated according to the upgrade data.
7. A method for online upgrading of an earphone box based on the device for online upgrading of an earphone box according to any one of claims 1 to 4, characterized in that: The method comprises: Sending a data signal so that the first switch module connects or disconnects the external power supply according to the data signal to generate a carrier signal; wherein the carrier signal and the data signal carry upgrade data; A current detection signal generated by a current detection module when receiving a negative power supply current; The success of sending the upgrade data is confirmed according to the current detection signal.
8. The method for online upgrading of the earphone box according to claim 7, characterized in that: Confirming that the upgrade data is successfully sent according to the current detection signal includes: Determining whether the current detection signal is greater than a preset value; If it is determined that the current detection signal is greater than the preset value, then confirming that the upgrade data is sent successfully; If it is determined that the current detection signal is not greater than the preset value, sending the data signal again and counting the number of times of sending; Determine whether the sending number is greater than a preset number; If it is determined that the number of transmissions is greater than the preset number of times, the communication is confirmed to have failed, and the process steps are terminated; If it is determined that the number of transmissions is not greater than the preset number, the step of sending the data signal again and counting the number of transmissions is performed.
Citation Information
Patent Citations
Method for communicating through power line
CN107994925A
Charging box circuit for wireless earphone, wireless earphone and earphone charging communication device
CN108494058A
Device for upgrading earphone box on line
CN209640835U