RuiXingHengFang Network Co. Ltd. 76052 ユーザーズマニュアル

ページ / 44
V2.6 2015-12-03
www.risinghf.com
LoRaWAN Module RHF76-052 User Manual
RisingHF
29
6. Returns
a) Join successfully
+JOIN: Starting
+JOIN: NORMAL, count 1, 0s, 0s
AT+DR=CUSTOM,DR0,FSK
+JOIN: NetID 000024 DevAddr 48:00:00:01
+JOIN: Done
b) Join failed
+JOIN: Join failed
8.23 CLASS
This command could enable LoRaWAN modem to work at different mode (Class A/B
/C). LoRaWAN
modem works at class A mode when power on, user need manually switch mode to class B/C as
needed.
Format:
eg: AT+CLASS=A
// Enable Class A mode
eg: AT+CLASS=C
// Enable Class C mode
Return
+CLASS: A
// Enter LWABP mode successfully
8.24 LOWPOWER
Sleep command could be used to make modem enter sleep mode with ultra-low power consumption,
check device datasheet to know detailed parameters. After device enters in sleep mode, host device
could send any character to wakeup it, after wakeup host should wait at least 5ms to send next
commands, a C code example is attached to show how to handle LOWPOWER mode.
During the LOWPOWER mode, level of UART RX pin must keep unchanged, any signal on UART RX
pin will make modem exit LOWPOWER mode. When LOWPOWER mode is triggered, there are extra
30ms before modem really enter sleep mode, host device should use this time to de-initial its UART if it
is needed.
Format:
eg: AT+LOWPOWER
// Sleep command supports only this format
// Query symbol is not available
Return
+ LOWPOWER: SLEEP
// Enter SLEEP mode successfully
+ LOWPOWER: WAKEUP
// Modem is woke up.
C example:
printf
(
"AT+LOWPOWER\r\n"
);
// Set low-power mode
// ...
// HOST do other operation.
// ...
printf
(
"A"
);
// Send any character to wake-up the modem
DelayMs
(
5
);
// Wait modem ready
printf
(
"AT+ID\r\n"
);
// New operation
10
Class B is unavailable in current version
11
RHF76-052AM (UART enabled) supports this feature, RHF3M076 (USB enabled) doesn't support sleep mode.