theori-io / nrsc5

NRSC-5 receiver for rtl-sdr
Other
803 stars 100 forks source link

Failed to submit transfer 31! error #2

Closed jeffgus closed 7 years ago

jeffgus commented 7 years ago

I haven't had issues with other rtlsdr programs. rtl_fm, gqrx, and sdrtrunk all work. Does anyone have any ideas on how to get nrsc5 past this error? I'm running on a Linux box (Fedora).

Exact sample rate is: 1488375.071248 Hz Failed to submit transfer 31! rtlsdr error: -5

jeffgus commented 7 years ago

I think I found the issue: -err = rtlsdr_read_async(dev, input_cb, &input, 0, RADIO_BUFFER); +err = rtlsdr_read_async(dev, input_cb, &input, 16, RADIO_BUFFER);

NOTE: The number should be 15.

awesie commented 7 years ago

Thanks for reporting the problem. I'm happy to commit that change, but passing 0 should've used a default value (in rtl-sdr) of 15. Can you check whether the issue exists with a value of 15?

jeffgus commented 7 years ago

Oh! I'm fairly certain that I initially put 15, but then accidentally incremented the number in vim. I reduced it to 15 and re-built it and it works fine.