RAK411 PROGRAMMING MANUAL
V1.7
COPYRIGHT ©
SHENZHEN RAKWIRELESS TECHNOLOGY CO., LTD
ETDX1603021415
21
Description:
Use the command to upgrade the module firmware. A firmware file is required to generate
an array of bytes by means of the tool, and then load in the host code (approximately
500KByte). After the host code through this command array data packets are sent into the
internal module. At the same time to judge the status byte of the module upgrade err bit is set. If
the set is said data error and need to reset module. After the completion of the firmware data is
complete, the module will be firmware upgrade, after the upgrade will restart. The host side
need to query whether the INT pin is high to determine whether the module has been restarted
(the entire process is about 50 seconds), and then determine whether the upgrade is successful
by verifying the version number. Return Value: N/A
4.2 Network Operation Commands
4.2.1 Scanning Wireless Network
Command:
rak_scan
Syntax:
typedef struct {
uint32_t cmd;
uint32_t channel;
charss id[32];
} rak_scan_t;
Parameter:
Parameter
Bytes
Value
Description
Cmd
4
0xA3,0x00,0x00,0x00
Command Code
channel
4
0—13
Scanning specified
channel(s), scan all
channels if value is 0
Ssid
32
Wireless Network Name
Specified SSID, scan all
channels if value is null
Parameter:
It is used to scan wireless networks via command.
Return Value: