From 3602831a293d191e5b0ae0c16b149546bd138d5e Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Sat, 6 Sep 2014 14:27:18 +0300 Subject: [PATCH] framing: handle bitstream & replace ECC by CRC-32 --- amodem/common.py | 9 ---- amodem/framing.py | 116 +++++++++++++++++++++++++++++++----------- amodem/recv.py | 24 +++------ amodem/send.py | 15 +++--- tests/test_framing.py | 47 +++++++++-------- tests/test_full.py | 9 +++- tests/test_recv.py | 4 -- 7 files changed, 134 insertions(+), 90 deletions(-) diff --git a/amodem/common.py b/amodem/common.py index e771428..ef0581c 100644 --- a/amodem/common.py +++ b/amodem/common.py @@ -8,15 +8,6 @@ log = logging.getLogger(__name__) scaling = 32000.0 # out of 2**15 SATURATION_THRESHOLD = (2**15 - 1) / scaling -LENGTH_FORMAT = '