tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/examples/lora/lorawan/atcmd/README.md (about)

     1  # AT-CMD implementation of at-lora command set
     2  
     3  This example implements the AT command set as used by Seeed in the LoRa-E5 series of boards, but in the form of a TinyGo program that provides a serial interface. 
     4  
     5  See https://files.seeedstudio.com/products/317990687/res/LoRa-E5%20AT%20Command%20Specification_V1.0%20.pdf for more information.
     6  
     7  ```
     8  $ tinygo monitor
     9  Connected to /dev/ttyACM0. Press Ctrl-C to exit.
    10  +AT: OK
    11  +VER: 0.0.1 (sx127x v18)
    12  ```
    13  
    14  # Building
    15  
    16  Run the following commands from the main `drivers` directory.
    17  
    18  ## Simulator
    19  
    20  Builds/flashes atcmd console application with simulator instead of actual LoRa radio.
    21  
    22  ```
    23  tinygo flash -target pico ./examples/lora/lorawan/atcmd/
    24  ```
    25  
    26  ## PyBadge with LoRa Featherwing for EU868 region
    27  
    28  Builds/flashes atcmd console application on PyBadge using LoRa Featherwing (RFM95/SX1276).
    29  
    30  ```
    31  tinygo flash -target pybadge -tags featherwing -ldflags="-X main.reg=EU868" ./examples/lora/lorawan/atcmd/
    32  ```
    33  
    34  ## LoRa-E5 for US915 region
    35  
    36  Builds/flashes atcmd console application on Lora-E5 using onboard SX126x.
    37  
    38  ```
    39  tinygo flash -target lorae5 -ldflags="-X main.reg=US915" ./examples/lora/lorawan/atcmd/
    40  ```
    41  
    42  ## Joining a Public Lorawan Network
    43  
    44  ```
    45  AT+ID=DevEui,0101010101010101
    46  AT+ID=AppEui,0123012301230213
    47  AT+KEY=APPKEY,AEAEAEAEAEAEAEAAEAEAEAEAEAEAAEAE
    48  AT+LW=NET,ON  
    49  AT+JOIN
    50  ```
    51  
    52  AT+LW=NET,(ON|OFF) command changes Lora Sync Word to connect on public network(ON) or private networks(OFF)