beautypg.com

Group or subnet table report, Router status – Echelon LonWorks Router User Manual

Page 115

background image

This message uses the Request-Response protocol. The configuration checksum

in EEPROM is updated if EEPROM is changed.

typedef struct {
unsigned unused1 : 1;
unsigned domain_index : 1;
unsigned unused2 : 5;
unsigned ram_or_eeprom : 1; // 0 => RAM, 1 => RAM+EEPROM
unsigned subnet;
} NM_rtr_subnet_nofwd_request;

Group or Subnet Table Report

This message reports the current settings of either group or subnet forwarding

tables in EEPROM or RAM for the specified domain for a single router side. The

report function is segmented into eight byte sections.
Important: This message is supported by router firmware version 5 or later

only. Use of this message with earlier versions of the router firmware cause the

router to become inoperable.
This message uses the Request-Response protocol.

typedef struct {
unsigned group_or_subnet : 1; // 1 => Group, 0 => Subnet
unsigned domain_index : 1;
unsigned ram_or_eeprom : 1; // 0 => RAM, 1 => EEPROM
unsigned unused : 3;
unsigned index_times_8 : 2;
} NM_rtr_table_report_request;

typedef struct {
unsigned table[8]; // Table data
} NM_rtr_table_report_response;

Router Status

This message is used to report the router configuration and flood/normal modes.
This message uses the Request-Response protocol.

typedef enum {
CONFIGURED = 0,
LEARNING = 1,
BRIDGE = 2,
REPEATER = 3
} algorithm;

typedef enum {
NORMAL = 0, // Not a temporary bridge.
INIT_RTR_TABLE = 1, // Copy forwarding tables from EEPROM
// for configured routers.
// Initialize forwarding tables for
// learning routers.
TEMP_BRIDGE = 2 // Temporarily a bridge until next reset.
} rtr_mode;

L

ON

W

ORKS

Router User’s Guide

105