User's Manual

GL2RF9_User_Manual_r1 2022-02-14
Page 4 of 7
;-------------------------------------------------------------------------------
ATBR Set baudrate (baudrate value)
Baudrate will be changed only after ATCN command.
Format: ATBR[BAUDRATE]
[BAUDRATE] is a baudrate value in ASCII hex format.
Return values: 8 digits in ASCII hex format.
Returned value is the closest actual value of baudrate and may differ from
Value passed as [BAUDRATE] argument.
Example:
ATBR2000
OK
ATBR
2015
ATCN
;-------------------------------------------------------------------------------
ATBT Before Time
Time before "+++" in 100ms units)
;-------------------------------------------------------------------------------
ATCH Set or get RF channel.
Format: ATCH[CHANNEL NUMBER]
[CHANNEL NUMBER] : channel number in ASCII hex format
Example:
ATCH0A
OK
ATCH
0A
;-------------------------------------------------------------------------------
ATCN Exit command mode
;-------------------------------------------------------------------------------
ATDM Set or get current Data Mode state
Format: ATDM[STATE]
0 - OFF: Data exchange is disabled;
1 - Stream Mode, Fixed packet length (only for GLxRF4)
2 - Packet mode, RF4 - Fixed length, RF8,RF9 - Variable (same as DM4)
3 - Stream Mode, Variable packet length (only for GL2RF9)
4 - Packet mode, Variable packet length
While the Packet mode is on:
- Command Timeout is disabled between the commands and is active only
while the command is being received from the host(UART interface).
- LED behaviour is similar to STREAM mode.
- received data packages will be redirected to the host(UART interface)
in format:
+RX[LENGTH],[DATA]
[LENGTH] : data length
[DATA] : set of data bytes, each byte is represented by 2 characters
in ASCII hex format (0x13 as 13, 0xF1 as F1)
Example: +RX05,A1B4F122E4
- ATCN command stays in Packet mode, but update baudrate after "OK"
Example:
+++
OK
ATDM2
OK
ATDM
2
+RX05,A1B4F122E4
+RX01,12
+RX03,FF00FF
+RX02,1234
ATDM0
OK
ATDM
0