Software upgrading method based on DALI (Digital Addressable Lighting Interface) and related device

By configuring the UART transceiver mode in the transceiver pins of the DALI interface, the problem of low efficiency of software upgrade of DALI devices is solved, efficient software upgrade and communication are achieved, and the accuracy and reliability of data transmission are ensured.

CN119356718APending Publication Date: 2025-01-24SHENZHEN HENGZHIYUAN TECH CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411400640.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-09
Publication Date
2025-01-24

AI Technical Summary

Technical Problem

The software upgrade efficiency of DALI devices is inefficient. Due to the communication rate of DALI, it usually takes more than ten minutes or even longer to complete the firmware update.

Method used

By configuring the UART transceiver mode in the transceiver pin of the DALI interface, when receiving the upgrade instruction from the host computer, the UART transceiver mode is triggered, and the target software is upgraded by IAP according to this mode.

Benefits of technology

It enables software upgrades without disassembling the DALI device, improves upgrade efficiency and communication efficiency, reduces failures due to data errors or damage, and improves the efficiency of upgrade operations through automated processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119356718A_ABST
    Figure CN119356718A_ABST
Patent Text Reader

Abstract

The invention provides a DALI (Digital Addressable Lighting Interface)-based software upgrading method and a related device. The method comprises the following steps: configuring a UART (Universal Asynchronous Receiver / Transmitter) transceiving mode in a transceiving pin of a DALI; when an upgrading instruction of an upper computer is received, triggering a UART receiving and transmitting mode according to the upgrading instruction; and performing IAP upgrading on the target software according to the UART transceiving mode. Through the implementation of the scheme, when the DALI interface receives the upgrading instruction of the upper computer, the UART receiving and transmitting mode is triggered according to the upgrading instruction, software upgrading can be carried out under the condition that the DALI device is not disassembled, and the upgrading efficiency and the communication efficiency are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a software upgrade method and related devices based on a DALI interface. Background Art

[0002] With the continuous development of lighting control technology, DALI (Digital Addressable Lighting Interface), as a digital communication protocol dedicated to lighting control systems, has shown significant advantages in the scalability, flexibility and ease of use of lighting networks.

[0003] However, in actual applications, software upgrades for DALI devices still face problems such as complex operations and low upgrade efficiency. The IEC62386-105 firmware update standard defines a 32-bit transmission frame to transmit the firmware binary image to the DALI device in the form of blocks to achieve online firmware updates for DALI devices. However, due to the limitation that the DALI communication rate is 1200bps, it usually takes more than ten minutes or even longer. Summary of the invention

[0004] The present application provides a software upgrade method and related devices based on a DALI interface, which can at least solve the problem of low software upgrade efficiency using a DALI device in the related art.

[0005] A first aspect of an embodiment of the present application provides a software upgrade method based on a DALI interface, comprising: Configure the UART transceiver mode in the transceiver pins of the DALI interface; When receiving an upgrade instruction from the host computer, triggering the UART transceiver mode according to the upgrade instruction; The target software is upgraded by IAP according to the UART transceiver mode.

[0006] By adopting the above solution, when the DALI interface receives an upgrade instruction from the host computer, the UART transceiver mode is triggered according to the upgrade instruction, so that software upgrade can be performed without disassembling the DALI device, thereby improving upgrade efficiency and communication efficiency.

[0007] Optionally, the step of performing IAP upgrade on the target software according to the UART transceiver mode includes: Detecting whether the DALI interface has received the upgrade file; When the upgrade file is detected, controlling the transceiver pin to perform local upgrade; When the upgrade file is not detected, the transceiver pins are controlled to perform serial port upgrade.

[0008] Optionally, when the upgrade file is detected, the step of controlling the transceiver pin to perform a local upgrade includes: Acquire the upgrade file from the backup area of ​​the DALI interface; Copying the upgrade file to the application software area corresponding to the target software; After the upgrade file is copied, the corresponding upgrade flag in the backup area is cleared.

[0009] By adopting the above solution, the corresponding upgrade flag in the backup area is cleared after the target software upgrade is completed, ensuring that the upgrade operation will not be repeated after the MCU is powered on.

[0010] Optionally, when the upgrade file is not detected, the step of controlling the transceiver pin to perform serial port upgrade includes: Receiving the upgrade file sent by the host computer through a preset communication protocol; Burning the upgrade file to the target software and detecting the integrity of the upgrade file; When the upgrade file is a complete file, it is determined that the serial port upgrade is completed.

[0011] By adopting the above solution, the preset communication protocol and integrity verification mechanism ensure the accuracy and reliability of data transmission, reducing the failure caused by data errors or damage during the upgrade process. At the same time, the automated process also improves the efficiency of the upgrade operation.

[0012] Optionally, after the step of performing IAP upgrade on the target software according to the UART transceiver mode, the step further includes: If the target software upgrade fails, the DALI interface triggers a recovery mechanism; Acquiring a backup file of the target software from the backup area according to the recovery mechanism; The target software is loaded according to the backup file.

[0013] By adopting the above solution, if an error or failure occurs during the upgrade process, the recovery mechanism is triggered to load the original software from the backup area or enter the safe mode to ensure the stability and reliability of the system.

[0014] Optionally, the step of configuring the UART transceiver mode in the transceiver pins of the DALI interface includes: Determining, in the DALI interface, a target transceiver pin that supports the UART transceiver mode; Initialize the target transceiver pin according to preset configuration information; Switching the mode of the target transceiver pin by using a preset test instruction; If the target transceiver pin can be switched to the UART transceiver mode, it is determined that the configuration of the UART transceiver mode is completed.

[0015] A second aspect of an embodiment of the present application provides a software upgrade device based on a DALI interface, comprising: Configuration module, used to configure the UART transceiver mode in the transceiver pins of the DALI interface; A trigger module, for triggering the UART transceiver mode according to the upgrade instruction when receiving the upgrade instruction from the host computer; The processing module is used to perform IAP upgrade on the target software according to the UART transceiver mode.

[0016] Optionally, the configuration module includes: A determination unit, configured to determine a target transceiver pin in the DALI interface that supports the UART transceiver mode; An initialization unit, used to initialize the target transceiver pin according to preset configuration information; A switching unit, used for switching the mode of the target transceiver pin through a preset test instruction; The determination unit is further configured to determine that the configuration of the UART transceiver mode is completed if the target transceiver pin can be switched to the UART transceiver mode.

[0017] A third aspect of an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the processor is used to execute a computer program stored in the memory, and when the processor executes the computer program, it implements each step of the DALI interface-based software upgrade method provided in the first aspect of the embodiment of the present application.

[0018] The fourth aspect of the embodiments of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, each step of the software upgrade method based on the DALI interface provided in the first aspect of the embodiments of the present application is implemented.

[0019] In summary, the beneficial effects of this application are: 1. When the DALI interface receives an upgrade instruction from the host computer, the UART transceiver mode is triggered according to the upgrade instruction, so that the software can be upgraded without disassembling the DALI device, thereby improving the upgrade efficiency and communication efficiency.

[0020] 2. The preset communication protocol and integrity verification mechanism ensure the accuracy and reliability of data transmission, reducing the failure caused by data errors or damage during the upgrade process. At the same time, the automated process also improves the efficiency of the upgrade operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 A flowchart of a software upgrade method based on a DALI interface provided in an embodiment of the present application; Figure 2 A schematic diagram of a program module of a software upgrade device based on a DALI interface provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the described embodiments are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of this application.

[0023] In order to solve the problem of low software upgrade efficiency using DALI devices in the related art, the embodiment of the present application provides a software upgrade method based on the DALI interface, such as Figure 1 The flowchart of the software upgrade method based on the DALI interface provided in this embodiment is as follows: Step 110, configuring the UART transceiver mode in the transceiver pins of the DALI interface; Step 120: When receiving an upgrade instruction from the host computer, trigger the UART transceiver mode according to the upgrade instruction; Step 130: Perform IAP upgrade on the target software according to the UART transceiver mode.

[0024] Specifically, in this embodiment, UART (Universal Asynchronous Receiver / Transmitter) is a commonly used serial communication protocol, which is widely used in data communication between computers, microcontrollers (MCUs), sensors and various other electronic devices. To implement DALI (Digital Addressable Lighting Interface) transceiver pin multiplexing as UART (Universal Asynchronous Receiver Transmitter) function on microcontroller (MCU), first, you need to ensure that the selected MCU supports pin multiplexing function, that is, the same physical pin can be configured as different functions (such as DALI or UART) as needed. According to the pin configuration of MCU, the pin originally used for DALI communication is connected to MCU through appropriate circuits. Then, in the main loop or interrupt service routine of DALI communication, write code to detect whether the data received from the DALI network contains upgrade instructions. When the upgrade instruction is detected, disable the DALI transceiver mode (such as general I / O mode) of the DALI interface, and enable the UART transceiver mode, and prepare to receive upgrade data. Switch the main loop or interrupt service routine of the system to start processing UART communication instead of DALI communication, use the UART interface to receive upgrade data (such as firmware image), verify the received data, and if the data is valid, perform the software IAP (In-Application Programming) upgrade process. After the upgrade is completed, the system needs to be restored to DALI mode to continue normal operation. It can be understood that when the baud rate of UART is set to 9600bps, and the communication rate of DALI is 1200bps, the software IAP upgrade is performed through the UART transceiver mode, and the software upgrade can be performed without disassembling the DALI device, thereby improving the upgrade efficiency and communication efficiency.

[0025] In an optional implementation of the present embodiment, the step of configuring the UART transceiver mode in the transceiver pin of the DALI interface includes: determining a target transceiver pin that supports the UART transceiver mode in the DALI interface; initializing the target transceiver pin according to preset configuration information; switching the mode of the target transceiver pin through a preset test instruction; if the target transceiver pin can be switched to the UART transceiver mode, determining that the configuration of the UART transceiver mode is completed.

[0026] Specifically, in this embodiment, it can be understood that different pins in the DALI interface have different functions. Most of the transceiver pins have only general I / O mode, while some of the transceiver pins can support UART communication. These pins are usually marked as TX (transmit) and RX (receive). In the firmware of the MCU, the selected pins are configured to the UART mode by programming, for example, setting the function selection register of the pin (such as GPIO (General Purpose Input Output, general input and output) multiplexing function register) to switch the pin from general I / O mode to UART function. After switching, you also need to configure the parameters of the UART module, such as baud rate, data bit, stop bit and check bit. After the UART transceiver mode is configured, in the non-upgraded case, the target transceiver pin of the DALI interface is still in I / O mode. At this time, the target transceiver pin can be tested to detect whether the I / O mode of the target transceiver pin can be switched to UART transceiver mode through the preset test command (such as the upgrade command sent by the host computer). If the target transceiver pin can be switched to UART transceiver mode, it is determined that the configuration of the UART transceiver mode is completed. If the target transceiver pin fails to switch to UART transceiver mode successfully, it is necessary to recheck the pin configuration or UART parameter settings.

[0027] In an optional implementation of the present embodiment, the step of performing IAP upgrade on the target software according to the UART transceiver mode includes: detecting whether the DALI interface receives the upgrade file; when the upgrade file is detected, controlling the transceiver pins to perform local upgrade; when the upgrade file is not detected, controlling the transceiver pins to perform serial port upgrade.

[0028] Specifically, in this embodiment, after the MCU is powered on, the DALI interface needs to be able to detect whether the upgrade file has been received, and decide whether to perform local upgrade or serial port upgrade based on the detection result. Local upgrade refers to reading the upgrade file from the storage medium inside the device (such as Flash, SD card, etc.) and performing firmware upgrade. Serial port upgrade receives the upgrade file from the external device (such as the host computer) through the serial port (such as UART) and writes it to the storage medium of the device to complete the firmware upgrade. In the process of detecting whether the upgrade file has been received, it can be determined whether the upgrade file has been received by checking the specific directory or file mark on the internal storage medium, or by monitoring the serial port to detect whether the instruction to start transmitting the upgrade file has been received. When the upgrade file is detected, the transceiver pin is controlled to perform local upgrade, and when the upgrade file is not detected, the transceiver pin is controlled to perform serial port upgrade. Once the upgrade file is detected, the device needs to control the UART transceiver pin to perform corresponding operations according to the source of the upgrade file (internal or external). It should be noted that the UART transceiver pin itself does not directly control the upgrade process, but serves as a channel for data transmission to speed up the efficiency of firmware upgrade.

[0029] In an optional implementation of this embodiment, when an upgrade file is detected, the step of controlling the transceiver pins to perform a local upgrade includes: obtaining the upgrade file from the backup area of ​​the DALI interface; copying the upgrade file to the application software area corresponding to the target software; and clearing the corresponding upgrade flag in the backup area after the upgrade file is copied.

[0030] Specifically, in this embodiment, during the firmware upgrade process, it is first necessary to identify and access the backup area of ​​the storage medium, where the upgrade file is stored. The upgrade file is located by reading a specific address of the area or searching for a specific file identifier. After obtaining the upgrade file, the upgrade file is copied to its target location, that is, the application software area corresponding to the target software. During the copying process, data verification is performed, such as using algorithms such as CRC, MD5 or SHA to verify data consistency. In order to ensure that the upgrade operation will not be repeated after the MCU is powered on, the corresponding upgrade flag in the backup area is cleared after the upgrade file is copied, and the file system or storage structure of the backup area is accessed to find the flag or mark associated with the upgrade file, and the flag is cleared or reset.

[0031] In an optional implementation of the present embodiment, when the upgrade file is not detected, the step of controlling the transceiver pins to perform a serial port upgrade includes: receiving the upgrade file sent by the host computer through a preset communication protocol; burning the upgrade file to the target software, and detecting the integrity of the upgrade file; when the upgrade file is a complete file, determining that the serial port upgrade is completed.

[0032] Specifically, in this embodiment, when the host computer does not send the upgrade file, a connection can be established with the host computer through the UART serial communication protocol, and wait to receive the upgrade file sent by the host computer. When the data sent by the host computer is received, it is parsed according to the provisions of the communication protocol, and the data packet of the upgrade file is extracted. After receiving the complete upgrade file, this file is burned (written) to the target software area. After the burning is completed, the device needs to verify the integrity of the upgrade file to ensure that the file is not damaged during the transmission and burning process. The verification method includes but is not limited to using a checksum, CRC (cyclic redundancy check) or other algorithm to verify the integrity of the upgrade file. If the integrity verification of the upgrade file passes, that is, the file is complete and not damaged, it is determined that the serial port upgrade is completed.

[0033] In an optional implementation of the present embodiment, after the step of performing IAP upgrade on the target software according to the UART transceiver mode, it also includes: if the target software upgrade fails, the DALI interface triggers a recovery mechanism; obtains a backup file of the target software from the backup area according to the recovery mechanism; and loads the target software according to the backup file.

[0034] Specifically, in this embodiment, during the upgrade process, the MCU will monitor the status and results of the upgrade. If an upgrade failure is detected (for example, the upgrade file is incomplete, the checksum does not match, the burning process is interrupted, etc.), the MCU will trigger the recovery mechanism, that is, the MCU will check the upgrade status regularly or according to specific events (such as data reception completion, burning completion, etc.) during the upgrade process. If any condition indicating that the upgrade has failed is detected, the MCU will stop the current upgrade process and prepare to enter the recovery mode, such as by modifying the internal register, setting the status flag or sending a specific signal to trigger the recovery mechanism. Once the recovery mechanism is triggered, the MCU will access the backup area of ​​the device, obtain the backup file of the target software from it, and verify the integrity and validity of the backup file. If the backup file is valid, the MCU will read it into the internal memory or cache, prepare to load it, and write the data of the backup file to the storage area of ​​the target software. During the writing process, the MCU may need to perform additional verification to ensure that the data is written correctly and is not damaged. After the writing is completed, the internal state is reset, the software version information is updated, or the self-test program is executed, so that the system enters a new running state to load and run the restored target software.

[0035] Based on the embodiment scheme of the above application, a UART transceiver mode is configured in the transceiver pin of the DALI interface; when receiving an upgrade instruction from the host computer, the UART transceiver mode is triggered according to the upgrade instruction; and the target software is upgraded by IAP according to the UART transceiver mode. Through the implementation of the scheme of this application, when the DALI interface receives an upgrade instruction from the host computer, the UART transceiver mode is triggered according to the upgrade instruction, and the software can be upgraded without disassembling the DALI device, thereby improving the upgrade efficiency and communication efficiency.

[0036] Figure 2 A software upgrade device based on a DALI interface is provided in an embodiment of the present application. The software upgrade device based on a DALI interface can be used to implement the software upgrade method based on a DALI interface in the aforementioned embodiment. Figure 2 As shown, the software upgrade device based on the DALI interface mainly includes: Configuration module, used to configure the UART transceiver mode in the transceiver pins of the DALI interface; The trigger module is used to trigger the UART transceiver mode according to the upgrade instruction when receiving the upgrade instruction from the host computer; The processing module is used to perform IAP upgrade on the target software according to the UART transceiver mode.

[0037] In an optional implementation of this embodiment, the processing module is specifically used to: detect whether the DALI interface receives the upgrade file; when the upgrade file is detected, control the transceiver pins to perform local upgrade; when the upgrade file is not detected, control the transceiver pins to perform serial port upgrade.

[0038] Furthermore, in an optional implementation of the present embodiment, when the processing module executes the function of controlling the transceiver pins to perform local upgrade when an upgrade file is detected, it is specifically used to: obtain the upgrade file from the backup area of ​​the DALI interface; copy the upgrade file to the application software area corresponding to the target software; and clear the corresponding upgrade flag in the backup area after the upgrade file is copied.

[0039] Furthermore, in another optional implementation of the present embodiment, when the processing module executes the function of controlling the transceiver pins to perform serial port upgrade when the upgrade file is not detected, it is specifically used to: receive the upgrade file sent by the host computer through a preset communication protocol; burn the upgrade file to the target software, and detect the integrity of the upgrade file; and when the upgrade file is a complete file, determine that the serial port upgrade is completed.

[0040] In an optional implementation of this embodiment, the processing module is also used for: if the target software upgrade fails, the DALI interface triggers a recovery mechanism; obtains a backup file of the target software from the backup area according to the recovery mechanism; and loads the target software according to the backup file.

[0041] In an optional implementation of this embodiment, the configuration module includes: a determination unit, an initialization unit, and a switching unit. The determination unit is used to determine the target transceiver pin that supports the UART transceiver mode in the DALI interface; the initialization unit is used to initialize the target transceiver pin according to preset configuration information; the switching unit is used to switch the mode of the target transceiver pin through a preset test instruction; the determination unit is also used to determine that the configuration of the UART transceiver mode is completed if the target transceiver pin can be switched to the UART transceiver mode.

[0042] According to the software upgrade device based on the DALI interface provided by the present application, the UART transceiver mode is configured in the transceiver pin of the DALI interface; when receiving the upgrade instruction of the host computer, the UART transceiver mode is triggered according to the upgrade instruction; and the target software is upgraded by IAP according to the UART transceiver mode. Through the implementation of the present application, when the DALI interface receives the upgrade instruction of the host computer, the UART transceiver mode is triggered according to the upgrade instruction, and the software can be upgraded without disassembling the DALI device, thereby improving the upgrade efficiency and communication efficiency.

[0043] Figure 3 An electronic device provided in an embodiment of the present application. The electronic device can be used to implement the software upgrade method based on the DALI interface in the aforementioned embodiment, mainly comprising: The memory 301, the processor 302, and the computer program 303 stored in the memory 301 and executable on the processor 302, the memory 301 and the processor 302 are connected by communication. When the processor 302 executes the computer program 303, the software upgrade method based on the DALI interface in the above-mentioned embodiment is implemented. The number of processors can be one or more.

[0044] The memory 301 may be a high-speed random access memory (RAM) memory, or a non-volatile memory (non-volatile memory), such as a disk memory. The memory 301 is used to store executable program codes, and the processor 302 is coupled to the memory 301 .

[0045] Furthermore, the present application also provides a computer-readable storage medium, which may be provided in the electronic device in the above embodiments. Figure 3 Memory in the illustrated embodiment.

[0046] The computer readable storage medium stores a computer program, and when the program is executed by the processor, the software upgrade method based on the DALI interface in the aforementioned embodiment is implemented. Furthermore, the computer storable medium can also be a U disk, a mobile hard disk, a read-only memory (ROM), a RAM, a magnetic disk or an optical disk, and other media that can store program codes.

[0047] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0048] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0049] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above integrated modules can be implemented in the form of hardware or software functional modules.

[0050] If the integrated module is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a readable storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned readable storage medium includes: U disk, mobile hard disk, ROM, RAM, disk or CD-ROM and other media that can store program codes.

[0051] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described action sequence, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0052] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0053] The above is a description of the software upgrade method and related devices based on the DALI interface provided by the present application. For technicians in this field, according to the ideas of the embodiments of the present application, there may be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as limiting the present application.

Claims

1. A software upgrade method based on DALI interface, characterized in that: include: Configure the UART transceiver mode in the transceiver pins of the DALI interface; When receiving an upgrade instruction from the host computer, triggering the UART transceiver mode according to the upgrade instruction; The target software is upgraded by IAP according to the UART transceiver mode.

2. The software upgrade method based on the DALI interface according to claim 1, characterized in that: The step of performing IAP upgrade on the target software according to the UART transceiver mode includes: Detecting whether the DALI interface has received the upgrade file; When the upgrade file is detected, controlling the transceiver pin to perform local upgrade; When the upgrade file is not detected, the transceiver pins are controlled to perform serial port upgrade.

3. The software upgrade method based on the DALI interface according to claim 2, characterized in that: The step of controlling the transceiver pin to perform local upgrade when the upgrade file is detected includes: Acquire the upgrade file from the backup area of ​​the DALI interface; Copying the upgrade file to the application software area corresponding to the target software; After the upgrade file is copied, the corresponding upgrade flag in the backup area is cleared.

4. The software upgrade method based on the DALI interface according to claim 2, characterized in that: The step of controlling the transceiver pin to perform serial port upgrade when the upgrade file is not detected includes: Receiving the upgrade file sent by the host computer through a preset communication protocol; Burning the upgrade file to the target software and detecting the integrity of the upgrade file; When the upgrade file is a complete file, it is determined that the serial port upgrade is completed.

5. The software upgrade method based on the DALI interface according to claim 3, characterized in that: After the step of performing IAP upgrade on the target software according to the UART transceiver mode, the method further includes: If the target software upgrade fails, the DALI interface triggers a recovery mechanism; Acquiring a backup file of the target software from the backup area according to the recovery mechanism; The target software is loaded according to the backup file.

6. The software upgrade method based on the DALI interface according to claim 1, characterized in that: The step of configuring the UART transceiver mode in the transceiver pin of the DALI interface includes: Determining, in the DALI interface, a target transceiver pin that supports the UART transceiver mode; Initialize the target transceiver pin according to preset configuration information; Switching the mode of the target transceiver pin by using a preset test instruction; If the target transceiver pin can be switched to the UART transceiver mode, it is determined that the configuration of the UART transceiver mode is completed.

7. A software upgrade device based on DALI interface, characterized in that: include: Configuration module, used to configure the UART transceiver mode in the transceiver pins of the DALI interface; A trigger module, for triggering the UART transceiver mode according to the upgrade instruction when receiving the upgrade instruction from the host computer; The processing module is used to perform IAP upgrade on the target software according to the UART transceiver mode.

8. The DALI interface-based software upgrade device according to claim 7, characterized in that: The configuration module includes: A determination unit, configured to determine a target transceiver pin in the DALI interface that supports the UART transceiver mode; An initialization unit, used to initialize the target transceiver pin according to preset configuration information; A switching unit, used for switching the mode of the target transceiver pin through a preset test instruction; The determination unit is further configured to determine that the configuration of the UART transceiver mode is completed if the target transceiver pin can be switched to the UART transceiver mode.

9. An electronic device, characterized in that: The device comprises a memory and a processor, wherein: The processor is used to execute the computer program stored in the memory; When the processor executes the computer program, the steps of the software upgrade method based on the DALI interface described in any one of claims 1 to 7 are implemented.

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 software upgrade method based on the DALI interface described in any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • DALI interface-based software upgrade method and related apparatus

    WO2026076885A1