From db2d59b79052f499e066b3b922e2c3be15c806c7 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Tue, 15 Dec 2020 12:20:44 +0100 Subject: [PATCH] Create README.md --- test/README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 test/README.md diff --git a/test/README.md b/test/README.md new file mode 100644 index 00000000..d149fd68 --- /dev/null +++ b/test/README.md @@ -0,0 +1,19 @@ + ###################### CHECKSUM COMPARISON FREEDV VS CRCENGINE ######## + #https://crccalc.com + + teststring = b'TEST' + + + + # freedv crc16 checksum + crctest2 = c_ushort(self.c_lib.freedv_gen_crc16(teststring, len(teststring))) + print("FREEDV2: " + str(crctest2.value) + " = " + hex(crctest2.value)) + + + #Python crc16 checksum + crc_algorithm = crcengine.new('crc16-ccitt-false') #load crc16 library + crctest3 = crc_algorithm(teststring) + print("CRCENGINE: " + str(crctest3) + " = " + hex(crctest3)) + + + #######################################################################