Open gtoal opened 5 years ago
solved it by trial and error, guessing at package names :-) ...
sudo apt-get install gr-osmosdr
Now it at least starts up (though haven't seen any data yet)
pi@ebay1:~/src/decode345-master/bin $ ./receive345.py
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 8.2.0; Boost_106700; UHD_3.13.1.0-3
RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (default), No such file or directory.
Found Fitipower FC0013 tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Fitipower FC0013 tuner
Exact sample rate is: 1000000.026491 Hz
Receiving data...
/home/pi/.gnuradio/prefs/vmcircbuf_default_factory: No such file or directory
vmcircbuf_createfilemapping: createfilemapping is not available
gr::vmcircbuf_sysv_shm: shmat (2): Invalid argument
gr::vmcircbuf_sysv_shm: shmat (2): Invalid argument
gr::vmcircbuf_sysv_shm: shmat (2): Invalid argument
Allocating 15 zero-copy buffers
Getting a little farther now but still haven't seen anything that indicates it has received actual data from specific sensors. The requirement for MQTT is awkward - I think it is failing because my MQTT server (which was installed for another project, OwnTracks) requires a username and password. A module that just printed out sensor info as text would be really helpful as a confidence test in getting started. (Most of my other home automation stuff works by scraping the output of commands such as rtl_433 - I could get by quite happily doing the same with this.)
pi@ebay1:~/src/decode345-master $ ./decode345&
[1] 32705
pi@ebay1:~/src/decode345-master $ Waiting for FIFO data...
python ./bin/receive345.py
gr-osmosdr 0.1.4 (0.1.4) gnuradio 3.7.13.4
built-in source types: file osmosdr fcd rtl rtl_tcp uhd miri hackrf bladerf rfspace airspy airspyhf soapy redpitaya freesrp
[INFO] [UHD] linux; GNU C++ version 8.2.0; Boost_106700; UHD_3.13.1.0-3
RtApiAlsa::getDeviceInfo: snd_pcm_open error for device (default), No such file or directory.
Found Fitipower FC0013 tuner
Using device #0 Realtek RTL2838UHIDIR SN: 00000001
Found Fitipower FC0013 tuner
Exact sample rate is: 1000000.026491 Hz
Receiving data...
Allocating 15 zero-copy buffers
OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
Can't quite work out how to install into a clean Raspberry Pi from the docs.
So far I've done these:
sudo apt-get install mosquitto sudo apt-get install mosquitto-dev sudo apt-get install libmosquitto-dev sudo apt-get install gnuradio
and unpacked the zip file with all your software in it into ~/src/decode345-master/
When I start the first process I get this:
pi@ebay1:~/src/decode345-master/bin $ python receive345.py Traceback (most recent call last): File "receive345.py", line 16, in
import osmosdr
ImportError: No module named osmosdr
googling for that error has not been helpful and suggests various things such as rebuilding gnuradio. Is there an easy fix (and if there is, could you add it to the Installing documentation please?)
I did try these commands but you can see what happened:
pi@ebay1:~/src/decode345-master/bin $ sudo pip install osmosdr Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting osmosdr Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/osmosdr/
pi@ebay1:~/src/decode345-master/bin $ sudo pip install osmosdr-gr Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Collecting osmosdr-gr Could not install packages due to an EnvironmentError: 404 Client Error: Not Found for url: https://pypi.org/simple/osmosdr-gr/
(Also, complete newbie re mosquitto so if there is any setup needed there too, that isn't in your documentation, could you spell it out please? Haven't got that far yet.)
My experience so far has been with rtl_sdr, don't know much about gnuradio or python.
thanks,
Graham