Documentation ¶
Index ¶
Constants ¶
const ( ReceiveDelay1 time.Duration = time.Second ReceiveDelay2 time.Duration = time.Second * 2 JoinAcceptDelay1 time.Duration = time.Second * 5 JoinAcceptDelay2 time.Duration = time.Second * 6 MaxFCntGap uint32 = 16384 ADRAckLimit = 64 ADRAckDelay = 32 AckTimeoutMin time.Duration = time.Second // AckTimeout = 2 +/- 1 (random value between 1 - 3) AckTimeoutMax time.Duration = time.Second * 3 )
Default settings for this band
const CFListAllowed = true
CFListAllowed defines if the optional JoinAccept CFList is allowed for this band
const DefaultTXPower = 14
DefaultTXPower defines the default TX power in dBm
const Name = "EU 863-870"
Name defines the name of the band
const RX2DataRate = 0
RX2DataRate defines the RX2 receive window data rate to use
const RX2Frequency = 869525000
RX2Frequency defines the RX2 receive window frequency to use (in Hz)
Variables ¶
var DataRateConfiguration = [...]DataRate{
{Modulation: LoRaModulation, SpreadFactor: 12, Bandwidth: 125},
{Modulation: LoRaModulation, SpreadFactor: 11, Bandwidth: 125},
{Modulation: LoRaModulation, SpreadFactor: 10, Bandwidth: 125},
{Modulation: LoRaModulation, SpreadFactor: 9, Bandwidth: 125},
{Modulation: LoRaModulation, SpreadFactor: 8, Bandwidth: 125},
{Modulation: LoRaModulation, SpreadFactor: 7, Bandwidth: 125},
{Modulation: LoRaModulation, SpreadFactor: 7, Bandwidth: 250},
{Modulation: FSKModulation, BitRate: 50000},
}
DataRateConfiguration defines the available data rates
var DownlinkChannelConfiguration = UplinkChannelConfiguration
DownlinkChannelConfiguration defines the (default) available downlink channels.
var MACPayloadSizeConfiguration = [...]MaxPayloadSize{
{M: 59, N: 51},
{M: 59, N: 51},
{M: 59, N: 51},
{M: 123, N: 115},
{M: 230, N: 222},
{M: 230, N: 222},
{M: 230, N: 222},
{M: 230, N: 222},
}
MACPayloadSizeConfiguration defines the maximum payload size for each data rate
var RX1DROffsetConfiguration = [...][6]int{
{0, 0, 0, 0, 0, 0},
{1, 0, 0, 0, 0, 0},
{2, 1, 0, 0, 0, 0},
{3, 2, 1, 0, 0, 0},
{4, 3, 2, 1, 0, 0},
{5, 4, 3, 2, 1, 0},
{6, 5, 4, 3, 2, 1},
{7, 6, 5, 4, 3, 2},
}
RX1DROffsetConfiguration defines the available RX1DROffset configurations per data rate.
var TXPowerConfiguration = [...]int{
20,
14,
11,
8,
5,
2,
}
TXPowerConfiguration defines the available TXPower settings in dBm
var UplinkChannelConfiguration = [...]Channel{ {Frequency: 868100000, DataRates: []int{0, 1, 2, 3, 4, 5}}, {Frequency: 868300000, DataRates: []int{0, 1, 2, 3, 4, 5}}, {Frequency: 868500000, DataRates: []int{0, 1, 2, 3, 4, 5}}, }
UplinkChannelConfiguration defines the (default) available uplink channels
Functions ¶
func GetDataRate ¶
GetDataRate returns the index of the given DataRate.
func GetRX1Frequency ¶
GetRX1Frequency returns the frequency to be used for RX1 given the uplink frequency and data rate.
Types ¶
This section is empty.