Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shabaz123 opened this issue Jan 14, 2024 · 1 comment

Comments

@shabaz123
Copy link

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
Copy link
Author

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant