Closed ThatTallGuy21 closed 6 months ago
Just to reiterate. This was working before. Then when I moved my Pi and started it back up, the container would continue to run. I have no idea what is going on and it's driving me absolutely bonkers. The terminal appears to show it's doing what it should but there's some sort of timeout (maybe?) when the metermon docker is running?
I'm running the docker container on a Rasp Pi 4 8gb via Portainer. The odd part is that it was working for 2 days before I shutdown and then moved my Pi with the rtl-sdr to my network closet. Now I'm having this issue I CANNOT figure out. Spent the last 2 DAYS so any help would be IMMENSLY appreciated.
Background: Running RTL_Test from the terminal on my Pi shows that it appears the rtl-sdr antenna is working.
Part 1/2:
Found 1 device(s): 0: Nooelec, NESDR SMArt v5, SN: 00000001
Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 [R82XX] PLL not locked! Sampling at 2048000 S/s.
Info: This tool will continuously read from the device, and report if samples get lost. If you observe no further output, everything is fine.
Reading samples in async mode... Allocating 15 zero-copy buffers lost at least 64 bytes
Part 2/2: Ran the bolded command from the terminal. Looks like RTL_TCP is broadcasting on 192.168.87.199 (my Pi's IP address)
thattallguy@thattallguy-desktop:~$ ps aux | grep rtl_tcp root 2170 0.0 0.0 224472 2388 ? Sl 17:57 0:01 /usr/bin/rtl_tcp -a 192.168.87.199 172.XX.X.X 172.XX.X.X fdb4:6ce4:5a96:7557:4db9:4e18:ea87:d0d7 fdb4:6ce4:5a96:7557:1a99:8942:497d:6042 thattal+ 23453 0.0 0.0 8624 2076 pts/0 S+ 20:36 0:00 grep --color=auto rtl_tcp
NEXT STEP
Entered the following command per the guide via the terminal: docker run -d -e MQTT_BROKER_HOST=192.168.87.28 -e MQTT_USERNAME=user -e MQTT_PASSWORD=password -e RTL_TCP_SERVER=192.168.87.199:1234 -e RTLAMR_FILTERID=1564803354,101575921 -e METERMON_SEND_BY_ID=true -e RTLAMR_UNIQUE=false seanauff/metermon:arm
Container is created, and then starts up but then after a few moments stops.
Log shows: Username and password set. Connected to broker at 192.168.87.28:1883 with result code 0: Connection Accepted. 00:18:35.388364 flags.go:111: Environment variable "RTLAMR_FILTERID" overrides flag "filterid" with "1564803354,101575921" 00:18:35.388817 flags.go:111: Environment variable "RTLAMR_UNIQUE" overrides flag "unique" with "false" 00:18:35.398327 decode.go:45: CenterFreq: 912600155 00:18:35.398974 decode.go:46: SampleRate: 2359296 00:18:35.399031 decode.go:47: DataRate: 32768 00:18:35.399056 decode.go:48: ChipLength: 72 00:18:35.399115 decode.go:49: PreambleSymbols: 32 00:18:35.399142 decode.go:50: PreambleLength: 4608 00:18:35.399339 decode.go:51: PacketSymbols: 736 00:18:35.399668 decode.go:52: PacketLength: 105984 00:18:35.399978 decode.go:59: Protocols: r900,scm,scm+,idm 00:18:35.400621 decode.go:60: Preambles: 01010101010101010001011010100011,00000000000000001110010101100100,111110010101001100000,0001011010100011 00:18:35.400923 main.go:126: GainCount: 29 00:18:40.403640 main.go:345: Receiver context cancelled. 00:18:40.404537 main.go:322: read tcp 172.XX.X.X:60888->192.168.87.199: 1234: i/o timeout io.ReadFull main.(*Receiver).Run.func2 /go/src/github.com/bemasher/rtlamr/main.go:183 runtime.goexit /usr/local/go/src/runtime/asm_arm.s:838