From 31ce1c88f745c2946b3c0eb9986e0aaed164485c Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Thu, 12 Jan 2017 20:10:57 -0500 Subject: 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. --- cryptech_muxd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- cgit v1.2.3