Get Baud Rate; Send Uart; Get Uart - Philips PC-Link Manual

Table of Contents

Advertisement

3.2.20. GET BAUD RATE

Is used to read UART baud rate.
Host Command
Module Response
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
USB Smart I/O
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.
Host Command
Module Response
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
USB Smart I/O
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.
Host Command
Module Response
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.
Byte Count
1
2
1
: 0x58 0x01 0x31 0x76
: 0x58 0x02 0x31 0x03 0x72
Byte Count
2 – 33
1
: 0x58 0x04 0x32 0x01 0x02 0x03 0x6C
: 0x58 0x01 0xAA 0xFD
Byte Count
2
2 – 33
1
16
Command
Parameter
0x31
0x31
BAUDRATE
0xEE
Command
Parameter
0x32
1 – 32 byte
0xAA
0xEE
Command
Parameter
0x33
0xA3
1 – 32 byte
0xAA
0xEE
-
-
-
COUNT
-

Advertisement

Table of Contents
loading

Table of Contents