How does the LoRa node access the TTN server in ABP mode?

table of Contents

Preface

1. Quick configuration and connection steps for general frequency band (take EU868 frequency band as an example)

Examples of AT configuration commands are as follows:

2. After running the AT command, the display interface example

Conclusion


Preface

When you add both the LoRaWAN gateway and LoRa node to TTN, at this time, you need to configure the parameters of the LoRa node through ABP or OTAA in order to finally achieve the purpose of connecting to the TTN.

How to connect LoRa nodes to TTN in OTAA mode, please refer to the article " How LoRa Nodes Into TTN Network in OTAA Mode ".

How to add the LoRaWAN gateway to TTN, please refer to the article " How to connect the Raspberry Pi gateway to TTN-teach you how to connect the Raspberry Pi gateway to the server Part 4 ".

If you are interested in how to add LoRa nodes to Alibaba Cloud and how to connect to Alibaba Cloud, you can refer to the article How to add your own LoRa node devices on the Alibaba Cloud Internet of Things platform, How to power on LoRa node devices and connect to Alibaba Cloud Things Networking platform .

This article takes the LoRa node in the EU868 frequency band as an example to introduce how to connect the LoRa node to the network TTN in ABP mode.

 

1. Quick configuration and connection steps for general frequency band (take EU868 frequency band as an example)

Here, we take the node in the EU868 frequency band as an example to explain the TTN access to the network in ABP mode.

It should be noted that when we purchase a node, we need to pay special attention to whether the frequency band applicable to the purchased node is appropriate, that is, whether it is the frequency band used in the scenario that we actually need to apply. For example, as shown in the place enclosed by the red circle in Figure 1, when we purchase the RAK5205 LoRa outdoor tracker node RAK5205, we need to select the frequency band.

Figure 1 Schematic diagram of LoRa nodes with multiple frequency band versions
Figure 1 Schematic diagram of LoRa nodes with multiple frequency band versions

 

 

Examples of AT configuration commands are as follows:

at+band=EU868 //Configure the node frequency band

at+mode=0 //Configure the node to work in LoRaWAN mode

at+set_config=dev_addr:26011733 //Configure dev_addr parameters

at+set_config=nwks_key:C96514A92DFC3B4686B0B0C984628FC7 //Configure nwks_key parameters

at+set_config=apps_key:4C7272ACFD083A119F7C32E0775AEB46 //Configure apps_key parameters

(The above three parameters dev_addr, nwks_key, apps_key are example parameters. The actual parameters need to be entered in the parameters of the actual node. For details on how to obtain the parameters of the actual node, please refer to the article " How does LoRa node access the TTN server in OTAA mode? ")

at+join=abp       //Join abp type

 

2. After running the AT command, the display interface example

Figure 2 is a schematic diagram of the LoRa node configuration display interface after running the AT command.

 

After running the AT command, the LoRa node configuration display interface
Figure 2 After running the AT command, the LoRa node configuration display interface

 

Figure 3 is a screenshot of the data that can be viewed on the TTN website.

 

EU868 frequency band, schematic diagram of debugging information on TTN
Figure 3 EU868 frequency band, schematic diagram of debugging information on TTN

 

Conclusion

This article introduces how LoRa nodes can access the TTN network in ABP mode, and specifically introduces the required AT commands.

Guess you like

Origin blog.csdn.net/RAKwireless/article/details/106186894