Advertisement

Quick Links

LoRa AT Command Manual
LoRa AT Command Manual
Powered by MS500

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the LoRa AT Command and is the answer not in the manual?

Questions and answers

Summary of Contents for eWBM LoRa AT Command

  • Page 1 LoRa AT Command Manual LoRa AT Command Manual Powered by MS500...
  • Page 2: Table Of Contents

    AT+JOIN ................................17 AT+NJS ................................17 AT+AJOIN ................................. 17 AT+NWKSKEY ..............................18 AT+APPSKEY ..............................18 AT+DADDR............................... 19 AT+NWKID ............................... 19 AT+AINF ................................20 UP/Down Link Command ................................. 21 2 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 3 AT+LCHK ................................34 AT+CRYPTO..............................35 AT+CH ................................35 System Command ..................................37 9.1. Command Table ............................... 37 9.2. Command Detail ..............................37 AT+RESET................................. 37 AT+SINF ................................38 3 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 4 Command Detail ..............................44 AT+DBG ................................44 AT+TXCW ..............................45 AT+RXTT ................................ 45 AT+TXTT ................................46 AT+TSTP ................................46 AT+GPIO ................................47 Document Revision and Reference ..............................48 4 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 5: Features

    Up to 14 dBm Output Power LoRa Alliance Certified ⚫ UART Communication Interface AT+Command set support for LoRaWAN ⚫ LoRaWAN Certified KR920-923 (Korea), AS923 (Japan/Asia), EU863-870 (Europe), US902-928 (US,Canada) 5 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 6: Application Model

    Command Parameter is separated by the symbol <,> as described below. ➔ CR + LR + ‘<’ + “OK or an error string” + ‘>’ + CR + LR 6 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 7: Status Strings Following Command Execution

    Command to Write and/or to control system status Command to store configuration in Flash memory Reset the module after system control command is executed Asynchronous Event (for example when data is received) 7 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 8: At Command Usage Scenario

    An Event Message is generated when the server connection is completed. AT+NJS <- To monitor the Join status to the server <- (0: not connected, 1: connected) <OK> 8 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 9: Data Transfer During Server Connection (Upload, Download)

    00:16:37.677 TxConfig ch 922100000 pwr 14 bw 0 sf12 <OK> 00:16:39.009 TxDone 00:16:40.035 RxConfig ch 922100000 bw 0 sf12 00:16:41.046 RxConfig ch 921900000 bw 0 sf12 9 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 10 Received the 3 Byte Hexadecimal data [ aa,bb,ff] from server to Port #1 AT+RECVB <- To confirm the received downlink data 1:aabbff <OK> AT+RECVB <- Once confirmed, the received data is removed. Thus, no output. <OK> 10 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 11: Entering Sleep Mode And Waking Up From Sleep Mode

    Entering Sleep Mode is completed Wakeup by RTC <- Message indicating Wake Up by RTC OTAA KR920 Wakeup completed <- Message indicating Wake Up is completed 11 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 12: Activation Command

    Update DevEUI with the specified value and store it in secure storage AT+DEVEUI (in Flash memory) [Format] : AT+DEVEUI <devEUI> <ENTER> [Example] AT+ DEVEUI 0000000000000001 <OK> 12 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 13: At+Appeui

    (in Flash memory) . [Format] : AT+APPKEY <AppKey> <ENTER> [Example] AT+APPKEY de52ddd16146079649c89a0c1bd9eae5 <OK> ➢ Note ) AppKey : 32 hex digit (16Byte) 13 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 14: At+Pnm

    Update Network Join Mode Setting with the specified value [Format] : AT+NJM <0 | 1> <ENTER> [Example] AT+NJM AT+NJM Boot by CPU OTAA KR920 Boot completed F/W VERSION : 0.15 DEVICE EUI : 50f8a50000010099 14 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 15 Activation Command ➢ Note) 0: ABP 1: OTAA (Default 2:P2P 15 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 16: At+Class

    Note) LoRa MAC Class : A(Default), B, or C ⚫ Application Layer Class A (Baseline) Class B (Beacon) MAC Layer Class C (Continuous) PHY Layer RF Layer EU, AS, KR, US <LoRa Protocol Stack> 16 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 17: At+Join

    AT+AJOIN <OK> Update the setting value of Automatic Join Request when the device is booted with the specified value [Format] : AT+AJOIN <0 | 1> <ENTER> 17 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 18: At+Nwkskey

    Readout the current setting value of Application Session Key [Example] AT+APPSKEY 5e337a1a75a4f87911cb718631a162ff <OK> Update Application Session Key (16byte) with the specified value (ABP AT+APPSKEY only) [Format] : AT+NWKSKEY <APPSKEY> <ENTER> [Example] AT+APPSKEY 5e337a1a75a4f87911cb718631a162ff <OK> 18 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 19: At+Daddr

    Update Network ID with the specified value (3 Byte) (ABP Only) [Format] : AT+DADDR <Device Address> <ENTER> [Example] (e.g. MSB 0x12, 0x34, 0x56) AT+DADDR 123456 <OK> 19 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 20: At+Ainf

    Table 15 AT+AINF Syntax Operation Remark [Format] : AT+AINF <ENTER> [Example] AT+AINF DEVEUI:0000000000000002 APPEUI:70b3d57ed0010e4f APPKEY:de52ddd16146079649c89a0c1bd9eae5 PNM:Public NJM:OTAA AT+AINF CLASS:A NJS:Joined0 NetID:00123456 DADDR:260521e9 NWKSKEY:74b3ee804428aaca16f319ab5d615f0b APPSKEY:5e337a1a75a4f87911cb718631a162ff AJOIN:Auto <OK> 20 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 21: Up/Down Link Command

    [Example] Send text data string “12345” (5 Byte) to port #2 AT+SEND 2:12345 <OK> ➢ Note ) When the data is sent successfully, <OK> message returns If Failed to send, <AT_ERROR> message returns 21 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 22: At+Sendb

    [Format] : AT+RECV <application port>:<data> <ENTER> [Example 1] No Data Received AT+RECV AT+RECV <OK> [Example 2] Received Data is 12345 through port #2 AT+RECV 2:12345 <OK> 22 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 23: At+Recvb

    Readout RSSI value of the last received data ⚫ Table 21 AT+RSSI Syntax Operation Remark Readout RSSI value of the last received data [Format] : AT+RSSI <ENTER> [Example] AT+RSSI AT+RSSI <OK> 23 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 24: At+Snr

    Readout SNR (signal noise ratio) value of the last received data ⚫ Table 22 AT+SNR Syntax Operation Remark Readout SNR value of the last received data [Format] : AT+SNR <ENTER> [Example] AT+SNR AT+SNR <OK> 24 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 25: Loramac Configure Command

    LORAMAC_REGION_AU915 = 1, LORAMAC_REGION_CN470 = 2, LORAMAC_REGION_CN779 = 3, AT+REGION R LORAMAC_REGION_EU433 = 4, LORAMAC_REGION_EU868 = 5, LORAMAC_REGION_KR920 = 6, (default) LORAMAC_REGION_IN865 = 7, LORAMAC_REGION_US915 = 8, 25 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 26: At+Adr

    [Format] : AT+ADR <0 | 1> <ENTER> [Example] set ADR configuration to 0 AT+ADR <OK> ➢ Note) 0 : ADR off / 1 : ADR on 26 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 27: At+Dr

    3: SF9 BW125 (KR920, AS923, EU868) 4: SF8 BW125 (KR920, AS923, EU868) 5: SF7 BW125 (KR920, AS923, EU868) 6: SF7 BW250 (AS923, EU868) 7: FSK (AS923, EU868) 27 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 28: At+Rx2Fq

    [Example] AT+RX2DR <OK> AT+RX2DR Update Rx Window 2 data rate with a specified number [Format] : AT+RX2FQ <0-7 corresponding to DR_X > <ENTER> [Example] AT+RX2DR <OK> 28 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 29: At+Rx1Dl

    [Format 1] AT+RX2DL <delay> <ENTER> 기본값으로 설정값이 초기화되는 기능입니다. [Example 1] 해당 문구를 적절하게 수정 요청 합니다. AT+RX2DL 2000 메모 포함[병전11]: 메모리 저장 및 reset 기능 적용 29 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 30: At+Jn1Dl

    Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms [Format] : AT+JN2DL <delay> <ENTER> [Example] AT+JN2DL 6000 <OK> 30 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 31: At+Mufr

    <OK> AT+MCFR Set the number of resending confirmed uplink [Format] : AT+MCFR <number> <ENTER> [Example] AT+MCFR <OK> ➢ Note ) number: number of resend (1-8), default=8 31 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 32: At+Txp

    ERP -16 ERP -10 US915_HYBRID Max ERP ERP -2 ERP -4 ERP -6 ERP -8 ERP -10 ERP -16 ERP -16 ERP -16 ERP -16 ERP -10 32 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 33: At+Fcu

    Set Downlink Counter with the specified value (For Testing Purpose) [Format] : AT+FCD <number> <ENTER> [Example] AT+FCD 65535 <OK> ➢ Note ) number: downlink counter (0-65535) 33 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 34: At+Bat

    The Mac command LinkCheckReq is sent to the server [Format] : AT+LCHK <ENTER> [Example] AT+LCHK AT+LCHK <OK> Response from the server with EVENT message LinkCheckAns [Example] <timestamp><space>”[EVENT]”<space>”LinkCheckAns”<CR><LF> [EVENT] LinkCheckAns 34 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 35: At+Crypto

    6 freq 923300000 drrange 0 to 5 status 0 7 freq 0 drrange 0 to 0 status 0 8 freq 0 drrange 0 to 0 status 0 35 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 36 [Example] Readout CH7 Configuration AT+CH freq 922300000 drrange 1 to 4 status 1 메모 포함[오19]: drrange? Typo 인가요? <OK> 메모 포함[병전20R19]: DR Range 의 준말로 오타 아닙니다. 36 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 37: System Command

    Delete Channels’ Configuration from the Memory then Reset the Module AT+RESET channels Boot by CPU AU915 메모 포함[병전23]: 채널 정보 삭제 후 리셋 기능 추가 Boot completed Boot completed 37 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 38: At+Sinf

    MUFR:1 (Unconfirmed Uplink retry count) CFM:Unconfirmed(Uplink Message Type) ALARM:0 seconds <OK> AT+VER Firmware Version Information ⚫ Table 45 AT+SAG Syntax Operation Remark Readout firmware version [Example] AT+VER AT+VER 0.01 <OK> 38 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 39: At+Sag

    <OK> AT+CFM Set the Uplink Packet Type [Format] AT+CFM <type> <ENTER> [Example] AT+CFM 0 <OK> Note) Type ➢ 1 : Confirmed Packet 0 : Unconfirmed Packet 39 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 40: At+Sleep

    [2] Return value is a positive number in seconds [3] When wakeup time gets set to a positive number, the device wakes up at the set time since the device entered Sleep mode. 40 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 41: At+Time

    Set the RTC time AT+TIME [Format] Hour(2 digit):Min(2 digit):Sec(2 digit):ms(3 digit) [Example] AT+TIME 15:42:30 <OK> Note) Use the same input format, as shown in the displayed output time. ➢ 41 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 42: At+Date

    - Set the Echo command with the specified value [Format] AT+ECHO < 0 | 1 > <ENTER> [Example] AT+ECHO <OK> Note ) 1 : ON ➢ 0 : OFF (Default) 42 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 43: At+Freset

    Except for Device EUI reset the configuration ⚫ Table 53 AT+ECHO Syntax Operation Remark Execute Reset Command [Example] AT+FRESET Factory reset ..! AT+FRESET Boot by CPU OTAA KR920 Boot completed 43 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 44: Debug Command

    AT+DBG <OK> Set the Debug Message with the specified value AT+DBG <OK> Note ) 0 : Debug message Off / 1 : Debug message On ➢ 44 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 45: At+Txcw

    RXerror Note ) * Bandwidth 0 : 125 kHz ➢ 1 : 250 kHz 2 : 500 kHz 메모 포함[전25]: Added this note to LoRa Manual 45 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 46: At+Txtt

    2. Tx Transmission Timeout (Transmission failure) Print format: <timestamp><space>”[EVENT]”<space>” TXST timeout”<CR><LF> [EVENT] TxTimeout AT+TSTP RF Test Stop ⚫ Table 569 AT+TSTP Syntax Operation Remark [Format] AT+TXST AT+TSTP <OK> 46 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 47: At+Gpio

    - Set the PC6 Pin Output Configuration (Use either ‘O’ or ‘o’) AT+GPIO PC6 o 1 <OK> [Example 4] - Confirm the configuration value of PC6 pin AT+GPIO PC6 Pull-Down GPIO(Out) 1 <OK> 47 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 48: Document Revision And Reference

    Added Factory reset command, network join mode, and reboot for the update in region eWBM 2019/07/31 configuration 메모 포함[병전27]: 0.5 버전 추가 2021/02/15 eWBM Delete P2P function 48 | 49 eWBM LoRa AT Command Manual for Consumer Products, Rev. 0.6, 02/2021...
  • Page 49 Copyright © 2019 eWBM Co., Ltd. All rights reserved. This document is the copyrighted work of eWBM Co., Ltd. and is owned by eWBM Co., Ltd. It is provided as a reference for the sole purpose of MS500 microcontroller based system design.

Table of Contents