Smart Meters: Difference between revisions
From Leo's Notes
This page was last edited on 16 March 2025, at 20:43.
Created page with " == Reading Smart Meters with rtlamr / RTL-SDR == Smart reader data can be read using a DVB-TV (RTL2832U) tuner with RTL-SDR using [https://github.com/bemasher/rtlamr rtlamr]...." |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 13: | Line 13: | ||
}} | }} | ||
The {{code|rtl_tcp}} binary should now be in the build/src directory. Next, build the {{rtlamr}} binary by installing Go. | The {{code|rtl_tcp}} binary should now be in the build/src directory. Next, build the {{code|rtlamr}} binary by installing Go. | ||
{{highlight|lang=terminal|code= | {{highlight|lang=terminal|code= | ||
| Line 21: | Line 21: | ||
}} | }} | ||
Run both the {{code|rtl_tcp}} and {{code|rtlamr}} binary. The output from {{rtlamr}} should look something similar to: | Run both the {{code|rtl_tcp}} and {{code|rtlamr}} binary. The output from {{code|rtlamr}} should look something similar to: | ||
{{highlight|lang=text|code= | {{highlight|lang=text|code= | ||
<nowiki> | <nowiki> | ||
| Line 32: | Line 32: | ||
The next step is to find out which meter is yours and then log the value somewhere. | The next step is to find out which meter is yours and then log the value somewhere. | ||
{{Navbox Tinkering}}[[Category:Tinkering]] | |||
Latest revision as of 20:43, 16 March 2025
Reading Smart Meters with rtlamr / RTL-SDR
Smart reader data can be read using a DVB-TV (RTL2832U) tuner with RTL-SDR using rtlamr.
To get this working, first compile RTL-SDR:
# yum -y install cmake libusb-devel
# git clone git://git.osmocom.org/rtl-sdr.git
# cd rtl-sdr
# mkdir -p build
# cd build
# cmake .. && make
The rtl_tcp binary should now be in the build/src directory. Next, build the rtlamr binary by installing Go.
## Download Go and extract it. The go binary should just work.
## Export your GOPATH which will be where the source/binary will be saved to
# go get github.com/bemasher/rtlamr
Run both the rtl_tcp and rtlamr binary. The output from rtlamr should look something similar to:
{Time:2019-01-03T19:17:29.986 SCM:{ID:42413494 Type:12 Tamper:{Phy:02 Enc:00} Consumption: 428602 CRC:0xFCD0}}
{Time:2019-01-03T19:17:41.152 SCM:{ID:41941394 Type:12 Tamper:{Phy:01 Enc:00} Consumption: 655820 CRC:0xC40D}}
{Time:2019-01-03T19:17:47.540 SCM:{ID:31333509 Type:13 Tamper:{Phy:00 Enc:02} Consumption: 41359 CRC:0x00F9}}
{Time:2019-01-03T19:17:54.596 SCM:{ID:31333509 Type:13 Tamper:{Phy:00 Enc:02} Consumption: 41359 CRC:0x00F9}}
The next step is to find out which meter is yours and then log the value somewhere.