I need to manipulate the tuners bandpass behavior. I have exported 2 more functions from librtlsdr, rtlsdr_set_filter_bw and rtlsdr_get_filter_bw and change the channel filter. However, when I use them I get libusb error(-22) **UNKNOWN ERROR**. I have tried bracketing the call with start/stop i2c repeater and disable/enable channel to no avail :-( It errs both when setting filter to 5.5 Mhz (max) and to 2.1 Mhz (min). What is going on? What other context should I provide for it to work?
TIA, Nikos
On Fri, Jan 17, 2014 at 7:55 PM, Nikos Balkanas nikos.balkanas@eyeonix.comwrote:
I need to manipulate the tuners bandpass behavior. I have exported 2 more functions from librtlsdr, rtlsdr_set_filter_bw and rtlsdr_get_filter_bw and change the channel filter. However, when I use them I get libusb error(-22) **UNKNOWN ERROR**. I have tried bracketing the call with start/stop i2c repeater and disable/enable channel to no avail :-( It errs both when setting filter to 5.5 Mhz (max) and to 2.1 Mhz (min). What is going on? What other context should I provide for it to work
I was barking up the wrong tree. Error was -EINVAL from librtlsdr. I was passing the wrong filter argument and librtlsdr was complaining about it :-( Fixed it, added a couple of i2c repeaters, and it works like a charm ;-)
TIA, Nikos
Nikos Balkanas wrote:
when I use them I get libusb error(-22)
It would be interesting to see a debug log from libusb, copypaste instructions at http://libusb.org/wiki/debug
libusb should never return -22..
//Peter
On Fri, Jan 17, 2014 at 9:50 PM, Peter Stuge peter@stuge.se wrote:
Nikos Balkanas wrote:
when I use them I get libusb error(-22)
It would be interesting to see a debug log from libusb, copypaste instructions at http://libusb.org/wiki/debug
libusb should never return -22..
//Peter
As it turns out it doesn't. But with open source, you can never be too sure ;-) On the other hand it was the prime suspect, because I was pushing the e4k to its limits and besides librtlsdr doesn't do much at that point other than passing functions around...
Nikos