System, method and smart door for cyclically upgrading a target device

By combining a controller, a controllable power supply, and a processing unit, the system automatically controls the power supply and data transmission of intelligent devices, solving the problem of cumbersome traditional upgrade and downgrade testing processes, improving testing efficiency, and simplifying the operation process.

CN115794159BActive Publication Date: 2026-05-12SHANGHAI CHUANGMI ZHIHUI IOT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SHANGHAI CHUANGMI ZHIHUI IOT TECH CO LTD
Filing Date
2022-11-22
Publication Date
2026-05-12

AI Technical Summary

Technical Problem

Traditional smart device upgrade and downgrade testing processes are cumbersome and inefficient, especially when multiple upgrade and downgrade operations require a lot of manual intervention and are highly complex.

Method used

The system, consisting of a controller, a controllable power supply, and a processing unit, automatically controls the power supply and data transmission of the target device to achieve cyclic upgrading and downgrading, simplifying the operation process.

Benefits of technology

It reduces manual operation steps, improves testing efficiency, simplifies the upgrade and downgrade process, and adapts to different data connection and power supply requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115794159B_ABST
    Figure CN115794159B_ABST
Patent Text Reader

Abstract

The application provides a system for cyclically upgrading and downgrading a target device, a method for cyclically upgrading and downgrading the target device, and an intelligent door. The system for cyclically upgrading and downgrading the target device comprises a controller, a controllable power supply and a processing unit. The controller communicates with the target device and is configured to control the target device. The controllable power supply is electrically connected to the target device and is configured to be connected or disconnected to start or stop supplying power to the target device. The processing unit is electrically connected to the target device and is configured to transmit data packets to the target device and controllably supply power to the target device. The embodiments of the application flexibly adjust the power supply and data transmission according to different data connection requirements and power supply requirements in the upgrading and downgrading process of the target device, greatly reduce the manual operation steps, simplify the upgrading and downgrading process, and improve the test efficiency of the target device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent device technology, and in particular to a system, method, and intelligent door for cyclically upgrading and downgrading target devices. Background Technology

[0002] To optimize application functionality, adapt to new hardware and software, and eliminate existing defects, smart devices require system updates and iterations. Users can directly upgrade the system via cloud or local databases. However, during development, to ensure system reliability and stability, multiple upgrade and downgrade operations are necessary to test the system and compatible hardware and software.

[0003] In traditional upgrade / downgrade testing, upgrades can be achieved by transmitting data packets to smart devices using conventional methods. However, downgrades require testers to manually power off the smart device, connect it to a computer or other device via a data cable, and then use downgrade software to transmit a downgrade firmware package from the computer to the smart device. After the firmware package is transmitted, the data connection is disconnected, and power is supplied to the smart device so it can automatically install the downgrade firmware package. This process involves multiple upgrades and downgrades, making it cumbersome and inefficient. For some smart devices, upgrading requires first downgrading the system according to the above steps, further increasing the complexity of the testing process.

[0004] The content of the background section is merely the technology known to the inventor and does not necessarily represent the prior art in this field. Summary of the Invention

[0005] To address one or more deficiencies in the prior art, embodiments of the present invention provide a system for cyclically upgrading and downgrading a target device, comprising:

[0006] A controller that communicates with the target device and is configured to control the target device;

[0007] A controllable power supply, electrically connected to the target device, and configured to be able to connect or disconnect to begin or stop supplying power to the target device; and

[0008] A processing unit, electrically connected to the target device and configured to transmit data packets to the target device and to controllably supply power to the target device.

[0009] According to one aspect of the invention, the controllable power supply communicates with the controller, and the controllable power supply is configured to be connected or disconnected under the control of the controller to start or stop supplying power to the target device.

[0010] According to one aspect of the invention, the processing unit is connected to the target device via a cable; the target device includes a control system, the cable includes a signal line and a power line, the processing unit is communicatively connected to the control system via the signal line, the processing unit is electrically connected to the control system via the power line, and a switch is connected in the power line, the switch being controllably turned on or off.

[0011] According to one aspect of the present invention, the controllable power supply is an incoming power line, or connected to an incoming power line, transmitting alternating current to the target device; when the controllable power supply begins to supply power to the target device, the control system and the hardware of the target device are powered on; the power line transmits direct current to the control system; when the power line begins to supply power to the control system, the control system is powered on.

[0012] According to one aspect of the invention, the system further includes a switch controller electrically connected to the switch and communicating with the processing unit / controller, thereby controlling the switch to be turned on or off under the control of the processing unit / controller; wherein the switch includes a relay, the switch controller includes a microcontroller or a Raspberry Pi, and the controller includes a mobile device.

[0013] According to one aspect of the invention, the target device further includes a programming unit configured to write a downgrade firmware package into the control system.

[0014] According to one aspect of the present invention, the target device is upgraded in the following manner:

[0015] Control the connection of the controllable power supply to supply power to the target device;

[0016] The switch is turned off.

[0017] The target device is upgraded via OTA (Over-the-Air Technology).

[0018] According to one aspect of the present invention, the target device is downgraded in the following manner:

[0019] The controllable power supply is disconnected.

[0020] The switch is turned on, and power is supplied to the control system through the processing unit;

[0021] The processing unit transmits the downgraded firmware package to the control system.

[0022] The switch is turned off.

[0023] The controllable power supply is turned on, and the target device installs the downgrade firmware package.

[0024] According to one aspect of the invention, the control system is configured to perform power-on initialization when powered by the processing unit; the programming unit is configured to receive a downgrade firmware package from the processing unit and send the downgrade firmware package to the control system when the power-on initialization of the control system is detected; the control system is further configured to install the downgrade firmware package when the hardware devices of the control system and the target device are powered by the controllable power supply; the processing unit is configured to disconnect the switch after the downgrade firmware package has been sent.

[0025] According to one aspect of the present invention, the present invention further includes a method for cyclically upgrading and downgrading a target device, comprising:

[0026] Connect the target device to the system as described above;

[0027] The controller detects whether the target device has an upgrade prompt.

[0028] When an upgrade prompt is detected, the target device is upgraded via OTA.

[0029] According to one aspect of the invention, the invention also includes a smart door, the smart door including a smart control device configured to be tested by the system as described above.

[0030] Compared with existing technologies, embodiments of the present invention provide a system applicable to the cyclic upgrading and downgrading of target devices. Addressing different data connection and power supply requirements during the upgrading and downgrading process, the system controls the power supply to and from the target device via a controllable power source. Simultaneously, the processing unit can independently and controllably transmit data and power to the target device. This allows for flexible adjustments based on the specific upgrading and downgrading requirements of the target device during testing, significantly reducing manual operation steps, simplifying the upgrading and downgrading process, and improving the testing efficiency of the target device. The present invention also includes a method for the cyclic upgrading and downgrading of target devices, using the aforementioned system to complete the upgrading and downgrading process. The present invention further includes a smart door, in which the intelligent control device can be tested using the aforementioned system. Attached Figure Description

[0031] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings:

[0032] Figure 1 This is a structural block diagram of a system for cyclically upgrading and downgrading a target device, according to one embodiment of the present invention.

[0033] Figure 2 This is a schematic diagram of the upgrade process of the target device in one embodiment of the present invention;

[0034] Figure 3 This is a schematic diagram of the downgrade process of the target device in one embodiment of the present invention;

[0035] Figure 4 This is a flowchart illustrating a method for cyclically upgrading and downgrading a target device in one embodiment of the present invention. Detailed Implementation

[0036] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of the invention. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.

[0037] In the description of this invention, it should be understood that the terms "center," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," and "counterclockwise," etc., indicating orientations or positional relationships, are based on the orientations or positional relationships shown in the accompanying drawings and are only for the convenience of describing the invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the invention. Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.

[0038] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection, an electrical connection, or a connection that allows for communication; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.

[0039] In this invention, unless otherwise explicitly specified and limited, "above" or "below" the second feature can include direct contact between the first and second features, or contact between the first and second features through another feature between them. Furthermore, "above," "over," and "on top" the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a higher horizontal level than the second feature. "Below," "below," and "under" the second feature includes the first feature directly above or diagonally above the second feature, or simply indicates that the first feature is at a lower horizontal level than the second feature.

[0040] The following disclosure provides many different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the invention. Furthermore, reference numerals and / or letters may be repeated in different examples; such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed. In addition, examples of various specific processes and materials are provided in this invention, but those skilled in the art will recognize the application of other processes and / or the use of other materials.

[0041] The preferred embodiments of the present invention will be described below with reference to the accompanying drawings. It should be understood that the preferred embodiments described herein are for illustration and explanation only and are not intended to limit the present invention.

[0042] Figure 1 The following illustrates the specific parts and connections of a system 100 for cyclically upgrading and downgrading a target device according to an embodiment of the present invention. Figure 1 Detailed description. For example... Figure 1 As shown, the system 100 includes a controller 110, a controllable power supply 120, and a processing unit 130, wherein the system 100 is capable of performing cyclic upgrades and downgrades on the target device 200.

[0043] When testing the hardware, software, or control system of target device 200, upgrade and downgrade operations need to be performed on the control system of target device 200. This testing process differs from the system upgrade process performed by the user. When upgrading target device 200, such as in everyday smart audio-visual devices or smart home devices, after the device manufacturer provides a stable upgrade data package, the user can input an upgrade command, and target device 200 receives and automatically installs the upgrade data package. Typically, downgrade functionality is not available to users, and therefore there are no simplified or convenient methods for the downgrade process. However, during the testing of target device 200, multiple upgrade and downgrade operations may be required. This process involves multiple steps, including data transmission and power outages. Currently, all of these steps must be completed manually, which is cumbersome and inefficient.

[0044] In this embodiment, the controller 110 communicates with and controls the target device 200. The controller 110 can establish communication with the target device 200 via a wired or wireless connection. For example, the controller 110 may be a mobile device with software installed to control the target device 200. Specifically, the controller 110 can be a device capable of installing the target device 200 control software, such as a test mobile phone or computer. Controlling the target device 200 includes at least upgrading and downgrading it. For example, the control software in the controller 110 has upgrade and downgrade buttons and can transmit corresponding upgrade and downgrade commands to the target device 200. Control commands can be transmitted via data cables or Bluetooth, etc., and this embodiment is not limited to these methods.

[0045] like Figure 1 As shown, the controllable power supply 120 in system 100 is electrically connected to the target device 200, and the controllable power supply 120 can be turned on or off to start or stop supplying power to the target device 200. For example, it is a power line with a control switch. When the control switch is on, the controllable power supply 120 can supply power to the target device 200; when the control switch is off, the controllable power supply 120 stops supplying power to the target device 200. Of course, in other embodiments of the present invention, the controllable power supply 120 can also be a power cord detachably connected to the target device 200, which can be manually connected or automatically disconnected by a tester or under the control of a control device such as controller 110. Specifically, the controllable power supply 120 is a socket connected to a power cord and has a switch, and the target device 200 is connected to the socket.

[0046] Furthermore, according to a preferred embodiment of the present invention, the on / off control of the controllable power supply 120 can be controlled by the controller 110. Specifically, the controllable power supply 120 can be a smart socket connected to the incoming power line. Remotely controlling the controllable power supply 120 through the controller 110 can reduce the process of manual operation. In different embodiments of the present invention, the controllable power supply 120 can also be controlled by other control devices, such as a remote control.

[0047] like Figure 1 As shown, in this embodiment, the processing unit 130 is electrically connected to the target device 200 and can transmit data packets to the target device 200. It can also controllably supply power to the target device 200. The data connection between the processing unit 130 and the target device 200 can be a data cable connection or a wireless connection. Preferably, the processing unit 130 supplies power to the target device 200 via a cable to ensure connection stability and prevent sudden power outages to the target device 200. The control method for the processing unit 130 to supply power to the target device 200 will be described in subsequent embodiments. In a specific embodiment of the present invention, the processing unit 130 is a computer that stores data packets for upgrading or downgrading the target device 200. It can be transmitted to the target device 200 via a data cable or supplied power to the target device 200 via a USB interface.

[0048] According to a preferred embodiment of the present invention, the processing unit 130 is connected to the target device 200 via a cable. The cable includes a signal line 141 and a power line 142. The target device 200 includes a control system, which controls the target device 200 to perform specific functions. Depending on the specific application of the target device 200, upgrade and downgrade data for the target device 200 are installed in the control system to change the current system version of the target device 200 and optimize or adapt to new functions. The processing unit 130 is communicatively connected to the control system via the signal line 141 in the cable. Simultaneously, the processing unit 130 is also electrically connected to the control system via the power line 142 in the cable. A switch 143 is connected to the power line 142, and the switch 143 can be controlled to connect or disconnect. According to a preferred embodiment of the present invention, the switch 143 can be controlled to connect or disconnect by the processing unit 130 or by the controller 110 to minimize manual operation.

[0049] In a preferred embodiment of the present invention, a switch controller 144 is further included. The switch controller 144 is electrically connected to the switch 143 and communicates with the processing unit 130 and / or the controller 110, thereby controlling the switch 143 to be turned on or off under the control of the processing unit 130 and / or the controller 110. Preferably, as Figure 1As shown, the switch controller 144 communicates with the processing unit 130 and can simultaneously supply power to the target device 200 via the processing unit 130. The processing unit 130 issues commands to control the on / off state of the switch 143. For example, in a specific embodiment of the present invention, the switch 143 is a relay, and the switch controller 144 can be a microcontroller or a Raspberry Pi. One end of the power line 142 is connected to the processing unit 130, and the other end is connected to the target device 200, or it can be combined with the data line 141 into a cable and connected to the control system in the target device 200. The relay and the microcontroller or Raspberry Pi are connected in the power line 142 to control the on / off state of the power line 142.

[0050] In a specific embodiment of the present invention, the processing unit 130 is a computer that stores upgrade or downgrade data for the target device 200. The data is transmitted to the target device 200 via a data line 141, which is, for example, a USB interface cable. By separating the portion used for power transmission, a data line 141 solely for data transmission can be obtained. The power line 142 can utilize the portion separated from the cable. By incorporating a switch 143 and a switch controller 144 into the power line 142, a data connection and a controllable electrical connection between the processing unit 130 and the target device 200 can be achieved.

[0051] According to a preferred embodiment of the present invention, the controllable power supply 120 is a household power line or connected to a household power line, transmitting AC power to the target device 200, such as common household 220V AC power or industrial 380V AC power. When power is supplied to the target device 200 through the controllable power supply 120, the control system and hardware devices in the target device 200 are powered on. Preferably, under normal use, the target device 200 can be powered by the controllable power supply 120 to supply power to its control system and hardware devices, ensuring that the target device 200 can operate normally. Specifically, the target device 200 may include an AC-DC converter to convert the received high-voltage AC power into low-voltage DC power to power the control system and hardware devices in the target device 200.

[0052] When power is supplied to the target device 200 via power line 142, power line 142 transmits DC power to the control system. For example, if power line 142 is connected to processing unit 130 (which is a computer), it can transmit 5V DC power to the target device 200 via power line 142. Powering the target device 200 via processing unit 130 is only used for upgrading or downgrading the target device 200. It has no impact on the hardware devices in the target device 200 used to implement specific functions, nor does it require starting the hardware devices. Furthermore, considering the limited power supply capacity of processing unit 130 (e.g., powered by a computer's USB interface; the standard output voltage of a home or commercial computer's USB interface is 5V, and the output current is typically no more than 0.5A), in this embodiment, when power is supplied to the control system of the target device 200 via power line 142, only the control system is powered on; the other hardware devices in the target device 200 are unaffected.

[0053] According to a preferred embodiment of the present invention, the target device 200 further includes a programming unit, which is used to write a downgrade firmware package of the target device 200 into the control system. Upon receiving a downgrade command, the processing unit 130 transmits the downgrade firmware package to the target device 200, and the programming unit writes it. The specific upgrade and downgrade processes of the target device 200 are combined. Figure 2 and Figure 3 Detailed explanation.

[0054] Figure 2 The specific process for upgrading the target device 200 according to a preferred embodiment of the present invention is shown.

[0055] like Figure 2 As shown, during the upgrade process of target device 200, in step S101, it is checked whether target device 200 has an upgrade prompt. Similarly, the user's upgrade process for target device 200 also requires checking whether the target device has an upgrade prompt. During the testing process, the upgrade prompt also needs to be checked. If no upgrade prompt is detected, it may be because upgrade data has not been uploaded, or the corresponding upgrade prompt is incorrect, requiring a step-by-step investigation. The upgrade prompt is preferably displayed in controller 110. Furthermore, the upgrade content and historical versions can be viewed through controller 110.

[0056] When an upgrade prompt is detected, in step S102, an upgrade command is sent to the target device 200. Specifically, the upgrade command can be sent to the target device 200 through the controller 110. Of course, in some embodiments of the present invention, the target device 200 can be automatically controlled to upgrade after an upgrade prompt is detected, without the need for manual input of the upgrade command, thus simplifying the process.

[0057] When upgrading the target device 200, other components in the system 100 are also required to cooperate. In step S103, the controllable power supply 120 is connected to supply power to the target device 200. In this embodiment, the controllable power supply 120 can be controlled to switch on and off by the controller 110. Specifically, after the controller 110 sends an upgrade command to the target device 200, it also sends a connection command to the controllable power supply 120. In step S104, the switch 143 on the power line 142 is disconnected, meaning that power is supplied to the target device 200 only through the controllable power supply 120. The switch 143 and the switch controller 144 can be controlled by the controller 110 or the processing unit 130. For example, when the controller 110 issues an upgrade command, the processing unit 130 controls the switch 143 to disconnect through the switch controller 144. Steps S103 and S104 can be performed simultaneously or in any order, and there is no restriction in this embodiment.

[0058] In step S105, upgrade data is transmitted to the target device 200 via OTA. To ensure ease of operation for users upgrading the target device 200, the upgrade data can be transmitted to the target device 200 through a cloud database. That is, the target device 200 provides an over-the-air (OTA) interface for receiving upgrade data. This simplifies the upgrade process during testing. Alternatively, in other embodiments of the invention, upgrade data can be transmitted via a wired connection. For example, the upgrade data can be stored in the processing unit 130, and the controller 110 is signal-connected to the processing unit 130. After an upgrade command is issued, the processing unit 130 is controlled to transmit the upgrade data to the target device 200 via data line 141. Simultaneously, the power line 142 and data line 141 are independently controlled, and the switch 143 on the power line 142 is off, avoiding conflict with step S104. In step S106, once the target device 200 receives the upgrade data, it can automatically install the upgrade data, completing the upgrade process.

[0059] Figure 3 The specific process for downgrading a target device 200 according to a preferred embodiment of the present invention is shown.

[0060] like Figure 3 As shown, in step S201, a downgrade command is issued. For system security reasons, downgrade operations on the user side are disabled for the target device 200 through software or hardware settings, prohibiting downgrade operations during normal user use. However, during the detection process, a downgrade operation is required for the target device 200. Therefore, in this embodiment, when a downgrade operation is needed, a downgrade command is issued through the controller 110 to control the target device 200 to perform the downgrade operation.

[0061] In step S202, the controllable power supply 120 is disconnected. During the downgrade process, the control system in the target device 200 is initialized. To avoid interference from other hardware devices in the target device 200, in this embodiment, the controllable power supply 120 is disconnected, and the target device is powered off. In step S203, the switch 143 on the control power line 142 is connected, and power is supplied to the control system in the target device 200 through the processing unit 130, so that the control system can maintain its basic function of receiving downgrade firmware packages.

[0062] The downgrade firmware package used for the downgrade operation is stored in the processing unit 130. In step S204, the downgrade firmware package is transmitted to the target device 200 through the processing unit 130. The downgrade firmware package can be transmitted via wired transmission or wireless transmission. Preferably, the downgrade firmware package is transmitted via the data cable 141, which can ensure transmission efficiency and stability, and can also combine the data cable 141 and the power cable 142 through the cable, reducing the complexity of the functional interface structure in the processing unit 130 and the target device 200.

[0063] After the downgrade firmware package is transmitted, the control system in the target device 200 can automatically install the downgrade firmware package. According to a preferred embodiment of the present invention, in step S205, the switch 143 on the control power line 142 is turned off, stopping the power supply to the target device 200 from the processing unit 130. In step S206, the controllable power supply 120 is turned on to supply power to the target device 200, so as to ensure that the control system and other hardware devices in the target device 200 can work normally. In step S207, the downgrade firmware package is installed, and the target device 200 is powered normally. The hardware devices therein are compatible with the downgraded system and can be used directly and normally, providing conditions for subsequent testing or cyclic upgrade processes.

[0064] Furthermore, according to a preferred embodiment of the present invention, the control system in the target device 200 is configured to perform power-on initialization when powered by the processing unit 130, simplifying the judgment process. That is, when the controllable switch 120 is open and the switch 143 is closed, the control system in the target device 200 automatically performs power-on initialization. During the downgrade operation, the target device 200 is powered only by the processing unit 130. After the control system is powered on, it performs power-on initialization, providing a basis for installing the downgrade firmware package. Preferably, the programming unit in the target device 200 is configured to monitor the power-on initialization of the control system. Specifically, the processing unit 130 adjusts the programming unit to download mode, enabling the programming unit to receive the downgrade firmware package and issue a command to the programming unit to monitor whether the control system is performing power-on initialization. When the programming unit detects that the control system is performing power-on initialization, it downloads the downgrade firmware package, which is received by the processing unit 130 and can be written into the control system.

[0065] According to a preferred embodiment of the present invention, the control system in the target device 200 can also be configured to monitor the power source. When the control system and hardware devices in the target device 200 are powered by the controllable power supply 120 again, the control system installs the received downgrade firmware package.

[0066] This invention also includes an embodiment of a method for cyclically upgrading and downgrading a target device, such as... Figure 4 As shown, in step S301, the target device is connected to the aforementioned system for cyclically upgrading and downgrading the target. Different data transmission methods can be selected and adjusted for different target devices. In step S302, an upgrade or downgrade command is issued. In this embodiment, for the target device testing process, the tester issues the upgrade or downgrade command through the controller according to specific testing requirements. In step S303, the target device cooperates with the aforementioned system to perform the upgrade or downgrade operation. The specific steps are basically the same as in the above embodiment and will not be repeated.

[0067] The present invention also includes an embodiment of a smart door, wherein the smart door includes a smart control device. Specifically, it may be a smart control device that integrates smart door lock control and image and audio signal acquisition and processing. The smart control device in this embodiment can be tested through the aforementioned system for cyclically upgrading and downgrading the target device. When testing, the smart control device can be connected to the above system as the target device.

[0068] Finally, it should be noted that the above descriptions are merely preferred embodiments of the present invention and are not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.

Claims

1. A system for cyclically upgrading and downgrading a target device, comprising: A controller that communicates with the target device and is configured to control the target device; A controllable power supply, which is electrically connected to the target device and configured to be able to connect or disconnect to start or stop supplying power to the target device; and A processing unit, electrically connected to the target device and configured to transmit data packets to the target device and to controllably supply power to the target device; The target device is powered by the controllable power supply during normal use; when the target device is upgraded or downgraded, the processing unit supplies power to the target device. The controllable power supply communicates with the controller, and the controllable power supply is configured to be connected or disconnected under the control of the controller to start or stop supplying power to the target device. The processing unit is connected to the target device via a cable; the target device includes a control system, the cable includes a power cord, the processing unit and the control system are electrically connected via the power cord, a switch is connected in the power cord, the switch can be turned on or off in a controlled manner; the switch is controlled to be turned on or off by the processing unit or the controller. The system upgrades the target device in the following ways: Control the connection of the controllable power supply to supply power to the target device; The switch is turned off. The target device is upgraded via OTA. The system downgrades the target device in the following ways: The controllable power supply is disconnected. The switch is turned on, and power is supplied to the control system through the processing unit; The processing unit transmits the downgraded firmware package to the control system. The switch is turned off. The controllable power supply is turned on, and the target device installs the downgrade firmware package.

2. The system according to claim 1, wherein the cable includes a signal line, and the processing unit and the control system are communicatively connected via the signal line.

3. In the system according to claim 2, the controllable power supply is an incoming power line, or is connected to an incoming power line, to transmit AC power to the target device; when the controllable power supply starts to supply power to the target device, the control system and the hardware of the target device are powered on; the power line transmits DC power to the control system; when the power line starts to supply power to the control system, the control system is powered on.

4. The system according to claim 2 further includes a switch controller, the switch controller being electrically connected to the switch and communicating with the processing unit / controller, thereby controlling the switch to be turned on or off under the control of the processing unit / controller; wherein the switch includes a relay, the switch controller includes a microcontroller or a Raspberry Pi, and the controller includes a mobile device.

5. The system according to claim 3 or 4, wherein the target device further includes a programming unit configured to write a downgrade firmware package to the control system.

6. The system according to claim 5, wherein the control system is configured to perform power-on initialization when powered by the processing unit; the programming unit is configured to receive a downgrade firmware package from the processing unit and send the downgrade firmware package to the control system when the power-on initialization of the control system is detected; the control system is further configured to install the downgrade firmware package when the hardware devices of the control system and the target device are powered by the controllable power supply; and the processing unit is configured to disconnect the switch after the downgrade firmware package has been sent.

7. A method for cyclically upgrading and downgrading a target device, comprising: Connect the target device to the system as described in any one of claims 1-6; The controller detects whether the target device has an upgrade prompt. When an upgrade prompt is detected, the target device is upgraded via OTA.

8. A smart door, comprising a smart control device configured to be tested by a system as described in any one of claims 1-6.