digris / digris-edi-zmq-bridge

EDI/ZMQ Distribution Bridge
Other
2 stars 1 forks source link

digris EDI/ZMQ bridge

Developed for Opendigitalradio by digris: https://www.digris.ch

This repository contains three useful tools for EDI distribution over ZMQ, TCP and UDP:

DIGRIS-EDI2EDI

Sometimes you want to carry a DAB Ensemble using EDI over the Internet to a device that doesn't support EDI/TCP. Carrying EDI/UDP over the Internet will not work because of burst packet loss.

With DIGRIS-EDI2EDI, you can convert EDI/TCP to EDI/UDP on a small PC that is close to your device. It also allows you buffer the EDI and release it at a controlled point in time depending on the in-band timestamp.

Statistics are made available through a UNIX DGRAM Socket, which also serves as remote control interface.

You can also fan-out an EDI data stream to several destinations.

This tool can be considered to be the successor of ODR-ZMQ2EDI which is distributed as a part of ODR-DabMux.

Remote Control

ODR-EDI2EDI contains a remote-control function that allows changing settings at runtime. Please see ./edi2edi_remote.py for an example on how to use it.

Example:

odr-edi2edi -r /tmp/edi2edi.socket <OTHER OPTIONS>
./edi2edi_remote.py -s /tmp/edi2edi.socket --stats

Statistics

The following stats are available through the remote control interface. Unless mentioned otherwise, they are all 64-bit counters, and all times are in milliseconds.

Inputs:

Outputs:

DIGRIS-EDIMCAST2EDI

This tool can receive unicast and multicast EDI/UDP, and present that to multiple listeneners over TCP.

For satellite reception, it can deframe EDI carried in MPE (see -F option) and GSE (see -G option).

The GSE deframing has been tested with a TBS6903-X PCIe card, and dvbstream -c 0 8192 -i 226.29.3.1 -r 5000 and digris-edimcast2edi -m 226.29.3.1 -p 5000 -b 172.30.201.81 -G 1 -l 8971

DIGRIS-ZMQ-CONVERTER

This tool can act as zmq2edi and zmq2zmq, reading a ZMQ ETI stream from ODR-DabMux and generate an EDI or ZMQ stream.

Installation

Requirements:

Licence

See the files LICENCE and COPYING

Contributions and Contact

Contributions to this tool are welcome, you can reach users and developers through the ODR-mmbTools group or any other channels mentioned on the ODR website.