Control system, firmware upgrading method, refrigerator, storage medium and program product
By using the first controller and the second controller in the control system to perform firmware upgrades through the SWD interface and the UART interface, respectively, the problems of low firmware upgrade efficiency and high system design cost in the prior art are solved, efficient firmware upgrades are achieved and FLASH space is saved.
Patent Information
- Application Number
- CN202510322969.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-18
- Publication Date
- 2025-06-27
AI Technical Summary
The prior art is inefficient and requires the development of bootloader programs during the firmware upgrade process of equipment, which increases the system design cost and FLASH space usage.
By introducing the first controller and the second controller into the control system, and performing firmware upgrade control through the SWD interface and the UART interface respectively, the need to develop additional bootloader programs is avoided and the firmware upgrade efficiency is improved.
It realizes improving firmware upgrade efficiency without affecting the normal control of the controller and saving the FLASH space of the controller.
Smart Images

Figure CN120215984A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of electronic information technology, and particularly to a control system, a method for upgrading firmware, a refrigerator, a storage medium, and a program product. Background Art
[0002] In the related art, device upgrade requires dividing the program into two parts, one is the bootloader, and the other is the App (Application). The App is the task program that actually processes tasks. The task of the bootloader is to load and boot the App, or to load and boot the upgrade program, and then the device is upgraded. When the device is powered on, the bootloader is executed first. The bootloader determines whether the upgrade condition is met, and then performs the operation of upgrading or loading the App. Summary of the Invention
[0003] To overcome the problems existing in the related art, the present disclosure provides a control system, a method for upgrading firmware, a refrigerator, a storage medium, and a program product.
[0004] According to a first aspect of an embodiment of the present disclosure, a control system is provided. The control system includes: a first controller, a second controller, and a communication module; the first controller is connected to the Internet of Things system through the communication module, and the first controller and the second controller are respectively connected through an SWD (Serial Wire Debug) interface and a UART (Universal Asynchronous Receiver-Transmitter) interface; The first controller is configured to receive, through the communication module, upgrade control information corresponding to the second controller sent by the Internet of Things system, and control, according to the upgrade control information, the second controller to perform firmware upgrade through the SWD interface; and transmit specified control information to the second controller through the UART interface, where the specified control information is other control information except the upgrade control information.
[0005] Optionally, the first controller is further configured to transmit a mode switching instruction to the second controller through the UART interface, where the mode switching instruction is used to instruct the second controller to switch the interface mode to the SWD mode.
[0006] Optionally, the first controller is configured to generate programming control information according to the upgrade control information, and send the programming control information to the second controller through the SWD interface, where the programming control information includes a programming instruction and firmware data; The second controller is configured to receive the programming instruction and the firmware data through the SWD interface, and program the firmware data into the FLASH of the second controller according to the programming instruction.
[0007] Optionally, the first controller is further configured to send a restart instruction to the second controller through the SWD interface when receiving the feedback information sent by the second controller, where the feedback information indicates that the FLASH (Flash Memory) of the second controller has been programmed successfully. The second controller is further configured to receive the restart instruction through the SWD interface and restart the second controller according to the restart instruction.
[0008] Optionally, the first controller is further configured to: obtain the firmware status information of the second controller, and when the firmware status information indicates that the firmware program in the second controller is abnormal, send the firmware status information to the Internet of Things system through the communication module, so that the Internet of Things system generates the upgrade control information and sends the upgrade control information to the control system.
[0009] According to a second aspect of the embodiments of the present disclosure, there is provided a method for upgrading firmware, which is applied to a control system. The control system includes: a first controller, a second controller, and a communication module; the first controller is connected to the communication module, and the first controller is connected to the second controller through an SWD interface and a UART interface respectively; the method includes: Receiving the control information sent by the Internet of Things system through the communication module; When the control information is the upgrade control information corresponding to the second controller, controlling the second controller to perform firmware upgrade through the SWD interface according to the upgrade control information; When the control information is specified control information, controlling the second controller through the UART interface according to the specified control information, where the specified control information is other control information except the upgrade control information.
[0010] Optionally, the controlling the second controller to perform firmware upgrade through the SWD interface according to the upgrade control information includes: Generating programming control information according to the upgrade control information, where the programming control information includes a programming instruction and firmware data; Sending the programming instruction and the firmware data to the second controller through the SWD interface, so that the second controller programs the firmware data into the FLASH of the second controller according to the programming instruction.
[0011] Optionally, the method further includes: obtaining firmware status information of the second controller; When the firmware status information indicates that the firmware program in the second controller is abnormal, sending the firmware status information to the IoT system through the communication module, so that the IoT system generates the upgrade control information and sends the upgrade control information to the control system.
[0012] According to a third aspect of the embodiments of the present disclosure, there is provided a refrigerator, which includes the control system according to the first aspect of the embodiments of the present disclosure.
[0013] According to a fourth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the method according to the second aspect of the embodiments of the present disclosure are implemented.
[0014] According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer program product, including a computer program, and when the computer program is executed by a processor, the steps of the method according to the second aspect of the present disclosure are implemented.
[0015] The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: The control system in the present disclosure includes a first controller, a second controller, and a communication module. The first controller is connected to the IoT system through the communication module, and the first controller and the second controller are respectively connected through an SWD interface and a UART interface. The first controller can receive the upgrade control information corresponding to the second controller sent by the IoT system through the communication module, and control the second controller to perform firmware upgrade through the SWD interface according to the upgrade control information. The first controller can also transmit specified control information to the second controller through the UART interface, where the specified control information is other control information except the upgrade control information. In the present disclosure, the first controller can perform firmware upgrade control and other control on the second controller through the SWD interface and the UART interface respectively. The firmware upgrade through the SWD interface is more efficient and does not require additional development of a bootloader program. Therefore, the present disclosure can improve the firmware upgrade efficiency and save the FLASH space of the controller without affecting the normal control between the first controller and the second controller.
[0016] It should be understood that the above general description and the following detailed description are only exemplary and explanatory, and cannot limit the present disclosure. Description of the Drawings
[0017] The accompanying drawings here are incorporated into the specification and form a part of this specification, showing embodiments consistent with the present disclosure, and are used together with the specification to explain the principles of the present disclosure.
[0018] Figure 1 It is an electrical control system architecture diagram of a refrigerator.
[0019] Figure 2 It is a block diagram of a control system shown according to an exemplary embodiment.
[0020] Figure 3 It is a schematic structural diagram of a control system shown according to an exemplary embodiment.
[0021] Figure 4 It is a flowchart of a firmware upgrade method shown according to an exemplary embodiment.
[0022] Figure 5 It is a flowchart of another firmware upgrade method shown according to an exemplary embodiment.
[0023] Figure 6 It is a flowchart of another firmware upgrade method shown according to an exemplary embodiment.
[0024] Figure 7 It is an interactive schematic diagram of firmware upgrade shown according to an exemplary embodiment.
[0025] Figure 8 It is a block diagram of a refrigerator shown according to an exemplary embodiment.
[0026] Figure 9 It is a block diagram of an electronic device shown according to an exemplary embodiment.
[0027] Description of Reference Numerals Control system - 100; First controller - 101; Second controller - 102; Communication module - 103; SWD interface - 104; UART interface - 105; Refrigerator - 300. Detailed Description of the Embodiments
[0028] Here, the exemplary embodiments will be described in detail, and the examples are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numerals in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. On the contrary, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0029] Before introducing a control system, a firmware upgrade method, a refrigerator, a storage medium, and a program product shown in the embodiments of the present disclosure, the application scenarios related to the embodiments of the present disclosure will be introduced first.
[0030] OTA (Over-the-Air Technology) is a rigid requirement for Internet of Things devices. In the past, devices could not be connected to the network, so the demand for firmware upgrades was small. Now, almost all Internet of Things devices can be connected to the network, meeting the conditions for upgrading through the network, and the OTA component is a hard indicator for Internet of Things devices. With the booming development of Internet of Things technology, smart home systems are closely integrated with the Internet and the Internet of Things, bringing unprecedented convenience and intelligent experiences to users.
[0031] As Figure 1 shown, taking a refrigerator as an example, the client can control the refrigerator through the OTA service platform. The current electronic control system of the refrigerator includes a main control MCU (Microcontroller Unit) and other MCUs. Other MCUs can include, for example, a display MCU, an ice-making MCU, and a variable temperature control MCU. The main control MCU upgrades the software version of the variable frequency MCU in the electronic control system through UART communication. Since most refrigerator electronic control systems operate in the XIP (Execute In Place) mode, all MCUs need to switch to the BOOT area (boot sector) during the upgrade to implement the upgrade of the APP software. The upgrade process of the electronic control system control board needs to be completed through UART communication, with relatively low communication efficiency. Moreover, a bootloader program needs to be developed for the electronic control system control board, which has certain requirements for the FLASH size of the MCU selection, increasing the system design cost.
[0032] In the control system shown in the embodiments of the present disclosure, the first controller can respectively perform firmware upgrade control and other control on the second controller through the SWD interface and the UART interface. The firmware upgrade through the SWD interface is more efficient and does not require additional development of a bootloader program. Therefore, the present disclosure can improve the firmware upgrade efficiency and save the FLASH space of the controller without affecting the normal control between the first controller and the second controller.
[0033] The control system in the embodiments of the present disclosure can be any smart home device, such as a refrigerator, a floor cleaning robot, an air purifier, an air conditioner, a lighting lamp, a speaker, a robot, etc. It can also be the control system in any terminal, where the terminal can be a mobile terminal such as a smart phone, a tablet computer, a smart TV, a smart watch, a PDA (Personal Digital Assistant), a portable computer, etc. The device or terminal can be connected to any Internet of Things system such as NB-IOT (Narrow Band Internet of Things), eMTC (enhanced Machine-Type Communication), or mMTC (massive Machine-Type Communication), and the present disclosure does not limit this.
[0034] Figure 2 is a block diagram of a control system shown according to an exemplary embodiment, as Figure 2 shown, the control system 100 includes: a first controller 101, a second controller 102, and a communication module 103. The first controller 101 is connected to the Internet of Things system through the communication module 103, and the first controller 101 and the second controller 102 are respectively connected through an SWD interface 104 and a UART interface 105.
[0035] Exemplarily, the first controller 101 can be understood as the main controller of the control system 100, and the second controller 102 can include one or more. That is to say, the first controller 101 can control multiple second controllers 102. In the case where the second controller 102 includes multiple ones, the first controller 101 and each second controller 102 can be respectively connected through an SWD interface 104 and a UART interface 105. The communication module 103 can be a Wi-Fi component, a Bluetooth component, a ZigBee component, a cellular network component, etc.
[0036] As Figure 3 shown, taking the control system 100 of a refrigerator as an example of the control system 100, the first controller 101 can be a main control board, and the second controller 102 can include a display control board, a variable frequency control board, and an ice making control board. The main control board can be respectively connected to the display control board, the variable frequency control board, and the ice making control board through an SWD interface 104 and a UART interface 105.
[0037] The first controller 101 is configured to receive the upgrade control information corresponding to the second controller 102 sent by the Internet of Things system through the communication module 103, and control the second controller 102 to perform firmware upgrade through the SWD interface 104 according to the upgrade control information. In addition, the first controller 101 transmits specified control information to the second controller 102 through the UART interface 105.
[0038] In some embodiments, the user can trigger the upgrade process of the control system 100 on the client side and send the upgrade control information to the first controller 101 through the Internet of Things system. Among them, the upgrade control information may include an upgrade instruction and firmware data, and the upgrade instruction may include version information of the firmware, device information, upgrade package information, upgrade policy information, security information, etc. After receiving the upgrade control information, the first controller 101 can receive the upgrade control information through the communication module 103, and control the second controller 102 to burn the firmware data into the FLASH through the SWD interface 104 to complete the firmware upgrade of the second controller 102. In this way, controlling the second controller 102 to perform firmware upgrade through the SWD interface 104 can improve the firmware upgrade efficiency and does not require additional development of a bootloader program, saving the FLASH space of the second controller 102.
[0039] In other embodiments, the user can trigger a control instruction for the control system 100 on the client side and send the control instruction to the first controller 101 through the Internet of Things system. The user can also send a control instruction to the first controller 101 through the display of the device where the control system 100 is located. The present disclosure does not make specific limitations in this regard. The first controller 101 can generate specified control information according to the received control instruction and send the specified control information to the second controller 102 through the UART interface 105, so that the second controller 102 controls the device according to the specified control information. Among them, the specified control information may be other control information except the upgrade control information, such as temperature control information, display control information, frequency conversion control information, etc.
[0040] In summary, in the present disclosure, the first controller can perform firmware upgrade control and other controls on the second controller through the SWD interface and the UART interface respectively. The firmware upgrade through the SWD interface is more efficient and does not require additional development of a bootloader program. Therefore, the present disclosure can improve the firmware upgrade efficiency and save the FLASH space of the controller without affecting the normal control between the first controller and the second controller.
[0041] In some other embodiments, the first controller 101 is further configured to transmit a mode switching instruction to the second controller 102 through the UART interface 105, where the mode switching instruction is used to instruct the second controller 102 to switch the interface mode to the SWD mode.
[0042] Exemplarily, after receiving the upgrade control information sent by the Internet of Things system, the first controller 101 may transmit a mode switching instruction to the second controller 102 through the UART interface 105. After receiving the switching instruction, the second controller 102 may switch the interface mode to the SWD mode. In this way, during the firmware upgrade process, the first controller 101 and the second controller 102 can communicate through the SWD interface 104, thereby improving the firmware upgrade efficiency.
[0043] In some other embodiments, the first controller 101 is configured to generate programming control information according to the upgrade control information, and send the programming control information to the second controller 102 through the SWD interface 104, where the programming control information includes a programming instruction and firmware data.
[0044] The second controller 102 is configured to receive the programming instruction and the firmware data through the SWD interface 104, and program the firmware data into the FLASH of the second controller 102 according to the programming instruction.
[0045] Exemplarily, after receiving the upgrade control information, the first controller 101 may generate a programming instruction according to the upgrade control information, and use the programming instruction and the firmware data in the upgrade control information as the programming control information to send to the second controller 102. The programming instruction may include a command code, address information, data length, check information, operation mode, firmware version information, etc.
[0046] In a possible implementation manner, the first controller 101 may first send a programming instruction to the second controller 102 through the SWD interface 104. After receiving the programming instruction, the second controller 102 may erase a specified area in the FLASH and switch to the write mode to prepare for receiving the firmware data and performing the firmware upgrade preparation work. Then the second controller 102 may send the firmware data to the second controller 102 in blocks through the SWD interface 104. After receiving the firmware data, the second controller 102 may write the firmware data into the FLASH according to the storage address and data format indicated by the programming instruction.
[0047] In some other embodiments, after the programming is completed, the second controller 102 can send feedback information to the first controller 101 through the SWD interface 104. The feedback information indicates that the FLASH programming of the second controller 102 is completed. After receiving the feedback information, the first controller 101 can determine that the programming of the second controller 102 is completed, and can send a restart instruction (reset instruction) to the second controller 102 through the SWD interface 104. The second controller 102 can receive the restart instruction through the SWD interface 104 and restart the second controller 102 according to the restart instruction. The default mode after the second controller 102 is restarted can be the UART mode, so that normal communication can be carried out between the first controller 101 and the second controller 102 through the UART interface 105.
[0048] In some other embodiments, the first controller 101 is further configured to: obtain the firmware status information of the second controller 102, and when the firmware status information indicates that an exception occurs in the firmware program in the second controller 102, send the firmware status information to the Internet of Things system through the communication module 103, so that the Internet of Things system generates upgrade control information and sends the upgrade control information to the control system 100.
[0049] Exemplarily, the first controller 101 can monitor the firmware status of the second controller 102 and send the firmware status information of the second controller 102 to the Internet of Things system through the communication module 103. Among them, the firmware status information can be used to indicate whether an exception occurs in the firmware program in the second controller 102. The firmware status information can include, for example, the running log and error code during the firmware operation. If the firmware status information obtained by the first controller 101 indicates that an exception occurs in the firmware program in the second controller 102, it means that the second controller 102 needs to be upgraded. Then, the firmware status information can be sent to the Internet of Things system, and the Internet of Things can generate an upgrade instruction and send the upgrade instruction and firmware data to the first controller 101, so that the first controller 101 controls the second controller 102 to be upgraded. In this way, when an exception occurs in the firmware program of the second controller 102, the Internet of Things system can quickly initiate the firmware upgrade process to upgrade the firmware program of the second controller 102, avoiding the control system 100 from having a running failure and affecting the normal operation of the device.
[0050] Figure 4 is a flowchart of a method for upgrading firmware shown according to an exemplary embodiment, as Figure 4 shown, applied to a control system, the control system includes: a first controller, a second controller, and a communication module. The first controller is connected to the communication module, and the first controller and the second controller are respectively connected through an SWD interface and a UART interface. The method may include: In step S201, control information sent by the IoT system through the communication module is received.
[0051] In step S202, when the control information is the upgrade control information corresponding to the second controller, the second controller is controlled to perform firmware upgrade through the SWD interface according to the upgrade control information.
[0052] In step S203, when the control information is specified control information, the second controller is controlled through the UART interface according to the specified control information, where the specified control information is other control information except the upgrade control information.
[0053] In some embodiments, the user can trigger the upgrade process of the control system on the client side and send the upgrade control information to the first controller through the IoT system. Among them, the upgrade control information may include an upgrade instruction and firmware data, and the upgrade instruction may include version information of the firmware, device information, upgrade package information, upgrade strategy information, security information, etc. After receiving the upgrade control information, the first controller can receive the upgrade control information through the communication module and control the second controller to burn the firmware data into the FLASH through the SWD interface to complete the firmware upgrade of the second controller. In this way, controlling the second controller to perform firmware upgrade through the SWD interface can improve the upgrade efficiency of the firmware and does not require additional development of a bootloader program, saving the FLASH space of the second controller.
[0054] In other embodiments, the user can trigger a control instruction for the control system on the client side and send the control instruction to the first controller through the IoT system. The user can also send a control instruction to the first controller through the display of the device where the control system is located. The present disclosure does not make specific limitations in this regard. The first controller can generate specified control information according to the received control instruction and send the specified control information to the second controller through the UART interface so that the second controller controls the device according to the specified control information. Among them, the specified control information may be other control information except the upgrade control information, such as temperature control information, display control information, frequency conversion control information, etc.
[0055] In summary, in the present disclosure, the first controller can respectively perform firmware upgrade control and other control on the second controller through the SWD interface and the UART interface. The firmware upgrade through the SWD interface is more efficient and does not require additional development of a bootloader program. Therefore, the present disclosure can improve the firmware upgrade efficiency and save the FLASH space of the controller without affecting other controls between the first controller and the second controller.
[0056] In some other embodiments, after receiving the upgrade control information sent by the Internet of Things system, the first controller may transmit a mode switching instruction to the second controller through the UART interface. After receiving the switching instruction, the second controller may switch the interface mode to the SWD mode. In this way, during the firmware upgrade process, the first controller and the second controller can communicate through the SWD interface, thereby improving the firmware upgrade efficiency.
[0057] Figure 5 is a flowchart of another firmware upgrade method shown according to an exemplary embodiment, as Figure 5 shown, step S103 can be implemented in the following manner: In step S1031, programming control information is generated according to the upgrade control information, and the programming control information includes a programming instruction and firmware data.
[0058] In step S1032, the programming instruction and the firmware data are sent to the second controller through the SWD interface, so that the second controller programs the firmware data into the FLASH of the second controller according to the programming instruction.
[0059] Exemplarily, after receiving the upgrade control information, the first controller may generate a programming instruction according to the upgrade control information, and use the programming instruction and the firmware data in the upgrade control information as the programming control information to send to the second controller. Among them, the programming instruction may include a command code, address information, data length, check information, operation mode, firmware version information, etc.
[0060] In a possible implementation manner, the first controller may first send a programming instruction to the second controller through the SWD interface. After receiving the programming instruction, the second controller may erase a specified area in the FLASH and switch to the write mode to prepare for receiving the firmware data and performing the firmware upgrade preparation work. Then the second controller may send the firmware data to the second controller in blocks through the SWD interface. After receiving the firmware data, the second controller may write the firmware data into the FLASH according to the storage address and data format indicated by the programming instruction.
[0061] Figure 6 is a flowchart of another firmware upgrade method shown according to an exemplary embodiment, as Figure 6 shown, the method further includes: In step S204, the firmware status information of the second controller is obtained.
[0062] In step S205, when the firmware status information indicates that the firmware program in the second controller is abnormal, the firmware status information is sent to the Internet of Things system through the communication module, so that the Internet of Things system generates upgrade control information and sends the upgrade control information to the control system.
[0063] Exemplarily, the first controller can monitor the firmware status of the second controller and send the firmware status information of the second controller to the Internet of Things system through the communication module. Among them, the firmware status information can be used to characterize whether there is an abnormality in the firmware program in the second controller. The firmware status information can include, for example, the running log and error code during the operation of the firmware. If the firmware status information obtained by the first controller indicates that there is an abnormality in the firmware program in the second controller, it means that the second controller needs to be firmware-updated. Then, the firmware status information can be sent to the Internet of Things system. The Internet of Things can generate an upgrade instruction and send the upgrade instruction and firmware data to the first controller, so that the first controller controls the second controller to upgrade. In this way, when there is an abnormality in the firmware program of the second controller, the Internet of Things system can quickly initiate the firmware upgrade process to upgrade the firmware program of the second controller, avoiding the normal operation of the device being affected by the running failure of the control system.
[0064] The following is combined with Figure 7 specific embodiments are shown. After receiving the upgrade control information sent by the Internet of Things system, the first controller can send a mode switching instruction to the second controller through the UART interface. After receiving the mode switching instruction, the second controller can switch the interface mode to the SWD mode. Then the first controller can send the programming control information to the second controller through the SWD interface. The second controller can write the firmware data into the FLASH according to the received programming control information and send feedback information to the first controller through the SWD interface after the programming is completed. After receiving the feedback information, the first controller can send a restart instruction to the second controller through the SWD interface. The second controller can restart the second controller according to the received restart instruction.
[0065] In summary, in the present disclosure, the first controller can perform firmware upgrade control and other controls on the second controller through the SWD interface and the UART interface respectively. The firmware upgrade through the SWD interface has higher efficiency and does not require additional development of the bootloader program. Therefore, the present disclosure can improve the firmware upgrade efficiency and save the FLASH space of the controller without affecting other controls between the first controller and the second controller.
[0066] Figure 8 is a block diagram of a refrigerator shown according to an exemplary embodiment. As Figure 8 shown, the refrigerator 300 includes any control system 100 shown in the embodiments of the present disclosure.
[0067] The present disclosure also provides a computer-readable storage medium, on which computer program instructions are stored. When the program instructions are executed by a processor, the steps of the firmware upgrade method provided by the present disclosure are implemented.
[0068] Figure 9 It is a block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.
[0069] Referring to Figure 9 , the electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output interface 812, a sensor component 814, and a communication module 816.
[0070] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communication, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above firmware upgrade method. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.
[0071] The memory 804 is configured to store various types of data to support the operation of the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk, or an optical disk.
[0072] The power component 806 provides power to various components of the electronic device 800. The power component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
[0073] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors can sense not only the boundaries of touch or swipe actions but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zoom capabilities.
[0074] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC) that is configured to receive external audio signals when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 804 or transmitted via the communication module 816. In some embodiments, the audio component 810 further includes a speaker for outputting audio signals.
[0075] The input / output interface 812 provides an interface between the processing component 802 and a peripheral interface module, and the peripheral interface module can be a keyboard, a click wheel, buttons, etc. These buttons can include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0076] The sensor component 814 includes one or more sensors for providing status assessments of various aspects of the electronic device 800. For example, the sensor component 814 can detect the on / off state of the electronic device 800, the relative positioning of components, such as the display and keypad of the electronic device 800. The sensor component 814 can also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 814 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0077] The communication module 816 is configured to facilitate communication between the electronic device 800 and other devices in a wired or wireless manner. The electronic device 800 can access a communication standard-based wireless network, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication module 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication module 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0078] In an exemplary embodiment, the electronic device 800 can be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above firmware upgrade method.
[0079] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the above instructions can be executed by a processor 820 of the electronic device 800 to complete the above firmware upgrade method. For example, the non-transitory computer-readable storage medium can be a ROM, Random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0080] In another exemplary embodiment, a computer program product is also provided, and the computer program product includes a computer program that can be executed by a programmable electronic device. The computer program has a code portion for performing the above firmware upgrade method when executed by the programmable electronic device.
[0081] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the present application can be implemented by electronic hardware, computer software, or a combination of both. Whether such a function is implemented by hardware or software depends on the specific application and the design requirements of the entire system. Those skilled in the art can use various methods to implement the described function for each specific application, but such implementation should not be construed as exceeding the scope protected by the embodiments of the present application.
[0082] It should be understood that, unless otherwise specifically stated, the features of some embodiments of the various aspects of the present disclosure described herein may be combined with each other. As used herein, the term "and / or" includes any one of the related listed items and any combination of any two or more of them; similarly, "at least one of..." includes any one of the related listed items and any combination of any two or more of them.
[0083] It should be understood that, unless otherwise explicitly specified and limited, the terms such as "engage", "attach", "mount", "connect", "couple", "fix", etc. used in the embodiments of the present disclosure should 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, an electrical connection, or communicable with each other; it may be directly connected, or indirectly connected through an intermediate medium, and it may be the communication inside two elements or the interaction relationship between two elements, unless otherwise explicitly limited. For those of ordinary skill in the art, the specific meanings of the above terms in this context can be understood according to specific circumstances.
[0084] Although terms such as "first", "second", and "third" may be used herein to describe various components, parts, regions, layers, or sections, these components, parts, regions, layers, or sections are not limited to these terms. On the contrary, these terms are only used to distinguish one component, part, region, layer, or section from another. Thus, the first component, part, region, layer, or section mentioned in the examples described herein may also be referred to as the second component, part, region, layer, or section without departing from the teachings of the respective examples. Additionally, the terms "first" and "second" are only used for descriptive purposes and should not be construed as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description herein, "a plurality of" means at least two, such as two, three, etc., unless otherwise specifically and explicitly limited.
[0085] In addition, as used herein, the word "exemplary" is used to mean serving as an example, instance, or illustration. Any aspect or design described herein as "exemplary" is not necessarily to be construed as advantageous over other aspects or designs. Instead, the word exemplary is intended to present concepts in a concrete fashion. As used herein, the term "or" is intended to mean an inclusive "or" rather than an exclusive "or". That is, unless specified otherwise, or clear from the context, "X applies A or B" is intended to mean any of the natural inclusive permutations. That is, if X applies A; X applies B; or X applies both A and B, then "X applies A or B" is satisfied under any of the foregoing instances. Additionally, unless specified otherwise or clear from the context that it refers to the singular form, the articles "a" and "an" as used in this application and the appended claims are generally understood to mean "one or more".
[0086] Likewise, although the present disclosure has been shown and described with respect to one or more implementations, equivalent variations and modifications will occur to those skilled in the art upon reading and understanding the specification and drawings. The present disclosure includes all such modifications and variations and is limited only by the scope of the claims. Specifically with respect to the various functions performed by the components (e.g., elements, resources, etc.) described above, unless otherwise indicated, the terms used to describe such components are intended to correspond to any component (functionally equivalent) that performs the specific function of the described component, even if not structurally equivalent to the disclosed structure. Additionally, although a particular feature of the present disclosure may have been disclosed with respect to only one of several implementations, such a feature may, as may be desired and advantageous for any given or particular application, be combined with one or more other features of other implementations. Further, with respect to the use of "comprising", "having", "including", "contains", or variants thereof in the detailed description or claims, such terms are intended to be inclusive in a manner similar to the term "including".
[0087] Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include known in the art or conventional techniques not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are pointed out by the appended claims.
[0088] It should be understood that the present disclosure is not limited to the exact structures described above and shown in the drawings, and various modifications and changes may be made without departing from its scope. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A control system, characterized in that: The control system includes: a first controller, a second controller and a communication module; the first controller is connected to the Internet of Things system through the communication module, and the first controller and the second controller are connected through a serial wire debug (SWD) interface and a universal asynchronous receiver / transmitter (UART) interface respectively; The first controller is used to receive upgrade control information corresponding to the second controller sent by the Internet of Things system through the communication module, and control the second controller to perform firmware upgrade through the SWD interface according to the upgrade control information; and transmit specified control information to the second controller through the UART interface, where the specified control information is other control information except the upgrade control information.
2. The control system according to claim 1, characterized in that: The first controller is further used to transmit a mode switching instruction to the second controller through the UART interface, and the mode switching instruction is used to instruct the second controller to switch the interface mode to the SWD mode.
3. The control system according to claim 1, characterized in that: The first controller is used to generate burning control information according to the upgrade control information, and send the burning control information to the second controller through the SWD interface, wherein the burning control information includes burning instructions and firmware data; The second controller is used to receive the burning instruction and the firmware data through the SWD interface, and burn the firmware data into the flash memory FLASH of the second controller according to the burning instruction.
4. The control system according to claim 3, characterized in that: The first controller is further configured to send a restart instruction to the second controller through the SWD interface when receiving feedback information sent by the second controller, wherein the feedback information indicates that the FLASH programming of the second controller is completed; The second controller is further configured to receive the restart instruction through the SWD interface, and restart the second controller according to the restart instruction.
5. The control system according to any one of claims 1 to 4, characterized in that: The first controller is also used to: obtain firmware status information of the second controller, and when the firmware status information indicates that an abnormality has occurred in the firmware program in the second controller, send the firmware status information to the Internet of Things system through the communication module, so that the Internet of Things system generates the upgrade control information and sends the upgrade control information to the control system.
6. A firmware upgrade method, characterized in that: Applied to a control system, the control system comprises: a first controller, a second controller and a communication module; the first controller is connected to the communication module, and the first controller and the second controller are connected via a SWD interface and a UART interface respectively; the method comprises: Receiving control information sent by the Internet of Things system through the communication module; In a case where the control information is upgrade control information corresponding to the second controller, controlling the second controller to perform firmware upgrade through the SWD interface according to the upgrade control information; In the case where the control information is designated control information, the second controller is controlled through the UART interface according to the designated control information, and the designated control information is other control information except the upgrade control information.
7. The method according to claim 6, characterized in that According to the upgrade control information, controlling the second controller to perform firmware upgrade through the SWD interface includes: Generate burning control information according to the upgrade control information, wherein the burning control information includes burning instructions and firmware data; The burning instruction and the firmware data are sent to the second controller through the SWD interface, so that the second controller burns the firmware data into the FLASH of the second controller according to the burning instruction.
8. The method according to claim 6 or 7, characterized in that: The method further comprises: Acquire firmware status information of the second controller; When the firmware status information indicates that an abnormality occurs in the firmware program in the second controller, the firmware status information is sent to the Internet of Things system through the communication module, so that the Internet of Things system generates the upgrade control information and sends the upgrade control information to the control system.
9. A refrigerator, characterized in that: The refrigerator comprises the control system according to any one of claims 1-5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 6 to 8 are implemented.
11. A computer program product, characterized in that The method comprises a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 6 to 8.
Citation Information
Cited By
Distributed firmware upgrading and real-time monitoring method for embedded board-level system
CN120821616A
A method for distributed firmware upgrade and real-time monitoring of embedded board-level systems
CN120821616B