13.2 General-purpose Communication
13.2.2 General-purpose Communication (Serial)
This section explains how to use the CAA SerialCom library, in the following order.
1. Library_Manager
2. COM transmission / reception processing example
■
Library_Manager
Check that the following CAA SerialCom library is registered in Library_Manager.
■
COM transmission / reception processing example
Send and receive data via SerialCom.
Specify communication settings as below.
COM number
Baud rate
Data bits
Parity bit
Stop bit
Processing for data transmission / reception
The processing for data transmission / reception is as follows:
● Serial port open processing
● Serial port close processing
● Reception processing
● Transmission processing
Explanation of variables
Process
When the value is rewritten, the following processing is executed. After the execution is
completed, the variable is set to 0 (invalid value).
1 = Serial port open processing
2 = Reception processing
3 = Transmission processing
4 = Serial port close processing
SendBuf
Data to be sent is set.
13-20
1
115200 bps
8
Odd
1
WUME-GM1RTXOP-01