HAC-LBee/S manual V3.X SHENZHEN HAC TECHNOLOGY CO., LTD.
FAX:+86-755-23981007 E-MAIL
:
-
29 -
In this way, under the transparent mode, all the data receive from serial port will send to the module
with the 64-bit destination address of 0x7F130301004B1200. The other way is using 16-bit
destination address. Before using this method, users need to set the 16-bit destination address by
ATDH and ATDL command. Using ATDH command to set the upper 32-bit destination address as
0x00000000, Using ATDL command to make the lower 32-bit destination address less than
0x0000FFFF, for example:
ATDH 0
ATDL A
In this way, under the transparent mode, all the data receive from serial port will send to the module
with the 16-bit destination address of 0x000A.
5.4.3 How to make the module work under the API mode after power up?
Users can use AT command to make the module enter API mode:
Enter the AT Command page of HAC Studio.
Input 3-character command sequence
“
+++
”
and wait the module returns
“
OK
”
Input
“
ATAP 1<CR>
”
command, the module returns
“
OK
”
, it is used to setup the module work
under the API mode.
Input
“
ATWR <CR>
”
command, the module returns
“
OK
”
, it is used to save the setting to keep the
working mode as API mode after restart the module.
Input
“
ATCN <CR>
”
to exit from the AT Command mode. Now, the module is working on the API
mode. Even restart the module, it also enters the API mode directly.
5.4.4 How to control the sleep function?
Users can use ATSM command to set the sleep mode. When the parameter is 0, it is under the
working mode. When the parameter is 1-5, it enables sleep. When it enables sleep, whether the
module is sleep, it is controlled by the pin 9 (DIO5/SLEEP). When the pin 9 is high level, it is sleep,
or it is working.
When it enables sleep, the pin 9 (DIO5/SLEEP) is high level, after exiting AT command, the
module will enter the sleep mode. Enter the sleep mode, the working current is less than 1
µ
A, the
module can not send or receive the air data and serial port data. So, to awake the sleep module, the
pin 9 (DIO5/SLEEP) should stay low level until the data has been finishing sending and receiving.
Setting methods of sleep enable:
Input 3-character command sequence
“
+++
”
and wait the module returns
“
OK
”