LoRa Networking Guide
Development website
  • Initial page
  • LoRa and LoRaWAN
  • Hardware
  • Dual radio with Expansion Board
  • General considerations
  • Transmission modes
  • Initialization
  • Node parameters
  • Packet parameters
  • Power gain and sensitivity
  • Long range tests
  • Connectivity
  • Starting a network
  • Joining an existing network
  • Security and data encryption
  • Understanding LoRa
  • Code examples and extended information
  • API changelog
  • Certifications
  • Documentation changelog
Powered by GitBook
On this page
  • Choosing a channel
  • Choosing a mode

Was this helpful?

Starting a network

PreviousConnectivityNextJoining an existing network

Last updated 4 years ago

Was this helpful?

To create a network it is only necessary to set 2 parameters in LoRa: channel and mode. These parameters are the base of a network and we need to be careful choosing them.

Encryption is optional. There are more parameters used to create a network like security parameters, which are not necessary but recommended (see chapter "Security and Data Encryption").

Two nodes are in the same LoRa network if they are using the same channel and mode.

Choosing a channel

As explained in chapter "Node Parameters", there are different channels to choose. Depends on the frequency band used, a random value between CH_10_868 - CH_17_868 or CH_00_900 - CH_12_900 should be chosen. This value will be used as the input parameter in the API function responsible for setting the channel.

Example of use:

{
    sx1272.setChannel(CH_04_900); // Set channel
}

SX1272 configuration example:

Choosing a mode

This parameter is only intended for LoRa. Mode is different depending on the BW, CR and SF parameters chosen. There are 10 different modes in the Waspmote API, shown in the figure, but it is possible to add any other combination of BW, CR and SF values.

Mode

BW

CR

SF

1

125

4/5

12

2

250

4/5

12

3

125

4/5

10

4

500

4/5

12

5

250

4/5

10

6

500

4/5

11

7

250

4/5

9

8

500

4/5

9

9

500

4/5

8

10

500

4/5

7

Example of use:

{
    sx1272.setMode(3); // Set LoRa mode
}

SX1272 configuration example:

https://development.libelium.com/sx-01-configure-lora-parametersdevelopment.libelium.com
https://development.libelium.com/sx-01-configure-lora-parametersdevelopment.libelium.com