Skip to content

Bitbus

Bitbus Demo

The bitbus demo will listen to the Bitbus and dump all received frames to the console.

Connect the SIO07 to your bitbus network. The Bitbus is connected to the SIO07 via the two connectors labelled BITBUS1 and BITBUS2. Connect D+/D- and GND accordingly.

Install io4edge-client-python

Python 3.10 or higher is required.

pip install io4edge-client-python

Download Examples

Get the example from https://raw.githubusercontent.com/ci4rail/io4edge-client-python/refs/heads/main/examples/bitbussniffer//dumpstream.py

Adapt the filter settings in dumpstream.py according to your needs:

    bb_client.upload_configuration(
        bbsniffer.Pb.ConfigurationSet(
            ignore_crc=True,
            baud_62500=False,
            #address_filter=bytes([0xFF] * 32), # this would pass all addresses
            address_filter=bytes(addr_filter),
            min_frame_length=1, # Discard frames with 0 length
        )
    )

Run the demo:

python3 dumpstream.py SIO07-1-bitbus

Then the tool should dump all frames on the bus to the console.