Skip to content

BiDiB Low Level Messages

Eugene edited this page Aug 3, 2021 · 5 revisions

Diagnostics

A GBMboost Master/Slave sends an MSG_BOOST_DIAGNOSTIC feedback with its current and voltage usage and its temperature.

Short Circuits

Electrical short circuits, e.g., by trains driving through points in the wrong position, misalignment of train wheels on a track, or debris across the tracks, are reported by boosters with an MSG_BOOST_STAT feedback with value BIDIB_BST_STATE_SHORT.

Track Occupation

MSG_BM_OCC MSG_BM_FREE MSG_BM_MULTIPLE

GPIO Inputs

GPIO ports on the OneControl can be configured to be inputs. On the SWTbahn Standard platform, GPIO port 39 (0x27) on OneControl2 is configured as an active-high input to receive the lantern clock synchronisation signal from OneControl1. Every time the input changes from high to low, OneControl2 sends an MSG_LC_STAT feedback to the host computer. When the clock synchronisation wire is disconnected from port 39, no feedback is received.

Error "No peripheral on port 0x?? configured for node address 0x??"

This error is reported in the syslog if a GPIO input is not configured in the YAML files as a peripheral. For OneControl2, the following peripheral has to be defined at the end of its configuration entry:

boards:
  - id: onecontrol2
    points-board:
      ...
    peripherals:
      - id: CLK_OC1
        port: 0x0027
        aspects: 
          - id: on
            value: 0x00
          - id: off
            value: 0x01
        initial: on
  - id: onecontrol1
    ...
Clone this wiki locally