Charger and upgrading system

By designing a charger including input and output interface, charging circuit, switch switching circuit, single-wire bus interface conversion circuit, Bluetooth transceiver circuit and first microcontroller, the problem of increasing volume during the upgrade of the OTA of the mobile lighting equipment is solved, and the equipment is miniaturized and efficiently upgraded.

CN120150302APending Publication Date: 2025-06-13DONGGUAN OLIGHT E COMMERCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510319353.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

When the prior art realizes the OTA upgrade of mobile lighting equipment, OTA hardware needs to be added to the equipment, resulting in an increase in the size of the equipment and making it difficult to achieve miniaturization.

Method used

Design a charger, including input and output interface, charging circuit, switch switching circuit, single-wire bus interface conversion circuit, Bluetooth transceiver circuit and first microcontroller, through these components, communication with mobile lighting equipment and remote firmware upgrades are achieved, avoiding the addition of OTA hardware in the device.

Benefits of technology

The OTA upgrade of mobile lighting equipment is achieved without adding OTA hardware in the equipment, avoiding the increase in the size of the equipment, and achieving the goal of miniaturizing the equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120150302A_ABST
    Figure CN120150302A_ABST
Patent Text Reader

Abstract

The invention provides a charger and an upgrading system, the charger comprises an input and output interface, a charging circuit, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transmit-receive circuit, a first single-chip microcomputer and a charging interface, the input and output interface is used for being electrically connected with a power adapter, and the input and output interface is also used for being electrically connected with a mobile terminal. The charging circuit is electrically connected with the input and output interface, the switch switching circuit is electrically connected with the charging circuit, the single-wire bus interface circuit is electrically connected with the charging interface, and the Bluetooth transceiver circuit is used for being wirelessly connected with a mobile terminal. The first single-chip microcomputer is electrically connected with the charging circuit, the switch switching circuit, the single-wire bus interface circuit and the Bluetooth transceiver circuit, the charging interface is electrically connected with the charging circuit, and the charging interface is used for being electrically connected with the mobile lighting equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of charging, and relates to a charger and an upgrade system. Background Art

[0002] With the rapid development of intelligent technology, consumers' functional requirements for mobile lighting devices are becoming increasingly diverse. To achieve the upgrade of mobile lighting devices, the conventional solution is to add OTA (Over-The-Air Technology) hardware in the mobile lighting device to implement the OTA upgrade function. However, this will increase the volume of the mobile lighting device and it is difficult to miniaturize the mobile lighting device. Summary of the Invention

[0003] The purpose of the present invention is to provide a charger and an upgrade system for overcoming the deficiencies of the prior art, which can achieve OTA upgrade of the mobile lighting device without increasing the volume of the mobile lighting device.

[0004] To achieve the above purpose, the present invention adopts the following technical solutions: In a first aspect, an embodiment of the present application provides a charger, including an input / output interface, a charging circuit, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer, and a charging interface. The input / output interface is used to be electrically connected to a power adapter, and the input / output interface is also used to be electrically connected to a mobile terminal. The charging circuit is electrically connected to the input / output interface, the switch switching circuit is electrically connected to the charging circuit, the single-wire bus interface circuit is electrically connected to the charging interface, the Bluetooth transceiver circuit is used to be wirelessly connected to the mobile terminal, the first single-chip microcomputer is electrically connected to the charging circuit, the switch switching circuit, the single-wire bus interface circuit, and the Bluetooth transceiver circuit, the charging interface is electrically connected to the charging circuit, and the charging interface is used to be electrically connected to the mobile lighting device.

[0005] Further, the single-wire bus interface circuit includes a serial port receiving circuit and a serial port sending circuit. The serial port receiving circuit is electrically connected to the charging interface and is also electrically connected to the first single-chip microcomputer. The serial port sending circuit is electrically connected to the charging interface and is also electrically connected to the first single-chip microcomputer.

[0006] Further, the serial port receiving circuit includes: a first triode and a first MOS transistor. The base of the first triode is electrically connected to the 19th pin of the first single-chip microcomputer. The collector of the first triode is electrically connected to the 17th pin of the first single-chip microcomputer, and the collector of the first triode is also electrically connected to the 6th pin of the first single-chip microcomputer. The emitter of the first triode is electrically connected to the drain of the first MOS transistor. The source of the first MOS transistor is electrically connected to the charging interface. The gate of the first MOS transistor is electrically connected to the 30th pin of the first single-chip microcomputer; The serial port sending circuit includes a second triode and a second MOS transistor. The base of the second triode is electrically connected to the 19th pin of the first single-chip microcomputer. The emitter of the second triode is electrically connected to the 17th pin of the first single-chip microcomputer. The collector of the second triode is electrically connected to the gate of the second MOS transistor. The drain of the second MOS transistor is grounded. The source of the second MOS transistor is electrically connected to the 17th pin of the first single-chip microcomputer, and the source of the second MOS transistor is also electrically connected to the charging interface.

[0007] Further, the serial port receiving circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, and a first capacitor. One end of the first resistor is electrically connected to the 17th pin of the first single-chip microcomputer, and the other end of the first resistor is electrically connected to the collector of the first triode. One end of the second resistor is electrically connected to the 19th pin of the first single-chip microcomputer, and the other end of the second resistor is electrically connected to the base of the first triode. One end of the third resistor is electrically connected to the source of the first MOS transistor, and the other end of the third resistor is electrically connected to the charging interface. One end of the fourth resistor is electrically connected to the gate of the first MOS transistor, and the other end of the fourth resistor is electrically connected to the 30th pin of the first single-chip microcomputer. One end of the fifth resistor is electrically connected to the gate of the first MOS transistor, and the other end of the fifth resistor is electrically connected to the drain of the first MOS transistor. One end of the first capacitor is electrically connected to the base of the first triode, and the other end of the first capacitor is electrically connected to the emitter of the first triode.

[0008] Further, the serial port sending circuit includes a sixth resistor, a seventh resistor, and an eighth resistor. One end of the sixth resistor is electrically connected to the 19th pin of the first single-chip microcomputer, and the other end of the sixth resistor is electrically connected to the base of the second triode. One end of the seventh resistor is electrically connected to the 17th pin of the first single-chip microcomputer, and the other end of the seventh resistor is electrically connected to the source of the second MOS transistor. One end of the eighth resistor is electrically connected to the gate of the second MOS transistor, and the other end of the eighth resistor is used for grounding.

[0009] Further, the input / output interface includes an interface chip; The switch switching circuit includes a first switch chip and a second switch chip. The 3rd pin of the first switch chip is electrically connected to the 23rd pin of the first single-chip microcomputer. The 4th pin of the first switch chip is electrically connected to the 5th pin of the interface chip. The 3rd pin of the second switch chip is electrically connected to the 24th pin of the first single-chip microcomputer. The 4th pin of the second switch chip is electrically connected to the 8th pin of the interface chip.

[0010] Further, the charger further includes a load switch circuit. The load switch circuit is electrically connected to the charging circuit and the charging interface. The charging circuit includes a charging management chip. The input end of the charging management chip is electrically connected to the input / output interface; The load switch circuit includes a first electronic load switch. The input end of the first electronic load switch is electrically connected to the output end of the charging management chip. The output end of the first electronic load switch is electrically connected to the charging interface. The enable end of the first electronic load switch is electrically connected to the 13th pin of the first single-chip microcomputer.

[0011] Further, the Bluetooth transceiver circuit includes a Bluetooth chip and an antenna. The 10th pin of the Bluetooth chip is electrically connected to the 17th pin of the first single-chip microcomputer. The first pin of the Bluetooth chip is electrically connected to the antenna.

[0012] In a second aspect, an embodiment of the present application provides an upgrade system. The upgrade system includes the charger described above. The upgrade system further includes a mobile lighting device and a mobile terminal. The charger is electrically connected to the mobile lighting device. The charger is wirelessly connected to the mobile terminal.

[0013] Further, the mobile lighting device includes a data transceiver circuit, a second single-chip microcomputer, and a battery. The data transceiver circuit is electrically connected to the charging interface, the second single-chip microcomputer, and the battery. The data transceiver circuit includes a second electronic load switch and a third MOS transistor. The input end of the second electronic load switch is electrically connected to the charging interface. The output end of the electronic load switch is electrically connected to the battery. The source electrode of the third MOS transistor is electrically connected to the charging interface. The drain electrode of the third MOS transistor is electrically connected to the data receiving end and the data sending end of the second single-chip microcomputer. The gate electrode of the third MOS transistor is electrically connected to the power supply end of the second single-chip microcomputer.

[0014] Advantages of the present invention: A charger provided by the present application includes an input / output interface, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer, and a charging interface. The input / output interface is also used to be electrically connected to a mobile terminal. The charging circuit is electrically connected to the input / output interface. The switch switching circuit is electrically connected to the charging circuit. The single-wire bus interface circuit is electrically connected to the charging interface. The Bluetooth transceiver circuit is used to wirelessly connect to the mobile terminal. The first single-chip microcomputer is electrically connected to the charging circuit, the switch switching circuit, the single-wire bus interface circuit, and the Bluetooth transceiver circuit. The charging interface is electrically connected to the charging circuit, and the charging interface is used to be electrically connected to the mobile lighting device. The first single-chip microcomputer of the charger can communicate with the mobile lighting device through the single-wire bus interface circuit, and the Bluetooth transceiver circuit can communicate with the mobile terminal. According to the data received from the mobile terminal, the mobile lighting device can be remotely updated with firmware through the input / output interface. That is, when the mobile lighting device is electrically connected to the charger, the charger of the present application can upgrade the mobile lighting device. Compared with the conventional solution, there is no need to add OTA hardware in the mobile lighting device to implement the OTA upgrade function, avoiding the problem of the increased volume of the mobile lighting device.

[0015] An upgrade system provided by the present application includes the charger described above. The upgrade system further includes a mobile lighting device and a mobile terminal. The charger is electrically connected to the mobile lighting device, and the charger is wirelessly connected to the mobile terminal. The charger includes an input / output interface, a charging circuit, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer, and a charging interface. The input / output interface is also used to be electrically connected to the mobile terminal. The charging circuit is electrically connected to the input / output interface. The switch switching circuit is electrically connected to the charging circuit. The single-wire bus interface circuit is electrically connected to the charging interface. The Bluetooth transceiver circuit is used to wirelessly connect to the mobile terminal. The first single-chip microcomputer is electrically connected to the charging circuit, the switch switching circuit, the single-wire bus interface circuit, and the Bluetooth transceiver circuit. The charging interface is electrically connected to the charging circuit, and the charging interface is electrically connected to the mobile lighting device. The first single-chip microcomputer of the charger can communicate with the mobile lighting device through the single-wire bus interface circuit, and the Bluetooth transceiver circuit can communicate with the mobile terminal. According to the data received from the mobile terminal, the mobile lighting device can be remotely updated with firmware through the input / output interface. That is, the charger of the present application can upgrade the mobile lighting device. Compared with the conventional solution, there is no need to add OTA hardware in the mobile lighting device to implement the OTA upgrade function, avoiding the problem of the increased volume of the mobile lighting device. Description of the Drawings

[0016] Appended Figure 1 is the schematic diagram of the charger applied for; Appended Figure 2 is the schematic diagram of the charging circuit of the charger applied for; Appended Figure 3 is the schematic diagram of the single-wire bus interface circuit of the charger applied for; Appended Figure 4 is the schematic diagram of the first single-chip microcomputer of the charger applied for; Appended Figure 5 is the schematic diagram of the switch switching circuit of the charger applied for; Appended Figure 6 is the schematic diagram of the Bluetooth transceiver circuit of the charger applied for; Appended Figure 7 is the schematic diagram of the data receiving and transmitting circuit, the second single-chip microcomputer and the battery connection of the mobile lighting device of the upgrade system applied for. Detailed implementation manners

[0017] The embodiments of the present invention will be described in detail below. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0018] In the description of the present invention, it should be understood that the orientation or positional relationship indicated by the terms "length", "width", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. is based on the orientation or positional relationship shown in the accompanying drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.

[0019] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include one or more of such features. In the description of the present invention, "a plurality" means two or more unless otherwise specifically defined.

[0020] In the embodiments of the present invention, unless otherwise clearly specified and defined, terms such as "installation", "connection", "coupling", "fixing", etc. shall be understood in a broad sense. For example, it may be a fixed connection, a detachable connection, or integrated; it may be a mechanical connection or an electrical connection; it may be directly connected or indirectly connected through an intermediate medium, and it may be the communication inside two components or the interaction relationship between two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0021] The first embodiment of the present application provides a charger. Refer to Figures 1-6 , the charger includes an input / output interface, a charging circuit, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer U1, and a charging interface CHG+. The input / output interface is used for electrically connecting to a power adapter, and the input / output interface is also used for electrically connecting to a mobile terminal. The charging circuit is electrically connected to the input / output interface, the switch switching circuit is electrically connected to the charging circuit, the single-wire bus interface circuit is electrically connected to the charging interface CHG+, the Bluetooth transceiver circuit is used for wirelessly connecting to a mobile terminal, the first single-chip microcomputer U1 is electrically connected to the charging circuit, the switch switching circuit, the single-wire bus interface circuit, and the Bluetooth transceiver circuit, the charging interface CHG+ is electrically connected to the charging circuit, and the charging interface CHG+ is used for electrically connecting to the mobile lighting device.

[0022] The conventional solution realizes the OTA upgrade function by adding OTA (Over-The-Air Technology) hardware in the mobile lighting device. However, this will increase the volume of the mobile lighting device and it is difficult to miniaturize the mobile lighting device. Therefore, a charger provided in this application includes an input / output interface, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer U1, and a charging interface CHG+. The input / output interface is also configured to be electrically connected to a mobile terminal. The charging circuit is electrically connected to the input / output interface. The switch switching circuit is electrically connected to the charging circuit. The single-wire bus interface circuit is electrically connected to the charging interface CHG+. The Bluetooth transceiver circuit is used to wirelessly connect to the mobile terminal. The first single-chip microcomputer U1 is electrically connected to the charging circuit, the switch switching circuit, the single-wire bus interface circuit, and the Bluetooth transceiver circuit. The charging interface CHG+ is electrically connected to the charging circuit and is used to be electrically connected to the mobile lighting device. This enables the first single-chip microcomputer U1 of the charger to communicate with the mobile lighting device through the single-wire bus interface circuit, and the Bluetooth transceiver circuit to communicate with the mobile terminal. And based on the data received from the mobile terminal, the mobile lighting device can be remotely upgraded through the input / output interface. That is, when the mobile lighting device is electrically connected to the charger, the charger of this application can upgrade the mobile lighting device. Compared with the conventional solution, it does not require adding OTA hardware in the mobile lighting device to realize the OTA upgrade function, avoiding the problem of increased volume of the mobile lighting device.

[0023] In this embodiment, the mobile lighting device includes a flashlight.

[0024] In this embodiment, the mobile terminal includes a mobile phone or a tablet.

[0025] In this embodiment, the charging interface CHG+ includes a first magnetic interface.

[0026] In this embodiment, the input / output interface includes a Type_C interface.

[0027] In this embodiment, the model of the first single-chip microcomputer U1 is N32G031K8Q7.

[0028] In this embodiment, refer to Figure 3, the single-wire bus interface circuit includes a serial port receiving circuit and a serial port transmitting circuit. The serial port receiving circuit is electrically connected to the charging interface CHG+, and the serial port receiving circuit is electrically connected to the first single-chip microcomputer U1. The serial port transmitting circuit is electrically connected to the charging interface CHG+, and the serial port transmitting circuit is electrically connected to the first single-chip microcomputer U1. By setting that the single-wire bus interface circuit includes a serial port receiving circuit and a serial port transmitting circuit, the serial port receiving circuit is electrically connected to the charging interface CHG+, the serial port receiving circuit is electrically connected to the first single-chip microcomputer U1, the serial port transmitting circuit is electrically connected to the charging interface CHG+, and the serial port transmitting circuit is electrically connected to the first single-chip microcomputer U1, the charger can effectively communicate with the mobile terminal and the mobile lighting device.

[0029] In this embodiment, referring to Figure 3 , the serial port receiving circuit includes: a first triode Q1 and a first MOS transistor Q2. The base of the first triode Q1 is electrically connected to the 19th pin of the first single-chip microcomputer U1. The collector of the first triode Q1 is electrically connected to the 17th pin of the first single-chip microcomputer U1, and the collector of the first triode Q1 is electrically connected to the 6th pin of the first single-chip microcomputer U1. The emitter of the first triode Q1 is electrically connected to the drain of the first MOS transistor Q2. The source of the first MOS transistor Q2 is electrically connected to the charging interface CHG+. The gate of the first MOS transistor Q2 is electrically connected to the 30th pin of the first single-chip microcomputer U1. The serial port transmitting circuit includes a second triode Q3 and a second MOS transistor Q4. The base of the second triode Q3 is electrically connected to the 19th pin of the first single-chip microcomputer U1. The emitter of the second triode Q3 is electrically connected to the 17th pin of the first single-chip microcomputer U1. The collector of the second triode Q3 is electrically connected to the gate of the second MOS transistor Q4. The drain of the second MOS transistor Q4 is grounded. The source of the second MOS transistor Q4 is electrically connected to the 17th pin of the first single-chip microcomputer U1, and the source of the second MOS transistor Q4 is electrically connected to the charging interface CHG+.

[0030] In this embodiment, referring to Figure 3, the serial port receiving circuit includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, and a first capacitor C1. One end of the first resistor R1 is electrically connected to the 17th pin of the first single-chip microcomputer U1, and the other end of the first resistor R1 is electrically connected to the collector of the first triode Q1. One end of the second resistor R2 is electrically connected to the 19th pin of the first single-chip microcomputer U1, and the other end of the second resistor R2 is electrically connected to the base of the first triode Q1. One end of the third resistor R3 is electrically connected to the source of the first MOS transistor Q2, and the other end of the third resistor R3 is electrically connected to the charging interface CHG+. One end of the fourth resistor R4 is electrically connected to the gate of the first MOS transistor Q2, and the other end of the fourth resistor R4 is electrically connected to the 30th pin of the first single-chip microcomputer U1. One end of the fifth resistor R5 is electrically connected to the gate of the first MOS transistor Q2, and the other end of the fifth resistor R5 is electrically connected to the drain of the first MOS transistor Q2. One end of the first capacitor C1 is electrically connected to the base of the first triode Q1, and the other end of the first capacitor C1 is electrically connected to the emitter of the first triode Q1.

[0031] In this embodiment, referring to Figure 3 , the serial port sending circuit includes a sixth resistor R6, a seventh resistor R7, and an eighth resistor R8. One end of the sixth resistor R6 is electrically connected to the 19th pin of the first single-chip microcomputer U1, and the other end of the sixth resistor R6 is electrically connected to the base of the second triode Q3. One end of the seventh resistor R7 is electrically connected to the 17th pin of the first single-chip microcomputer U1, and the other end of the seventh resistor R7 is electrically connected to the source of the second MOS transistor Q4. One end of the eighth resistor R8 is electrically connected to the gate of the second MOS transistor Q4, and the other end of the eighth resistor R8 is grounded.

[0032] Signal receiving principle of the single-wire bus interface circuit: When the mobile lighting device is connected to the charging interface CHG+ of the charger, the first triode Q1 and the first MOS transistor Q2 are not conducting. At this time, the 19th pin of the first single-chip microcomputer U1 is pulled up to a high potential by the first resistor R1. When the mobile lighting device is not connected to the charging interface CHG+ of the charger, the first triode Q1 and the first MOS transistor Q2 are conducting. At this time, the 19th pin of the first single-chip microcomputer U1 is pulled to a low potential. And due to the setting of the first capacitor C1, it can avoid the abnormal signal reception caused by the first triode Q1 turning on too fast and the 19th pin of the first single-chip microcomputer U1 not being completely pulled down.

[0033] Signal transmission principle of the single-wire bus interface circuit: When the 19th pin of the first single-chip microcomputer U1 is pulled high by the first resistor R1, the second triode Q3 and the second MOS transistor Q4 are not conducting, and the source electrode of the second MOS transistor Q4 is pulled high to a high potential by the seventh resistor R7. Also, since the charging interface CHG+ is also at a high potential, the data signal can be transmitted to the mobile lighting device. When the 19th pin of the first single-chip microcomputer U1 is pulled to a low potential, the second MOS transistor Q4 conducts, the source electrode of the second MOS transistor Q4 is pulled to a low potential, and the first MOS transistor Q2 conducts, making the charging interface CHG+ at a low potential.

[0034] In this embodiment, referring to Figure 2 , the input / output interface includes an interface chip U2; the switch switching circuit includes a first switch chip U3 and a second switch chip U4. The 3rd pin of the first switch chip U3 is electrically connected to the 23rd pin of the first single-chip microcomputer U1, the 4th pin of the first switch chip U3 is electrically connected to the 5th pin of the interface chip U2, the 3rd pin of the second switch chip U4 is electrically connected to the 24th pin of the first single-chip microcomputer U1, and the 4th pin of the second switch chip U4 is electrically connected to the 8th pin of the interface chip U2. By setting the switch switching circuit to include the first switch chip U3 and the second switch chip U4, with the 3rd pin of the first switch chip U3 electrically connected to the 23rd pin of the first single-chip microcomputer U1, the 4th pin of the first switch chip U3 electrically connected to the 5th pin of the interface chip U2, the 3rd pin of the second switch chip U4 electrically connected to the 24th pin of the first single-chip microcomputer U1, and the 4th pin of the second switch chip U4 electrically connected to the 8th pin of the interface chip U2, that is, the first switch chip U3 and the second switch chip U4 can form a single-pole double-throw switch, enabling the 23rd and 24th pins of the first single-chip microcomputer U1 to be electrically connected to the input / output interface, so that the first single-chip microcomputer U1 can be programmed and upgraded through the input / output interface, or the 6th and 19th pins of the first single-chip microcomputer U1 are electrically connected to the input / output interface, and thus the upgrade program can be transmitted to the mobile lighting device through the input / output interface, ensuring that the mobile lighting device can be upgraded.

[0035] In this embodiment, referring to Figure 2, the charger further includes a load switch circuit, the load switch circuit is electrically connected to the charging circuit and the charging interface CHG+, the charging circuit includes a charging management chip U5, and the input end of the charging management chip U5 is electrically connected to the input / output interface; the load switch circuit includes a first electronic load switch U6, the input end of the first electronic load switch U6 is electrically connected to the output end of the charging management chip U5, the output end of the first electronic load switch U6 is electrically connected to the charging interface CHG+, and the enable end of the first electronic load switch U6 is electrically connected to the 13th pin of the first single-chip microcomputer U1.

[0036] In this embodiment, the model of the charging management chip U5 is SY6918A.

[0037] In this embodiment, the model of the first electronic load switch U6 is SGM2564.

[0038] In this embodiment, referring to Figure 6 , the Bluetooth transceiver circuit includes a Bluetooth chip U7 and an antenna, the 10th pin of the Bluetooth chip U7 is electrically connected to the 17th pin of the first single-chip microcomputer U1, and the first pin of the Bluetooth chip U7 is electrically connected to the antenna. By setting that the Bluetooth transceiver circuit includes a Bluetooth chip U7 and an antenna, the 10th pin of the Bluetooth chip U7 is electrically connected to the 17th pin of the first single-chip microcomputer U1, and the first pin of the Bluetooth chip U7 is electrically connected to the antenna, the charger can realize wireless connection with the terminal device.

[0039] The second embodiment of the present application provides an upgrade system, the upgrade system includes the charger described above, the upgrade system further includes a mobile lighting device and a mobile terminal, the charger is electrically connected to the mobile lighting device, and the charger is wirelessly connected to the mobile terminal.

[0040] The conventional solution realizes the OTA upgrade function by adding OTA (Over-The-Air Technology) hardware in the mobile lighting device. However, this will increase the volume of the mobile lighting device and it is difficult to miniaturize the mobile lighting device. Therefore, an upgrade system provided in this application includes the charger as described above. The upgrade system further includes a mobile lighting device and a mobile terminal. The charger is electrically connected to the mobile lighting device, and the charger is wirelessly connected to the mobile terminal. The charger includes an input / output interface, a switch switching circuit, a single-wire bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer U1, and a charging interface CHG+. It is set that the input / output interface is also used to be electrically connected to the mobile terminal. The charging circuit is electrically connected to the input / output interface. The switch switching circuit is electrically connected to the charging circuit. The single-wire bus interface circuit is electrically connected to the charging interface CHG+. The Bluetooth transceiver circuit is used to wirelessly connect to the mobile terminal. The first single-chip microcomputer U1 is electrically connected to the charging circuit, the switch switching circuit, the single-wire bus interface circuit, and the Bluetooth transceiver circuit. The charging interface CHG+ is electrically connected to the charging circuit, and the charging interface CHG+ is electrically connected to the mobile lighting device. So that the first single-chip microcomputer U1 of the charger can communicate with the mobile lighting device through the single-wire bus interface circuit, the Bluetooth transceiver circuit can communicate with the mobile terminal, and the mobile lighting device can be remotely updated with firmware programs according to the data of the mobile terminal received through the input / output interface. That is, the charger of this application can upgrade the mobile lighting device. Compared with the conventional solution, it does not need to add OTA hardware in the mobile lighting device to realize the OTA upgrade function, avoiding the problem of increased volume of the mobile lighting device.

[0041] In this embodiment, the mobile lighting device includes a second magnetic attraction interface, and the mobile lighting device is electrically connected to the first magnetic attraction interface of the charger through the second magnetic attraction interface.

[0042] In this embodiment, refer to Figure 7, the mobile lighting device includes a data transceiver circuit, a second single-chip microcomputer U9, and a battery. The data transceiver circuit is electrically connected to the charging interface CHG+, the second single-chip microcomputer U9, and the battery. The data transceiver circuit includes a second electronic load switch U8 and a third MOS transistor Q5. The input terminal of the second electronic load switch U8 is electrically connected to the charging interface CHG+. The output terminal of the electronic load switch is electrically connected to the battery. The source electrode of the third MOS transistor Q5 is electrically connected to the charging interface CHG+. The drain electrode of the third MOS transistor Q5 is electrically connected to the data receiving terminal and the data sending terminal of the second single-chip microcomputer U9. The gate electrode of the third MOS transistor Q5 is electrically connected to the power supply terminal of the second single-chip microcomputer U9. By setting that the mobile lighting device includes a data transceiver circuit, a second single-chip microcomputer U9, and a battery, the data transceiver circuit is electrically connected to the charging interface CHG+, the second single-chip microcomputer U9, and the battery. The data transceiver circuit includes a second electronic load switch U8 and a third MOS transistor Q5. The input terminal of the second electronic load switch U8 is electrically connected to the charging interface CHG+. The output terminal of the electronic load switch is electrically connected to the battery. The source electrode of the third MOS transistor Q5 is electrically connected to the charging interface CHG+. The drain electrode of the third MOS transistor Q5 is electrically connected to the data receiving terminal and the data sending terminal of the second single-chip microcomputer U9. The gate electrode of the third MOS transistor Q5 is electrically connected to the power supply terminal of the second single-chip microcomputer U9. When the mobile lighting device is upgraded, the second electronic load switch U8 can be turned off to prevent the battery from being conducted with the charging interface CHG+.

[0043] When the charger is connected to the mobile lighting device, the mobile lighting device controls the second electronic load switch U8 to turn off, and the charger communicates with the mobile lighting device. When the charger sends a high-level signal to the mobile lighting device, the charging interface CHG+ and the second magnetic attraction interface are at a high potential, and the data receiving terminal of the second single-chip microcomputer U9 is pulled up to a high potential. When the charger sends a low-level signal to the mobile lighting device, the charging interface CHG+ and the second magnetic attraction interface are at a low potential, and the third MOS transistor Q5 conducts, making the data receiving terminal of the second single-chip microcomputer at a low potential. When the data sending terminal of the second single-chip microcomputer U9 of the mobile lighting device sends a high-level signal, the first diode does not conduct, and the high-level signal is transmitted to the second magnetic attraction interface through the body diode of the third MOS transistor Q5. At this time, the second magnetic attraction interface and the charging interface CHG+ are at a high potential. When the data sending terminal of the second single-chip microcomputer U9 sends a low-level signal, the first diode conducts, causing the third diode to conduct, and the second magnetic attraction interface and the charging interface CHG+ are pulled to a low potential. After the communication is completed, the second electronic load switch U8 is turned on, and the charger charges the battery.

[0044] In this embodiment, the model of the second single-chip microcomputer U9 is N32G031K8Q7.

[0045] Working principle: When the charger is connected to the Type-C signal line, the first single-chip microcomputer U1 will first enable a low-level signal to the first switch chip U3 and the second switch chip U4, so that the 5th pin and the 8th pin of the interface chip U2 of the input / output interface are electrically connected to the 23rd pin and the 24th pin of the first single-chip microcomputer U1 of the first single-chip microcomputer U1. At this time, the input / output interface can burn and upgrade the program for the first single-chip microcomputer U1. If the program is not burned, the first single-chip microcomputer U1 will enable a high-level signal to the first switch chip U3 and the second switch chip U4, so that the 6th pin and the 19th pin of the first single-chip microcomputer U1 are electrically connected to the input / output interface, and enable a low-level signal to the first electronic load switch U6. The first electronic load switch U6 is turned off to avoid affecting communication. When a mobile lighting device is connected to the charging interface CHG+, the first single-chip microcomputer U1 communicates with the mobile lighting device through the single-wire bus interface circuit. If the first single-chip microcomputer U1 receives a reply signal from the mobile lighting device, the charger establishes a connection with the mobile lighting device. At this time, the first single-chip microcomputer U1 can upgrade the firmware program of the mobile lighting device through the charging interface CHG+. After the mobile lighting device is upgraded, the first electronic load switch U6 is turned on to charge the mobile lighting device; when the charger receives an upgrade program signal instruction during the charging process of the mobile lighting device, the first single-chip microcomputer U1 will enable a low level to the first electronic load switch U6, and the charger turns off the charging function and communicates with the mobile lighting device through the magnetic interface. When the mobile lighting device is upgraded, the first single-chip microcomputer U1 will enable a high level to the first electronic load switch U6 to turn on the first electronic load switch U6, so as to continue charging the mobile lighting device.

[0046] The above-described embodiments are only one of the more preferred specific embodiments of the present invention. The ordinary changes and substitutions made by those skilled in the art within the scope of the technical solution of the present invention should be included in the protection scope of the present invention.

Claims

1. A charger, characterized in that: It includes an input-output interface, a charging circuit, a switch switching circuit, a single-line bus interface conversion circuit, a Bluetooth transceiver circuit, a first single-chip microcomputer and a charging interface, the input-output interface is used to be electrically connected to a power adapter, the input-output interface is also used to be electrically connected to a mobile terminal, the charging circuit is electrically connected to the input-output interface, the switch switching circuit is electrically connected to the charging circuit, the single-line bus interface circuit is electrically connected to the charging interface, the Bluetooth transceiver circuit is used to wirelessly connect to the mobile terminal, the first single-chip microcomputer is electrically connected to the charging circuit, the switch switching circuit, the single-line bus interface circuit and the Bluetooth transceiver circuit, the charging interface is electrically connected to the charging circuit, and the charging interface is used to be electrically connected to the mobile lighting device.

2. The charger according to claim 1, characterized in that: The single-line bus interface circuit includes a serial port receiving circuit and a serial port sending circuit, the serial port receiving circuit is electrically connected to the charging interface, and the serial port receiving circuit is electrically connected to the first single-chip microcomputer, the serial port sending circuit is electrically connected to the charging interface, and the serial port sending circuit is electrically connected to the first single-chip microcomputer.

3. The charger according to claim 2, characterized in that: The serial port receiving circuit includes: a first transistor and a first MOS transistor, the base of the first transistor is electrically connected to the 19th pin of the first single-chip microcomputer, the collector of the first transistor is electrically connected to the 17th pin of the first single-chip microcomputer, and the collector of the first transistor is electrically connected to the 6th pin of the first single-chip microcomputer, the emitter of the first transistor is electrically connected to the drain of the first MOS transistor, the source of the first MOS transistor is electrically connected to the charging interface, and the gate of the first MOS transistor is electrically connected to the 30th pin of the first single-chip microcomputer; The serial port sending circuit includes a second transistor and a second MOS transistor, the base of the second transistor is electrically connected to the 19th pin of the first single-chip microcomputer, the emitter of the second transistor is electrically connected to the 17th pin of the first single-chip microcomputer, the collector of the second transistor is electrically connected to the gate of the second MOS transistor, the drain of the second MOS transistor is grounded, the source of the second MOS transistor is electrically connected to the 17th pin of the first single-chip microcomputer, and the source of the second MOS transistor is electrically connected to the charging interface.

4. The charger according to claim 3, characterized in that: The serial port receiving circuit includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor and a first capacitor, one end of the first resistor is electrically connected to the 17th pin of the first single-chip computer, the other end of the first resistor is electrically connected to the collector of the first transistor, one end of the second resistor is electrically connected to the 19th pin of the first single-chip computer, the other end of the second resistor is electrically connected to the base of the first transistor, one end of the third resistor is electrically connected to the source of the first MOS tube, the other end of the third resistor is electrically connected to the charging interface, one end of the fourth resistor is electrically connected to the gate of the first MOS tube, the other end of the fourth resistor is electrically connected to the 30th pin of the first single-chip computer, one end of the fifth resistor is electrically connected to the gate of the first MOS tube, the other end of the fifth resistor is electrically connected to the drain of the first MOS tube, one end of the first capacitor is electrically connected to the base of the first transistor, and the other end of the first capacitor is electrically connected to the emitter of the first transistor.

5. The charger according to claim 4, characterized in that: The serial port sending circuit includes a sixth resistor, a seventh resistor and an eighth resistor, one end of the sixth resistor is electrically connected to the 19th pin of the first single-chip microcomputer, the other end of the sixth resistor is electrically connected to the base of the second transistor, one end of the seventh resistor is electrically connected to the 17th pin of the first single-chip microcomputer, and the other end of the seventh resistor is electrically connected to the source of the second MOS tube, one end of the eighth resistor is electrically connected to the gate of the second MOS tube, and the other end of the eighth resistor is used for grounding.

6. The charger according to claim 1, characterized in that: The input and output interface includes an interface chip; The switch switching circuit includes a first switch chip and a second switch chip, the 3rd pin of the first switch chip is electrically connected to the 23rd pin of the first single-chip microcomputer, the 4th pin of the first switch chip is electrically connected to the 5th pin of the interface chip, the 3rd pin of the second switch chip is electrically connected to the 24th pin of the first single-chip microcomputer, and the 4th pin of the second switch chip is electrically connected to the 8th pin of the interface chip.

7. The charger according to claim 1, characterized in that: The charger further includes a load switch circuit, the load switch circuit is electrically connected to the charging circuit and the charging interface, the charging circuit includes a charging management chip, and an input end of the charging management chip is electrically connected to the input-output interface; The load switch circuit includes a first electronic load switch, an input end of the first electronic load switch is electrically connected to an output end of the charging management chip, an output end of the first electronic load switch is electrically connected to the charging interface, and an enable end of the first electronic load switch is electrically connected to pin 13 of the first single-chip microcomputer.

8. The charger according to claim 1, characterized in that: The Bluetooth transceiver circuit includes a Bluetooth chip and an antenna. The 10th pin of the Bluetooth chip is electrically connected to the 17th pin of the first single-chip microcomputer, and the first pin of the Bluetooth chip is electrically connected to the antenna.

9. An upgrade system, characterized in that: The upgrade system comprises the charger according to any one of claims 1 to 8, and the upgrade system further comprises a mobile lighting device and a mobile terminal, the charger is electrically connected to the mobile lighting device, and the charger is wirelessly connected to the mobile terminal.

10. The upgrade system according to claim 9, characterized in that: The mobile lighting device includes a data transceiver circuit, a second single-chip microcomputer and a battery. The data transceiver circuit is electrically connected to the charging interface, the second single-chip microcomputer and the battery. The data transceiver circuit includes a second electronic load switch and a third MOS tube. The input end of the second electronic load switch is electrically connected to the charging interface, the output end of the electronic load switch is electrically connected to the battery, the source of the third MOS tube is electrically connected to the charging interface, the drain of the third MOS tube is electrically connected to the data receiving end of the second single-chip microcomputer and the data sending end of the second single-chip microcomputer, and the gate of the third MOS tube is electrically connected to the power supply end of the second single-chip microcomputer.