Love LEDE and run it as a seperate VLAN router inside my network. I'm also an SDR enthusiast and figured out I could run rtl_tcp on LEDE. This freed up a Raspberry Pi I have laying around. Nothing to it.
Plug in SDR
opkg update
opkg install rtl-sdr
Add line with ip address of your router to local startup script and reboot
configure SDR program to connect to rtl_tcp server.
Entering the command into Startup as you pictured in the OP doesn't work. There seems to be an issue with the Kernel space driver running a program detached from userpace.
Attempting the same command detached, I receive:
root@LEDE:~# rtl_tcp -a 192.168.xxx.xxx &
Found 1 device(s):
0: Realtek, RTL2838UHIDIR, SN: xxxxxxxx
Using device 0: Generic RTL2832U OEM
usb_claim_interface error -6
Failed to open rtlsdr device #0.
Can you confirm that your command works when adding it to Local Startup? I can only get it working from the command line (which won't work on a router).
UPDATE: I successfully detached from the CLI after I ended the process in Local Startup. Although, this still means after each reboot, I have to manually login to userspace to start rtl_tcp.
Has anybody managed to build & install rtl_433 into the LEDE device itself? I want to use my router as a bridge from the 433MHz remotes to the MQTT infrastructure, but rtl_433 does not seem to be available for LEDE...
Can you explain a bit more about how you built rtl_433 on LEDE? I'm new to the LEDE system and whilst I've got RTLSDR installed and the dongle is picked up with RTL_TEST, I would like you want to run RTL_433 actually on the system it's self.
Any advise you can offer would be appreciated. I know you pointed to that makefile, but how do I build on LEDE?
You first need to install and configure the "build system", up to the point when you are capable of building a complete firmware (you are not going to install that firmware, however). You might want to use the "config.seed" file for your current firmware as a starting point, so everything comes pre-configured for you. There are several guides about installing and configuring the "build system"; if you need assistance about this step, please open a new thread to avoid filling up this one.
Now copy that Makefile into the package/utils/rtl_433/ folder in your build folder. You can edit the PKG_SOURCE_VERSION variable, so it points to the latest commit on rtl_433's repo. Now configure again your local build system and add the rtl_433 package. Now build the packages with make package/utils/rtl_433/compile && make package/utils/rtl_433/install && make package/index, and if everything goes as expected, your package will appear at bin/packages/arm_cortex-a9_vfpv3/base/.
If something goes wrong, just ask here; and if you own a WRT3200ACM, I can send you my packages.
Hope this helps!
Thanks for that! I've been playing and reading, and have a build set up working. I am using LEDE on a BT Homehub 5a which has a pre-existing config in the make menuconfig and it seemed to make toolchain/install ok.
What I am unclear on is where to git clone rtl_433 into on the source/ tree, if that is what I need to do? Or where I pull in the RTLSDR source?
I'm sorry I am being thick, I can build stuff for my PC Linux fine, but cross compiling for a diffierent target, and LEDE is a new project on me, but I would like to get the 433 decoder going on LEDE as I am looking for the same solutions you use.
No, you do not need to git clone anything yourself, the build system will take care of that for you: just download the Makefile I linked above, edit it to point to the latest version, and build the package.
I figured it out in the end! New to LEDE so needed to concentrate really.
Your assistance was a big help, I appreciate your support. My BT HH5 is now collecting data from my 433 weather station in the garden! The install part of the build failed, but the binary was in the build_dir/target-mips_24kc_musl-1.1.16/rtl_433-ead85a2 directory, so I could grab it from there and scp it over to the HH5. It ran fine once on there as the HH5 LEDE already had librtlsdr installed.
It would be nice if the RTLSDR in LEDE included the _433 application by default, as it's a really useful tool!
Although all the info to do this is here I threw a quick blog page up a while back to document this and why you might want to hook an SDR up. To get to my SDR from the outside world I use a VPN and I don't open the ports up to the internet facing side.