FreeDATA/test
DJ2LS 9a4517487e
First working example
still a lot of debugging inside
2020-12-22 12:25:50 +01:00
..
libcodec2.so Add files via upload 2020-12-14 12:44:13 +01:00
liblpcnetfreedv.so Add files via upload 2020-12-15 10:19:17 +01:00
README.md Update README.md 2020-12-16 18:52:48 +01:00
TEST_RX.py First working example 2020-12-22 12:25:50 +01:00
TEST_TX.py Add files via upload 2020-12-16 15:10:13 +01:00

TESTS

TEST_RX.py

--> RX still not working! mh... :-/

TEST_TX.py

Send string "TEST"

./TEST_TX.py | ./freedv_data_raw_rx DATAC3 - - | hexdump -C

Output should be:

payload bytes_per_modem_frame: 30
00000000  54 45 53 54 00 00 00 00  00 00 00 00 00 00 00 00  |TEST............|
modem bufs processed: 22  output bytes: 30 output_frames: 1 
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00        |..............|
0000001e

Checksum comparison FREEDV vs CRCENGINE

       
       ###################### 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))
        
        
        #######################################################################