HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and Board Edu 21.0 Serial Port Usage Guide (HTML)

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

HUAWEI IdeaHub Pro, S, Enterprise, Board Pro

and Board Edu


21.0

Serial Port Control User Guide

Issue 01
Date 2022-06-30

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2022. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior
written consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.

Notice
The purchased products, services and features are stipulated by the contract made between Huawei and
the customer. All or part of the products, services and features described in this document may not be
within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements,
information, and recommendations in this document are provided "AS IS" without warranties, guarantees
or representations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: https://e.huawei.com

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. i


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide Contents

Contents

1 Overview....................................................................................................................................1
2 Prerequisites............................................................................................................................. 2
2.1 Hardware.................................................................................................................................................................................... 2
2.2 Parameter Restrictions...........................................................................................................................................................3

3 Module Messages.................................................................................................................... 4

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. ii


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide 1 Overview

1 Overview

The RS232 serial port control is the mainstream protocol in the education industry,
working with the central control system to achieve simple large-screen control,
which meets the needs of mainstream customers. The central control host can
send messages in a specified format through the RS232 port to control the large
screen.

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. 1


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide 2 Prerequisites

2 Prerequisites

When deploying the system, you need to connect the endpoint to the central
control platform that is installed with related central control software. This section
describes the prerequisites for the serial port and RS232 protocol parameters.

2.1 Hardware
A serial port of 30 meters or shorter is recommended.

As shown in Figure 2-1, an RJ45 connector is used for the serial port of the
endpoint, and a DB9 connector is used for the serial port of the desktop computer
or central control platform.

Figure 2-1 Connecting to an endpoint

Figure 2-2 shows the standard 8-pin RJ45 connector.

Figure 2-2 RJ45 connector

Figure 2-2 shows the 9-pin DB9 connector.

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. 2


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide 2 Prerequisites

Figure 2-3 DB9 connector

Table 2-1 describes the connections of two ends.

Table 2-1 Pin definitions


RJ45 connector (mainly for an DB9 connector (mainly for a
endpoint) computer or central control system)

Pin Definition Pin Definition

3 RS232_TX 2 RXD (receiving


(receiving data) data)

5 GND (signal 5 GND (signal


ground) ground)

6 RS232_RX 3 TXD (transmitting


(transmitting data)
data)

2.2 Parameter Restrictions


1. RS232 protocol parameters negotiated with the central control vendor:
(1) Baud rate: 9600
(2) Parity: none
(3) Data bits: 8
(4) Stop bits: 1
2. The sent message is a hexadecimal number, not an ASCII code.

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. 3


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide 3 Module Messages

3 Module Messages

Users can send messages in the specified hexadecimal format to control the large
screen through the API functions of RS232 serial port protocol. The functions
include:
1. Receive and parse the RS232 serial port protocol.
2. Control large-screen based on RS232 serial port messages:
(1) Remote shutdown
(2) Remote sleep or wakeup control
(3) Remote screen volume adjustment
(4) Remote screen brightness adjustment
(5) Remote signal source switching (for example, from HDMI1 to HDMI2)
(6) Opening and closing apps based on specified package names
(7) Switching between OPS and Android systems
The message format is the customized VISCA command. The format is a string of
hexadecimal codes: 3-digit command start code + 2-digit event command code (+
event value) + 1-digit command end character. The command start code is fixed to
0x81, 0xAB, 0xBC, the 1-bit command end code is 0xFF. For details about the event
codes and values, see Table 3-1.

Table 3-1 Description of RS232 serial port message format

Remote RS232 Serial Port Message Sample Reference


Control Format

Event Code Event Value

Remote 0x01 0x01 None 0x81 0xAB 0xBC 0x01 0x01 0xFF
shutdown

Remote sleep 0x01 0x03 None 0x81 0xAB 0xBC 0x01 0x03 0xFF

Remote 0x01 0x04 None 0x81 0xAB 0xBC 0x01 0x04 0xFF
wake-up

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. 4


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide 3 Module Messages

Remote 0x01 0x05 The value of If the volume is set to 10: 0x81
volume ranges from 0xAB 0xBC 0x01 0x05 0x0A 0xFF
adjustment 0 to 21.

Remote 0x01 0x07 The value of If the brightness is set to 10:


screen brightness 0x81 0xAB 0xBC 0x01 0x07 0x0A
brightness ranges from 0xFF
adjustment 0 to 100.

Remote 0x01 0x09 0x01: switch 0x81 0xAB 0xBC 0x01 0x09 0x01
signal source to HDMI1. 0xFF
switching
0x02: switch 0x81 0xAB 0xBC 0x01 0x09 0x02
to HDMI2. 0xFF

Remotely 0x01 0x0A The For example, if the name of the


opening hexadecimal app to be opened is
third-party values com.example.demo, the
apps correspondin message is 0x81 0xAB 0xBC 0x01
g to ASCII 0x0A 0x63 0x6F 0x6D 0x2E 0x65
codes of the 0x78 0x61 0x6D 0x70 0x6C 0x65
package 0x2E 0x64 0x65 0x6D 0x6F 0xFF.
name. (0x63 0x6F 0x6D 0x2E 0x65 0x78
0x61 0x6D 0x70 0x6C 0x65 0x2E
0x64 0x65 0x6D 0x6F is the
hexadecimal value corresponding
to the ASCII code of
com.example.demo.)

Remotely 0x01 0x0B The For example, if the name of the


closing third- hexadecimal app to be closed is
party apps values com.example.demo, the
correspondin message is 0x81 0xAB 0xBC 0x01
g to ASCII 0x0B 0x63 0x6F 0x6D 0x2E 0x65
codes of the 0x78 0x61 0x6D 0x70 0x6C 0x65
package 0x2E 0x64 0x65 0x6D 0x6F 0xFF.
name. (0x63 0x6F 0x6D 0x2E 0x65 0x78
0x61 0x6D 0x70 0x6C 0x65 0x2E
0x64 0x65 0x6D 0x6F is the
hexadecimal value corresponding
to the ASCII code of
com.example.demo.)

Remote 0x01 0x0C 0x01: switch 0x81 0xAB 0xBC 0x01 0x0C 0x01
system to Android. 0xFF
switchover
0x02: switch 0x81 0xAB 0xBC 0x01 0x0C 0x02
to Windows. 0xFF

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. 5


HUAWEI IdeaHub Pro, S, Enterprise, Board Pro and
Board Edu
Serial Port Control User Guide 3 Module Messages

NOTE

· Only third-party apps can be remotely opened and closed.


· The following models support signal source switching: IdeaHub Board Pro and IdeaHub
Board Edu.

Issue 01 (2022-06-30) Copyright © Huawei Technologies Co., Ltd. 6

You might also like