3-phase PV router
Loading...
Searching...
No Matches
RFConfig Namespace Reference

RF Module Configuration. More...

Variables

constexpr uint8_t FREQUENCY { RF69_868MHZ }
 
constexpr uint8_t GATEWAY_ID { 1 }
 
constexpr bool IS_RFM69HW { false }
 
constexpr uint8_t NETWORK_ID { 210 }
 
constexpr uint8_t POWER_LEVEL { 31 }
 
constexpr uint8_t REMOTE_NODE_ID [] { 15, 16, 17 }
 Node ID of each remote load unit, unit 1 first (only if REMOTE_LOADS_PRESENT=true)
 
constexpr uint8_t RF_CS_PIN { 10 }
 
constexpr uint8_t RF_IRQ_PIN { 2 }
 
constexpr uint8_t ROUTER_NODE_ID { 10 }
 

Detailed Description

RF Module Configuration.

RF Network Topology:

Router (ID=10) -----> Remote Load Unit 1 (ID=15) [controls TRIACs] | ---> Remote Load Unit 2 (ID=16) [optional] |---> Remote Load Unit 3 (ID=17) [optional] | +-------------> Gateway (ID=1) [receives telemetry data]

  • NETWORK_ID (210): Same for ALL devices on this RF network
  • ROUTER_NODE_ID (10): THIS router's unique address
  • REMOTE_NODE_ID[]: Addresses of the Arduinos controlling remote loads, unit 1 first
  • GATEWAY_ID (1): Address of the telemetry receiver (optional, for data logging)

Up to MAX_REMOTE_UNITS units are supported, each a separate Arduino, each driving up to MAX_LOADS_PER_UNIT loads. Which loads belong to which unit is declared in the load map in config.h, with Load::remote(unit). The table below only has to be long enough to cover the highest unit number used there.

Variable Documentation

◆ FREQUENCY

uint8_t RFConfig::FREQUENCY { RF69_868MHZ }
inlineconstexpr

Definition at line 43 of file config_rf.h.

◆ GATEWAY_ID

uint8_t RFConfig::GATEWAY_ID { 1 }
inlineconstexpr

Gateway for telemetry data (only if RF_LOGGING_PRESENT=true)

Definition at line 50 of file config_rf.h.

◆ IS_RFM69HW

bool RFConfig::IS_RFM69HW { false }
inlineconstexpr

true for RFM69HW/HCW (high power), false for RFM69W/CW

Definition at line 56 of file config_rf.h.

◆ NETWORK_ID

uint8_t RFConfig::NETWORK_ID { 210 }
inlineconstexpr

Network ID (1-250, MUST be identical on ALL devices)

Definition at line 46 of file config_rf.h.

◆ POWER_LEVEL

uint8_t RFConfig::POWER_LEVEL { 31 }
inlineconstexpr

TX power level: 0-31 (31 = max power)

Definition at line 57 of file config_rf.h.

◆ REMOTE_NODE_ID

uint8_t RFConfig::REMOTE_NODE_ID[] { 15, 16, 17 }
inlineconstexpr

Node ID of each remote load unit, unit 1 first (only if REMOTE_LOADS_PRESENT=true)

Definition at line 53 of file config_rf.h.

◆ RF_CS_PIN

uint8_t RFConfig::RF_CS_PIN { 10 }
inlineconstexpr

SPI Chip Select pin

Definition at line 60 of file config_rf.h.

◆ RF_IRQ_PIN

uint8_t RFConfig::RF_IRQ_PIN { 2 }
inlineconstexpr

Interrupt pin (must be 2 or 3 on Arduino UNO)

Definition at line 61 of file config_rf.h.

◆ ROUTER_NODE_ID

uint8_t RFConfig::ROUTER_NODE_ID { 10 }
inlineconstexpr

THIS router's unique ID (1-30)

Definition at line 47 of file config_rf.h.