![background image](http://html1.mh-extra.com/html/diamond-systems/alt1300-1g-xt/alt1300-1g-xt_user-manual_2494399044.webp)
Altair User Manual Rev A.02
www.diamondsystems.com
Page
44
7.14 Set COM Mode
Command:
Byte
Length
Value and Description
0
2
MESSAGE_SIG: Message signature
2
1
COMMAND_SET_COM_MODE
3
1
1: Indicating 1 more byte to be read
4
1
1: Indicates RS-232 protocol to be used
2: Indicates RS-485 protocol to be used
3: SPI (Serial Peripheral Interface) protocol to be used
Response:
Byte
Length
Value and Description
0
2
MESSAGE_SIG: Message signature
2
1
COMMAND_RECEIVER_ACK: Command id for the message
3
1
1
4
1
Return status for the command
0: Operation completed successfully
1: Some problem in the operations
Comments:
This command is used to specify what protocol is
used by the firmware. This won’t be immediately reflected in the
firmware; the protocol will be updated after the device is reset. The default protocol is set as SPI communication
(The host windows application is uses the SPI protocol). To set the protocol to RS-232, the message looks like
[0x3232] [0x27] [0x01] [0x01].
7.15 Get COM Mode
Command:
Byte
Length
Value and Description
0
2
MESSAGE_SIG: Message signature
2
1
COMMAND_GET_COM_MODE
3
1
0: Indicating no data is sent
Response:
Byte
Length
Value and Description
0
2
MESSAGE_SIG: Message signature
2
1
COMMAND_RECEIVER_GET_COM_MODE:
Indicating the command to process
3
1
1: Indicating 1 byte of data to be read
4
1
1: Indicates RS-232 protocol to be used
2: Indicates RS-485 protocol to be used
3: SPI (Serial Peripheral Interface) protocol to be used
Comments:
This command is used to retrieve the protocol used for sending data, or getting data from firmware. The default
communication mode is the SPI. The firmware will use the last used protocol (the protocol used for before the last
rest) when initializing the firmware