[solved] Some devices ignored when using 2 controllers - queue issues?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

[solved] Some devices ignored when using 2 controllers - queue issues?

#1 Post by chunter1 » 23 Oct 2018, 12:31

I got the latest built running with the following setup:

DEVICES:
8 x PCF8574 switch input (120 s interval)
2 x ADS1115 ADC (120 s interval)
1 x SYSTEM IUnfo UPTIME (120 s interval)

CONTROLLER:
2 x FHEM HTTP

The problem is, that not all devices are sent to the controllers.
The last 3 in the list are not sent.
I suspect it has to do with queues and timeouts while sending to the controllers because when i disable one controller, it works perfectly.

Can anybody give me a hint how to solve the problem and what settings i should use in queues etc.?

Thanks
Last edited by chunter1 on 24 Oct 2018, 14:45, edited 1 time in total.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Some devices ignored when using 2 controllers - queue issues?

#2 Post by grovkillen » 23 Oct 2018, 12:38

What settings are you using right now?
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

Re: Some devices ignored when using 2 controllers - queue issues?

#3 Post by chunter1 » 23 Oct 2018, 13:02

I was using the default settings.
Another modul with 12 DS18B20 sensors shows the same behaviour.

Meanwhile i played around and found the following settings to work:

Minimum Send Interval: 100 ms
Max Queue Depth: 25
Max Retries: 10
Full Queue Action: Delete oldest
Check Reply: Ignore Ack
Client Timeout: 1000 ms

However i am not sure if these are recommended.

User avatar
grovkillen
Core team member
Posts: 3621
Joined: 19 Jan 2017, 12:56
Location: Hudiksvall, Sweden
Contact:

Re: Some devices ignored when using 2 controllers - queue issues?

#4 Post by grovkillen » 23 Oct 2018, 18:47

Bump the send interval to 1000mSec and try. If that works you could optimize by lowering it by 100mSec until you find the "perfect" level.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you :idea: :idea: :idea:

TD-er
Core team member
Posts: 8755
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Some devices ignored when using 2 controllers - queue issues?

#5 Post by TD-er » 24 Oct 2018, 12:45

I think this was your fix:
Max Queue Depth: 25

The queue is the number of samples to keep waiting to be sent.
When a lot of values are sent in a burst, you may want to increase this queue depth to fit all.

chunter1
Normal user
Posts: 82
Joined: 22 Jan 2016, 22:40

Re: Some devices ignored when using 2 controllers - queue issues?

#6 Post by chunter1 » 24 Oct 2018, 14:44

Thank you both, problem is solved ;)

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 115 guests