REYAX Lora AT COMMAND GUIDE EN
User Manual:
Open the PDF directly: View PDF .
Page Count: 9
Download | |
Open PDF In Browser | View PDF |
30-AUG-2018 56322E30 Lora AT COMMAND GUIDE APPLY FOR: 1. RYLR405 2. RYLR406 3. RYLR895 4. RYLR896 THE SEQUENCE OF USING AT COMMAND 1. Use “AT+ADDRESS” to set ADDRESS. The ADDRESS is regard as the identification of transmitter or specified receiver. 2. Use “AT+NETWORKID” to set the ID of Lora network. This is a Group function. Only by setting the same NETWORKID can the modules communicate with each other. If the ADDRESS of specified receiver is belong to different group, it is not able to communicate with each other. The recommend value: 1~15 3. Use” AT+BAND” to set the center frequency of wireless band. The transmitter and the receiver are required to use the same frequency to communicate with each other. 4. Use” AT+PARAMETER” to set the RF wireless parameters. The transmitter and the receiver are required to set the same parameters to communicate with each other. The parameters of which as follows: [1]: The larger the SF is, the better the sensitivity is. But the transmission time will take longer. [2] : The smaller the bandwidth is, the better the sensitivity is. But the transmission time will take longer. Copyright © 2018, REYAX TECHNOLOGY CO., LTD. 1 REYAX Lora AT COMMAND GUIDE [3] : The coding rate will be the fastest if setting it as 1. [4] : Preamble code. If the preamble code is bigger, it will result in the less opportunity of losing data. Generally preamble code can be set above 10 if under the permission of the transmission time. Communication within 3 km: Recommend to set “AT + PARAMETER = 10,7,1,7” More than 3 km: Recommend to set “ AT + PARAMETER = 12,3,1,7” 5. Use “AT+SEND” to send data to the specified ADDRESS. Please use “Lora Modem Calculator Tool” to calculate the transmission time. Due to the program used by the module, the payload part will increase more 8 bytes than the actual data length. AT Command Set It is required to key in “enter” or “\r\n” in the end of all AT Commands. Add“ ? ”in the end of the commands to ask the current setting value. It is required to wait until the module replies +OK so that you can execute the next AT command. 1. AT Test if the module can respond to Commands. Syntax Response AT +OK 2. Software RESET Syntax Response AT+RESET +RESET 3. AT+MODE Set the work mode Syntax Response AT+MODE= +OK 0:Transmit and Receive mode (default). 1:Sleep mode. Example : Set the sleep mode, AT+MODE=1 AT+MODE? Copyright © 2018, REYAX TECHNOLOGY CO., LTD. +MODE=1 2 REYAX Lora AT COMMAND GUIDE 4. AT+IPR Set the UART baud rate Syntax Response AT+IPR= +OK is the UART baud rate: 300 1200 4800 9600 19200 28800 38400 57600 115200(default). Example: Set the baud rate as 9600, *The settings will be memorized in EEPROM. AT+IPR=9600 AT+IPR? Copyright © 2018, REYAX TECHNOLOGY CO., LTD. +IPR=9600 3 REYAX Lora AT COMMAND GUIDE 5. AT+PARAMETER Set the RF parameters Syntax Response AT+PARAMETER= , +OK , , 7~12, (default 12) 0~9 list as below 0 : 7.8KHz (not recommended, over spec.) 1 : 10.4KHz (not recommended, over spec.) 2 : 15.6KHz 3 : 20.8 KHz 4 : 31.25 KHz 5 : 41.7 KHz 6 : 62.5 KHz 7 : 125 KHz (default). 8 : 250 KHz 9 : 500 KHz 1~4, (default 1) 4~7(default 4) Example : Set the parameters as below: 7, 20.8KHz, 4, 5, AT+PARAMETER=7,3,4,5 AT+PARAMETER? Copyright © 2018, REYAX TECHNOLOGY CO., LTD. +PARAMETER=7,3,4,5 4 REYAX Lora AT COMMAND GUIDE 6. AT+BAND Set RF Frequency Syntax Response AT+BAND= +OK is the RF Frequency, Unit is Hz 470000000: 470000000Hz(default: RYLR40x) 915000000: 915000000Hz(default: RYLY89x) Example : Set the frequency as 868500000Hz, AT+BAND=868500000 AT+BAND? +BAND=868500000 7. AT+ADDRESS Set the ADDRESS of module Syntax Response AT+ADDRESS= +OK =0~65535(default 0) Example : Set the address of module as 120, *The settings will be memorized in EEPROM. AT+ADDRESS=120 AT+ADDRESS? +ADDRESS=120 8. AT+NETWORKID Set the network ID Syntax Response AT+NETWORKID= +OK 0~16(default 0) Example : Set the network ID as 6, *The settings will be memorized in EEPROM. *The”0”is the public ID of Lora. It is not recommend to set 0 to make the distinction of NETWORK. AT+NETWORKID=6 AT+NETWORKID? Copyright © 2018, REYAX TECHNOLOGY CO., LTD. +NETWORK=6 5 REYAX Lora AT COMMAND GUIDE 9. AT+CPIN Set the AES128 password of the network. Syntax Response AT+CPIN= +OK : An 32 character long AES password From 00000000000000000000000000000001 to FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF Only by same password can the data be recognized. After resetting, the previously password will disappear. Example : Set the password as below: FABC0002EEDCAA90FABC0002EEDCAA90 AT+CPIN=FABC0002EEDCAA90FABC0002EEDCAA90 AT+CPIN? +CPIN=FABC0002EEDCAA90FABC0002EEDCAA90 10. AT+CRFOP Set the RF output power Syntax Response AT+CRFOP= +OK 0~15 15:15dBm(default) 14:14dBm …… 01:1dBm 00:0dBm Example: Set the output power as 10dBm, AT+CRFOP=10 AT+CRFOP? Copyright © 2018, REYAX TECHNOLOGY CO., LTD. +CRFOP=10 6 REYAX Lora AT COMMAND GUIDE 11. AT+SEND Send data to the appointment Address Syntax Response AT+SEND=, , +OK 0~65535, When the is 0, it will send data to all address (From 0 to 65535.) Maximum 240bytes ASCII Format Example : Send HELLO string to the Address 50, AT+SEND=50,5,HELLO AT+SEND? +SEND=50,5,HELLO 12. +RCV Show the received data Syntax Response +RCV=, ,, , , Transmitter Address ID Data Length Data Received Signal Strength Indicator Signal-to-noise ratio Example: Module received the ID Address 50 send 5 bytes data, Content is HELLO string ,RSSI is -99dBm, SNR is 40, It will show as below: +RCV=50,5,HELLO,-99,40 13. AT+VER? to inquire the firmware version Syntax Response AT+VER? +VER=RYLR406_Vx.x.x(RYLR40x) +VER=RYLR89C_Vx.x.x(RYLR89x) Copyright © 2018, REYAX TECHNOLOGY CO., LTD. 7 REYAX Lora AT COMMAND GUIDE 14. AT+FACTORY Set all current parameters to manufacturer defaults Syntax Response AT+FACTORY +FACTORY Manufacturer defaults: BAND:915MHz UART:115200 Spreading Factor:12 Bandwidth:125kHz Coding Rate:1 Preamble Length:4 Address:0 Network ID:0 CRFOP:15 15. Other messages Syntax Response After RESET +READY Copyright © 2018, REYAX TECHNOLOGY CO., LTD. 8 REYAX Lora AT COMMAND GUIDE 16. Error result codes Syntax Response There is not “enter” or 0x0D 0x0A in the end of +ERR=1 the AT Command. The head of AT command is not “AT” string. +ERR=2 There is not “=”symbol in the AT command. +ERR=3 Unknow command. +ERR=4 TX is over times. +ERR=10 RX is over times. +ERR=11 CRC error. +ERR=12 TX data more than 240bytes. +ERR=13 Unknow error. +ERR=15 Taiwan: sales@reyax.com China: sales@reyax.com.cn http://reyax.com Copyright © 2018, REYAX TECHNOLOGY CO., LTD. 9
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.7 Linearized : No Page Count : 9 Language : zh-TW Tagged PDF : Yes XMP Toolkit : 3.1-701 Producer : Microsoft® Word 2016 Creator : 游舒媛 Creator Tool : Microsoft® Word 2016 Create Date : 2018:08:30 11:32:35+08:00 Modify Date : 2018:08:30 11:32:35+08:00 Document ID : uuid:B8F433FA-EB77-4944-9B98-F55008ABE038 Instance ID : uuid:B8F433FA-EB77-4944-9B98-F55008ABE038 Author : 游舒媛EXIF Metadata provided by EXIF.tools