f4exb / libmirisdr-4

Support of Mirics MSi001 + MSi2500 SDR devices
GNU General Public License v2.0
76 stars 37 forks source link

Windows 11 build, appears to run, detects device, but no samples output using miri_sdr and miri_fm #12

Open shabaz123 opened 8 months ago

shabaz123 commented 8 months ago

Hello, I'm new to this software. I built it using MSYS2-MINGW32, and it seems to build fine. I used libusb-win32-install-1.2.6.0. Anyway, I see the miri_sdr.exe and miri_fm.exe programs created. Next, I used libusbK-3.1.0.0-setup.exe to produce a Windows driver, I selected WinUSB option. When I plug in the MSI-SDR RSP1 clone, I see in Device Manager that there is a device under Universal Serial Bus devices, so it looks good. When I run the miri_fm program, I see this:

$ ./miri_fm.exe -f 98800000 -
Found 1 device(s):
  0:  Mirics, MSi2500, SN: 00000001

Using device 0: Mirics MSi2500 default (e.g. VTX3D card)
Tuner gain set to automatic.
mirisdr_get_usb_strings not implemented yet
Tuned to 99130000 Hz.
Oversampling input by: 55x.
Oversampling output by: 1x.
Buffer size: 6.21ms
Sampling at 1320000 S/s.
Output at 24000 Hz.

No output samples to the screen : ( After a long time, I see:

4294967042 samples lost, 3072, 000000fe:00000000
4294967044 samples lost, 3072, 000000fc:00000000

Similarly with miri_sdr.exe, again I see no output samples. Any idea where I've gone wrong?

Many thanks!

shabaz123 commented 8 months ago

Hi,

Self-answering, hopefully this is useful for anyone else trying on Windows. I used libusbK-3.1.0.0-setup.exe again, but this time selected the usbk driver. I now see in Device Manager that there is a libusbK device.

Now I do get output! I tried this:

./miri_fm.exe -f 101600000 -M wbfm | "/c/Program Files/VideoLAN/VLC/vlc.exe" --demux=rawaud --rawaud-channels 2 --rawaud-samplerate 16000 -

and the output is:

Found 1 device(s):
  0:  Mirics, MSi2500, SN: 00000001

Using device 0: Mirics MSi2500 default (e.g. VTX3D card)
Tuner gain set to automatic.
mirisdr_get_usb_strings not implemented yet
Tuned to 101956000 Hz.
Oversampling input by: 2x.
Oversampling output by: 4x.
Buffer size: 6.02ms
Sampling at 1360000 S/s.
Output at 170000 Hz.
26227656 samples lost, 3072, 000000fe:019034c6
4268738128 samples lost, 3072, 01903aae:000000fe

and I do hear audio via VLC. Not sure why I had to use 16000 in that command line for VLC, otherwise at 32000 it sounds speeded up and then there are gaps. At 16000 it sounds normal speed. Maybe it's a 16 bit / 32 bit inconsistency or something.

Anyway, very happy it's working. I'm a bit confused why the output text states a "Tuned to" frequency which is different to the requested one. Is that a bug? Or something I'm doing wrong?

Many thanks!