background image

Documentation Center

RAK4260 Module Quick Start Guide

Prerequisites

What Do You Need?

Before going through the quick start guide of the RAK4260 WisDuo LPWAN Module, make sure to prepare the
necessary items listed below:

Hardware Tools

1. RAK4260 LPWAN Module
2. USB to TTL Converter
3. RAKDAP1 DAPLink Tool
4. Gateway in range for testing
5. Windows PC

Software Tools

1. 

RAK Serial Port Tool

2. 

RAK Device Firmware Upgrade (DFU) Tool

3. 

Atmel Studio

4. 

Sample Code

Product Configuration

Interfacing with RAK4260

During the configuration of the module, a guided setup is available on the console output. You can connect to the
console of the RAK4260 module through the UART interface.

Connect to the RAK4260

In this document, a RAK4260 module is used as an example. Use a USB to TTL converter to connect to the
module.

1. Connect the RAK4260 to the USB port of a general-purpose computer (Windows PC) using a USB to TTL

module (3.3 V), as shown in Figure 1.

Summary of Contents for RAK4260

Page 1: ...Serial Port Tool 2 RAK Device Firmware Upgrade DFU Tool 3 Atmel Studio 4 Sample Code Product Configuration Interfacing with RAK4260 During the configuration of the module a guided setup is available...

Page 2: ...Bits 8 bits Stop Bits 1 stop bit Parity NONE 4 The RAK4260 console output can now be read in the RAK serial port tool as shown in Figure 2 Figure 2 RAK Serial Port Tool Connected to RAK4260 Module Be...

Page 3: ...rocessed and integrated as part of a larger solution that could generate efficiency traceability and predictability capacity among others The RAK4260 module can be part of this ecosystem and the objec...

Page 4: ...Documentation Center Figure 4 The Things Network Home Page Figure 5 TTN Console Page Create a New Application 1 Choose the APPLICATIONS Figure 6 Application Section 2 Click the add application button...

Page 5: ...cation Application EUI this will be generated automatically by The Things Network for convenience Handler Registration handler you want to register this application to 3 After you fill in the necessar...

Page 6: ...otocol Device EUI Application Key Application EUI The TTN platform can generate these parameters randomly by leaving those fields empty or you can enter already existing values 3 Press the Register bu...

Page 7: ...arameter and Firmware Setup To connect your device with TTN execute the following steps To do this fill in the parameters obtained when setting up the TTN Edit OTAA Parameters in the Code 1 Open your...

Page 8: ...er Figure 13 Open the sample project 3 Go to the folder where you downloaded the GitHub repository and select the APPS_ENDDEVICE_DEMO1 project file it is in the directory with the same name as the fil...

Page 9: ...file structure that contains folders and files that you can edit You need to copy the values of the three 3 parameters shown in Figure 11 Device Application EUI and Application Key into the correspond...

Page 10: ...ou registered with TTN you can proceed to compile the project There is no need to edit anything else in order to compile firmware that will allow you to connect to the TTN network Compile the Code 1 C...

Page 11: ...Tool Connecting to TTN 1 Connect your USB to the TTL adapter to the corresponding pins of RAK4260 which have been discussed in the earlier section Refer to Figure 1 Use the serial communication tool...

Page 12: ...ine with the LoRa Gateway settings to successfully connect the RAK4260 module to a LoRa network Figure 20 Join request which shows configured parameters Figure 21 Connection successful for OTAA mode 3...

Page 13: ...onnect the RAK4260 LPWAN Module to the ChirpStack platform As described in the ChirpStack website ChirpStack provides open source components for LoRaWAN networks Together they form a ready to use solu...

Page 14: ...more technical understanding of the ChirpStack components refer to the Architecture page of ChirpStack NOTE To register the device to the ChirpStack network server you must choose either ABP or OTAA...

Page 15: ...existing ones Application Name rak4260_node Application Description RAK4260 Module application Service profile This field will select the system profile The Application Description field is just a de...

Page 16: ...tab create a new device LoRa node by clicking on the CREATE button Figure 29 Add a new device at the Devices tab Figure 30 New device registration form 4 Fill in the parameters requested as appears i...

Page 17: ...istration Figure 31 Generate a new Device EUI in the device registration form LoRaWAN Join Mode The LoRaWAN specification defines that to join a LoRaWAN network each end device has to be personalized...

Page 18: ...y by clicking the icon highlighted in red Figure 33 Application Key for the OTAA mode in the device registration form 3 Once the Application Key is added to the form the process can be finalized by cl...

Page 19: ...cation Key and the Application EUI But in ChirpStack s implementation only Device EUI and the Application Key are mandatory The Application EUI is not required and is not recorded in the Application t...

Page 20: ...using the transmission to fail Figure 36 ChirpStack Console configuring a device in ABP mode After selecting the ABP mode the following parameters appear in the ACTIVATION tab as shown in Figure 37 De...

Page 21: ...de then select the LORAWAN FRAMES tab Figure 38 OTAA activation frame 2 Go to Applications rak4260 node Devices rak4260 node then select DEVICE DATA tab Figure 39 Device data OTAA frame View LoRaWAN A...

Page 22: ...lications rak4260 node Devices rak4260 abp then select DEVICE DATA tab Figure 41 Device data ABP frame Miscellaneous Firmware Upgrade Through DAPLink Refer to the RAKDAP1 Flash and Debug Tool guide in...

Reviews: