Microchip RN2483

 

Microchip’s RN2483 module is a good choice to connect with KotahiNet’s network. Whether on its own or embedded within a device, a new module can be configured as explained below. In small quantities, it is priced at US$ 14.27 (about $21).

 

Requirements
The RN2483 module from Microchip is surface mounted on a PCB. It is part of many devices such as Microchip’s LoRa Mote. Other options include being part of a development board such as the Waspmote or LoRaONE. Or use the LoRabee with a XBee USB to serial adapter such as the SHD17.

 

Setup
Connect the device or board to a PC using a USB cable. It should set up automatically as a serial device. Use any serial terminal to connect. Settings are 57600 bps, 8 bits, no parity, 1 Stop bit, no flow control. All commands need to be terminated with <CR><LF> and any replies will also be terminated by the same sequence. Turn screen echo on.

Microchip RN2483 module

Microchip RN2483 module

Limitations
Due to an issue with the module currently, only ABP join is possible.

 

Configuration

// check firmware version
sys get ver

RN2483 1.0.1 Dec 15 2015 09:38:09

// check frequency band (default is 868 MHz which is OK)
mac get band

868

// get Device EUI
mac get deveui

0004A30B001B9980

PAUSE HERE. SEND DEVICE EUI TO KOTAHINET which will provide the Device Address, Network Session Key, and Application Session Key.

// Set device address as provided by KotahiNet
mac set devaddr 01955370

ok

// Set Network Session Key as provided by KotahiNet
mac set nwkskey C99F04BE9A82E368B266740C7315C25A

ok

// Set Application Session Key as provided by KotahiNet
mac set appskey CAF256D9CD4B5ABFF1FC8B8E0CB0F5EA

ok

// Set EU default frequency 868.1 MHz in channel 0 off
mac set ch status 0 off

ok

// Set EU default frequency 868.3 MHz in channel 1 off
mac set ch status 1 off

ok

// Set EU default frequency 868.5 MHz in channel 2 off
mac set ch status 2 off

ok

// Set channel 3 frequency to 865.0 MHz
mac set ch freq 3 865000000

ok

// Set channel 3 duty cycle, DR range, and switch on
mac set ch dcycle 3 0

ok

mac set ch drrange 3 0 5

ok

mac set ch status 3 on

ok

// Set channel 4 frequency to 865.2 MHz
mac set ch freq 4 865200000

ok

// Set channel 4 duty cycle, DR range, and switch on
mac set ch dcycle 4 0

ok

mac set ch drrange 4 0 5

ok

mac set ch status 4 on

ok

// Set channel 5 frequency to 865.4 MHz
mac set ch freq 5 865400000

ok

// Set channel 5 duty cycle, DR range, and switch on
mac set ch dcycle 5 0

ok

mac set ch drrange 5 0 5

ok

mac set ch status 5 on

ok

// Set channel 6 frequency to 866.2 MHz
mac set ch freq 6 866200000

ok

// Set channel 6 duty cycle, DR range, and switch on
mac set ch dcycle 6 0

ok

mac set ch drrange 6 0 5

ok

mac set ch status 6 on

ok

// Set channel 7 frequency to 866.4 MHz
mac set ch freq 7 866400000

ok

// Set channel 7 duty cycle, DR range, and switch on
mac set ch dcycle 7 0

ok

mac set ch drrange 7 0 5

ok

mac set ch status 7 on

ok

// Set channel 8 frequency to 866.6 MHz
mac set ch freq 8 866600000

ok

// Set channel 8 duty cycle, DR range, and switch on
mac set ch dcycle 8 0

ok

mac set ch drrange 8 0 5

ok

mac set ch status 8 on

ok

// Set channel 9 frequency to 866.8 MHz
mac set ch freq 9 866800000

ok

// Set channel 9 duty cycle, DR range, and switch on
mac set ch dcycle 9 0

ok

mac set ch drrange 9 0 5

ok

mac set ch status 9 on

ok

// Set channel 10 frequency to 867.0 MHz
mac set ch freq 10 867000000

ok

// Set channel 10 duty cycle, DR range, and switch on
mac set ch dcycle 10 0

ok

mac set ch drrange 10 0 5

ok

mac set ch status 10 on
ok

// Set RX2 window data rate and frequency
mac set rx2 3 867200000

ok

// Save configuration
mac save

ok

// Join network using ABP
mac join abp

ok

accepted

// Transmit confirmed packet using port 3 (example), test data
mac tx cnf 3 4A5B6C7D

ok

mac_tx_ok