Git Product home page Git Product logo

Comments (4)

rytilahti avatar rytilahti commented on July 23, 2024

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.

balloob avatar balloob commented on July 23, 2024

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.

TheMeaningfulEngineer avatar TheMeaningfulEngineer commented on July 23, 2024

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.

rytilahti avatar rytilahti commented on July 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.