X-Git-Url: http://git.rot13.org//?p=goodfet;a=blobdiff_plain;f=client%2Ffacedancer-monitor.py;fp=client%2Ffacedancer-monitor.py;h=40b9a5edb7cfe171dfc0cd5024996d021badc9d6;hp=0000000000000000000000000000000000000000;hb=96ebf28fac2e03cfee954db85282eac7b8ec8015;hpb=78533a51ab5421601b046a917dd0f6f01a402a49 diff --git a/client/facedancer-monitor.py b/client/facedancer-monitor.py new file mode 100755 index 0000000..40b9a5e --- /dev/null +++ b/client/facedancer-monitor.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# +# monitor-test.py + +from serial import Serial, PARITY_NONE + +from Facedancer import * + +sp = Serial("/dev/ttyUSB0", 115200, parity=PARITY_NONE, timeout=1) +fd = Facedancer(sp) + +fd.monitor_app.print_info() +fd.monitor_app.list_apps() + +res = fd.monitor_app.echo("I am the very model of a modern major general.") + +if res == 0: + print("echo failed") +else: + print("echo succeeded") +