Hello again,
i want to broadcast raspivid-data using socat. As a display i use my mobile phone and an android-app, the receiving rpi is connected using USB-Tethering (more infos here http://fpv-community.de/showthread.php? ... OpenSource). Everything works at the moment, but i want to realize the following:
The script should wait the moment the usb-connection is lost, and restart the transmission if the connection is re-established.
The transmission part in the script is as follows:
$WBC_PATH/rx -p $PORT -b $BLOCK_SIZE -r $FECS -f $PACKET_LENGTH $NICS | socat -b 1024 - udp4-sendto:192.168.0.104:5000
What would be a sufficient if-else-construction (or anything similar) that doesnt add lag/delay (!)?
Thanks!