A method for remotely updating a ZYNQ unit LVDS interface system
By introducing an LVDS interface circuit into the ZYNQ system to establish communication with the embedded LVDS computer upgrade system, the problems of remote programming and progress control of the ZYNQ update system were solved, and the reliability and progress controllability of remote upgrades were achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHENGDU YICHUANGLI INTELLIGENT TECHNOLOGY CO LTD
- Filing Date
- 2024-11-25
- Publication Date
- 2026-05-26
Smart Images

Figure CN122086428A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method for a remote update system of a ZYNQ unit LVDS interface, belonging to the field of computer control and computing. Background Technology
[0002] ZYNQ is an FPGA+ARM architecture chip launched by Xilinx. It combines the programmability of a CPU processor with the hardware gate array of an FPGA and is widely used in various military and civilian industries. It has flexible interface scalability.
[0003] Most of the time, ZYNQ system updates are completed using an emulator or serial port programming. However, emulator or serial port programming methods have limitations such as being unable to program remotely, being unable to program the entire device after disassembly, or being unable to program quickly.
[0004] In conventional flashing methods, if the remote update device experiences a power outage or data transmission misalignment, the entire system flashing process will be abandoned and must be restarted from scratch. Conventional flashing methods also cannot precisely control the update progress. Summary of the Invention
[0005] To optimize and improve the shortcomings of existing programming and upgrade technologies, the purpose of this invention is to provide a method for remotely updating a ZYNQ unit LVDS interface system, which solves the problems of slow ZYNQ emulator download speed and remote update system requirements, while also solving the problems of progress control and core parameter recording during the upgrade process;
[0006] To address the aforementioned shortcomings, this invention employs the following technical solution: A method for a remote update system using a ZYNQ unit's LVDS interface, comprising: setting an LVDS interface circuit in the ZYNQ logic unit to perform LVDS communication protocol matching with an embedded LVDS computer upgrade system, enabling the ZYNQ logic unit to establish LVDS communication with the embedded LVDS computer upgrade system; after the ZYNQ logic unit and the ZYNQ embedded unit are powered on and running normally, and have established LVDS communication with the embedded LVDS computer upgrade system, the embedded LVDS computer upgrade system sends the new UPDATA SRC file to be updated to the ZYNQ logic unit via LVDS, and then the ZYNQ embedded unit performs a system update. The intermediate process includes: after power-on, the ZYNQ logic unit runs first; after the ZYNQ embedded unit is running normally, it establishes an LVDS communication connection with the embedded LVDS computer upgrade system; the embedded LVDS computer upgrade system erases the embedded multimedia storage medium and EEPROM parameters according to a data length of 1024. The progress control unit then compresses the UPDATA new SRC file, hardware driver BIN file, and PETA operating system file, and then splits them into several upgrade data packets of 1024 bytes each. The embedded LVDS computer upgrade system transmits these packets sequentially to the ZYNQ embedded unit and ZYNQ logic unit through the LVDS interface circuit. After the ZYNQ logic unit completes each type of complete data packet, it writes the UPDATA new SRC file, hardware driver BIN file, and PETA operating system file until the upgrade of these three files is complete. These three files, namely the UPDATA new SRC file, hardware driver BIN file, and PETA operating system file, will be written to the embedded multimedia storage medium according to different set addresses. At the same time, the EEPROM parameter progress control unit records and saves the refresh writing progress. This allows for a restart after a power outage, skipping the previously written parts. Important user product data is also written to the EEPROM parameter progress control unit for storage.
[0007] The embedded LVDS computer upgrade system refers to an embedded motherboard with storage function, an LVDS interface, and compressed data and upgrade address configuration functions. It can also be a motherboard developed with FPGA logic. The system sends upgrade data to the ZYNQ logic unit by configuring the transmission speed and frequency through the LVDS interface circuit. The embedded LVDS computer upgrade system establishes a first communication connection with the ZYNQ logic unit.
[0008] The ZYNQ logic unit and the ZYNQ embedded unit communicate and transmit data internally via the AXI4 interface, forming a second communication connection. The ZYNQ embedded unit also establishes a third communication connection with the DDR4 unit.
[0009] The EEPROM parameter progress control unit refers to an EEPROM-type non-volatile memory used to store system update progress. This update progress program is mainly calculated and sent by the embedded LVDS computer upgrade system, and is also used to store core product parameters. The EEPROM parameter progress control unit establishes a fourth communication connection with the ZYNQ embedded unit through the IIC interface.
[0010] The embedded multimedia storage medium mainly refers to eMMC, FLASH, or RAM type storage media, primarily used to store UPDATA new SRC files, hardware driver BIN files, and PETA operating system files. The embedded multimedia storage medium establishes a fifth communication connection with the ZYNQ embedded unit.
[0011] The embedded LVDS computer upgrade system splits the system upgrade files, namely the UPDATA new SRC file, the hardware driver BIN file, and the PETA operating system, into several 1024-byte data packets.
[0012] Preferably, the LVDS communication transmission and reception method between the ZYNQ chip and the embedded LVDS computer upgrade system is as follows: The embedded LVDS computer upgrade system sends a 1024-byte data packet to the ZYNQ embedded unit. After receiving the 1024-byte data packet, the ZYNQ embedded unit returns a received message to the embedded LVDS computer upgrade system. After receiving the upgrade sequence number file received from the ZYNQ embedded unit, the embedded LVDS computer upgrade system then transmits the next 1024-byte data packet. Upon receiving a reply from the ZYNQ embedded unit, the embedded LVDS computer upgrade system determines the LVDS communication quality based on the interval between the data in the reply, and controls the data transmission speed or retransmits the data according to the interval.
[0013] When the embedded LVDS computer upgrade system changes the transmission speed to transfer three types of files: UPDATA new SRC file, hardware driver BIN file, and PETA operating system file, if the embedded LVDS upgrade system re-establishes LVDS communication with the ZYNQ logic unit and receives a reply message from the ZYNQ embedded chip within the specified time, the embedded LVDS computer upgrade system will start repeatedly sending the 1024-byte data packet of the system upgrade file and accurately write the data to the embedded multimedia storage medium address or EEPROM parameter progress control unit.
[0014] Compared with the prior art, the present invention has the following effects: 1. The present invention uses a universal LVDS interface communication to upgrade the ZYNQ embedded unit. Through the EEPROM parameter progress control unit, even if the system upgrade is interrupted, it can ensure that the device continues to write data from the previous upgrade address. At the same time, it allows the embedded LVDS computer to re-execute the upgrade steps, which improves the effectiveness and pertinence of the system upgrade.
[0015] This invention solves the problem that the ZYNQ embedded unit needs to start over when the device is unexpectedly interrupted during the system upgrade process by saving the upgrade progress to the EEPROM parameter progress control unit and feeding it back to the embedded LVDS upgrade system through the embedded LVDS computer upgrade system.
[0016] This invention enables the burning of the entire product program during mass production, and also solves the problem of inconvenient product upgrades during on-site after-sales maintenance. This system upgrade method is characterized by stability and controllable progress.
[0017] Unless otherwise stated, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in mass production, research and development, and after-sales personnel in the field described herein. All references to this specification are incorporated herein by reference to disclose and describe methods or materials related to those references. In the event of any conflict with any incorporated reference, the content of this specification shall prevail. The terms “comprising,” “having,” “containing,” etc., as used herein are open-ended terms, meaning that they include, but are not limited to, these terms.
[0018] The following is combined with Figures 1-5 The specific implementation examples will be described in further detail below. The specific embodiments of the present invention will be described in detail below with reference to specific examples. Attached Figure Description
[0019] Figure 1 This paper illustrates a method for remotely updating a ZYNQ unit LVDS interface system and the interface connection methods of each module.
[0020] Figure 2 The components of the embedded multimedia storage medium and the EEPROM parameter progress control unit are shown.
[0021] Figure 3 The write address of the upgrade file on the embedded multimedia storage medium is shown.
[0022] Figure 4 A remote update system upgrade protocol for ZYNQ unit LVDS interface is shown.
[0023] Figure 5This paper presents a method and system framework for a remote update system using a ZYNQ cell LVDS interface. Detailed Implementation
[0024] like Figure 1 As shown, a method for remotely updating a ZYNQ unit LVDS interface system includes the interface connection methods of each module, including the EEPROM unit, embedded multimedia storage medium, ZYNQ embedded unit, ZYNQ logic unit, and embedded LVDS computer upgrade system. These modules have connection interface names and connection names between them.
[0025] like Figure 2 As shown, the embedded multimedia storage medium is mainly used to store the UPDATA new SRC file, hardware driver BIN file, and PETA operating system file at different addresses. The EEPROM parameter progress control unit is used to store system update progress data, product core parameter data, and address data to be programmed sent by the embedded LVDS computer upgrade system.
[0026] The working principle of this invention is as follows: The embedded LVDS computer upgrade system selects three types of files: UPDATA new SRC file, hardware driver BIN file, and PETA operating system file. The system update file is compressed, and then the three upgrade files are burned into the embedded multimedia storage medium according to the address to be written in the protocol content. The product core parameter data and system parameter address are stored in the EEPROM parameter progress control unit.
[0027] In specific implementation, such as Figure 3 As shown, the UPDATA SRC file contains the working files for the ZYNQ logic unit and the ZYNQ embedded unit. Internally, it first activates the boot unit within the UPDATA SRC file, then enables the ZYNQ logic unit to function normally within the internal logic files, and finally initializes the hardware information within the internal hardware information file to support the simultaneous normal operation of the interfaces of the ZYNQ logic unit and the ZYNQ embedded unit. During a ZYNQ LVDS system upgrade, the ZYNQ embedded unit first reads the UPDATA SRC file from the base address to initialize the hardware interface and boot information. During the update, it receives the UPDATA SRC file, the hardware driver BIN file, and the PETA operating system from the embedded LVDS computer upgrade system via LVDS communication to update the embedded multimedia storage area at the base address. If the updates of the UPDATA SRC file, the hardware driver BIN file, and the PETA operating system are incomplete, the ZYNQ embedded unit will jump to the higher address storage area to find and execute valid UPDATA SRC files, hardware driver BIN files, and the PETA operating system.
[0028] like Figure 3 As shown, the embedded multimedia storage medium of the ZYNQ embedded unit is divided into three storage areas: an UPDATA file (starting at address 0x00000000 and ending at address 0x009C0AFF) used to store hardware information, boot information, and startup information, containing the ZYNQ chip startup program and the LVDS receiver module program; a hardware driver BIN file (starting at address 0x009C0B00 and ending at address 0x4000000) containing drivers for various hardware interfaces; and the PETA operating system (starting at address 0x4000000 and ending at the maximum storage space of the embedded multimedia storage medium). The power-on process of the ZYNQ chip is as follows: The ZYNQ logic unit powers on first and loads via the clock. The ZYNQ embedded unit then loads, searching for a valid new UPDATA SRC file starting at address 0x00000000 in the embedded multimedia storage medium's starting address memory area and starting execution directly. Next, it reads the boot base address data from the EEPROM parameter progress control unit, guiding the hardware driver BIN file to boot from address 0x009C0B00. Finally, it reads address 0x4000000 from the EEPROM parameter progress control unit to start the PETA operating system. At this point, the system's built-in application writes product data to the EEPROM parameter progress control unit for backup and storage.
[0029] Appendix Figure 4 As shown, the embedded LVDS computer upgrade system breaks it down into 1024 segments, frames it using upgrade data sequence number, upgrade data header, upgrade data destination ID, upgrade data progress, upgrade data content, and upgrade data verification, and transmits it to the EEPROM parameter progress control unit or embedded multimedia storage medium according to the upgrade data destination ID.
[0030] During the ZYNQ LVDS system upgrade, the embedded LVDS computer upgrade system will automatically plan and generate the upgrade base address file according to the size of the upgrade content, and assemble it into the 1024-byte data packet to be sent.
[0031] like Figure 5As shown, a system framework for a remote update system using the LVDS interface of a ZYNQ unit is presented. The hardware driver layer includes a low-level LINUX driver and an FPGA logic driver. The low-level LINUX driver is responsible for the internal bus driver, EEPROM parameter progress control unit driver, embedded multimedia storage medium driver, and DDR4 driver. The system layer consists of a CPU0 LVDS communication control unit, which runs the Debian operating system. ZYNQ remote updates are achieved through LVDS communication using an embedded LVDS computer upgrade system. The application program at the application layer is responsible for configuring the LVDS receiving module in the ZYNQ logic unit to match the LVDS communication protocol with the embedded LVDS computer upgrade system, enabling the ZYNQ logic unit to establish LVDS communication with the embedded LVDS computer upgrade system. After the ZYNQ logic unit powers on and operates normally, establishing LVDS communication with the embedded LVDS computer upgrade system, the embedded LVDS computer upgrade system sends the UPDATA new SRC file, the hardware driver BIN file, and the PETA operating system file to the ZYNQ embedded unit via LVDS for system updates. The specific process includes: after the ZYNQ chip powers on and operates normally, it communicates with the embedded LVDS computer upgrade system... The S-type computer upgrade system establishes an LVDS communication connection. The embedded LVDS computer upgrade system, based on the data size of a single erase / write operation of the ZYNQ chip, splits the UPDATA new SRC file, hardware driver BIN file, and PETA operating system file into several BIN data packets, which are then transmitted sequentially to the ZYNQ chip. After receiving each system file data packet, the ZYNQ chip performs read / write operations on the corresponding address recorded in the EEPROM until all BIN data packets corresponding to the UPDATA new SRC file, hardware driver BIN file, and PETA operating system file have been received and read / written, thus completing the update of the entire system file.
[0032] An embedded LVDS computer upgrade system can be designed to incorporate data fed back from the ZYNQ embedded unit into the system upgrade progress bar and prompt box, making it easier for mass production personnel and after-sales maintenance personnel to keep track of the update status.
[0033] In summary, the present invention offers advantages such as controllable operation progress, high reliability, fast system upgrade speed, and no need to disassemble the device for remote ZYNQ updates via LVDS communication. Even if the device experiences an unexpected power outage during the update process, the multiple address recording method ensures that the device can accurately re-update the system program after power is restored.
[0034] This invention relates to a remote upgrade method based on the ZYNQ platform, which can be applied to various industrial equipment developed based on ZYNQ chips, such as motion control devices, smart cameras, data links, robots, radar, etc. It can be used to achieve efficient and accurate system upgrade functions for ZYNQ platform products.
[0035] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit the technical solutions. Those skilled in mass production and after-sales service in the art should understand that any modifications or equivalent substitutions to the technical solutions of the present invention without departing from the principles and scope of the present invention should be covered within the scope of the claims of the present invention.
Claims
1. A method for remotely updating a ZYNQ cell LVDS interface system, characterized in that, An LVDS interface circuit is configured in the ZYNQ logic unit to match the LVDS communication protocol with the embedded LVDS computer upgrade system, enabling the ZYNQ logic unit to establish LVDS communication with the embedded LVDS computer upgrade system. After the ZYNQ logic unit and ZYNQ embedded unit are powered on and running normally, and have established LVDS communication with the embedded LVDS computer upgrade system, the embedded LVDS computer upgrade system sends the UPDATA new SRC file to be updated to the ZYNQ logic unit via LVDS. Then, the ZYNQ embedded unit performs the system update. The intermediate process includes: after power-on, the ZYNQ logic unit runs first. After the ZYNQ embedded unit is running normally, it establishes an LVDS communication connection with the embedded LVDS computer upgrade system. The embedded LVDS computer upgrade system erases the embedded multimedia storage medium and EEPROM parameter progress control unit according to a data length of 1024, and then sends the UPDATA new SRC file. The hardware driver BIN file and PETA operating system file are compressed and then split into several upgrade data packets of 1024 bytes each. The embedded LVDS computer upgrade system transmits these packets sequentially to the ZYNQ embedded unit and ZYNQ logic unit via the LVDS interface circuit. After the ZYNQ logic unit completes each type of complete data packet, it writes the UPDATA new SRC file, the hardware driver BIN file, and the PETA operating system file until the upgrade of these three files is complete. These three files, namely the UPDATA new SRC file, the hardware driver BIN file, and the PETA operating system file, will be written to the embedded multimedia storage medium according to different set addresses. At the same time, the EEPROM parameter progress control unit records and saves the refresh writing progress. This allows for a restart after a power outage, skipping the previously written parts. Important user product data is also written to the EEPROM parameter progress control unit for storage.
2. The method for remotely updating the ZYNQ unit LVDS interface remote update system according to claim 1, wherein the hardware driver layer includes a low-level LINUX driver and an FPGA logic driver; the low-level LINUX driver is responsible for the internal bus driver, the EEPROM parameter progress control unit driver, the embedded multimedia storage medium driver, and the DDR4 driver. The system layer consists of a CPU0 LVDS communication control unit, which runs the Debian operating system. The application layer performs LVDS communication service upgrades.
3. The method of the ZYNQ unit LVDS interface remote update system according to claim 1, wherein the embedded LVDS computer upgrade system splits it into 1024 segments, frames it by upgrade data sequence number, upgrade data header, upgrade data destination ID, upgrade data progress, upgrade data content and upgrade data verification, and transmits it to the EEPROM parameter progress control unit or embedded multimedia storage medium according to the upgrade data destination ID.
4. The method for remote update of the ZYNQ unit LVDS interface according to claim 1, characterized in that, When an embedded LVDS computer upgrade system changes its transmission speed to transfer three types of files—the UPDATA new SRC file, the hardware driver BIN file, and the PETA operating system—if, within the specified time, it re-establishes LVDS communication with the ZYNQ logic unit and receives a reply message from the ZYNQ embedded chip, the embedded LVDS computer upgrade system will then repeatedly send the 1024-byte data packet of the system upgrade file and precisely write the data to the embedded multimedia storage medium address or the EEPROM parameter progress control unit. Through the EEPROM parameter progress control unit, even if the system upgrade is interrupted, it ensures that the device continues writing data from the previous upgrade address, and also allows the embedded LVDS computer upgrade system to re-execute the upgrade steps, improving the effectiveness and specificity of the system upgrade.
5. The method for remote update of the ZYNQ unit LVDS interface according to claim 2, characterized in that, The embedded multimedia storage medium of the ZYNQ embedded unit is divided into three storage areas: an UPDATA file (starting at address 0x00000000 and ending at address 0x009C0AFF) used to store hardware information, boot information, and startup information, containing the ZYNQ chip startup program and the LVDS receiver module program; a hardware driver BIN file (starting at address 0x009C0B00 and ending at address 0x4000000) containing drivers for various hardware interfaces; and the PETA operating system (starting at address 0x4000000 and ending at the maximum storage space of the embedded multimedia storage medium). The power-on process of the ZYNQ chip is as follows: The ZYNQ logic unit powers on first and loads via the clock. The ZYNQ embedded unit then loads, searching for a valid new UPDATA SRC file starting from address 0x00000000 in the embedded multimedia storage medium's starting address memory area and starting execution directly. Next, it reads the boot base address data from the EEPROM parameter progress control unit, guiding the hardware driver BIN file to boot from address 0x009C0B00. Finally, it reads address 0x4000000 from the EEPROM parameter progress control unit to start the PETA operating system. At this point, the system's built-in application writes product data to the EEPROM parameter progress control unit for backup and saving.
6. The method for remotely updating the ZYNQ unit LVDS interface according to claim 4, characterized in that, The UPDATA SRC file contains the working files for the ZYNQ logic unit and the ZYNQ embedded unit. Internally, it first activates the boot unit within the UPDATA SRC file, then enables the ZYNQ logic unit to function normally within the internal logic files, and finally initializes the hardware information within the internal hardware information file to support the simultaneous normal operation of the interfaces of the ZYNQ logic unit and the ZYNQ embedded unit. During a ZYNQ LVDS system upgrade, the ZYNQ embedded unit first reads the UPDATA SRC file from the base address to initialize the hardware interface and boot information. During the update, it receives the UPDATA SRC file, the hardware driver BIN file, and the PETA operating system from the embedded LVDS computer upgrade system via LVDS communication to update the embedded multimedia storage area at the base address. If the updates of the UPDATA SRC file, the hardware driver BIN file, and the PETA operating system are incomplete, the ZYNQ embedded unit will jump to the higher address storage area to find and execute valid UPDATA SRC files, hardware driver BIN files, and the PETA operating system.
7. The method for remotely updating the ZYNQ unit LVDS interface according to claim 7, characterized in that, After the embedded LVDS computer upgrade system pauses the transmission of the UPDATA new SRC file, hardware driver BIN file, and PETA operating system to be updated, if it re-establishes LVDS communication with the ZYNQ embedded unit and receives a response message from the ZYNQ logic unit, the embedded LVDS computer upgrade system will start sending LVDS data packets from the previously failed address and continue to perform the update and upgrade of the UPDATA new SRC file, hardware driver BIN file, and PETA operating system.
8. This invention saves the upgrade progress to the EEPROM parameter progress control unit and feeds it back to the embedded LVDS upgrade system through the embedded LVDS computer upgrade system, which solves the problem that the ZYNQ embedded unit needs to start the operation again when the device is unexpectedly interrupted during the system upgrade process.