diff options
author | jaseg <git@jaseg.de> | 2020-11-27 14:42:52 +0100 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2020-11-27 14:42:52 +0100 |
commit | 6ebd1a667d6e58ca355387af24bbe2a5b00baa50 (patch) | |
tree | b64d0c3b20739e1a5e69d13e788089d737d6af62 /prototype/fw/tools | |
parent | 424310d957cb04bfacba9c711ee7f074fd41f962 (diff) | |
download | ihsm-6ebd1a667d6e58ca355387af24bbe2a5b00baa50.tar.gz ihsm-6ebd1a667d6e58ca355387af24bbe2a5b00baa50.tar.bz2 ihsm-6ebd1a667d6e58ca355387af24bbe2a5b00baa50.zip |
FW bidir comms work
Diffstat (limited to 'prototype/fw/tools')
-rw-r--r-- | prototype/fw/tools/ser_test.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/prototype/fw/tools/ser_test.py b/prototype/fw/tools/ser_test.py index 191124b..d9dec62 100644 --- a/prototype/fw/tools/ser_test.py +++ b/prototype/fw/tools/ser_test.py @@ -66,8 +66,10 @@ if __name__ == '__main__': if time.time() - last_tx > 0.01: + seq = int((time.time() - start_time) * 10) data = struct.pack('<I', seq) - seq += 1 + #seq += 1 + #ser.write(bytes(list(range(255, -1, -1)))) ser.write(cobs.encode(data + struct.pack('<I', zlib.crc32(data))) + b'\0') last_tx = time.time() #time.sleep(0.01) |