cpf

package
v3.32.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package cpf implements the JSON configuration for the Common Packet Forwarder.

Package cpf implements the JSON configuration for the Common Packet Forwarder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoradConfig

type LoradConfig struct {
	SX1301Conf  LoradSX1301Conf  `json:"SX1301_conf"`
	GatewayConf LoradGatewayConf `json:"gateway_conf"`
}

LoradConfig represents the Lorad configuration of Semtech's UDP Packet Forwarder.

func BuildLorad

func BuildLorad(gtw *ttnpb.Gateway, fps *frequencyplans.Store) (*LoradConfig, error)

BuildLorad builds Lorad configuration for the given gateway, using the given frequency plan store.

type LoradGatewayConf

type LoradGatewayConf struct {
	BeaconEnable    bool    `json:"beacon_enable"`
	BeaconPeriod    uint    `json:"beacon_period,omitempty"`
	BeaconFreqHz    uint    `json:"beacon_freq_hz,omitempty"`
	BeaconFreqNb    uint    `json:"beacon_freq_nb,omitempty"`
	BeaconStep      uint    `json:"beacon_step,omitempty"`
	BeaconDatarate  uint    `json:"beacon_datarate,omitempty"`
	BeaconBwHz      uint    `json:"beacon_bw_hz,omitempty"`
	BeaconPower     uint    `json:"beacon_power,omitempty"`
	BeaconInfodesc  any     `json:"beacon_infodesc,omitempty"`
	BeaconLatitude  float64 `json:"beacon_latitude,omitempty"`
	BeaconLongitude float64 `json:"beacon_longitude,omitempty"`
}

LoradGatewayConf contains the Lorad configuration for the gateway's server connection.

type LoradSX1301Conf

type LoradSX1301Conf struct {
	shared.SX1301Config
	InsertionLoss     float32 `json:"insertion_loss"`
	InsertionLossDesc string  `json:"insertion_loss_desc,omitempty"`
	AntennaGainDesc   string  `json:"antenna_gain_desc,omitempty"`
}

type LorafwdConfig

type LorafwdConfig struct {
	Gateway  LorafwdGatewayConfig
	Filter   struct{}
	Database struct{}
	GWMP     LorafwdGWMPConfig
	API      struct{}
}

LorafwdConfig represents the Lorafwd configuration of Semtech's UDP Packet Forwarder.

func BuildLorafwd

func BuildLorafwd(gtw *ttnpb.Gateway) (*LorafwdConfig, error)

BuildLorafwd builds Lorafwd configuration for the given gateway.

func (LorafwdConfig) MarshalText

func (conf LorafwdConfig) MarshalText() ([]byte, error)

type LorafwdGWMPConfig

type LorafwdGWMPConfig struct {
	Node            string
	ServiceUplink   uint16
	ServiceDownlink uint16
}

type LorafwdGatewayConfig

type LorafwdGatewayConfig struct {
	ID *types.EUI64
}

Jump to

Keyboard shortcuts

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