Application program upgrading method and electronic equipment

By receiving restart and channel switching instructions in the embedded device filled with glue packaging and performing upgrade operations using the bootloader layer, the finished product scrapping caused by device software failure in the prior art is solved, and lossless upgrade is achieved.

CN120492004AActive Publication Date: 2025-08-15GOERTEK INC

Patent Information

Application Number
CN202510969463.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-15
Publication Date
2025-08-15
Estimated Expiration
2045-07-15

AI Technical Summary

Technical Problem

The embedded devices in existing glue-filled packaging cannot be updated through a common path due to software failure, resulting in the problem of scrapping of finished products.

Method used

The charging management unit receives the restart command of the terminal device and disconnects the battery powered channel, and after receiving the first channel switching command, the VIN pin is turned on with the TRX pin, establishes a communication link, and uses the bootloader layer to perform application upgrades.

Benefits of technology

It realizes forced software recovery without physical disassembly, avoids scrapping of finished products, and supports application upgrades to glue-filling electronic devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120492004A_ABST
    Figure CN120492004A_ABST
Patent Text Reader

Abstract

The invention relates to an application program upgrading method and electronic equipment, the electronic equipment comprises a control unit, a charging management unit and a battery, and the method comprises the steps that under the condition that the charging management unit receives a restart instruction sent by terminal equipment through a charging interface, the charging management unit disconnects a channel for the battery to supply power to the control unit; under the conditions that a channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives a first channel switching instruction sent by the terminal equipment, the charging management unit switches the conduction of the VIN pin and the VCC pin into the conduction of the VIN pin and the TRX pin, and the TRX pin is connected with the TX pin and the RX pin of the control unit; and under the condition that the channel through which the battery supplies power to the control unit is conducted, and under the condition that the control unit detects that the VIN pin and the TRX pin are conducted, the control unit receives application program upgrading information through the channel between the VIN pin and the TRX pin, and executes upgrading operation based on the application program upgrading information by utilizing a bootloader layer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to electronic device program upgrade technology, and more particularly, to an application program upgrade method and electronic device. Background Art

[0002] When existing embedded devices with potted packages need to be repaired due to software failures (for example, application tampering or OTA function defects), firmware updates cannot be performed through common paths. For example, they cannot be upgraded by triggering physical buttons and can only be performed by destructively disassembling the device, which may render the finished product scrapped. Summary of the Invention

[0003] An object of the present invention is to provide a new technical solution for an application program upgrading method.

[0004] According to a first aspect of the present invention, there is provided an application program upgrade method, which is applied to an electronic device, the electronic device including a control unit, a charging management unit, and a battery, the method comprising: When the charging management unit receives a restart instruction sent by the terminal device through the charging interface, the charging management unit disconnects the channel through which the battery supplies power to the control unit; When the channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives a first channel switching instruction sent by the terminal device, the charging management unit switches the conduction between the VIN pin and the VCC pin to the conduction between the VIN pin and the TRX pin, and the TRX pin is connected to the TX pin and the RX pin of the control unit; When the channel through which the battery supplies power to the control unit is turned on, the control unit receives application upgrade information through the channel between the VIN pin and the TRX pin upon detecting that the VIN pin and the TRX pin are turned on, and uses the bootloader layer to perform an upgrade operation based on the application upgrade information.

[0005] Optionally, the charging interface of the charging management unit is externally connected to a private protocol conversion device, and the private protocol conversion device is connected to the terminal device, wherein the format of the instruction sent by the terminal device is converted by the private protocol conversion device into a format recognizable by the charging management unit.

[0006] Optionally, the method further includes: when the charging management unit receives a second channel switching instruction sent by the terminal device, the charging management unit switches the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin.

[0007] Optionally, the method further includes: when the charging management unit is connected to an external charging power source through a charging interface, the charging management unit switches the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin.

[0008] Optionally, the VBUS pin of the charging interface of the electronic device is connected to the VIN pin of the charging management unit, and the GND pin of the charging interface is connected to the GND pin of the charging management unit, wherein, The VBUS pin and the GND pin of the charging interface are both connected to the proprietary protocol conversion device, or the VBUS pin and the GND pin of the charging interface are both connected to the charging power supply.

[0009] Optionally, the method further includes: the control unit sending a register value to the charging management unit through a communication interface, so that the charging management unit is configured based on the register value.

[0010] According to a second aspect of the present invention, there is provided an electronic device comprising a control unit, a charging management unit and a battery. The charging management unit is configured to disconnect the battery from supplying power to the control unit when a restart instruction is received from the terminal device through the charging interface; The charging management unit is further configured to, when the channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives a first channel switching instruction sent by the terminal device, switch the conduction between the VIN pin and the VCC pin to conduction between the VIN pin and the TRX pin, and the TRX pins are both connected to the TX pin and the RX pin of the control unit; When the channel through which the battery supplies power to the control unit is turned on, the control unit is configured to receive application upgrade information through the channel between the VIN pin and the TRX pin upon detecting that the VIN pin and the TRX pin are turned on, and to perform an upgrade operation based on the application upgrade information using the bootloader layer.

[0011] Optionally, the charging interface of the charging management unit is externally connected to a private protocol conversion device, and the private protocol conversion device is connected to the terminal device, wherein: The private protocol conversion device is used to convert the format of the instruction sent by the terminal device into a format recognizable by the charging management unit.

[0012] Optionally, the charging management unit is further configured to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin upon receiving a second channel switching instruction sent by the terminal device.

[0013] Optionally, the charging management unit is further configured to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin when an external charging power source is connected via the charging interface.

[0014] The present disclosure provides an application upgrade method, which receives a restart instruction and a first channel switching instruction sent by a terminal device based on a charging interface of an electronic device to achieve electronic device reset and communication with the terminal device, and then obtains application upgrade information based on the communication with the terminal device. After the electronic device is reset, the bootloader layer is entered, and then the bootloader layer is used to perform an upgrade operation based on the application upgrade information. No physical disassembly is required, thereby achieving forced software recovery of the glue-filled electronic device and avoiding scrapping of the finished product.

[0015] Features and advantages of the embodiments of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0017] Figure 1 FIG. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.

[0018] Figure 2 FIG. 4 is a flow chart of an application program upgrade method according to an embodiment of the present invention.

[0019] Figure 3 The figure is a connection diagram of an electronic device, a proprietary protocol conversion device, and a terminal device according to an embodiment of the present invention.

[0020] Figure 4 FIG. 4 is a flow chart of a method for monitoring the operation of an electronic device according to an embodiment of the present invention.

[0021] Figure 5 is a schematic diagram of a smart ring according to an embodiment of the present invention. DETAILED DESCRIPTION

[0022] Various exemplary embodiments of the present specification will now be described in detail with reference to the accompanying drawings.

[0023] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the embodiments of this specification, its application, or uses.

[0024] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0025] In order to solve the above technical problems, the present disclosure provides an application upgrade method, which receives a restart instruction and a first channel switching instruction sent by a terminal device based on the charging interface of the electronic device to realize the reset of the electronic device and communication with the terminal device, and then obtains application upgrade information based on the communication with the terminal device. After the electronic device is reset, it enters the bootloader layer, and then uses the bootloader layer to perform the upgrade operation based on the application upgrade information. Without physical disassembly, the software of the glue-filled electronic device is forced to be restored, thereby avoiding scrapping of the finished product.

[0026] The application program upgrade method provided by the present disclosure is applied to electronic devices. Figure 1 As shown, the electronic device includes a control unit, a charging management unit and a battery.

[0027] The control unit is an arithmetic control unit of the electronic device. The control unit may be an MCU (Microcontroller Unit). The control unit transmits instructions to the charging management unit via an I2C communication interface. The communication interface may also be other types of interfaces.

[0028] The charging management unit is a charging management chip, such as SY5501. The charging management unit is used to manage the charging process of the battery in the electronic device. Figure 1 As shown, the charging management unit is connected to the battery, and the charging management unit is connected through a channel between the Vsys pin and the VDD pin of the control unit to control the battery to supply power to the control unit.

[0029] according to Figure 2 As shown, the application program upgrade method of this embodiment includes the following steps S210 to S230.

[0030] In step S210, when the charging management unit receives a restart instruction sent by the terminal device through the charging interface, the charging management unit disconnects the channel through which the battery supplies power to the control unit.

[0031] The restart instruction is used to instruct to restart the control unit, that is, first control the battery to stop supplying power to the control unit, and then control the battery to supply power to the control unit.

[0032] according to Figure 1As shown, when the charging management unit receives a restart instruction sent by the terminal device through the charging interface, the charging management unit disconnects the channel between the Vsys pin and the VDD pin of the control unit, so that the battery no longer supplies power to the control unit before the electronic device is restarted.

[0033] In step S220, when the channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives the first channel switching instruction sent by the terminal device, the charging management unit switches the connection between the VIN pin and the VCC pin to the connection between the VIN pin and the TRX pin, and the TRX pin is connected to the TX pin and the RX pin of the control unit.

[0034] according to Figure 1 As shown, the channel between the VIN pin and the VCC pin of the charging management unit is the battery charging channel for the charging management unit. When the charging management unit does not receive the first channel switching instruction sent by the terminal device, the channel between the VIN pin and the VCC pin is in a conductive state. When the charging management unit receives the first channel switching instruction sent by the terminal device, the channel between the VIN pin and the VCC pin is disconnected, and the channel between the VIN pin and the TRX pin is connected. The TRX pins are connected to the TX pin and RX pin of the control unit, thus establishing a communication link between the control unit and the external terminal device.

[0035] The channel between the VIN pin and the VCC pin and the channel between the VIN pin and the TRX pin are mutually exclusive, so only one of the channels can be turned on.

[0036] It should be noted that the control unit sends register values to the charge management unit via the I2C communication interface, so that the charge management unit configures itself based on the register values. The register values include charging parameters, which include charging current. In this way, when a fault occurs, such as a power outage or static electricity, the charge management unit configures itself based on the obtained register values.

[0037] The control unit cannot control the charging management unit through the communication interface so that the charging management unit switches the conduction between the VIN pin and the VCC pin to the conduction between the VIN pin and the TRX pin.

[0038] In step S230, when the battery power supply channel for the control unit is turned on, the control unit receives application upgrade information through the channel between the VIN pin and the TRX pin when detecting that the VIN pin and the TRX pin are turned on, and uses the bootloader layer to perform an upgrade operation based on the application upgrade information.

[0039] The control unit has established a communication link with the external terminal device, so that the external terminal device can send application upgrade information to the control unit through the communication link.

[0040] The battery's power supply to the control unit is restored, confirming that the electronic device has completed powering on. Upon powering on, the electronic device first enters the bootloader layer and then uses it to perform an upgrade based on the application upgrade information. The bootloader layer stores the program that guides the application upgrade.

[0041] In some embodiments, the method further includes: upon receiving a second channel switching instruction from the terminal device, the charging management unit switches the connection between the VIN pin and the TRX pin to the connection between the VIN pin and the VCC pin. In this way, the channel between the TRX pin and the VIN pin in the charging management unit can be opened and closed by the external terminal device.

[0042] When the terminal device completes the transmission of application upgrade information through the channel between the VIN pin and the TRX pin and the channel between the TRX pin and the RX pin of the control unit, the charging management unit receives the second channel switching instruction sent by the terminal device, and Figure 1 As shown in FIG, the channel between the VIN pin and the TRX pin is disconnected, and the channel between the VIN pin and the VCC pin is connected.

[0043] In some embodiments, the method further includes: when the charging management unit is connected to an external charging power source via the charging interface, the charging management unit switches the connection between the VIN pin and the TRX pin to the connection between the VIN pin and the VCC pin. In this way, the channel between the TRX pin and the VIN pin in the charging management unit can be disconnected by the external charging power source without the involvement of other devices.

[0044] according to Figure 1 As shown, the VBUS pin of the electronic device's charging interface is connected to the VIN pin of the charging management unit, and the GND pin of the charging interface is connected to the GND pin of the charging management unit. When the VBUS pin and GND pin of the electronic device's charging interface are connected to an external charging power source, the charging management unit switches the connection between the VIN pin and the TRX pin to the connection between the VIN pin and the VCC pin.

[0045] In some embodiments, the charging interface of the charging management unit is connected to a proprietary protocol conversion device, which is connected to the terminal device. The proprietary protocol conversion device is used to convert the format of the instruction sent by the terminal device into a format recognizable by the charging management unit.

[0046] according to Figure 1As shown, the VBUS pin and the GND pin of the charging interface of the electronic device can be connected to a proprietary protocol conversion device.

[0047] Specifically, the terminal device sends the first channel switching instruction to a proprietary protocol conversion device. The proprietary protocol conversion device is configured to convert the format of the first channel switching instruction into a format recognizable by the charging management unit, and send the format-converted first channel switching instruction to the charging management unit, so that the charging management unit switches the conduction between the VIN pin and the VCC pin to the conduction between the VIN pin and the TRX pin.

[0048] The first channel switching instruction received by the proprietary protocol conversion device is a USB signal. The proprietary protocol conversion device is used to convert the USB signal corresponding to the first target instruction into a TTL signal, and then convert the TTL signal into a signal corresponding to a format recognizable by the charging management unit.

[0049] After the terminal device completes the transmission of the application upgrade information via the channel between the VIN pin and the TRX pin and the channel between the TRX pin and the RX pin of the control unit, it sends the second channel switching instruction to the proprietary protocol conversion device. The proprietary protocol conversion device is configured to convert the format of the second channel switching instruction into a format recognizable by the charging management unit and send the format-converted second channel switching instruction to the charging management unit, causing the charging management unit to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin.

[0050] The second channel switching instruction received by the proprietary protocol conversion device is a USB signal. The proprietary protocol conversion device is used to convert the USB signal corresponding to the second channel switching instruction into a TTL signal, and then convert the TTL signal into a signal corresponding to a format recognizable by the charging management unit.

[0051] The following describes the application upgrade method provided by the present disclosure using a specific embodiment. Figure 3 As shown, the electronic device includes a control unit, a charging management unit, and a battery. The charging interface of the charging management unit is externally connected to a proprietary protocol conversion device. The proprietary protocol conversion device is connected to the terminal device.

[0052] according to Figure 4 As shown, the application program upgrade method of this embodiment includes the following steps S401 to S410.

[0053] In step S401, the terminal device sends an electronic device restart instruction to a proprietary protocol conversion device.

[0054] In step S402 , the proprietary protocol conversion device converts the format of the restart instruction into a format recognizable by the charging management unit, and sends the restart instruction after format conversion to the charging management unit through the charging interface.

[0055] Step S403: When the charging management unit receives a restart instruction sent by the terminal device through the charging interface, the charging management unit disconnects the channel through which the battery supplies power to the control unit.

[0056] Step S404: When the channel through which the battery supplies power to the control unit is disconnected, the terminal device sends a first channel switching instruction to the proprietary protocol conversion device.

[0057] In step S405 , the proprietary protocol conversion device converts the format of the first channel switching instruction into a format recognizable by the charging management unit, and sends the format-converted first channel switching instruction to the charging management unit through the charging interface.

[0058] Step S406 , when the charging management unit receives the first channel switching instruction, the charging management unit switches the connection between the VIN pin and the VCC pin to the connection between the VIN pin and the TRX pin, and the TRX pin is connected to the TX pin and the RX pin of the control unit.

[0059] Step S407, when the channel through which the battery supplies power to the control unit is turned on, the control unit receives application upgrade information through the channel between the VIN pin and the TRX pin when detecting that the VIN pin and the TRX pin are turned on, and uses the bootloader layer to perform an upgrade operation based on the application upgrade information.

[0060] Step S408: The terminal device sends the second channel switching instruction to the proprietary protocol conversion device.

[0061] In step S409 , the proprietary protocol conversion device converts the format of the second channel switching instruction into a format recognizable by the charging management unit, and sends the format-converted second channel switching instruction to the charging management unit through the charging interface.

[0062] In step S410 , when the charging management unit receives the second channel switching instruction, the charging management unit switches the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin.

[0063] An embodiment of the present invention provides an electronic device, according to Figure 1 As shown, the electronic device includes a control unit, a charging management unit and a battery.

[0064] The charging management unit is used to disconnect the battery from supplying power to the control unit when a restart instruction is received from the terminal device through the charging interface.

[0065] The charging management unit is also used to switch the VIN pin and VCC pin from being turned on to the VIN pin and TRX pin being turned on when the channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives a first channel switching instruction sent by the terminal device. The TRX pins are both connected to the TX pin and RX pin of the control unit.

[0066] When the channel through which the battery supplies power to the control unit is turned on, the control unit is used to receive application upgrade information through the channel between the VIN pin and the TRX pin when it detects that the VIN pin and the TRX pin are turned on, and use the bootloader layer to perform an upgrade operation based on the application upgrade information.

[0067] In some embodiments, the charging interface of the charging management unit is connected to a proprietary protocol conversion device, which is connected to the terminal device. The proprietary protocol conversion device is used to convert the format of the instruction sent by the terminal device into a format recognizable by the charging management unit.

[0068] In some embodiments, the charging management unit is further configured to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin upon receiving a second channel switching instruction sent by the terminal device.

[0069] In some embodiments, the charging management unit is further configured to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin when an external charging power source is connected through the charging interface.

[0070] In some embodiments, the control unit sends the register value to the charging management unit through the communication interface, so that the charging management unit is configured based on the register value.

[0071] The electronic device can be Figure 5 The VBUS and GND pins of the charging interface of the smart ring can be connected to a proprietary protocol conversion device, or the VBUS and GND pins of the charging interface can be connected to a charging power source.

[0072] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0073] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0074] The embodiments of this specification may be systems, methods, and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer instructions for causing a processor to implement various aspects of the embodiments of this specification.

[0075] A computer-readable storage medium can be a tangible device that can retain and store computer instructions for use by a computer instruction execution device. A computer-readable storage medium can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punched card or raised-in-groove structure on which computer instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber-optic cable), or an electrical signal transmitted through an electrical wire.

[0076] The computer instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer instructions from the network and forwards the computer instructions to be stored in the computer-readable storage medium in each computing / processing device.

[0077] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architectures, functions and operations of the systems, methods and computer program products according to multiple embodiments of this specification. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of a computer instruction, and the module, program segment or part of a computer instruction contains one or more executable computer instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented using a dedicated hardware-based system that performs the specified function or action, or can be implemented using a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.

[0078] The embodiments of the present specification have been described above. The above description is illustrative and not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or improvements to existing technologies, or to enable others skilled in the art to understand the embodiments disclosed herein.

Claims

1. A method for upgrading an application, characterized in that: Applied to an electronic device, the electronic device includes a control unit, a charging management unit and a battery, and the method includes: When the charging management unit receives a restart instruction sent by the terminal device through the charging interface, the charging management unit disconnects the channel through which the battery supplies power to the control unit; When the channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives a first channel switching instruction sent by the terminal device, the charging management unit switches the conduction between the VIN pin and the VCC pin to the conduction between the VIN pin and the TRX pin, and the TRX pin is connected to the TX pin and the RX pin of the control unit; When the channel through which the battery supplies power to the control unit is turned on and the control unit detects that the VIN pin and the TRX pin are turned on, the control unit receives application upgrade information through the channel between the VIN pin and the TRX pin, and uses the bootloader layer to perform an upgrade operation based on the application upgrade information.

2. The method according to claim 1, characterized in that The charging interface of the charging management unit is externally connected to a private protocol conversion device, and the private protocol conversion device is connected to the terminal device, wherein the format of the instruction sent by the terminal device is converted by the private protocol conversion device into a format recognizable by the charging management unit.

3. The method according to claim 1, characterized in that The method further comprises: When the charging management unit receives the second channel switching instruction sent by the terminal device, the charging management unit switches the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin.

4. The method according to claim 1, wherein The method further comprises: When the charging management unit is connected to an external charging power source through a charging interface, the charging management unit switches the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin.

5. The method according to claim 2 or 4, characterized in that The VBUS pin of the charging interface of the electronic device is connected to the VIN pin of the charging management unit, and the GND pin of the charging interface is connected to the GND pin of the charging management unit, wherein, The VBUS pin and the GND pin of the charging interface are both connected to the proprietary protocol conversion device, or the VBUS pin and the GND pin of the charging interface are both connected to the charging power supply.

6. The method according to claim 1, characterized in that The method further comprises: The control unit sends the register value to the charging management unit through the communication interface, so that the charging management unit is configured based on the register value.

7. An electronic device, characterized in that: Including control unit, charge management unit and battery, The charging management unit is configured to disconnect the battery from supplying power to the control unit when a restart instruction is received from the terminal device through the charging interface; The charging management unit is further configured to, when the channel through which the battery supplies power to the control unit is disconnected and the charging management unit receives a first channel switching instruction sent by the terminal device, switch the conduction between the VIN pin and the VCC pin to conduction between the VIN pin and the TRX pin, and the TRX pins are both connected to the TX pin and the RX pin of the control unit; When the channel through which the battery supplies power to the control unit is turned on, the control unit is configured to receive application upgrade information through the channel between the VIN pin and the TRX pin upon detecting that the VIN pin and the TRX pin are turned on, and to perform an upgrade operation based on the application upgrade information using the bootloader layer.

8. The electronic device according to claim 7, wherein: The charging interface of the charging management unit is externally connected to a private protocol conversion device, and the private protocol conversion device is connected to the terminal device, wherein: The private protocol conversion device is used to convert the format of the instruction sent by the terminal device into a format recognizable by the charging management unit.

9. The electronic device according to claim 7, wherein: The charging management unit is further configured to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin upon receiving a second channel switching instruction sent by the terminal device.

10. The electronic device according to claim 7, wherein: The charging management unit is further configured to switch the conduction between the VIN pin and the TRX pin to the conduction between the VIN pin and the VCC pin when an external charging power source is connected via the charging interface.

Citation Information

Patent Citations

  • Single chip microcomputer serial port upgrading device and circuit thereof

    CN107562664A

  • Firmware upgrading control method and system for fast charging protocol and control terminal

    CN110457055A

  • Charging device

    CN113659663A

  • Log transmission method and continuous blood glucose monitoring equipment and system

    CN120072244A

  • System for managing safety and its to mehthod

    KR1020180036034A

Cited By

  • Log transmission method and continuous blood glucose monitoring equipment and system

    CN120072244A

  • Log transmission method, continuous glucose monitoring device, and system

    CN120072244B