Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS: RF status out of date #1704

Closed
tablatronix opened this issue Jun 29, 2023 · 11 comments
Closed

DOCS: RF status out of date #1704

tablatronix opened this issue Jun 29, 2023 · 11 comments
Labels

Comments

@tablatronix
Copy link

tablatronix commented Jun 29, 2023

Docs are outdated for status

Screenshot 2023-06-29 at 1 49 29 PM

Screenshot 2023-06-29 at 1 00 49 PM

Trying to debug an issue here and the keys do not match, so I am unsure exactly what rssi threshhold is... ( I can only decode a few signals after reboot then it goes haywire with ignores.., so I am trying to debug some issue with the auto threshhold tracking, I assume )

I also cannot see that home/OpenMQTTGateway/commands/MQTTtoRTL_433 {"rssi": N} does anything

@NorthernMan54
Copy link
Collaborator

rssi threshhold is the key piece in the signal detection logic. When the receiver sees that the rssi exceeds it starts the receiver, then when it drops below this level it stops.

The auto rssi threshold logic, looks at the average rssi level, then subtracts RSSI_THRESHOLD ( defaults to 9 ) and adjusts rssi threshhold. This is to allow the receiver to function in locations with a lot of RF noise.

Ignores are the receiver logic indicating it received what it thinks is noise, hence being ignored.

@tablatronix
Copy link
Author

Right. I know that but was trying to correlate that to the status values since the names are different that the commented ones. Not sure which is which.

I figured (due to it working for a bit) it was badly calculating the threshold or rssi, not sure if there is periodic noise or a strong 433 signal now and then skewing it. I know there are 3 other weather stations I can hear on my scanner.

I was able to get this workingby using rssi:-10 which seems odd. But it forces it, I get maybe 10% decode failures which is fine.

@tablatronix
Copy link
Author

Just to clarify this issue for example
The current debug form status and boot is

RTLRssi: -76
RTLAVGRssi: -88
RTLRssiThresh: -79
signalRssi: -71

while in the docs it says

"rssi":
"rssiThreshhold"
"currentRssi"

Looks like module prefixes were added.

I am assuming

RTLRssi = rssi
RTLAVGRss = new
RTLRssiThresh = rssiThreshhold
signalRssi = currentRssi

My confusion is what is the difference between RTLRssi and signalRssi ?
and what is set Rssi applied to for new threshold? rtlrssi or avg?

@tablatronix
Copy link
Author

I think I found some answers in the rtl_433_esp lib, this makes more sense now, and that some of OMG env belong to it

339 RAW_SIGNAL_DEBUG ; display raw received messages
340 RSSI_SAMPLES ; Number of rssi samples to collect for average calculation, defaults to 50,000
341: RSSI_THRESHOLD ; Delta applied to average RSSI value to calculate RSSI Signal Threshold, defaults to 9
342 RTL_DEBUG ; Enable RTL_433 device decoder verbose mode for all device decoders ( 0=normal, 1=verbose, 2=verbose decoders, 3=debug decoders, 4=trace decoding. )
343 RTL_VERBOSE=## ; Enable RTL_433 device decoder verbose mode, ## is the decoder # from the appropriate memcpy line in rtl_433_ESP.cpp
...
346 SIGNAL_RSSI ; Enable collection of per pulse RSSI Values during signal reception for display in signal debug messages
347 RF_MODULE_INIT_STATUS ; Display transceiver config during startup
348: DISABLERSSITHRESHOLD ; Disable automatic setting of RSSI_THRESHOLD ( legacy behaviour ), and use MINRSSI ( -82 )
349 OOK_MODULATION ; Enable OOK Device Decoders, setting to false enables FSK Device Decoders
350 ```

@NorthernMan54
Copy link
Collaborator

Yes, updating the DOC's is in my backlog for the fall. My plan is to move the RTL_433_ESP messages to its own topic, and will update the docs at the same time.

From the current SYStoMQTT

"rssi":-19
"actRec":3,
"mhz":433.92,
"RTLRssiThresh":-93,
"RTLRssi":-98,
"RTLAVGRssi":-102,
"RTLCnt":426488,
"RTLOOKThresh":15
"rssi": - This is the current WiFi RSSI
"actRec": - Which receiver module is currently active
"mhz": - Receive frequency
"RTLRssiThresh": - This is the minimum signal RSSI value needed to enable the receiver logic.  This is a calculated value.
"RTLRssi": - Current RSSI value reported by the transceiver module
"RTLAVGRssi": - Average of Current RSSI value ( Used in calculation of RTLRssiThresh )
"RTLCnt": - Number of signals decoded
"RTLOOKThresh": - Unused

@tablatronix
Copy link
Author

So I am assuing signalRssi the last received signals rssi?

@NorthernMan54
Copy link
Collaborator

Sorry, which message publishes signalRssi ?

In a decoded signal, the value rssi is the rssi of the decoded signal.

@tablatronix
Copy link
Author

mqtt: status

@NorthernMan54
Copy link
Collaborator

You are correct, it is the signalRssi value of the most recent signal received.

@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Sep 16, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 7 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants