thejeffreystone / hassio_addons

Apache License 2.0
48 stars 29 forks source link

PLL not locked #60

Open tdvtdv opened 8 months ago

tdvtdv commented 8 months ago

After updating to version 0.1.22, the add-on gives the error "PLL not locked" and does not receive anything The previous version 0.1.21 worked stably

If you fix the "frequency" parameter settings to -f 433920000 -A then everything seems to work. But the log outputs a lot of deprived

thejeffreystone commented 8 months ago

hmm. Mine seems to be working fine with the PLL not locked message. From what I see from the rtl_433 code the PLL not locked shouldn't prevent it from receiving.

I'll have to dig around.

thejeffreystone commented 8 months ago

I've pulled the update until I can track it down.

Looks like the issue is related to the rtl_433 and changes made since June of last year. Looking at debug message on mine, it's not preventing the radio from seeing the signals or updating Home Assistant.

There are some comments that the PLL Not Locked error might be false and due to an older chip in the USB radio. Going to need to get a new radio and test.

tdvtdv commented 8 months ago

Looks like I was wrong. Or maybe it was just something that coincided with the data not being received. Now I reset the settings to the original state and indeed the data is coming in.

thejeffreystone commented 8 months ago

I am not entirely sure this isn't an issue yet. Just need to do some more testing. If you stay on the that newer version instead of restoring a backup, if you see anything else weird let mew know.

thejeffreystone commented 8 months ago

Ok. This looks to be ok. the PLL Not Locked is on the rtl_433 site in the images of the program working. Looks like it's a RTL-SDR issue.

What did change was the verbosity of the messages. She we are missing some of the normal stuff we are used to see.

Protocols: Registered 216 out of 250 device decoding protocols [ 1-4 8 10-12 15-17 19-23 25-26 29-36 38-60 63 67-71 73-100 102-105 108-116 119-121 124-128 130-149 151-161 163-168 170-175 177-197 199 201-215 217-232 234-241 243-244 246-247 249-250 ]
Input: The internals of input handling changed, read about and report problems on PR #1978
SDR: Found 1 device(s)
SDR: trying device 0: Realtek, RTL2838UHIDIR, SN: 00000001
Found Rafael Micro R820T tuner
SDR: Using device 0: Realtek, RTL2838UHIDIR, SN: 00000001, "Generic RTL2832U OEM"
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!
SDR: Sample rate set to 250000 S/s.
Input: Bit detection level set to 0.0 (Auto).
SDR: Tuner gain set to Auto.
Input: Reading samples in async mode...
SDR: Tuned to 433.920MHz.

We are getting

rtl_433 version 23.11 branch  at 202311281352 inputs file rtl_tcp RTL-SDR with TLS
Found Rafael Micro R820T tuner
[SDR] Using device 0: Realtek, RTL2838UHIDIR, SN: 00000001, "Generic RTL2832U OEM"
Exact sample rate is: 250000.000414 Hz
[R82XX] PLL not locked!

I am going to work on a way to add those message back in. But for now it looks like everything is ok and working as it should.