
Command Reference
2015-2018 Microchip Technology Inc.
DS40001784G-page 45
2.5.1
radio rx <rxWindowSize>
<rxWindowSize>
: decimal number representing the number of symbols (for LoRa
modulation) or time-out (in milliseconds, for FSK modulation) that
the receiver will be opened, from 0 to 65535. Set
<rxWindowSize>
to ‘
0
’ in order to enable the Continuous
Reception mode. Continuous Reception mode will be exited once
a valid packet is received.
Response: this command may reply with two responses. The first response will be
received immediately after entering the command. If the command is valid
(
ok
reply received), a second reply will be received after the reception of a
packet or after the time-out occurred.
Response after entering the command:
•
ok
– if parameter is valid and the transceiver is configured in Receive mode
•
invalid_param
– if parameter is not valid
•
busy
– if the transceiver is currently busy
Response after the receive process:
•
radio_rx <data>
– if reception was successful,
<data>
: hexadecimal value
that was received;
•
radio_err
– if reception was not successful, reception time-out occurred
Example:
radio rx 0
// Puts the radio into continuous Receive mode.
2.5.2
radio tx <data>
<data>
: hexadecimal value representing the data to be transmitted, from 0 to 255
bytes for LoRa modulation and from 0 to 64 bytes for FSK modulation.
Response: this command may reply with two responses. The first response will be
received immediately after entering the command. If the command is valid
(
ok
reply received), a second reply will be received after the effective
transmission.
Response after entering the command:
•
ok
– if parameter is valid and the transceiver is configured in Transmit mode
•
invalid_param
– if parameter is not valid
•
busy
– if the transceiver is currently busy
Response after the effective transmission:
•
radio_tx_ok
– if transmission was successful
•
radio_err
– if transmission was unsuccessful (interrupted by radio Watchdog
Timer time-out)
This command transmits the
<data>
passed.
Ensure the radio Watchdog Timer time-out is higher than the Receive window size.
Note:
The
mac pause
command must be called before any radio transmission
or reception, even if no MAC operations have been initiated before.
Note:
When transmitting FSK packets, the payload and the 2-byte CRC is
whitened by being XORed with a pseudorandom sequence generated by
an LFSR with the polynomial X
9
+ X
5
+ 1. This process is automatically
reverted on reception so that it is transparent to the user.