Winstar Tech Article: how does the HOST switch page with SmartDisplay products – CANbus
When integrating and promoting SmartDisplay products, the focus is often more on introducing the features and functions and less on how to operate SmartDisplay products from the perspective of a client host control. Winstar uses switching pages as an example to simulate how the client host can issue commands to the display for switching pages. As a user, you become more familiar with the diversity of Smart Display and you can better understand how the data is transmitted.
Smart Display Solution Features
■ The user interfaces are well defined as objects.
■ Built in flash memory, store the font and Object Dictionary data.
■ Get started quickly, suitable for fast and easy integration of a HMI into any application.
■ Design the UI without writing a line of code by winstar GUI builder!
This application will take a 5-inches high-brightness standard product as an example. The system interface is divided into two parts: simulation and implementation using CANbus. It explains how to use GUI Builder to understand how to create a project and change the pages, and finally understand the process of changing the pages through the generated LOG and how the instruction was given.
A 5-inches SmartDisplay is used in this example, run GUIBuilder to create a new project, give the project name and select the 5-inches display type in highlighted template, select CANbus for the protocol, and select Industry for the application scenario.
Select page and click “+” to add a new page
Click on the simulator icon.
1.After entering the simulation window, click the page option. Currently, there are only two pages, 0 and 1. Click 1 to change it with another page.
2.You can see the LOG below, click the right button to export the EXCEL file.
1.It can be seen from the LOG that at the beginning HOST will give Index0x2104, sub-Index 0x01 data request to change the mode to ConfigMode.
2.Next will give Index0x2103, sub- Index 0x02 request to switch PAGE to page 1
3.Finally, the information of Index0x2104 and sub- Index 0x01 will be requested to change the mode to DisplayMode.
Enter the implementation phase, a 5-inch high-brightness SmartDisplay module must be prepared. Connect the SmartDisplay’s system interface CANbus to the USB2CAN Dongle, run GUIBuilder again, open the above simulated template or create a new project according to the following procedures and connect SmartDisplay.
Select page and click + to add a new page.
After clicking Connect to Device, select upload the project.
The following message will appear when the update is successful, and the module screen is as follows.
Click Test Device to enter the test screen
Enter the test account as shown below
Page menu selection 1 (page 1) module on the screen as follows
Right-click on the Log to export the excel file (Log file)
1.From the log, we can know that at the beginning, the Host will give the information of Index0x2104 and sub-Index 0x01, which requires changing the mode to ConfigMode.
2.Next, Index0x2103 and sub-Index 0x02 will be requested to switch PAGE to page 1.
3.Finally, the information of Index0x2104 and sub-Index 0x01 will be requested to change the mode to DisplayMode.
Through the operation and simulation on GUI builder of switching paging, users can become more familiar with the diversity of Smart Display. The simulation function is not only convenient to use, but users can also understand how the data is transmitted by receiving and sending commands through the data log. Users can understand the meaning of data received and sent, and allow users to design their own Host-side controllers.