3.2.20.GET BAUD RATE
Is used to read UART baud rate.
Byte Count
Command
Parameter
Host Command
1
0x31
-
Module Response
2
0x31
BAUDRATE
1
0xEE
-
BAUDRATE parameter is the baud rate value code.
If packet is recognized and correct, module will respond with baud rate value
code.
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
: 0x58 0x01 0x31 0x76
USB Smart I/O
: 0x58 0x02 0x31 0x03 0x72
means that the computer requests for baud rate value and module replies that
the baud rate has a value of 38400 bps.
3.2.21.SEND UART
Is used to command the module to send a series of data via UART line.
Byte Count
Command
Parameter
Host Command
2 – 33
0x32
1 – 32 byte
Module Response
1
0xAA
-
0xEE
Up to 32 bytes parameter will be transmitted consecutively.
If packet is recognized and correct, module will respond with ACK (0xAA).
If the packet is false/not recognized, module will respond with NACK (0xEE).
Example:
PC
: 0x58 0x04 0x32 0x01 0x02 0x03 0x6C
USB Smart I/O
: 0x58 0x01 0xAA 0xFD
will send 0x01, 0x02, and 0x03 data via UART line
.
3.2.22.GET UART
Is used to command the module to read a series of data via UART line.
Byte Count
Command
Parameter
Host Command
2
0x33
COUNT
Module Response
2 – 33
0xA3
1 – 32 byte
1
0xAA
-
0xEE
COUNT parameter is the amount of data that will be read.
If packet is recognized and correct, module will respond with data reading
results. These are the received data (maximum 32 bytes).
If the received data is more than 32 bytes, then the 33rd data onwards will
overwrite the first data and onwards (roll-over).
If the COUNT value is larger than the amount of data on the buffer, then the
module will only send the data on the buffer
.
16