mergCBUS

ContentCommand StationsmergCBUS


www.merg.org.uk_merg_images_merg_logo.jpg

mergCBUS is really an 'open source' version of LocoNet but is much faster and uses CAN which is very reliable.


Setup

CANID

The CANID used for the CANUSB and CANRS.

Sub-Library

The connected CAN nterface:

Type BPS Kit code Manufacturer Remark
TCP/IP 10/100 MBPS CAN-GC1e GCA Peter Giling Preferred.
USB 500 KBPS CANUSB MERG Preferred by MERG. The 12V version can be used in combination with the CAN-GCA line.
Serial 230400 CAN-GC1 GCA Peter Giling Uses binary responses to improve through put. (Not MERG compatible.)
Serial 115200 CANRS MERG Deprecated; It is not fast enough to keep up with CBUS at full speed!

Device

The serial device used for the CAN interface.

Kit code Windows Linux Remark
CANUSB COM5…COMn /dev/ttyUSB0…/dev/ttyUSBn
CAN-GC1, CANRS COM1…COM4 /dev/ttyS0…/dev/ttySn An USB-RS232 converter can also be used. (Tested)

Host/Port

The hostname and port for the CAN-GC1e interface.

Short events

Use the short version of the accessory events; Event number only. (Recommended)
The long events are based on node number and event number.

Fastclock

Send fast clock packets on the CBUS.
It is recommended to set this enabled in case of using a TCP/IP connection to prevent idle timeout disconnection.

Command Ack

Activates the command acknowledgment handshake.
A next command can only be send if the interface did acknowledged the previous command.
This handshake prevents loss of commands due buffer overflow. (10/100MBit → 125kBit)
Other manufacturers, like Lenz, are also using such a handshake on there Ethernet interfaces.

Only the CAN-GC1e version 1.c is capable of handling this acknowledgment when this option is activated in the firmware.


FONFOF

Use the OPC_DFON/OPC_DFOF instead of OPC_DFUN. (Not implemented by CANCMD.)

SoD

“Start of Day” address for query all input states.
This must be programmed as event in all input nodes which should report.

Slot purge time

CS timeout for updating DCC mobile decoders.
If a loco becomes idle before this time out a keep alive command is send to the CS.
:!: The hardware purgetime is 20 seconds, so this value should be set to less then 20 to assure the slot is not purged during automatic runs!

Loader time

Deprecated: No longer maintained.
Time in ms between sending bootloader lines to a node.


Addressing

mergCBUS addressing is FLAT, only the bus and address values are used; Port values are used in case the address value is zero.

Rocrail mergCBUS Range Remark
- CAN ID 0…127 Unique number within a CAN segment to be used in the CAN transport layer.
This is the low part of the CAN Message Identifier without priority bits.
Bus Node number 0…65535 Used for long events and programming. This must be set unique for all modules.
Address Event number 0…65535
Port Event number in case Address is zero.
This is discouraged.
0…65535 Must be zero for correct mapping if the address field is used.
Gate Added to the address of output objects. 0,1 This is needed for signal pattern support.


Resources

Sites

Kits & PCBs

Documentation


Personal Tools