Comments (4)
So this could be caused by the discovery timeout being less than the time given for the device to respond over the MX header. I think it would be just fine to set MX to 1 to see what happens. If the number of devices connected in the network is not huge, I doubt that there's a problem when devices answer simultaneously? In any case, MX should be set to smaller than the generic discovery timeout.
I'll just copy my relevant comment over, based again on @TheMeaningfulEngineer's findings:
Sounds like it indeed, assuming the devices really follow the UPnP spec's SHOULD:
REQUIRED. Field value contains maximum wait time in seconds. MUST be greater than or equal to 1 and SHOULD be less than 5 inclusive. Device responses SHOULD be delayed a random duration between 0 and this many seconds to balance load for the control point when it processes responses. This value MAY be increased if a large number of devices are expected to respond. The MX field value SHOULD NOT be increased to accommodate network characteristics such as latency or propagation delay (for more details, see the explanation below). Specified by UPnP vendor. Integer.
from netdisco.
I rather not set it to 1. Rather have SSDP_TIMEOUT default to MX+1.
However, @TheMeaningfulEngineer mentioning that he can discover Hue reliable with an 8 second timeout 🤔
from netdisco.
Hey,
regarding what I wrote before.
I've experienced that for Philips Hue Bridge you should wait for a response at least 5 seconds (I ended up using 8 to get a 100% discovery rate for 30 tries).
That unfortunately ended up to be an exception. It happened only for that test can't really diagnose why.
As if the Hue Bridge sometimes doesn't send the responses.
from netdisco.
The devices may have some sort of protection against spammy requesters, so maybe that could explain the situation? Anyway, what I meant with my comment was that if @TheMeaningfulEngineer could test (locally) if setting the MX to 1 helps in his case, we can at least be sure that this is the issue indeed.
from netdisco.
Related Issues (20)
- Discovery cycle is too long HOT 12
- gdm.py: Misuse of socket timeout in seconds as multicast TTL value HOT 1
- Feature Request: Discover by default ports HOT 2
- SSDP suffers from multibyte string decode problem HOT 3
- Plex server not being discovered HOT 2
- AttributeError after system restart
- tests/ directory missing in PyPI tarball
- Cannot parse HTTP headers without white space after colon in SSDP response HOT 3
- Unknown miio device found HOT 2
- getting a "Found malformed XML at http://<ip of samsung tv>:9080: status=ok" HOT 2
- Support LimitlessLED Auto Discovery
- Yamaha R-N301 causes exception yamaha.py HOT 1
- No module named 'netdisco.discovery'; HOT 1
- zeroconf use ifaddr replaced netifaces since 0.21.0 HOT 1
- Address already in use if home assistant is launched via docker in a NAS HOT 1
- Bluetooth discovery HOT 1
- Drop all non-standard discovery methods HOT 2
- Yamaha discoverables are obsolete with MusicCast HOT 1
- LinkPlay devices discover
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from netdisco.