Channel Configuration
The Channels config options are: Index, Roles, and Settings. Channel config uses an admin message sending a Channel
protobuf which also consists of a ChannelSettings
or ModuleSettings
protobuf.
Channel Settings (as described on this page) should not be confused with Modem Preset Settings
Modem Preset Settings contain the modem configuration (frequency settings, spreading factor, bandwidth, etc.) used for the LoRa radio. These settings are identical for all channels and can not be unique per channel.
Channel Settings contain information for segregating message groups, configuring optional encryption, and enabling or disabling messaging over internet gateways. These settings are unique and configurable per channel.
Channel Config Values
Index
The channel index begins at 0 and ends at 7.
Indexing can not be modified.
Index | Channel | Default Role | Purpose |
---|---|---|---|
0 | 1 | PRIMARY | Used as default channel |
1 | 2 | DISABLED | User defined |
2 | 3 | DISABLED | User defined |
3 | 4 | DISABLED | User defined |
4 | 5 | DISABLED | User defined |
5 | 6 | DISABLED | User defined |
6 | 7 | DISABLED | User defined |
7 | 8 | DISABLED | User defined |
You can not have DISABLED
channels in-between active channels such as PRIMARY
and SECONDARY
. Active channels must be consecutive.
Role
Each channel is assigned one of 3 roles:
PRIMARY
or1
- This is the first channel that is created for you on initial setup.
- Only one primary channel can exist and can not be disabled.
- Periodic broadcasts like position and telemetry are only sent over this channel.
SECONDARY
or2
- Can modify the encryption key (PSK).
DISABLED
or0
- The channel is no longer available for use.
- The channel settings are set to default.
While you can have a different PRIMARY channel and communicate over SECONDARY channels with the same Name & PSK, a hash of the PRIMARY channel's name sets the LoRa frequency slot, which determines the actual frequency you are transmitting on in the band. To ensure devices with different PRIMARY channel name transmit on the same frequency, you must explicitly set the LoRa frequency slot.
Channel Settings Values
The Channel Settings options are: Name, PSK, Downlink Enabled, and Uplink Enabled. Channel settings are embedded in the Channel
protobuf as a ChannelSettings
protobuf and sent as an admin message.
Name
A short identifier for the channel. (< 12 bytes)
Reserved Name | Purpose |
---|---|
"" (default) | If left empty on the Primary channel, this designates the default channel. |
admin | On Secondary channels, the name admin (case sensitive) designates the admin channel used to administer nodes over the mesh. Note that this is a Legacy feature, see Remote Admin for details. |
Matching channel names are required in order to communicate on the same channel with other devices. Example: If your device is using the channel name LongFast
the device you are attempting to communicate with must also have a channel named LongFast
.
PSK
The encryption key used for private channels.
Hex byte 0x01
for the Primary default
channel.
Must be either 0 bytes (no crypto), 16 bytes (AES128), or 32 bytes (AES256).
Matching PSKs are required in order to communicate on the same channel with other devices. Example: If your device is using a channel with the default PSK of AQ==
the device you are attempting to communicate with must also have a matching channel with the same PSK.