IDEETRON Nexus LoRaWAN Скачать руководство пользователя страница 6

 

 

Pagina 6 of 20 

14-4-2017 

Nexus LoRaWAN 

The message type filed can have several values, in Table 5 the different values for the MAC header 
are listed. 
 

MAC Header value Hex 

Message type 

60 

Unconfirmed data down 

A0 

Confirmed data down 

Table 5: Message types 

 
The frame control field consists of different bits, the most important is bit 5 containing the ACK. 
Most of the times the other bits will be 0, so the frame control field can have the following values: 
 
00 – No ACK 
20 – ACK 
 
For a full description of the frame control field see the LoRaWAN specification. 
 
When the Nexus receives a Join Accept message after sending a Join request the following data 
will be shown: 
 

-

 

Device address 

-

 

Network session key 

-

 

Application session key 

7  Commands 

This chapter describes the commands that can be used to communicate with the Nexus using a 
terminal program. All commands and data is sent as ASCII characters. All data is one or more bytes 
of hexadecimal numbers represented by 2 ASCII characters. So all data exist of 2 ASCII characters 
that can be 0 – F. All other characters will be set to 0. 
 
The following command structure is used 
 

Command type 

Parameter 1 

Parameter 2 

Value 

Description 

mac 

data 

 

Maximum of 51 bytes 

Send LoRaWAN 
message with this data 

join 

 

Send a Join Request 
message 

get/set 

devaddr 

4 bytes 

The the device address 

nwkskey 

16 bytes 

The network session key 

appskey 

16 bytes 

The application session 
key 

drrx 

1 byte 

Transmit datarate 

drtx 

1 byte 

Receive datarate 

chrx 

1 byte 

Transmit channel 

chtx 

1 byte 

Receive channel 

pwridx 

1 byte 

Power index 

cnf 

1 byte 

Confirmation 

chhop 

1 byte 

Channel hopping 

class 

1 byte 

Mote class 

appkey 

16 bytes 

Application key 

deveui 

8 bytes 

Device EUI 

appeui 

8 bytes 

Application EUI 

Table 6: Command structure 

 

Содержание Nexus LoRaWAN

Страница 1: ...Manual Nexus LoRaWAN Date 13 04 2017 Version 2 0 Title Manual Nexus LoRaWAN...

Страница 2: ...at 81 3941 JL Doorn Nederland Tel 31 0 343 769094 E mail info ideetron nl 2 Table of contents 1 REVISION HISTORY 2 1 1 Contact 2 2 TABLE OF CONTENTS 2 3 INTRODUCTION 4 4 DEFAULT SETTINGS 4 5 LORAWAN I...

Страница 3: ...ridx 9 7 11 mac set get cnf 10 7 12 mac set get chop 10 7 13 mac set get class 10 7 14 mac set get appkey 11 7 15 mac set get deveui 11 7 16 mac set get appeui 11 8 EXAMPLES 11 8 1 Activation By Perso...

Страница 4: ...rt up of the Nexus board Radio connection Modulation LoRa Channel Tx 868 100 MHz Datarate Tx SF12 BW 125 kHz Channel Rx 869 525 MHz Datarate Rx SF9 BW 125 kHz Device Address DS2401 unique number Netwo...

Страница 5: ...RC and MIC is ok and if it is a message for this device Then it will be broken down in the different fields The Nexus will send the following information using to serial communication Message Value De...

Страница 6: ...hat can be used to communicate with the Nexus using a terminal program All commands and data is sent as ASCII characters All data is one or more bytes of hexadecimal numbers represented by 2 ASCII cha...

Страница 7: ...nel for transmit And it will listen on the set receive Datarate and Channel for a Join accept message When a join accept message is received it will show the following DevAddr device addresss NwkSKey...

Страница 8: ...t drrx To write the datarate sent mac set drrx datarate datarate can have to values shown in Table 7 datarate Description 00 SF 12 BW 125 kHz 01 SF 11 BW 125 kHz 02 SF10 BW 125 kHz 03 SF9 BW 125 kHz 0...

Страница 9: ...set get chtx This command is used to read or write the transmit channel To read the channel sent mac get chtx To write the channel sent mac set chtx channel channel can have to values shown in Table 8...

Страница 10: ...ill go back to channel 00 See Table 8 for the different channels To read channel hopping sent mac get chhop To write channel hopping sent mac set chhop Channel hopping Channel hopping can have the fol...

Страница 11: ...d to read or write the application EUI To read the EUI sent mac get appeui To write the EUI sent mac set appeui EUI EUI is 8 bytes long 0011223344556677 The answer form the nexus is AppEUI EUI 8 Examp...

Страница 12: ...ou need to know the NwkSKey AppSKey and DevAddr For this example we use the default key s NwkSkey 2b7e151628aed2a6abf7158809cf4f3c AppSkey 2b7e151628aed2a6abf7158809cf4f3c 5 To get the Device addres f...

Страница 13: ...4 Sending command 10 Now you have all the information you need 11 Go back to the Semtech site and fill in the information into the correct fields 12 Then hit the add button Figure 5 Add to semtech 13...

Страница 14: ...te and check if the message has arrived This may take some time 1 min 16 To see the data you can click View data from application defaultApp 17 To see the radio settings for a message click View trans...

Страница 15: ...rate drtx 00 02 Receive channel chrx 10 Receive datarate drrx 03 Table 9 Channel and datarate settings Semtech To add a mote whit OTAA to semtech follow these steps 1 Sign in or create an account on i...

Страница 16: ...Pagina 16 of 20 14 4 2017 Nexus LoRaWAN Figure 12 Set parameters 7 Send the join command and wait for a reply Figure 12 OTAA response...

Страница 17: ...join Description Setting Value Transmit channel chtx 00 Transmit datarate drtx 00 02 Receive channel chrx 10 Receive datarate drrx 00 Table 10 Channel and datarate settings TTN To add a mote whit OTAA...

Страница 18: ...14 4 2017 Nexus LoRaWAN Figure 15 Device form 7 After registering the device you will see an overview of the device settings You will see the Device EUI Application EUI and Application Key Figure 16...

Страница 19: ...Pagina 19 of 20 14 4 2017 Nexus LoRaWAN 8 Start up realterm and set the parameters Figure 17 Set parameters...

Страница 20: ...Pagina 20 of 20 14 4 2017 Nexus LoRaWAN 9 Send the join command and wait for reply Figure 18 OTAA response...

Отзывы: