aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2017-01-12 20:10:57 -0500
committerRob Austein <sra@hactrn.net>2017-01-12 20:10:57 -0500
commit31ce1c88f745c2946b3c0eb9986e0aaed164485c (patch)
tree0c925b71c3e896783e237afac401487df6b31267
parent56c23098aac5fc3a575eaccc57426a405bdb1fa8 (diff)
Probing wants a brief delay after probe string on some machines.
Probably reached the point of diminishing returns for trying to get probing to work better. Best option, where practical, is to avoid probing completely; when necessary, best run it once then avoid repeating it. cryptech_muxd will probe if requested, but probing is never going to be reliable. Dedicated VID:PID would be much better.
-rwxr-xr-xcryptech_muxd2
1 files changed, 1 insertions, 1 deletions
diff --git a/cryptech_muxd b/cryptech_muxd
index 55d09d0..d51e38b 100755
--- a/cryptech_muxd
+++ b/cryptech_muxd
@@ -305,7 +305,7 @@ class ProbeIOStream(SerialIOStream):
probe_string = SLIP_END + Control_U + SLIP_END + RPC_query + SLIP_END + Control_U + Control_M
yield self.write(probe_string)
-
+ yield tornado.gen.sleep(0.5)
response = yield self.read_bytes(self.read_chunk_size, partial = True)
logger.debug("Probing %s: %r %s", self.serial_device, response, ":".join("{:02x}".format(ord(c)) for c in response))