Home Solutions Controlling Smart Display Page Switching via CANopen

Controlling Smart Display Page Switching via CANopen

May 26,2023

Introduction

When integrating and promoting Smart Display products, the focus has primarily been on introducing their features and functions, with less emphasis on how to control a Smart Display from the host side. This article uses page switching as an example to demonstrate how a host sends commands to switch pages on a Smart Display.

This example uses a 5-inch high-brightness standard Smart Display with CAN bus communication. It is divided into two parts: simulation and implementation. GUI Builder is used to create a project and switch pages, while the generated Log is used to understand the command sequence for page switching.

Simulation

1-1 This example uses a 5-inch high-brightness Smart Display. Run GUI Builder to create a new project, enter the project name, select the 5-inch high-brightness template, select CAN bus as the communication protocol, and select Industry as the application scenario.

1-1-simulation

 

1-2 Select Page and click “+” to add a new page.

1-2-simulation-select-page-and-click-to-add-a-new-page

1-3 Click Simulator with GUI.

1-3-simulation-click-on-the-simulator-icon


1-4

1. After entering the simulation window, select the page option. There are currently two pages, Page 0 and Page 1. Select Page 1 to switch to the other page.
2. The Log is displayed below. Right-click the Log to export it as an Excel file.

1-4-simulation-after-entering-the-simulation-window


1-5

1. The Log shows that the host first sends a data request to Index 0x2104, sub-index 0x01 to change the mode to ConfigMode.
2. Next, the host sends a request to Index 0x2103, sub-index 0x02 to switch the page to Page 1.
3. Finally, the host sends a data request to Index 0x2104, sub-index 0x01 to change the mode to DisplayMode.

1-5-simulation-configmode-1

1-5-simulation-configmode-2

Implementation

1-1 For the implementation, prepare a 5-inch high-brightness Smart Display module. Connect the CAN bus system interface of the Smart Display to the USB2CAN Dongle, as shown below. Run GUI Builder again and open the project used in the simulation above, or create a new project by following the steps below, and then connect to the Smart Display.

1-1-1-practice-screen

1-1-practice

1-2 Select Page and click “+” to add a new page.

1-2-practice-select-page-and-click-to-add-a-new-page

1-3 Click Connect to Device to establish the connection, and then select Upload the Project.

1-3-after-clicking-connect-to-device-select-upload-the-project

1-4 When the update is completed successfully, the following message appears and the module displays the screen shown below.

1-4-the-following-message-will-appear-1

1-4-the-following-message-will-appear-2

1-5 Click Test Device to enter the test screen.

1-5-click-test-device-to-enter-the-test-screen

1-6 The test screen appears as shown below.

1-6-test-screen

1. Select Page 1 from the Page menu. The module displays the screen shown below.

1-6-1-page-menu-selection1-page1-module-on-the-screen-as-follows

2. Right-click the Log to export it as an Excel file.


1-7

1. The Log shows that the host first sends a data request to Index 0x2104, sub-index 0x01 to change the mode to ConfigMode.
2. Next, the host sends a request to Index 0x2103, sub-index 0x02 to switch the page to Page 1.
3. Finally, the host sends a data request to Index 0x2104, sub-index 0x01 to change the mode to DisplayMode.

1-7-requires-changing-the-mode-to-configmode

Conclusion

By switching pages through simulation and implementation, users can become more familiar with Smart Display operation. In addition to using GUI Builder for operation and simulation, users can review the Log to understand how commands are issued and how data is transmitted and received. This information can also serve as a reference when designing a custom host-side controller.

Have questions about display solutions for your business? Contact Us!

Subscribe

Receive emails about news updates from Winstar.

Contact Us

Price/Datasheet/General inquiry

Technical Support

Contact us for any technical information

go top
Contact Us
close

We value your privacy

By clicking "Allow All Cookies", you agree to the storing of cookies on your device to enhance site navigation, analyse site usage, and assist in our marketing and performance efforts. You can find further information this subject in our policy.

We value your privacy

Winstar and certain third parties use cookies on www.winstar.com.tw. The details regarding the types of
cookies, their purpose and the third parties involved are described below and in our Cookie Policy.
Please click on “Allow All” to consent to our usage of cookies in order to have the best possible
experience on our websites. You can also set your preferences or reject cookies (except for strictly
necessary cookies).

Manage Consent Preferences

Always Active
Essential Cookies

These cookies are essential in order to enable you to move around the website and use its
features, such as setting your privacy preferences, logging in or filling in forms.

Analytics Cookies

Also known as “statistics cookies,” these cookies collect information about how you use a website, like which pages you visited and which links you clicked on. See Detail