Hardware Support: MERG CBUS - Connection Details
- CBUS CAN Network ID
- CAN via MERG CAN-RS or CAN-USB
- CAN via MERG Network Interface
- CAN via GridConnect adapter
- CAN via GridConnect Network Interface
- CAN via Lawicell CANUSB
- CAN Simulation
- Direct Serial Connection
This page describes technical details of JMRI's MERG CBUS connection support.
CAN Adapters
JMRI's general approach is to support as
many hardware combinations as possible. By supporting as many
people and their hardware desires as possible, we can create
a growing community of developers, hence more code.
As part of this, the JMRI CAN support is designed to use
as many CAN adapter types as possible.
Not many PCs have a RS232 serial port now, however is still supported.
- CAN via MERG CAN-RS or CAN-USB
- CAN via MERG Network Interface
- CAN via GridConnect adapter
- CAN via GridConnect Network Interface
- CAN via Lawicell CANUSB
- CAN Simulation
- Direct Serial Connection
Where USB interfaces are used, the Baud rate is irrelevant.
MERG CBUS CAN Network ID
All MERG CBUS modules need a CAN ID, and JMRI is no exception.
Modules must not have a duplicate CAN ID
The CAN ID is separate to any NODE ID's used in MERG CBUS Long Events.
Node numbers are for MERG CBUS long events, CAN ID's are purely for the CAN protocol transmission and are largely irrelevant in JMRI processing MERG CBUS events.
Most MERG modules can do "enumeration" for MERG CBUS,
but some
other adapters can't because of their intrinsic latency.
Their slow replies effectively make them invisible.
Therefore Mike Bolton, one of the MERG CBUS developers
suggested that JMRI use a CAN ID of 126. That's a
fixed value in some systems.
If you have multiple copies of JMRI attached to a MERGCBUS network, be sure to give these unique CAN ID's.
CAN via MERG CAN-RS or CAN-USB
A CANUSB4 should not normally require special drivers to be installed, it should just work.
If using a MacBook Pro running Mojave and are struggling with drivers for a CANUSB / CANUSB2,
the appropriate driver is available from FDTI for the UM245R, the VCP option.
( Tip courtesy of John (G8GKU) via JMRI Users at Groups.io )
Default setting shown on right hand side after the " : "
Serial Port - Select the serial or USB port that your CAN interface is plugged in to.
Connection Prefix : "M"
Connection Name : "MERG"
Additional Connection Settings shown when box checkedBaud Rate Select
- 57,600 ( default )
- 115,200
- 230,400
- 250,000
- 333,333
- 460,800
CAN ID for CAN-USB : 126 ( selectable from 120-127 )
Connection Protocol : "MERG CBUS" ( "OpenLCB", "Raw CAN" and "Test - do not use" also selectable )
CAN via MERG Network Interface
Methods using this option include :
- CANPiCAP - The canpi service has to be active to accept connections.
- CANether
- CBUS Server
IP Address / Host Name : ( none ) - enter an IP address for fully manual configuration.
Optional hostname for ZeroConf / mDNS configuration does NOT currently work, use IP or localhost.
"localhost" can be used on most systems if the CAN server is running on the same machine.
TCP / UDP Port : 5550 - Port address setting of the TCP connection
Connection Protocol : "MERG CBUS" ( "OpenLCB", "Raw CAN" and "Test - do not use" also selectable )
Connection Prefix : "M"
Connection Name : "MERG"
Additional Connection Settings shown when box checkedCAN ID for CAN-USB : 126 ( selectable from 120-127 )
Gateway : Pass All ( Filtering also selectable )
CAN via GridConnect adapter
Serial Port - Select the serial or USB port that your CAN interface is plugged in to.
Connection Prefix : "M"
Connection Name : "MERG"
Additional Connection Settings shown when box checkedBaud Rate Select
- 57,600 ( default )
- 115,200
- 230,400
- 250,000
- 288,000
- 333,333
- 460,800
Connection Protocol : "MERG CBUS" ( "OpenLCB", "Raw CAN" and "Test - do not use" also selectable )
CAN via GridConnect Network Interface
IP Address / Host Name : ( none ) - enter an IP address for fully manual configuration. Optional hostname for ZeroConf / mDNS configuration.
TCP / UDP Port : 0 - Port address setting of the TCP connection
Connection Protocol : "MERG CBUS" ( "OpenLCB", "Raw CAN" and "Test - do not use" also selectable )
Connection Prefix : "M"
Connection Name : "MERG"
Additional Connection Settings shown when box checkedGateway : Pass All ( Filtering also selectable )
CAN via Lawicell CANUSB
Serial Port - Select the serial or USB port that your CAN interface is plugged in to.
Connection Prefix : "M"
Connection Name : "MERG"
Additional Connection Settings shown when box checkedBaud Rate Select
- 57,600 ( default )
- 115,200
- 230,400
- 250,000
- 333,333
- 460,800
- 500,000
Connection Protocol : "MERG CBUS" ( "OpenLCB", "Raw CAN" and "Test - do not use" also selectable )
CAN Simulation
A simulated Command Station is started for this connection, see CBUS Simulation Tools.
Defaults to CAN ID 120
Serial port : ( none )
Connection Prefix : "M"
Connection Name : "MERG"
Additional Connection Settings shown when box checkedBaud Rate : None ( grayed out dropdown unselectable )
Connection Protocol : "MERG CBUS" ( "OpenLCB", "Raw CAN" and "Test - do not use" also selectable )
Direct Serial Connection
Serial Port Select- Choose the serial or USB port that your CAN interface is plugged in to.
Concentrator range Select : "A-H" , unselectable in grayed out select box
Device Type Select : "MOD-RFID125", unselectable in grayed out select box
Adapter Select : Generic Stand-alone ( MERG Concentrator alternate option, choosing this allows the Concentrator Range select, with an additional "I-P" option )
Protocol Select : CORE-ID
Alternate option - Olimex, enables a device type of MOD-RFID1356MIFARE in the device type dropdown.
Alternate option - Parallax
Alternate option - SeeedStudio
Alternate option - EM-18
Connection Prefix : "F"
Connection Name : Rfid
Additional Connection Settings shown when box checkedBaud rate Select : automatic ( unselectable, grayed out select box )
JMRI Help
Main JMRI MERG CBUS Support page
MERG CBUS 3rd Party Links See link for the MERG CBUS Developers Guide