EN
CN

STONE LCD Module Hardware Connection and Serial Port Communication Test

  1. External Interface of Intelligent TFT LCD Module

 

Table 1 Summary Sheet of External Interface of Intelligent TFT LCD Module

Position Number

Name

Specification

Function

Description

J3

User Interface

SMD2.0-8 with lock

Connect with user’s mainboard for power supply and communication of Serial Port

 

J2

USBmini interface

USB-mini

Connect with computer for online download interface

Part of models are not available

J10

Interface of USB Flash Disk

USB-A Type

Connect with USB flash disk for off-line download interface

Part of models are not available

J9

Interface of USB Flash Disk

1.25-8

Connect with ear wire of USB flash disk for off-line download interface

Part of models are not available

J13

Voice interface

PH2.0-2

Connect with loudspeaker in 8 Ohms and 2 watts

Part of models are not available

J7

Keyboard interface

FPC1.0-6 lower

Connect with external keyboard

Part of models are not available

 

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test

Figure 1 STVI070WT-01 Picture

 

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test

Figure 2 Connection Diagram of External Connection of STVI070WT-01 

 

 

    1. User Interface (J3)

 

User interface is used for power supply and serial signal connection. The socket package diagram can be downloaded from the official website. User interfaces include power supply (VIN/GND) and serial signal (DIN/DOUT). The detailed pin definition, power supply voltage (5V/12V/24V) and interface level (TTL/RS-232/RS-485) shall be based on the specifications.

 

DIN is the Serial Port input signal, which receives the TXD of the user CPU. And DOUT is the output signal, which receives the RXD of the user CPU. The HMI of TTL interface can directly interface with the serial port pin of the user MCU, as shown in Figure 1-2-2A, and its interface level is compatible with 5V/3.3V logic level. The HMI of the RS-232 interface cannot directly interface with the serial port pin of the user MCU, which requires a level conversion chip MAX232, as shown in Figure 1-2-2B.

 

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test       

Figure 1-2-2A TTL Interface                         Figure 1-2-2B RS-232 Interface

 

    1. USB Interface (J2/J10/J9)

 

J2 is USB mini interface and is used for directly connecting with the computer to realize the online download, which is applicable for the research and development phase.

 

J10 is the interface of USB flash disk and is used for connecting with USB flash disk to realize to download the screen to HMI by USB flash disk in the off-line state, which is applicable for the batch production phase.

 

J9 and J10 are connected inside, which are used for connecting with USB flash dish through ear wire of USB flash wire. There are two aspects needed to be considered for setting up the socket J9: one is that it should be convenient for the user to pull out and fix the USB flash disk interface to the sidewall of the crate, so that it does not need to dismantle the crate to update the download screen; the other one is that because the space of PCB plate of part of models is limited, the USB flash disk interface socket in USB-A type can’t be placed.

 

Table 2 Pin Definition of Ear Wire Interface J9 of USB Flash Disk

 

Serial Number of Pin

Name

Description

 

Serial Number of Pin

Name

Description

1

5V

Power Supply of USB Flash Disk  

5

NC

Must be suspended

2

D-

USB Flash Disk Signal-

6

NC

Must be suspended

3

D+

USB Flash Disk Signal+

7

NC

Must be suspended

4

GND

UBS Flash Disk Power Ground

8

GND

UBS Flash Disk Power Ground

 

The detailed download method refers to User Development Guidelines of Intelligent TFT LCD Module.  

 

 

    1. Voice Interface (J13) and Keyboard Interface (J7)

 

Parts of models provide the audio interface, which can directly drive the loudspeaker in 8 Ohms and 2 watts.

 

Parts of models provide an external matrix keyboard interface with supporting 8 lines and 8 columns in maximum. The detailed reference document is the Failure Analysis of Resistive Touch Screen and Instructions on External Keyboard of Intelligent TFT LCD Module.

 

 

II. Connection of Adapter Plate DLB07 and HMI

 

In order to facilitate the connection of the computer without serial port with Intelligent TFT LCD Module, and test serial port communication and display function, our company has specially developed the adapter plate DLB07 for USB. One end of the adapter plate DLB07 connects with HMI through 8P connection wire and the other end connects with the computer with the USB wire.

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test

Figure 3 Connection of adapter plate DLB07 with HMI

 

1. Descriptions for Interface of Adapter Plate DLB07

 

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test

Figure 4 Picture of Adapter Plate DLB07

 

 

Table 2 Interface of Adapter Plate DLB07

Number

Function

Description

J1

Connect with Intelligent TFT LCD Module

 

J2

Connect with computer

 

J3

Power Supply

Supply voltage depends on the requirements of power supply of the selected Intelligent TFT LCD Module

J4

Selection of Power Supply Method

The HMI in small size (less than 7 inches) with power supply in 5V can be directly charged from USB J2 interface of the computer. While the HMI in large size with power supply in 5V and the HMI with power supply in 12V/24V only can be charged through external power supply (J3).

Note: for the HMI in large size with power supply in 5V, it may cause the flickering of pictures or repeatedly resetting of HMI by insufficient power of power supply if the screen is directly charged from the USB interface.

J5/J6

Selection of Interface Level

The RS232 side of jumper short circuit chooses RS-232 interface and the TTL side of jumper short circuit chooses TTL interface.

 

 

2. Installation of Drive Program (CP2102)

 

DLB07 adapter plate adopts the USB core design, and it needs to download and install the drive procedure CP210x_Drivers

(https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers).

 

After the drive is successfully installed, the indicator light on the adapter plate DLB07 will be on after the adapter plate DLB07 is connected to the computer USB, and the corresponding serial port number will be displayed in the device manager port, as shown in the figure below.

 

 

Figure 5 Virtual Serial Port Displayed in Device Manager  

III. Serial Port Communication Test

 

Users who firstly use the Intelligent TFT LCD Module should firstly try to verify whether the serial port communication line and parameter configuration are normal by performing online test before performing detailed function design test. As shown in Figure 3, refer to the specification of the Intelligent TFT LCD Module used, correctly connect the adapter plate DLB07 and power supply, and set the interface level.

 

1. How does a computer implement online testing?

 

The register 0x00 in the Intelligent TFT LCD Module is used for reading the firmware version of HMI. If the version information returned by the HMI can be correctly received after sending a command to read the 0x00 register to HMI, then the serial communication line and configuration are normal.

XMT: A5 5A 03 81 00 01

RCV: A5 5A 04 81 00 01 43

 

Note: The XMT is to read the current firmware version number of the HMI to check the communication status. 

A5 5A represents the frame header (Default frame header. If the user has modified it, please send the command according to the customized frame header)

03 Represents the data length (in bytes)

81 Represents reading the Intelligent TFT LCD Module register

00 Represents a register that stores the kernel version number of the Intelligent TFT LCD Module

01 Represents the version number is 1 byte long

 

The returned data 43 represents the current kernel is version Intelligent TFT LCD Module4.3 (In the process of updating the firmware, the firmware versions are different according to the purchase time and the product model, the numbers such as 42, 41, 40, 32, and 31 all represent the correct version number.).

 

2. Use the serial port debugging tool built in the Intelligent TFT LCD Module development tool to send the command of reading the version number.

 

Open the STONE Intelligent TFT LCD Module development tool and click the menu “tool->serial port debugging tool”, and then open the command assistant, as shown in Figure 6.

 

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test

 

Figure 6 Command Assistant->Serial Port Setting

 

Correctly select the virtual serial port number corresponding to the adapter plate DLB07, and other parameters do not need to be set (factory default baud rate of Intelligent TFT LCD Module is 115200, frame header is A5 5A, and no CRC check), then click the button “Open”.

 

Then click “Command Selection Area -> Device Settings and click the button Get Version Number, as shown in Figure 7. The commands actually sent by the “Get Version Number” button can be seen in the below command box, one is to read 00 register (firmware version) and the other is to read the f0-f2 register (firmware release date).

 

If the two return commands shown in the figure can be received in the command selection area of Figure 7, then it indicates that the serial port communication is normal.

 

Intelligent TFT LCD Module Hardware Connection and Serial Port Communication Test

 

Figure 7 Command Assistant->Get Version Number


 

4. Does the communication still fail even if the STONE Intelligent TFT LCD Module has correctly connected with the computer?

 

A The interface level is not matched, and whether the jumpers of J5/J5 of the adapter plate DLB07 are correctly set should be checked;

 

B The command frame header is not matched with the Baud rate, and whether the parameters of HMI are matched with the settings in Figure 6 should be checked;  

 

C The communication fails caused by the default of connection wire, which needs to use the universal meter to check whether the connection wire is conducted.

 

The following links may help you

 

14 STONE TOOL BOX instruction tutorial

https://www.stoneitech.com/news/instructions