testing ThumbDV and AMBEserver with AMBEtest4


the ThumbDV does not like 230400 baud, so the running the test looks like this:
$ python2 AMBEtest4.py -v -n -s /dev/ttyUSB0
the '-n' parameter changes the baud rate to 460800.

to test an AMBEserver (see OpenDV repo -- DummyRepeater/DV3000), first apply this patch:
$ git diff
diff --git a/scripts/AMBEtest4.py b/scripts/AMBEtest4.py
index abd16cb..792fff6 100755
--- a/scripts/AMBEtest4.py
+++ b/scripts/AMBEtest4.py
@@ -180,7 +180,7 @@ def main(argv):
_sock = socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
- _sock.bind(('', UDP_PORT))
+# _sock.bind(('', UDP_PORT))
port = _sock

print '*********************'
AMBEtest4 can't be a client if it is acting like a server and trying to bind to the port. you get "address already in use" because the port has been bound already by AMBEserver.

the AMBEserver test looks like this:
$ python2 AMBEtest4.py -v -i
- 27 (base 33) -

Join main@DVSwitch.groups.io to automatically receive all group messages.