RAK RAK4600 Quick Start Manual Download Page 23

Documentation Center

Figure 37: ABP Configuration in The Things Stack

You should now be able to see the device on The Things Stack console after you fully registered your device, as
shown in Figure 38.

Figure 38: RAK4600 registered at The Things Stack

RAK4600 ABP Configuration for The Things Stack

To set up the RAK4600 module to join The Things Stack using ABP, start by connecting the RAK4600 module to
the computer (see Figure 1) and open the RAK Serial Port Tool. It is recommended to test the serial
communication by sending either of these two AT commands:

Summary of Contents for RAK4600

Page 1: ...BP Guide RAK4600 ABP AT Commands for Chirpstack LoRa P2P Guide Updating RAK4600 FW Procedure Prerequisites What Do You Need Before going through the step in the installation guide of the RAK4600 WisDu...

Page 2: ...1 as a reference to connect the antennas IoT Made Easy FCC ID 2AF6B RAK4600 H RAK4600 H EUI 60c5a8 fffe754781 LoRa Antenna BLE Antenna Figure 1 RAK4600 Module antenna connection 1 Connect the RAK4600...

Page 3: ...ommunication tool by selecting the proper port of the computer UART port and configure the link as 115200 baud 8 bits no parity bit and 1 stop bit Choose the correct COM Port number for your device Go...

Page 4: ...RaWAN network the module must be configured and the LoRa parameters must be set by sending AT commands through the UART interface Connect the RAK4600 module to the computer as described in the previou...

Page 5: ...er Control Panel BLE app provided by Nordic Semiconductor 2 Open the app on the mobile device and scan for BLE devices 3 Reset the RAK4600 module After a few seconds a list of BLE devices will be show...

Page 6: ...e 7 Figure 7 Options to connect to the RAK4600 5 Select the service named Nordic UART Service 6 To receive data from mobile enable notification on TX Characteristic by clicking on the arrow Figure 8 E...

Page 7: ...l input window will pop up This is where you will input the AT commands Figure 10 nRF app AT command input window 9 Send AT commands to RAK4600 in this dialog For example to check the current firmware...

Page 8: ...command over BLE The console output shall be read on the TX Characteristic of the App Figure 12 AT response over BLE Connecting to The Things Stack TTN V3 This section will show how to connect the RAK...

Page 9: ...ns over long range wireless connections The RAK4600 module can be part of this ecosystem as a device and the objective of this section is to demonstrate how simple it is to send data to The Things Sta...

Page 10: ...ure 15 and Figure 16 Figure 15 Login using TTN account Figure 16 Registration of new account 2 You should now be on the step of creating your TTN account Fill in all the necessary details and activate...

Page 11: ...nter Figure 17 Logging in to TTN platform 4 Click Authorize to proceed Figure 18 Authorization to TTN 5 Now that you are logged in to the platform the next step is to create an application Click Creat...

Page 12: ...TN application If you have no error on the previous step you should now be on the application console page The next step is to add end devices to your The Things Stack application LoRaWAN specificatio...

Page 13: ...s that you can connect to The Things Stack TTN V3 if no LoRaWAN gateway coverage is available in your location The Things Stack OTAA Device Registration 1 Go to your application console to be able to...

Page 14: ...QR that you can scan then use this as the device unique DevEUI Optionally you can add a more descriptive End device name and End device description about your device 4 After putting all the details cl...

Page 15: ...ameter version and LoRaWAN class supported Then you can click Join settings Figure 25 OTAA Configuration 6 The last step in the registration of a new OTAA end device is the configuration of the AppKey...

Page 16: ...your LoRaWAN end device via OTAA The AppKey is hidden by default for security reasons but you can easily show it by clicking the show button You can also copy the parameters quickly using the copy bu...

Page 17: ...commended to test the serial communication and verify the current configuration by sending either of these two AT commands Figure 28 AT Command response As an example these are the list of the paramet...

Page 18: ...EUI NOTE All zero value Application EUI at set_config lora app_eui 0000000000000000 is not supported and will return error 6 Set the Application Key Figure 29 Configuring LoRa Parameters at set_confi...

Page 19: ...or 6 seconds if the request is successfully received by a LoRa gateway then you should see the messages shown in Figure 30 8 Try to send a message from the RAK4600 module Figure 30 OTAA Test Sample D...

Page 20: ...onsole and select the application where you want your device to be added then click Add end device as shown in Figure 32 Figure 32 Add end device 2 To register the module you need to click first Manua...

Page 21: ...u can scan then use this as the device unique DevEUI Optionally you can add a more descriptive End device name and End device description about your device 4 After putting all the details click Networ...

Page 22: ...lso need to generate Device Address and NwkSKey Network Session Keys Then you can click Application layers settings Figure 36 ABP Configuration in The Things Stack 6 The last step in the registration...

Page 23: ...as shown in Figure 38 Figure 38 RAK4600 registered at The Things Stack RAK4600 ABP Configuration for The Things Stack To set up the RAK4600 module to join The Things Stack using ABP start by connectin...

Page 24: ...e address 260BDE80 Network Session Key 433C7A924F7F6947778FE821525F183A Application Session Key A585653A949C2B2D44B55E99E94CB533 1 Set the LoRa join mode to ABP 2 Set the LoRa class to Class A 3 Set t...

Page 25: ...ters via RAK Serial Port Tool After configuring all the parameters you need to reset the RAK4600 Module to save the parameters 7 After resetting join in ABP mode at set_config lora region EU868 at set...

Page 26: ...equired to send the at join command in the ABP mode This time the firmware should reply almost immediately with an OK 8 Try to send data from the RAK4600 to The Things Network in ABP mode Figure 41 AB...

Page 27: ...riendly web interface for device management and APIs for integration The modular architecture makes it possible to integrate within existing infrastructures All components are licensed under the MIT l...

Page 28: ...OTAA mode on the platform OTAA mode on the RAK4600 ABP mode on the platform ABP mode on the RAK4600 4 Send data from the RAK4600 and receive it at the platform The following section gives the details...

Page 29: ...ck on the CREATE APPLICATION button Application Name rak_node_test Application Description test Service profile field is to select the system profile The Application Description field is just a descri...

Page 30: ...reated on the RAK s ChirpStack LoRaServer 5 Select the DEVICES tab as shown in Figure 48 Figure 48 Device tab of an Application on the RAK s ChirpStack LoRaServer 6 Inside of the DEVICES tab create a...

Page 31: ...ars in Figure 50 Device name and Device description These are just descriptive texts Device EUI This interface allows you to generate a Device EUI automatically by clicking the icon highlighted in red...

Page 32: ...OTAA the end device previously personalized is activated when deployed or reset In ABP personalization and activation are done as a single step OTAA Mode Configure the OTAA Mode on the Platform 1 If...

Page 33: ...DEVICE KEYS button As shown in Figure 54 a new device should be listed in the DEVICES tab The most important parameters such as the Device EUI are shown in the summary Figure 54 New crated device list...

Page 34: ...e To resolve this mismatch you can reuse the Device EUI as the Application EUI during the configuration on the side of the node Configure the OTAA mode on the RAK4600 RAK4600 complies with the LoRaWAN...

Page 35: ...c from ChirpStack registration Application Key 2cb29aefe344c0d7b044e7a7d3afda6d from ChirpStack registration 1 Set the LoRa join mode to OTAA 2 Set the LoRa Class to Class A 3 Set the frequency region...

Page 36: ...ise the firmware will complain 6 Set the Application Key Get the Application Key from the TTN register 7 Save RAK4600 parameters Reset the RAK4600 to save the parameters Figure 57 summarizes the set o...

Page 37: ...l Port Tool join the network The JoinRequest and JoinAccept messages are also displayed on the ChirpStack platform specifically in the LORAWAN FRAMES section Figure 59 ChirpStack Console checking LoRa...

Page 38: ...ppear in the LORAWAN FRAMES tab as shown in Figure 61 NOTE By convention messages sent from nodes to the gateway are considered as UPLINK while messages sent by the gateway to nodes are considered as...

Page 39: ...ecific Device EUI directly in the form 2 Once these parameters are filled click on the CREATE DEVICE button NOTE Check Disable counting frame verification to prevent the node side frame counting from...

Page 40: ...igure the ABP mode on the RAK4600 RAK4600 complies with the LoRaWAN 1 0 2 specification The RAK4600 LoRa join mode is OTAA by default and the LoRa Class is Class A To set up the RAK4600 module to join...

Page 41: ...1a97025c5488 from ChirpStack registration Application Session Key 4d42ec5caf97f03d833cdaf5003f69e1 from ChirpStack registration 1 Set the LoRa join mode to ABP 2 Set the LoRa Class to Class A 3 Set th...

Page 42: ...e set of commands sent over the console for setting the ABP mode on the RAK4600 Figure 65 RAK4600 LoRa parameters configuration over the Serial Port Tool 8 Command the RAK4600 to join in ABP mode Almo...

Page 43: ...ing a LoRaWAN package But to keep the consistency of internal states of the firmware of the RAK4600 it is still required to send the at join command in the ABP mode 9 Send data from RAK4600 to ChirpSt...

Page 44: ...ncy for this demonstration EU868 2 As shown in the previous sections the setup of the RAK4600 units is done by connecting them with a general purpose computer through the UART port as shown in section...

Page 45: ...th 0 125 kHz 1 250 kHz 2 500 kHz A Coding Rate 1 4 5 2 4 6 3 4 7 4 4 8 B Preamble Length 5 65535 C Power in dBm 5 20 For this example the LoRa parameters are Link frequency 869525000 Hz Spreading fact...

Page 46: ...LoRa P2P parameters 6 Next set the transmission mode of the RAK4600 In this example Unit 1 is set to sender mode and Unit 2 is set to receiver mode by AT command Unit 1 Sender Unit 2 Receiver at set_c...

Page 47: ...ht Bluetooth Interface Starting with the firmware version V3 0 0 6 there are three BLE modes in the RAK4600 module Peripheral mode Central mode and Beacon scan mode 1 Peripheral mode In this mode you...

Page 48: ...0 BLE radio works in the peripheral mode In peripheral mode you can connect to RAK4600 through BLE using your mobile device and configure RAK4600 over BLE But if you don t connect with RAK4600 through...

Page 49: ...Control Panel BLE which are developed by the Nordic Semiconductor company 3 Open the Nordic mobile app and scan for the BLE signal 4 After resetting the RAK4600 its BLE interface should broadcast a d...

Page 50: ...the up arrow then a pop up menu should appear as shown in Figure 75 Figure 75 Pop up menu to enter to the bootloader mode 8 Press the SEND button to reset the RAK4600 and to enter into the DFU mode 9...

Page 51: ...RAK4600 in DFU mode 10 Press CONNECT then click the icon highlighted in red DFU 11 Select the Distribution packet ZIP option in the pop up menu and press OK Figure 77 DFU icon 11 Select the Distributi...

Page 52: ...update the firmware through DFU over the BLE interface The upgrade progress will be shown the same as Figure 79 Figure 79 DFU firmware update progress 13 Upon completion the RAK4600 will restart autom...

Reviews: