eu863_870

package
v0.0.0-...-9a529fd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 26, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
const CFListAllowed = true

CFListAllowed defines if the optional JoinAccept CFList is allowed for this band

View Source
const DefaultTXPower = 14

DefaultTXPower defines the default TX power in dBm

View Source
const Name = "EU 863-870"

Name defines the name of the band

View Source
const RX2DataRate = 0

RX2DataRate defines the RX2 receive window data rate to use

View Source
const RX2Frequency = 869525000

RX2Frequency defines the RX2 receive window frequency to use (in Hz)

Variables

View Source
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

View Source
var DownlinkChannelConfiguration = UplinkChannelConfiguration

DownlinkChannelConfiguration defines the (default) available downlink channels.

View Source
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

View Source
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.

View Source
var TXPowerConfiguration = [...]int{
	20,
	14,
	11,
	8,
	5,
	2,
}

TXPowerConfiguration defines the available TXPower settings in dBm

View Source
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

func GetDataRate(dr DataRate) (int, error)

GetDataRate returns the index of the given DataRate.

func GetRX1Frequency

func GetRX1Frequency(frequency, dataRate int) (int, error)

GetRX1Frequency returns the frequency to be used for RX1 given the uplink frequency and data rate.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL