Commit graph

72 commits

Author SHA1 Message Date
Ed Gonzalez c5bd30c090 Switch to FTD2XX library for serial communication to ThumbDV 2016-10-24 13:59:21 -05:00
Ed Gonzalez 0c8391700c Add strlen() to TX Message debug output 2015-09-03 10:47:14 -05:00
Ed Gonzalez ce962e6d87 Add thumbDV_flushLists() to flush thumbDV lists in TX/RX transistions 2015-09-03 10:29:12 -05:00
Ed Gonzalez fdc522e747 Move RX=END status message to DSTAR State machine and add new STATUS_END_RX case in status message function 2015-08-31 11:52:41 -05:00
mlhnet b618fcb1fd Add RX=END waveform message, bug fixes 2015-08-30 19:16:48 -04:00
Ed Gonzalez 253ab84a34 Add functions to set DSTAR message field. 2015-08-26 14:41:06 -05:00
Ed Gonzalez 8a210b587b Add slow data encode of message and header data 2015-08-26 14:18:32 -05:00
Ed Gonzalez 3a9f59def9 Add DSTAR TX State machine to handle transmit. Move current TX Logic from sched_waveform to the TX State Machine 2015-08-26 11:27:01 -05:00
Ed Gonzalez 7be0c446d1 Add slice to DSTAR state machine which allows proper status updates with correct index 2015-08-26 10:40:45 -05:00
Ed Gonzalez 1a19337f43 First pass at slow data decode 2015-08-25 18:01:45 -05:00
Ed Gonzalez 1b3d5202f0 Try to unify code style 2015-08-25 10:15:43 -05:00
Ed Gonzalez e25403d6c1 Set the repeater relay bit when using a destination repeater 2015-08-25 09:53:03 -05:00
Ed Gonzalez de442eb75b Fix RX Audio not being emitted 2015-08-25 09:52:41 -05:00
Ed Gonzalez 0d68f11117 Fix declaration of _end_of_transmission 2015-08-25 09:52:24 -05:00
Ed Gonzalez e48c43913c Add sending of end bits at end of transmission. Needs heave cleanup. 2015-08-24 15:07:01 -05:00
Ed Gonzalez c742d3b3ff Add mechanism that allows the waveform to know when the radio is unkeying.
This is needed so that DSTAR can encode it's end bits.
2015-08-24 15:05:03 -05:00
Ed Gonzalez 2f828cf2ac Handle ThumbDV being unplugged gracefully.
When the ThumbDV is unplugged the serial read thread stops and tries to re-connect. All writes to the serial port also stop.
2015-08-20 14:21:38 -05:00
Ed Gonzalez 12b06958ed Change status update to be specific to tx and rx headers. Add status command to send current state 2015-08-04 14:39:07 -05:00
Ed Gonzalez a1c2094429 Sanitize DSTAR header fields more. Automatically insert spaces required when callsigns/rptr do not extend the full 8 characters in header 2015-08-03 17:11:22 -05:00
Ed Gonzalez 280051c0ec Fix magic number that should be DSTAR_RADIO_BIT_LENGTH 2015-08-03 08:50:10 -05:00
Ed Gonzalez 09440809a6 Spacing and set initial_rx to FALSE regardless of whether we got good decode audio or not 2015-06-22 17:26:44 -05:00
Ed Gonzalez b171c4b372 Add commands to set various outgoing header fields and add status message that reports incoming header fields 2015-06-22 17:25:59 -05:00
Ed Gonzalez 9221d5b0b8 Add spaces to slow data output to try to get Icom to decode header. 2015-06-22 11:26:51 -05:00
Ed Gonzalez 8303e3e135 Remove unused variables 2015-06-19 14:30:20 -05:00
Ed Gonzalez 8f6d86be48 Fix RX buffering and begin adding slow data encoding 2015-06-19 14:22:06 -05:00
Ed Gonzalez 524891c602 Transmit working with NFM TX 2015-06-18 16:07:09 -05:00
Ed Gonzalez c76d81e448 Header TX working. Requires pre-emphasis on TX 2015-06-17 18:34:15 -05:00
Ed Gonzalez ea1ce6307e Increase TX4_cb buffer size to be able to hold a full header worth of audio data 2015-06-17 18:21:02 -05:00
Ed Gonzalez fe678569b4 Transmit of SYNC bits working. Very dirty state 2015-06-17 18:04:43 -05:00
Ed Gonzalez 8cac900b72 Don't use the 64 training bits for detecting the header. Just the synchronization bits and also allow transitioning directly from waiting on sync bits to voice frames if we detect a data_sync frame 2015-06-16 15:32:59 -05:00
Ed Gonzalez d9568a9e1f Fix build problems caused by missing CODEC2 folder 2015-06-12 11:13:46 -05:00
Ed Gonzalez f3f2c50e51 Remove unneeded variables 2015-06-12 10:57:38 -05:00
Ed Gonzalez 880581d4ea Buffering working but decode de-stabilizes to FFs and 00s 2015-06-11 18:35:05 -05:00
Ed Gonzalez f9164e29b5 Encapsulate DSTAR into state machine that is fed incoming bits. 2015-06-11 14:13:33 -05:00
Ed Gonzalez 014b457794 Successfully decoding DSTAR Header information. Cleanup and full state machine work starting 2015-06-11 11:31:29 -05:00
Ed Gonzalez 8b3fc14b2f Add dstar.c|.h that add FEC, interleaving and scrambling 2015-06-11 09:20:37 -05:00
Ed Gonzalez b3c43dafe5 Add syn and frame syn pattern matcher to find header of DSTAR frame 2015-06-10 11:07:16 -05:00
Ed Gonzalez a5609ca279 Add bit pattern match files and functions 2015-06-03 14:14:10 -05:00
Ed Gonzalez 81bb26dc15 Encapsulate encode/decode test into function. 2015-06-03 12:59:32 -05:00
Ed Gonzalez d60f28031d GMSK Encode/decode functional. DEMOD filter unecessary from OpenDV code 2015-06-03 12:53:50 -05:00
Ed Gonzalez 3c092ad57d Fix scaling issues and decode_out indexing. Audio encode/decode now completely functional 2015-06-01 18:10:34 -05:00
Ed Gonzalez 637558a4a4 Cleanup hard coded values for DV_PACKET_SAMPLES and increase ring buffers to fit new size 2015-06-01 17:30:00 -05:00
Ed Gonzalez d1218b7346 Loopback of encode TX and decode in RX test working 2015-05-29 14:22:37 -05:00
Ed Gonzalez 3158f09387 Change buffering scheme to 160 samples at coder from 128 of FDV. 2015-05-29 13:15:42 -05:00
Ed Gonzalez b1c1b162ca ThumbDV encode/decode list handling milestone. 2015-05-28 17:02:48 -05:00
Ed Gonzalez 375cbfc717 Add separate read thread for ThumbDV and fix encoding function 2015-05-28 13:00:48 -05:00
Ed Gonzalez 2b16a3242f Initial work on encoding functions 2015-05-27 18:21:27 -05:00
Ed Gonzalez ac61d281d0 Begin porting AMBServer code for use in waveforms. Add thumbDV.c|h files and successfully open serial port 2015-05-27 17:19:27 -05:00
Ed Gonzalez 8f21ad3b5b Remove FreeDV references in preparation for ThumbDV DSTAR waveform 2015-05-27 16:47:10 -05:00
Ed Gonzalez 484b4f6da0 Solve no right-channel audio when in binaural mode 2015-05-26 14:53:21 -05:00