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 = false
CFListAllowed defines if the optional JoinAccept CFList is allowed for this band
const DefaultTXPower = 20
DefaultTXPower defines the default TX power in dBm
const Name = "AU 915-928"
Name defines the name of the band
const RX2DataRate = 8
RX2DataRate defines the RX2 receive window data rate to use
const RX2Frequency = 923300000
RX2Frequency defines the RX2 receive window frequency to use (in Hz)
Variables ¶
var DataRateConfiguration = [...]DataRate{
{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: 8, Bandwidth: 500},
{},
{},
{},
{Modulation: LoRaModulation, SpreadFactor: 12, Bandwidth: 500},
{Modulation: LoRaModulation, SpreadFactor: 11, Bandwidth: 500},
{Modulation: LoRaModulation, SpreadFactor: 10, Bandwidth: 500},
{Modulation: LoRaModulation, SpreadFactor: 9, Bandwidth: 500},
{Modulation: LoRaModulation, SpreadFactor: 8, Bandwidth: 500},
{Modulation: LoRaModulation, SpreadFactor: 7, Bandwidth: 500},
{},
{},
}
DataRateConfiguration defines the available data rates
var DownlinkChannelConfiguration = [8]Channel{}
DownlinkChannelConfiguration defines the (default) available downlink channels.
var MACPayloadSizeConfiguration = [...]MaxPayloadSize{
{M: 19, N: 11},
{M: 61, N: 53},
{M: 134, N: 126},
{M: 250, N: 242},
{M: 250, N: 242},
{},
{},
{},
{M: 41, N: 33},
{M: 117, N: 109},
{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 = [...][4]int{
{10, 9, 8, 8},
{11, 10, 9, 8},
{12, 11, 10, 9},
{13, 12, 11, 10},
{13, 13, 12, 11},
}
RX1DROffsetConfiguration defines the available RX1DROffset configurations per data rate.
var TXPowerConfiguration = [...]int{
30,
28,
26,
24,
22,
20,
18,
16,
14,
12,
10,
0,
0,
0,
0,
0,
}
LoRaWAN 1.0. Standard - Section 7.5.3 TXPowerConfiguration defines the available TXPower settings in dBm
var UplinkChannelConfiguration = [72]Channel{}
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.