VisualHMI SD card download project: compile, generate resource package, incremental upgrade

freeFree Technical Resource

This content is free to read, suitable for basic learning and search traffic.

SD card download is the most commonly used method for mass production and on-site upgrades: without needing a computer connected to the screen, you can simply copy the resource package into the SD card, insert the card, power it on, and it will automatically be programmed. This article will clarify the entire process and explain "incremental upgrade" in detail.

1. Edit / Compile

After making changes to the interface and logic in the project, click "Project" → "Compile". If the compilation is successful, a prompt will be displayed indicating success. If there are errors, the editing area will list the error messages. Fix the errors before continuing.

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图

2. Generate Resource Package (Production Wizard)

After compilation, select "Engineering" ->"Production Wizard" from the menu, and click "SD Card Download" in the pop-up dialog box to generate the download resource package. In the result generated by

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图1

:

  • private: To download the actual resource package, you need to copy it to the SD card
  • and two TXT files(!!! Copy [private] directory to the root directory of SD Card. txt ""!!! Copy private folder directly to SD card root directory. txt "): For prompt use only,has no practical significance and does not affect the upgrade
  • ota.bin: OTA packaging files need to be used in conjunction with a script for OTA upgrade (see LUA tutorial "OTA Upgrade")

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图2

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图3

Copy the entire private folder to the root directory of the SD card, without embedding subfolders. Copy it to SD/private instead of SD/xxx/private, otherwise the screen will not find the package.

3. Download (power on with card inserted)

Screen powered off → Insert SD card containing resource package → Power on, the screen automatically enters the upgrade interface and displays the download progress. Displaying "updata finished!" indicates that the download is complete, and the screen will automatically load the project and enter the UI screen. At this point, you can remove the SD card.

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图4

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图5

The information displayed for different project downloads varies: for example, if there is an audio file 1.mp3 in the project, the download process will display "write 3:/sound/1.mp3 (100%)..." This is normal, don't think it's stuck.

4. Incremental upgrade (only updating the changed parts)

The above generates afull download(the entire project is reburned). It's too slow to perform a full download every time during the debugging stage, and VisualHMI supportsincremental upgrade-- only downloading the modified parts.

Click on "Mass Production Wizard", and check according to what you have changed:

  • Changed project configuration (such as moving control positions, changing project properties) → checkEngineering configuration
  • changed the LUA script → tickScript file

Click on "Generate Package from SD Card", and this time, an additional item will appearnoformat.txtfile will be generated - its purpose is to tell the screen "do not format, only replace the packaged files in private". This file should also be copied to the root directory of the SD card, and the download process is the same as for a full update.

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图6

VisualHMI SD card download project: compile, generate resource package, incremental upgrade插图7

Incremental upgrade triple question: Have you ticked the correct options? (tick "Engineering configuration" for configuration change, and "Script file" for script change); have you copied noformat.txt? (omitting to copy will result in a full format, which will not affect functionality but will be slower); to the root directory of the SD card? (nested paths are not recognized).

Compiled from VisualHMI development documentation of Guangzhou Dacai Technology (hmi-doc.gz-dc.com) Quick Start "SD Card Download Project", copyright belongs to Dacai Technology.

Put this resource to use in a real project?

Go to the Tool Center for message parsing, CRC verification and device debugging, or submit your requirements for selection and integration advice.

Engineer Membership

Turn this article into actionable debugging resources

After activation, you can use advanced message parsing, resource pack downloads, code examples, engineering cases and priority technical support, suitable for real project delivery.

Unlimited Advanced Tools
Resource & Code Packs
Complete Engineering Case Library
Priority Technical Support

Leave a Reply

Your email address will not be published. Required fields are marked *.