ThumbDV now v1.1.0.0 - Fix unplug/reconnect logic

This commit is contained in:
Ed Gonzalez 2016-10-26 13:02:55 -05:00
parent 7ff5441146
commit df8dc86f5f
5 changed files with 14 additions and 9 deletions

View file

@ -758,9 +758,14 @@ static void * _thumbDV_readThread( void * param )
// Setup RX or Status change event notification // Setup RX or Status change event notification
status = FT_SetEventNotification(handle, FT_EVENT_RXCHAR , (PVOID)&event_handle); status = FT_SetEventNotification(handle, FT_EVENT_RXCHAR , (PVOID)&event_handle);
struct timespec timeout;
clock_gettime(CLOCK_REALTIME, &timeout);
timeout.tv_sec += 2; // 2 second timeout
// Will block until // Will block until
pthread_mutex_lock(&event_handle.eMutex); pthread_mutex_lock(&event_handle.eMutex);
pthread_cond_wait(&event_handle.eCondVar, &event_handle.eMutex); pthread_cond_timedwait(&event_handle.eCondVar, &event_handle.eMutex, &timeout);
pthread_mutex_unlock(&event_handle.eMutex); pthread_mutex_unlock(&event_handle.eMutex);
rx_bytes = 0; rx_bytes = 0;
@ -768,7 +773,7 @@ static void * _thumbDV_readThread( void * param )
if ( status != FT_OK ) if ( status != FT_OK )
{ {
fprintf( stderr, "ThumbDV: error from select, status=%d\n", status ); fprintf( stderr, "ThumbDV: error from status, status=%d\n", status );
/* Set invalid FD in sched_waveform so we don't call write functions */ /* Set invalid FD in sched_waveform so we don't call write functions */
handle = NULL; handle = NULL;

View file

@ -1,7 +1,7 @@
[header] [header]
Name: ThumbDV Name: ThumbDV
Version: "1.0.8" Version: "1.1.0"
Minimum-SmartSDR-Version: 1.4.2.0 Minimum-SmartSDR-Version: 1.10.3.0
Author: FlexRadio Systems Author: FlexRadio Systems
Support-email: support@flexradio.com Support-email: support@flexradio.com
Support-phone: 512-535-4713 Support-phone: 512-535-4713
@ -9,7 +9,7 @@ License: GPL7.3
Executable: "thumbdv" Executable: "thumbdv"
[setup] [setup]
waveform create name=ThumbDV mode=DSTR underlying_mode=DFM version=1.0.7 waveform create name=ThumbDV mode=DSTR underlying_mode=DFM version=1.1.0
waveform set ThumbDV tx=1 waveform set ThumbDV tx=1
waveform set ThumbDV rx_filter low_cut=-3500 waveform set ThumbDV rx_filter low_cut=-3500
waveform set ThumbDV rx_filter high_cut=3500 waveform set ThumbDV rx_filter high_cut=3500

View file

@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.8.0")] [assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.0.8.0")] [assembly: AssemblyFileVersion("1.1.0.0")]

View file

@ -6,11 +6,11 @@
; The App Versions can be passed in and will match the AssemblyInfo for the application ; The App Versions can be passed in and will match the AssemblyInfo for the application
#ifndef MyAppVersion #ifndef MyAppVersion
#define MyAppVersion "1.0.8.0" #define MyAppVersion "1.1.0.0"
#endif #endif
#ifndef MyAppVersionWithV #ifndef MyAppVersionWithV
#define MyAppVersionWithV "v1.0.8.0" #define MyAppVersionWithV "v1.1.0.0"
#endif #endif
#define MyAppName "SmartSDR D-STAR Waveform" #define MyAppName "SmartSDR D-STAR Waveform"