RAKwireless RAK7200 Get Started

RAKwireless RAK7200 Get Started

Tracker device

Advertisement

Quick Links

Get Start with RAK7200 Tracker Device
Version V1.0 | July 2019
www.RAKwireless.com
Visit our website for more document.
36 PAGES
1

Advertisement

Table of Contents
loading

Summary of Contents for RAKwireless RAK7200

  • Page 1 Get Start with RAK7200 Tracker Device Version V1.0 | July 2019 www.RAKwireless.com Visit our website for more document. 36 PAGES...
  • Page 2: Table Of Contents

    Table of Contents 1. Where is the latest firmware file?..................3 2. How to burn the update firmware into RAK7200?............3 3. How to configure RAK7200?..................... 9 4. How to connect with TTN?....................12 4.1 Join in OTAA mode....................17 4.2 Join in ABP mode....................20 5.
  • Page 3: Where Is The Latest Firmware File

    Firstly, please install the “STM32CubeProgrammer” tool on your Windows PC. You can download it from here: https://www.st.com/content/st_com/en/products/development-tools/software-develop ment-tools/stm32-software-development-tools/stm32-programmers/stm32cubeprog.h tml#overview Secondly, connect RAK7200 with your PC’s USB interface as follow: Now, you need to let RAK7200 work in boot mode. You can do it as follow:...
  • Page 4 v2.0.0.0.0 1. Hold down the BOOT0 button, then press the Reset button; 2. Loosen the Reset button, then Loosen the BOOT0 button. Open the “STM32CubeProgrammer” tool, and select UART type, then configure the Port, Baudrate, and Pairty as the following picture shows: Note: It is COM5 on my computer, and it may be another COM port on your computer.
  • Page 5 It means that RAK7200 don’t work in BOOT mode. You should let it work in boot mode firstly. The correct Log you should see is the information like the following picture shows: Now, let’s start to burn a firmware into RAK7200.
  • Page 6 v2.0.0.0.0 Press “Open file” and select the correct firmware file in the pop-up window as follow:...
  • Page 7 v2.0.0.0.0 Press the “Download” button to start the burning process:...
  • Page 8 Now, “Disconnect” and close the “STM32CubeProgrammer” tool, then open a serial port tool on your PC. Choose the correct COM port and baud rate is 115200. Then press the Reset button on RAK7200, you’ll see the following log on serial port tool:...
  • Page 9: How To Configure Rak7200

    You can get it from RAK website and use it freely. http://docs.rakwireless.com/en/LoRa/RAK811/Tools/RAK_SERIAL_PORT_TOOL_V1. 2.1.zip 3. How to configure RAK7200? You can configure LoRa Button by sending AT commands into it from a serial port tool running on your PC. The following list shows the AT commands:...
  • Page 10 v2.0.0.0.0 at+set_config=device:XXX:YYY Set a certain sensor’s status. XXX definition:the sensor’s flag, gps means GPS, acc means Accelerate, magn means Magnetic, gyro means Gyroscope, pressure means Pressure, temperature means Temperature, humidity means Humidity, light_strength means Light_strength, voltage means Voltage. YYY definition: 0: close, 1: open at+join Start to join LoRa network.
  • Page 11 v2.0.0.0.0 at+set_config=lora:confirm:X Set the type of messages which will be sent out through LoRa. X definition: 0: unconfirm, 1: confirm at+set_config=lora:ch_mask:X:Y Set a certain channel on or off. X definition: the channel number, and you can check which channel can be set before you set it.
  • Page 12: How To Connect With Ttn

    TTN?>. 4. How to connect with TTN? In this section, we’ll do some practice to show how to connect RAK7200 with TTN. Firstly, open the serial port tool on your PC. Open the serial port by click the following button:...
  • Page 13 v2.0.0.0.0 Open the link https://www.thethingsnetwork.org/ and login, then open the “Console” page from the right corner at the top: Press “APPLICATIONS”:...
  • Page 14 v2.0.0.0.0 “add application”: Fill in the correct contents. Please note that the content you fill in “Application ID” item should be in low case, and it must be the unique ID on TTN network. Then press the “Add application” button at the bottom of this page, and you can see the following page:...
  • Page 15 v2.0.0.0.0 At the middle of this page, you can find the box named “DEVICES”: Just “register device”: You can click the following icon and “Device EUI” will be generated automatically in the next step:...
  • Page 16 v2.0.0.0.0 The following picture shows the final page: Then press the “Register” button at the bottom of this page to finish.
  • Page 17: Join In Otaa Mode

    4.1 Join in OTAA mode As you see in the above page, the default activation method is OTAA. These three parameters will be used on RAK7200: OK! Now, let’s join in OTAA mode and AU915 frequency for example! The default LoRa work mode is LoRaWAN 1.0.2, the default LoRa join mode is OTAA, and the default LoRa class is Class A.
  • Page 18 v2.0.0.0.0 Set the Device EUI: Set the Application EUI:...
  • Page 19 v2.0.0.0.0 Set the Application Key:...
  • Page 20: Join In Abp Mode

    Join in OTAA mode: Join successfully! You can see that RAK7200 is sending data frequently. Now, you can see the sensor data send from RAK7200 on TTN website as follow: Great! That’s all about OTAA mode. 4.2 Join in ABP mode...
  • Page 21: How To Connect With Loraserver

    The LoRaServer is an open source project which you can find in https://www.loraserver.io/. You can use RAK7200 to connect with LoRaServer according to the following steps: In this document, i assume that you are using RAK LoRa gateway and its built-in LoRaServer, or you are using RAK cloud testing LoRaServer.
  • Page 22 v2.0.0.0.0 “CREATE APPLICATION”. Click the new item name “RAK7200_test”: Add a LoRa node device into LoRaServer by clicking the “CREATE” button:...
  • Page 23 v2.0.0.0.0 Fill in them. You can generate a Device EUI automatically by click the following icon, or you can write a correct Device EUI in the edit box. Note: If you want to join in OTAA mode, you should select “DeviceProfile_OTAA” in the “Device-profile”...
  • Page 24: Join In Otaa Mode

    “CREATE DEVICE”. Then generate the application key in this page. You can write it by yourself or generate it automatically by clicking the following icon: “SET DEVICE-KEYS”. That’s OK! You’ve complete the configuration on LoRaServer. As you see, the Device EUI which will be set into RAK7200 as “dev_eui” is this one:...
  • Page 25 The Application Key which will be set into RAK7200 as “app_key” is this one: The Application EUI which will be set into RAK7200 as “app_eui” is useless for LoRaServer, and you can set it to any value with a correct format, for example: 7083D57ED001C1CF.
  • Page 26 v2.0.0.0.0 The default LoRa work mode is LoRaWAN 1.0.2. Set the LoRa join mode to OTAA:...
  • Page 27 v2.0.0.0.0 Set the LoRa class to Class A: Set the frequency/region to AU915:...
  • Page 28 v2.0.0.0.0 Set “dev_eui”: Set “app_eui”:...
  • Page 29 v2.0.0.0.0 Set “app_key”: Start to join:...
  • Page 30: Join In Abp Mode

    Join succeessfully! You can see the data which RAK7200 sends on LoRaServer page: The data format is LPP. OK, that’s all about “Join in OTAA mode” with LoRaServer. 5.2 Join in ABP mode If you select “DeviceProfile_ABP” or “DeviceProfile_ABP_CN470”, it means you want to join LoRaServer in OTAA mode.
  • Page 31 Next, let’s use these parameters to set RAK7200 by using AT command. Set LoRa join mode to ABP: Set LoRa class to Class A:...
  • Page 32 v2.0.0.0.0 Set the frequency/region to AU915: Set “dev_addr”:...
  • Page 33 v2.0.0.0.0 Set “nwks_key”: Set “apps_key”:...
  • Page 34 Start to join: Great! Join and send data successfully! You can see the data which is just sent from RAK7200 on LoRaServer page:...
  • Page 35 v2.0.0.0.0 That’s all about “Join in ABP mode” with LoRAServer.
  • Page 36: Revision History

    Fomi Penn&Fomi About RAKwireless: RAKwireless is the pioneer in providing innovative and diverse cellular and LoRa connectivity solutions for IoT edge devices. It's easy and modular design can be used in different IoT applications and accelerate time-to-market. For more information, please visit RAKwireless website at www.rakwireless.com.

Table of Contents