[Cryptech-Commits] [sw/libhal] 03/03: Probing wants a brief delay after probe string on some machines.
git at cryptech.is
git at cryptech.is
Fri Jan 13 01:21:58 UTC 2017
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch pymux
in repository sw/libhal.
commit 31ce1c88f745c2946b3c0eb9986e0aaed164485c
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Thu Jan 12 20:10:57 2017 -0500
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))
More information about the Commits
mailing list