Based on the previous work done for the testing on a Windows PC, we are going to need:
- rtl-sdr drivers
- rtl-tcp server
- rtlamr decoder
RTL-SDR / RTL-TCP
The following post was extremely helpful in setting up the rtlsdr software on the RPi:- First we need to install some packages required by the rtl-sdr dongle server:
- Instead of going to the NooElec website for pre-compiled Windows drivers, we will get the sources from:
Fortunately 'git' is already included with the installed OS, so we can execute the following directly in /home/pi to get the rtl-sdr code:
(Note that in order for certificates to work for https access, you must have your OS set to the correct date and time !!
If you need to reload certificates, see https://stackoverflow.com/questions/35821245/github-server-certificate-verification-failed)
- We can now run the following (note it may take some time to complete):
- Before we can install the rtl-sdr USB dongle, we need to setup a 'blacklist' file to prevent the standard USB Radio/TV drivers from loading. Create the file
and add the following lines to it:
- You can now reboot the RPi, install the rtl-sdr dongle, and run rtl_test
RTLAMR
- Before we can download and build rtlamr, we need to install the go build environment
(since this is for the RPi, we will need to get the version that runs on the ARM processor;
as of this posting, the latest go release is 1.10):
- If all has run successfully, you can now check the go version:
- We can now download and build bemasher's rtlamr from
- You can now start up rtl_tcp in a terminal session:
- And then start up rtlamr in a different terminal:
Next steps:
- Configuring the meter reader software