Quick Start Tutorial for Smart Touch Screen

freeFree Technical Resource

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

Quick Start Tutorial for Smart Touch Screen

VisualTFT Software Installation

Visual TFT is a powerful serial port screen development and debugging software independently developed by our company, featuring the first "virtual serial port screen" in China.

Operating Environment: Windows

Download Link: VisualTFT

Follow the prompts to select the installation directory, and click "next" step by step to complete the installation. The installation process is as follows

Quick Start Tutorial for Smart Touch ScreenFigure

Introduction to VisualTFT Work Interface

If VisualTFT has been successfully installed, open an existing factory project to proceed to the introduction of the VisualTFT work interface. The interface display is as follows

Quick Start Tutorial for Smart Touch ScreenFigure1

① Menu Bar Area

The main configurations are mainly debugging and tools

Debugging

For serial port debugging, when the physical screen does not support the large color protocol, online operation will fail. At this time, clicking "Debug" → "Online without handshake" in the menu bar allows you to view the interaction of serial port commands in the [Command Window]

Tools

Common operations on the toolbar include:

  • Icon generation: generation of icon files
  • Font configuration: generation of vector fonts
  • Keyboard configuration: customization of user keyboard styles
  • Protocol and variables: configuration of modbus/fx2n/xgus protocols
  • Minic script programming: after enabling modbus/fx2n/xgus protocols, editable logic lightweight scripts can be created
  • Lua script editing: application of Lua scripts for powerful uses such as computation and private serial port protocols

② Compilation area

The editing area mainly includes compilation, download, virtual screen, etc.

  • Compiling: You can view the editing results and the used space size in the [Output Window]
  • Download: basic type, clicking download will download through the miniusb port, while other series will pop up a mass production download interface, allowing selection of serial port or SD/U disk download
  • Run virtual screen: clicking on the configured page will simulate the operation logic of the physical screen

③ Control Area

If the current entity screen adheres to the Large Color protocol, you can select the corresponding serial port number and click to connect. As shown below

Quick Start Tutorial for Smart Touch ScreenFigure2

After successful connection, "Connected Devices..." will be displayed in the lower right corner of VisualTFT, indicating that control can be debugged through [Command Debugging]

Quick Start Tutorial for Smart Touch ScreenFigure3

④ Widget Area

Widgets are primarily divided into basic widgets and configuration widgets

Basic widgets are as follows: brush, line segment, rectangular box, solid rectangle, circle, solid circle, ellipse, solid ellipse, static text, image, etc.

Quick Start Tutorial for Smart Touch ScreenFigure4

Configuration widgets are as follows, in order: button, text, gauge, slider, RTC, animation, icon, curve, menu, sliding selection, QR code, data logging, historical curve, circular progress bar, basic graphics, video, sub-screen window widget, etc.

Quick Start Tutorial for Smart Touch ScreenFigure5

⑤ Widget Layout

Used for adjusting the distribution of widgets such as stacking, alignment, spacing, equal width and height, as well as locking, hiding, zooming in and out during the screen layout process

Quick Start Tutorial for Smart Touch ScreenFigure6

⑥ Project Window

Used to view the created screens and loaded image, audio, video, and other file lists

Quick Start Tutorial for Smart Touch ScreenFigure7

⑦ Editing Area

Mainly responsible for editing the UI interface, the main operational area in development allows users to click and select the desired controls, placing them in this area to complete the creation of controls. Specific operations are as follows:

Quick Start Tutorial for Smart Touch ScreenFigure8

⑧ Property Window

The right side belongs to the Property Window, which mainly allows users to view the overall project configuration properties, control properties, and all screen and image resource windows. As shown below:

Quick Start Tutorial for Smart Touch ScreenFigure9

⑨ Output Window

When users compile, all errors, warnings, and total project size are output in this window.

⑩ Command Window

After successfully connecting online, users can view specific message information in the [Command Window] through command sending and receiving control. For example, for the VisualTFT online physical screen, click [Command Assistant] ⇨ Device Handshake

VisualTFT 发送:EE 04 FF FC FF FF

屏幕反馈: EE 55 FF FC FF FF

Quick Start Tutorial for Smart Touch ScreenFigure10

How to create a project

After understanding the basic VisualTFT interface, this section will create a new project

In the menu bar, select "File" ⇨ "New Project N…" in sequence, or directly click the shortcut button to create a new project, as shown below

Quick Start Tutorial for Smart Touch ScreenFigure11

Select the storage path, and according to the physical screen, choose the corresponding resolution and size. For example, if the physical screen model is DC80480M070_1111_0C, the operation is as follows:

Quick Start Tutorial for Smart Touch ScreenFigure12

How to download a project

M series

Click the "Compile" buttonQuick Start Tutorial for Smart Touch ScreenFigure13. After successful compilation, the "Mass Production Wizard M" window will automatically pop up. The operation is as follows

Quick Start Tutorial for Smart Touch ScreenFigure14
Method 1

Serial Port Download: After successful connection, click "Serial Port Download", as shown below

Quick Start Tutorial for Smart Touch ScreenFigure15
Method 2: SD Card Download

SD Card Requirements

  • It is recommended to use a Kingston SD card
  • with a capacity of less than or equal to 8G
  • and formatted as FAT32

. The upgrade steps are as follows:

① Click "SD Upgrade Package" to automatically pop up the "SD_PACKET" directory

② Copy the files in the directory to the root directory of the SD card

③ Power off the screen

④ Insert the SD card into the SD card slot of the serial port screen

⑤ Power on the screen, and it will automatically enter the download page

⑥ After the download is complete, the screen will display 'update finished', and the project page will be automatically loaded. Remove the SD card

Quick Start Tutorial for Smart Touch ScreenFigure16

F series

ClickQuick Start Tutorial for Smart Touch ScreenFigure13Compile the project. After successful compilation, the "Mass Production Wizard F" window will automatically pop up. The operation steps are as follows:

Quick Start Tutorial for Smart Touch ScreenFigure17
Method 1: Serial port download

After successful connection, click on "Serial Port Download" as shown below

Quick Start Tutorial for Smart Touch ScreenFigure18
Method 2: SD card download

SD card requirements

⚫ It is recommended to use a Kingston SD card

⚫ with a capacity of less than or equal to 8G

⚫ formatted as FAT32

The upgrade steps are as follows:

① Click on "SD Upgrade Package", and the "SD_PACKET" directory will automatically pop up

② Copy the files in the directory to the root directory of the SD card, as shown below

③ Power off the screen

④ Insert the SD card into the SD card slot of the serial port screen

⑤ Power on the screen, and it will automatically enter the download page

Quick Start Tutorial for Smart Touch ScreenFigure19

⑥ After the download is complete, the screen will automatically load the project page, and then remove the SD card

IoT type

ClickQuick Start Tutorial for Smart Touch ScreenFigure13Compile the project. After successful compilation, the "Mass Production Wizard W" window will automatically pop up. The operation steps are as follows:

Quick Start Tutorial for Smart Touch ScreenFigure20
Method 1: Serial Port Download

After successful connection, click on "Serial Port Download" as shown below

Quick Start Tutorial for Smart Touch ScreenFigure21
Method 2: USB Flash Drive Download

Requirements for USB Flash Drive

⚫ The USB flash drive has not been used as a system boot disk

⚫ The capacity is recommended to be less than or equal to 32G

⚫ Format it as FAT32

Note. Some IoT models only support SD card download, and the download process is similar. ↩

The upgrade steps are as follows:

① Click "Download from U-disk or SD card" to automatically pop up the "Udisk_SD" directory

② Copy the content to the root directory of the U-disk or SD card

③ Power off the screen

④ Insert the U-disk into the U-disk slot of the serial port screen

⑤ Power on the screen to automatically enter the download page

Quick Start Tutorial for Smart Touch ScreenFigure22

⑥ After the download is complete, the screen displays 'INFO:Upgrade finished', then power off the screen → remove the card → power on, completing the project download

Basic version

Click the Compile buttonQuick Start Tutorial for Smart Touch ScreenFigure23And the [Output Window] displays 0 errors, indicating successful compilation. The operation is as follows:

Quick Start Tutorial for Smart Touch ScreenFigure24

In the menu bar, click "Tools" → "Mass Production Wizard", and the "Mass Production Download" dialog box will pop up

Quick Start Tutorial for Smart Touch ScreenFigure25
Method 1: Serial Port Download

After successful connection, click on "Serial Port Download" as shown below

Quick Start Tutorial for Smart Touch ScreenFigure26
Method 2: Mini USB Port Download

Connect the computer and the screen using the MiniUSB port, clickQuick Start Tutorial for Smart Touch ScreenFigure13in the menu bar, and you can enter MiniUSB project download without serial port connection, as shown below

Quick Start Tutorial for Smart Touch ScreenFigure27
Method 3: U-Disk Download

SD Card Requirements

  • It is recommended to use Kingston SD cards
  • with a capacity of less than or equal to 8G
  • and formatted as FAT32

. The steps for upgrading the SD card are as follows:

① Click to upgrade the SD card resource package

Quick Start Tutorial for Smart Touch ScreenFigure28

② Copy the content to the root directory of the U-Disk or SD card

Quick Start Tutorial for Smart Touch ScreenFigure29

③ Insert the SD card into the SD card slot of the serial port screen

④ Automatically enter the upgrade page

Quick Start Tutorial for Smart Touch ScreenFigure30

⑤ After the download is complete, the screen buzzer will sound once, and the UI screen will automatically appear. Simply remove the SD card

VisualTFT and virtual screen debugging

Our PC software virtual serial port screen can be debugged in virtual connection with Visual TFT. This feature allows for simulating and demonstrating the interaction between MCU programs and serial port screens on a computer, which is very helpful for beginners to understand the large color instruction set. The software VSPD is a virtual serial port driver generation software that can create a pair of associated virtual serial ports.

Install virtual serial port software

The joint debugging of KEIL software and virtual serial port screen requires a pair of associated virtual serial ports to be implemented. Virtual serial ports can be generated through the VSPD software. If the software VSPD has already been installed, this section can be skipped. The installation steps are as follows:

  1. The virtual serial port software VSPD installation package is provided on our company's official website and in the software development kit, as shown below:Quick Start Tutorial for Smart Touch ScreenFigure31
  2. Before installing, please review the "Read Me Before Use.txt" document under the installation package. Click to run vspd.exe to install the software, select the installation path, and click "Next" until the installation is complete, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure32

Create a virtual serial port

  1. Open the virtual serial port software. Assuming com6 and com7 are selected as a pair of virtual serial ports, click "Add pair" to generate a pair of associated serial ports, as shown below:

Note: The virtual serial port number cannot be duplicate with the physical serial port number, otherwise the serial port will not function properly. The virtual serial port number should be within 10 as much as possible

Quick Start Tutorial for Smart Touch ScreenFigure33

Run the virtual screen

Assuming the created virtual serial port pair is com1 and com2, taking the factory project as an example, click "Run", select one of the serial ports, com1, and open the serial port. The operation is shown as follows:

Quick Start Tutorial for Smart Touch ScreenFigure34

Online Debugging

Select the other virtual serial port, com2, open the command assistant, and change the value of the "Maximum Voltage" text control from 100⇨66⇨88. The operation is shown as follows:

Quick Start Tutorial for Smart Touch ScreenFigure35

Keil and Virtual Screen Debugging

Based on the simulation function of the KEIL development software, our company has added a function for joint debugging with KEIL simulation in the virtual serial port screen on the PC software Visual TFT. This function allows for the simulation demonstration of the interaction effect between the MCU program and the serial port screen on a computer. Using this function to debug programs can greatly reduce the debugging time required for repeatedly downloading MCU programs and serial port screen UI projects during the development process.

The software VSPD is a virtual serial port driver generation software that allows for the creation of a pair of associated virtual serial ports. If the user has already created one in the previous section, they can skip directly to the next section.

Install Virtual Serial Port Software

The joint debugging of KEIL software and virtual serial port screen requires a pair of associated virtual serial ports to be implemented. Virtual serial ports can be generated through the VSPD software. If the software VSPD has already been installed, this section can be skipped. The installation steps are as follows:

  1. The virtual serial port software VSPD installation package is provided on our company's official website and in the software development package, as shown below:Quick Start Tutorial for Smart Touch ScreenFigure31
  2. Before installing, please review the "Read Me Before Use.txt" document under the installation package. Click to run vspd.exe to install the software, select the installation path, and click "Next" until the installation is complete, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure32

Create Virtual Serial Ports

  1. Open the virtual serial port software, select com6 and com7, and click "Add pair" to generate a pair of associated virtual serial ports. The creation of virtual serial ports is shown as follows:

Note: The virtual serial port number cannot be the same as the physical serial port number, otherwise it will cause the serial port to function improperly. The virtual serial port number should be within 10 as much as possible. If the virtual serial port number exceeds 10, the KEIL software simulator may not support it.

Quick Start Tutorial for Smart Touch ScreenFigure33

Configure KEIL project properties.

In the previous section, a pair of virtual serial ports, COM6 and COM7, has been generated. Next, we need to connect the virtual serial port screen to COM7, map the KEIL software simulator serial port to COM6, and then configure some properties to complete the connection between the two. The operation steps are as follows:

  1. View the simulated serial port registers. ARM series MCUs may have multiple serial ports. The method to view the serial port registers is as follows:

① Click the "Debug" button in the KEIL software menu to enter debug mode, and then enter "DIR VTREG" in the lower left corner window of the KEIL project to view how many serial ports are supported by the current MCU simulation, as shown below:

Quick Start Tutorial for Smart Touch ScreenFigure36

② If it displays that there are currently no serial ports, as shown in Figure 4-5, please check if the simulated MCU is set. The check method is: click "Options for Target" in the toolbar of the KEIL software interface, and select "Debug" in the pop-up window, as shown below:

Quick Start Tutorial for Smart Touch ScreenFigure37

③ After adding the simulated MCU model, recompile the project, as shown below:

Quick Start Tutorial for Smart Touch ScreenFigure38

④ After compiling, click the "Debug" button and re-enter "DIR VTREG". If the chip model supports simulation, the serial port registers of the chip will be displayed in the window, as shown below:

Quick Start Tutorial for Smart Touch ScreenFigure39

⑤ If the chip model does not support simulation, the serial port registers will not be displayed, as shown below:

Quick Start Tutorial for Smart Touch ScreenFigure40
  1. Create a COMDEBUG.ini configuration file.

① In any directory of the KEIL program project, create a new Notepad and name it COMDEBUG.txt, as shown below. Write the following two commands in the text:

MODE COM619200,0,8,1

ASSIGN COM6<S1IN> S1OUT

Quick Start Tutorial for Smart Touch ScreenFigure41

The first command sets the properties of COM6 to a baud rate of 19200, 0 parity bits, 8 data bits, and 1 stop bit; the second command maps the software simulator's serial port 1 to COM6

Special Note: Different MCUs have slight variations in the above ASSIGN statement, as shown below:

ARM Series MCU: ASSIGN COM6 S1OUT

8051 Series MCU: ASSIGN COM6 SOUT

STC Series MCU: ASSIGN COM6 S0OUT

Tip: When simulating MCUs using serial ports other than Serial Port 1, you need to modify the above ASSIGN statement to the corresponding serial port. For example, if Serial Port 2 is used, change S1IN to S2IN and S1OUT to S2OUT

③ Change the suffix of COMDEBUG.txt to COMDEBUG.ini, thus completing the creation of the configuration file, as shown below:

Quick Start Tutorial for Smart Touch ScreenFigure42

Tip: If the .txt suffix extension is not displayed in Notepad on your computer, you can enter the folder options and remove "Hide file extensions for known file types". For Windows 7 systems, click "Organize" in the file bar and select "Folder and Search Options" to pop up the interface

Quick Start Tutorial for Smart Touch ScreenFigure43
  1. Open the KEIL project, click "Options for Target" in the toolbar, and select the [Debug] configuration in the pop-up window, as shown below:Quick Start Tutorial for Smart Touch ScreenFigure44
  2. In the [Debug] configuration, select "Use Simulator" on the left side, and add the COMDEBUG.ini configuration file from the project directory to the Initialization File, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure45
  1. Then modify the CPU simulation parameters in the window:

[CPU DLL]: Modify to SARMCM3.DLL;

[Parameter]: (Leave blank);

【 Dialog.DLL 】: Change to DARMSTM.DLL;

[Parameter]: -pSTM32F103VC (fill in the simulation chip model here, note: some MCUs do not support simulation function, such as the STM32F4 series of MCUs which do not support software simulation)

Note: The 51 microcontroller does not need to be modified here and can be skipped directly.

Quick Start Tutorial for Smart Touch ScreenFigure46

Configure the serial port screen project

The project configuration can refer to the factory example in the development package, which will not be detailed here.

  1. Open the factory example, click to run the virtual serial port screen. After the software compiles successfully, the window of the virtual serial port screen will pop up, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure47
  1. Select the virtual serial port as com7 and the baud rate as 19200 (the baud rate should be consistent with that in the configuration file), then click to open the serial port and choose whether to make the window topmost according to your needs, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure48

Program joint debugging demonstration

  1. Click to compile the KEIL project and confirm that there are no errors in the project, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure49
  1. After successful compilation, click the Debug button, as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure50
  1. After starting to run the program at full speed, the effect is as shown below:
Quick Start Tutorial for Smart Touch ScreenFigure51

Instruction set

The Bouncing Symbol Protocol is a set of message protocols independently developed and standardized by our company, serving as a standard for communication between user mainboards and Bouncing Symbol serial port screens. The format of a complete serial port command frame is shown below. If the command parameter is greater than 1 byte, the high byte comes first, followed by the low byte. The maximum length of the command is 1024 bytes (including the frame header and frame trailer), with all values in hexadecimal. Serial port format: 8 data bits, 1 stop bit, no parity bit.

CommandEEXXXX XX…XXXFF FC FF FF
DescriptionFrame HeaderCommandCommand ParameterFrame Trailer

If users require the command to support CRC format verification, the command frame format is shown below. The CRC algorithm program can be downloaded from the official website's download section. CRC verification does not include the frame header and frame trailer.

CommandEEXXXX XX…XXXCRC16FF FC FF FF
DescriptionFrame HeaderCommandCommand ParameterCheck BitFrame Tail

For detailed message meanings and parsing, please refer to "Bouncing Symbol Serial Port Screen Command Set V5.1.pdf" (click to jump)

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 *.