Skip to content

Dynamic CAD sensitivity#2916

Open
weebl2000 wants to merge 1 commit into
meshcore-dev:devfrom
weebl2000:dynamic-cad
Open

Dynamic CAD sensitivity#2916
weebl2000 wants to merge 1 commit into
meshcore-dev:devfrom
weebl2000:dynamic-cad

Conversation

@weebl2000

Copy link
Copy Markdown
Contributor

Probe every 4 seconds to measure actual channel activity. If channel seems busy we adjust CAD to be less sensitive. If channel seems empty maximum CAD sensitivity.

Build here: https://mcimages.weebl.me/?commitId=dynamic-cad

Based on conversation in #1727 - this should make a busier node be less senitive to preambles. Tagging @recrof and @syssi would be interesting to see how this changes behavior.

You can use get cad and it will show stats for actual preambles detected during idle periods.

Probe every 4 seconds to measure actual channel activity. If channel
seems busy we adjust CAD to be less sensitive. If channel seems empty
maximum CAD sensitivity.
@usrflo

usrflo commented Jul 20, 2026

Copy link
Copy Markdown

@weebl2000 : I tested in my setup with 5 weakly connected nodes, 50 direct messages in 10s intervals, interference by a LoRa node sending local adverts every 6 seconds and a successful delivery counted if the last node ACKs.

Looks good: the problems I saw with 7c8e092 disappeared.

My results:

  • cad off with this branch: 37/38 ACKs for 50 messages
  • cad on with this branch: 39/40 ACKs for 50 messages
  • cad on with this branch plus the latest dev commits: 42/36 ACKs for 50 messages

Attached you can find the monitoring logs.

dev-50-wo-cad.txt
dev-50-with-cad.txt
dev-50-wo-cad-2.txt
dev-50-with-cad-2.txt
dev-50-with-cad-latest-dev.txt
dev-50-with-cad-2-latest-dev.txt

@usrflo

usrflo commented Jul 20, 2026

Copy link
Copy Markdown

I wonder why using dynamic CAD together with repeated sending #2670 decreases deliverability significantly. Resending happens relatively often, but following nodes seem not to react. May the CAD analysis create too much deafness? I wonder why I didn't see this effect when running the same test without the sending repetition.

dyn-cad-on-rep.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants