osqzss / LimeGPS

Real-time GPS signal simulator for LimeSDR
MIT License
117 stars 48 forks source link

LimeSDR Mini Support #2

Closed mattcoates closed 6 years ago

mattcoates commented 6 years ago

Hi,

Does this support the Lime SDR Mini? When I run LimeGPS I get the following error:

matt@matt-lenovo:~/LimeGPS$ ./LimeGPS -e brdc0350.18n
Opening and initializing device...
Reference clock 40.00 MHz
SetPllFrequency: timeout, busy bit is still 1
ERROR: Failed to set sample rate: 
Closing device...
matt@matt-lenovo:~/LimeGPS$ 

Thanks,

Matt

osqzss commented 6 years ago

I don't have a Mini and have never tested my code with it. The following thread of a LimeSDR forum could be helpful: https://discourse.myriadrf.org/t/problems-with-limesdr-mini/2394/26

tasanakorn commented 6 years ago

change (limegps.c, Line 442)

int setSampleRate = LMS_SetSampleRate(device, (double)TX_SAMPLERATE, 0);

to

int setSampleRate = LMS_SetSampleRate(device, (double)TX_SAMPLERATE, 1);

chrismyers2000 commented 6 years ago

Thanks @tasanakorn , Confirmed working on my LimeSDR Mini.