beautypg.com

Set priority output buffer queue count – Echelon LonWorks Router User Manual

Page 117

background image

mode = READ_ONLY_RELATIVE (1)
offset = 0x0019;
count = 1;
form = BOTH_CS_RECALC (1)
data = buffer_sizes;

The buffer_sizes value contains two nibble fields that control the size of both

the input and output buffers. The output size value also controls the priority

output buffer size. The default size is 66 bytes (or SIZE_66 = 0xB).
When changing this value, you should set both nibble fields to the same value.

Different values can be used if the maximum packet size is different for the two

directions through the router. The default setting for this byte is 0xBB. The

total number of bytes assigned to the buffer queues for a RTR-10 must not exceed

1254 bytes, as described in Message Buffers. A buffer size of less than 66 is not

recommended because the router will not be able to forward network

management messages if the buffers are too small.
The size values are represented by a code of type buffer_size_entry:

typedef enum {
SIZE_20 = 0x2;
SIZE_21 = 0x3;
SIZE_22 = 0x4;
SIZE_24 = 0x5;
SIZE_26 = 0x6;
SIZE_30 = 0x7;
SIZE_34 = 0x8;
SIZE_42 = 0x9;
SIZE_50 = 0xA;
SIZE_66 = 0xB;
SIZE_82 = 0xC;
SIZE_114 = 0xD;
SIZE_146 = 0xE;
SIZE_210 = 0xF;
SIZE_255 = 0x0;
} buffer_size_entry;

Set Priority Output Buffer Queue Count

The priority output buffer queue count is selected using a Write Memory network

management message with the following parameters:

mode = READ_ONLY_RELATIVE (1)
offset = 0x001A;
count = 1;
form = BOTH_CS_RECALC (1)
data = queue_count;

The queue_count value contains two nibble fields. The most significant nibble

controls the number of priority output buffers. The least significant nibble must

be zero. The total number of bytes assigned to the buffer queues for a RTR-10

must not exceed 1254 bytes, as described Message Buffers.
The most significant nibble of queue_count is represented by a code of type
queue_count_entry

:

L

ON

W

ORKS

Router User’s Guide

107