Opendigitalradio / ODR-DabMod

ODR-DabMod is a DAB (Digital Audio Broadcasting) modulator, part of the ODR-mmbTools.
https://www.opendigitalradio.org
Other
49 stars 32 forks source link

Modulator reverts to idle #35

Closed ashelford closed 5 years ago

ashelford commented 5 years ago

Our multiplexer is not on the same site as our modulator. Occasionally, if there is a glitch in the connection the modulator reverts to idle and has to be manually rebooted to reconnect the stream. Is there are workaround for this? Is it possible, for example, to specify two inputs on the modulator so that if one stream fails it switches to the other? Alternatively, is there a way we can make the modulator automatically reconnect if idle for say a predetermined period of time (say 5 seconds)? Many thanks, Ash

mpbraendli commented 5 years ago

Hi Ash, how do you connect both? ZMQ?

ashelford commented 5 years ago

Yes, ZeroMQ.

On Mon, 15 Apr 2019, 08:52 Matthias P. Braendli, notifications@github.com wrote:

Hi Ash, how do you connect both? ZMQ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Opendigitalradio/ODR-DabMod/issues/35#issuecomment-483146006, or mute the thread https://github.com/notifications/unsubscribe-auth/AM0BQOdDKnRvQZ9Qpp0I2wArFBGZop1kks5vhC-9gaJpZM4ct_Z2 .

mpbraendli commented 5 years ago

It seems that some errors on the network can lead to a situation where the receive end doesn't notice an error, as discussed here. https://github.com/zeromq/libzmq/issues/1199#issuecomment-57373160 I'll see if there's an easy workaround.

mpbraendli commented 5 years ago

I've added an auto-timeout to the zeromq input. Can you try the latest "next" commit? That would be version v2.3.0-8-g01cb197

With the log, you will be able to see how many times the modulator restarted. Let me know if that solves your issue.