Commit graph

99 commits

Author SHA1 Message Date
Hayley d2ada3faeb Increased usleep in write
in TX the dongle is only sending reset packets when speech is detected. Also, in TX, signal is not demodulated when speaking into mic; otherwise it is demodulated. Still only reset packets in RX.
2019-07-11 15:14:29 -05:00
Hayley c9df66b0ce Added usleep to thumbDV write
This allowed the TX to modulate; however, still recieving reset packets in TX and RX mode
2019-07-11 14:38:26 -05:00
Hayley 60063a75b6 Rearranged thumbdv opening settings 2019-07-10 16:47:06 -05:00
Hayley 03108e8a4c Commented out manualy trigger of RTS flow control pins 2019-07-01 14:53:15 -05:00
Hayley f5c08a0035 Added RTS/CTS flow control per FTDI representative reccommendation
This does not fix the issue yet, however, the FTDI guy said we have to have this typw of flow control at this speed
2019-06-28 09:40:24 -05:00
Hayley ec35b5e3f1 Added some debugging tools for timeouts 2019-06-27 14:11:31 -05:00
Hayley c3dd1eafb7 Set flow control for higher baud rate
per FTDI reccommendation, set the flow control to XON-XOFF, with 0x11 = Xon and 0x13 Xoff, per example by FTDI
2019-06-24 14:36:58 -05:00
Hayley 6ca60bec26 Commented out the test audio pkt 2019-06-21 15:49:04 -05:00
Hayley 98e721839d Took out read/write debug timing since it is done asynchronous now 2019-06-21 14:42:18 -05:00
Hayley 342120e9f5 Working RX with somewhat acceptable TX
We were able to fix the delay issue, there is still a bug in the TX where someof the data gets off sync and will cut out
2019-06-21 10:51:34 -05:00
Hayley f750b5ce06 Working RX with acceptable delay on radio speakers.
The RX is working now but the TX is not working at all
2019-06-21 10:27:13 -05:00
Ed Gonzalez d9b13d69dc Always unlink from decoded list if there is data 2019-06-21 09:50:18 -05:00
Hayley 7e645fdf4c We changes the return of the write serial from our debugging attempts back to the original void return 2019-06-21 09:41:47 -05:00
Ed Gonzalez 96e8851932 Trying to fix read thread 2019-06-20 17:22:42 -05:00
Ed Gonzalez 6b4ff002fb Attempt to fix seg faults in managing the FT_HANDLE for ThumbDV 2019-06-20 16:35:55 -05:00
Ed Gonzalez c6d6b9ec0e Switch back to read-thread architecture with semaphore instead of event wait 2019-06-20 16:19:29 -05:00
Hayley 480ae99925 Working Debung timer for write function 2019-06-20 15:33:58 -05:00
Ed Gonzalez 2efb60ecb0 Timing debug newline and dashes 2019-06-20 13:58:29 -05:00
Ed Gonzalez 95d5a53c63 Add timing debug to write/read from serial 2019-06-20 13:56:38 -05:00
Ed Gonzalez a10cb40a9f processSerial() with every serial write.
We now do processSerial() inline with the writeSerial() to not be dependent on a separate read thread
2019-06-20 13:48:40 -05:00
Ed Gonzalez 0a4be8cb8b Remove redundat reset and productID calls 2019-06-20 13:44:58 -05:00
Ed Gonzalez 5ffd66487b Comment out the read thread for testing inline read/writes 2019-06-20 13:42:25 -05:00
Hayley d1409d5e49 Set Latency UART Latency Timer 2019-06-20 13:38:13 -05:00
Haylz 1299c69199 RX State Machine HEADER_PROCESSING to BIT_FRAME_SYNC
The header processing stage always switched to the VOICE_FRAME stage. This caused garbage to be loaded into decode buffers. This fix changes the logic to only switche from HEADER_PROCESS stage to VOICE_FRAME stage if there is a P_FCS match, otherwise goes back to the BIT_FRAME_SYNC stage.
2019-06-20 13:37:04 -05:00
Ed Gonzalez df8dc86f5f ThumbDV now v1.1.0.0 - Fix unplug/reconnect logic 2016-10-26 13:02:55 -05:00
Ed Gonzalez ad994bf4a5 Change float ms_sleep to uint32 us_sleep in processSerial() 2016-10-25 17:07:40 -05:00
Ed Gonzalez e784f93878 Fix ThumbDV pacing 2016-10-25 14:24:04 -05:00
Ed Gonzalez c1745eea15 Fix some pacing errors by setting data/flow control characteristics 2016-10-25 07:51:37 -05:00
Ed Gonzalez 06cf3e975c Blocking read instead of polling for _thumbDV_readThread() 2016-10-24 14:12:02 -05:00
Ed Gonzalez c5bd30c090 Switch to FTD2XX library for serial communication to ThumbDV 2016-10-24 13:59:21 -05:00
Ed Gonzalez 09fc0194f7 Add slight peaking IIR at 4800Hz after GMSK demod. 2015-09-03 12:49:20 -05:00
Ed Gonzalez 6c82100170 Reset message index if we decode gets off 2015-09-03 10:46:32 -05:00
Ed Gonzalez 62abf0058c Default TX messge to empty 2015-09-03 10:45:03 -05:00
Ed Gonzalez e38e976fbc Add DUMP_GMSK_MOD flag for debuging GMSK_ENCODE 2015-09-03 10:44:02 -05:00
Ed Gonzalez a8ef82646c Reset encoder on END_PATTERN and shorted the initial SYNC and END tones 2015-09-03 10:32:53 -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 5c2e0b6ae8 Add slow_data.c|.h 2015-08-29 14:48:56 -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 52f27e54fd Add slow data message parsing and status updates 2015-08-26 10:41: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 b82637e5d2 Add reset function for MODFilter and correct the bytes for END_PATTERN 2015-08-24 15:06:27 -05:00
Ed Gonzalez edd809c269 Look for end bits in voice frames too. 2015-08-21 08:16:06 -05:00
Ed Gonzalez 181e69a97c Remove reset_softcfg from ThumbDV Init since it messes up new ThumbDVs 2015-08-20 14:23:37 -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 08b9375fd5 Make companion_call default to CQCQCQ to follow convention 2015-08-10 13:50:27 -05:00