Показаны сообщения с ярлыком usb. Показать все сообщения
Показаны сообщения с ярлыком usb. Показать все сообщения
пятница, 7 декабря 2012 г.
RaspberryPi && SDR
1. prepare
#prepare os (there was an old raspbian)
sudo apt-get update
sudo apt-get upgrade
sudo rpi-update
sudo raspi-config
#overclock to medium
#don't load DM on start
#minimize video memory
#without this step there were gaps in sound for a half a second every second
#prepare soft
sudo apt-get install git libusb-dev libusb-1.0 libtool cmake pkg-config
git clone git://git.osmocom.org/rtl-sdr.git
2. compile rtl-sdr
cd rtl-sdr/
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig
sudo make install-udev-rules
3. run
rtl_tcp -a 192.168.1.3
4. listen to music
#i've used sdr# (http://sdrsharp.com/) from my laptop
#but it is possible to use rtl_fm and aplay directly from raspi
rtl_fm -f 103700000 -s 48000 -g 9 -l 10 - | aplay -t raw -r 48000 -c 1 -f S16_LE
понедельник, 14 ноября 2011 г.
work with usb hid device in slackware
- use libusb to find the device with "lsusb" command
- use libhid to find path to the device report with "lshid"
or detach device with "libhid-detach-device vendorid:productid"
and then call "lsusb -vvv".
- get or set data with
hid_get_input_report
hid_set_output_report
Подписаться на:
Сообщения (Atom)