Utilities often use "smart meters" to optimize their residential meter reading infrastructure. Smart meters transmit consumption information in the various ISM bands allowing utilities to simply send readers driving through neighborhoods to collect commodity consumption information. One protocol in particular: Encoder Receiver Transmitter by Itron is fairly straight forward to decode and operates in the 900MHz ISM band, well within the tunable range of inexpensive rtl-sdr dongles.
This project is a software defined radio receiver for these messages. We make use of an inexpensive rtl-sdr dongle to allow users to non-invasively record and analyze the commodity consumption of their household.
There's now experimental support for data collection and aggregation with rtlamr-collect!
- GoLang >=1.3 (Go build environment setup guide: http://golang.org/doc/code.html)
This project requires the package
github.com/bemasher/rtltcp, which provides a means of controlling and sampling from rtl-sdr dongles via the
rtl_tcp tool. This package will be automatically downloaded and installed when getting rtlamr. The following command should be all that is required to install rtlamr.
go get github.com/bemasher/rtlamr
This will produce the binary
$GOPATH/bin/rtlamr. For convenience it's common to add
$GOPATH/bin to the path.
See the wiki page Configuration for details on configuring rtlamr.
Running the receiver is as simple as starting an
rtl_tcp instance and then starting the receiver:
# Terminal A
# Terminal B
If you want to run the spectrum server on a different machine than the receiver you'll want to specify an address to listen on that is accessible from the machine
rtlamr will run on with the
-a option for
rtl_tcp with an address accessible by the system running the receiver.
The following message types are supported by rtlamr:
- scm: Standard Consumption Message. Simple packet that reports total consumption.
- scm+: Similar to SCM, allows greater precision and longer meter ID's.
- idm: Interval Data Message. Provides differential consumption data for previous 47 intervals at 5 minutes per interval.
- netidm: Similar to IDM, except net meters (type 8) have different internal packet structure, number of intervals and precision. Also reports total power production.
- r900: Message type used by Neptune R900 transmitters, provides total consumption and leak flags.
- r900bcd: Some Neptune R900 meters report consumption as a binary-coded digits.
Using a NooElec NESDR Nano R820T with the provided antenna, I can reliably receive standard consumption messages from ~300 different meters and intermittently from another ~600 meters. These figures are calculated from the number of messages received during a 25 minute window. Reliably in this case means receiving at least 10 of the expected 12 messages and intermittently means 3-9 messages.
Currently the only tested meter is the Itron C1SR. However, the protocol is designed to be useful for several different commodities and should be capable of receiving messages from any ERT capable smart meter.
Check out the table of meters I've been compiling from various internet sources: ERT Compatible Meters
If you've got a meter not on the list that you've successfully received messages from, you can submit this info via a form available at the link above.
Do not use this for malicious purposes. If you do, I don't want to know about it, I am not and will not be responsible for your actions. However, if you find a clever non-evil use for this, by all means, share.
These are a few examples of ways this tool could be used:
- Track down stray appliances.
- Track power generated vs. power consumed.
- Find a water leak with rtlamr rather than from your bill.
- Optimize your thermostat to reduce energy consumption.
- Mass collection for research purposes. (Please anonymize your data.)
- Using data collected to determine living patterns of specific persons with the intent to act on this data, particularly without express permission to do so.
The source of this project is licensed under Affero GPL v3.0. According to http://choosealicense.com/licenses/agpl-3.0/ you may:
- Disclose Source: Source code must be made available when distributing the software. In the case of LGPL, the source for the library (and not the entire program) must be made available.
- License and copyright notice: Include a copy of the license and copyright notice with the code.
- Network Use is Distribution: Users who interact with the software via network are given the right to receive a copy of the corresponding source code.
- State Changes: Indicate significant changes made to the code.
- Commercial Use: This software and derivatives may be used for commercial purposes.
- Distribution: You may distribute this software.
- Modification: This software may be modified.
- Patent Grant: This license provides an express grant of patent rights from the contributor to the recipient.
- Private Use: You may use and modify the software without distributing it.
- Hold Liable: Software is provided without warranty and the software author/license owner cannot be held liable for damages.
- Sublicensing: You may not grant a sublicense to modify and distribute this software to third parties not included in the license.
If you have any questions, comments, feedback or bugs, please submit an issue.
There is no documentation for this package.