JMRI: CBUS Event Capture Tool
The CBUS Event Capture tool can simplify configuring JMRI to work well with your CBUS installation.
To configure JMRI Sensors and Turnouts, you need to identify the associated CBUS events. There are several ways to do this. The rest of this page goes through the alternatives, using configuring a Sensor as an example. Similar methods work for Turnouts.
Provide the Event IDYou can just type an Event ID in the field next to "Active On", and then press "Create". A Sensor will be created that goes Active when the Event is seen, and Inactive when the opposite Event (ON vs OFF) is seen.
If you want to associate Active and Inactive with completely separate Events, you can enter the Event IDs in the two fields and click "Create".
Capture the Next EventIf you can make the layout emit the desired Event, for example by pressing a fascia switch or throwing a turnout, you can capture that Event and use it.
If you press the "Capture Next" button next to one of the Event fields, it will stay down (activated) until the next CBUS Event (CAN frame) is seen by the program. That Event is captured into the neighboring field for later use.
You can separately capture the two Events for a Sensor if desired.
Examine Multiple EventsThe upper part of the screen can capture multiple CBUS Events, which you can then use to create Sensors and Turnouts.
When a new CBUS message comes it, it will be captured in the highest line that has the "Capture" box checked. The box will then be unchecked so the captured message is not overwritten by later CBUS messages. If you check a series of boxes, you can capture a series of messages.
Once you've captured the Event you want, you can copy and paste it into the boxes in the lower part of the window. If your computer allows it, you can also just drag and drop the value into the lower field.
JMRI CBUS ToolsOnce you've created a CBUS Sensor or Turnout, you can use the Sensor Table or Turnout Table to adjust the details.
The CBUS Console can help you figure out what events are happening on your layout.