GithubHelp home page GithubHelp logo

Comments (7)

gerfen avatar gerfen commented on May 31, 2024 2

@fbeltrao Thanks. I'll close this issue after I've confirmed that I can connect more than 100 devices sometime later this afternoon my time.

from iotedge-lorawan-starterkit.

ronniesa avatar ronniesa commented on May 31, 2024

This is expected because by default IoT Edge has a maximum of 100 devices concurrently connected. You can increase this settings on the edgeHub module with the env variable: "MaxConnectedClients".

Depending on the type of the lora device you can optimize for latency and downstream msgs (keeping the connection open for a long time, our default is 1 day) or for sensors density where after every lora message we close the connection to iot hub (this is good for something like parking sensors that are mostly, if not only upstream, and are not high frequency in sending msgs). You control this per device in specifying "KeepAliveTimeout" desired twin: https://github.com/Azure/iotedge-lorawan-starterkit/blob/master/Docs/quickstart.md#optional-device-properties

You could expect on an Intel gateway to have 500 or even up to 990 active connections at the same time. On a Pi we tested with 250 concurrent.

from iotedge-lorawan-starterkit.

gerfen avatar gerfen commented on May 31, 2024

@ronniesa Thanks for the info. I'm running the AAEON AIOT-IP68 gateway so I think I should easily be able to support 500 devices. Just want to confirm that I set the "MaxConnectedClients" variable in deviceConfiguration.json?

"env": {
    "OptimizeForPerformance": {
          "value": "false"
    },
    "MaxConnectedClients": {
	  "value": "500"
    },
    "mqttSettings__enabled": {
           "value": "false"
    },
    "httpSettings__enabled": {
            "value": "false"
    },
    "TwinManagerVersion": {
            "value": "v2"
    }
},

I've deploy 110 temperature and humidity sensors which are reporting every 5 minutes. If I understand correctly I think I should stay with the default KeepAliveTimeout for the device twins for these devices?

from iotedge-lorawan-starterkit.

ronniesa avatar ronniesa commented on May 31, 2024

Correct.

If the devices are upstream only you could further optimize by setting the device twin “Downlink” to false.

from iotedge-lorawan-starterkit.

gerfen avatar gerfen commented on May 31, 2024

from iotedge-lorawan-starterkit.

fbeltrao avatar fbeltrao commented on May 31, 2024

Yes, setting Downlink=false will prevent the device from receiving cloud to device messages.

from iotedge-lorawan-starterkit.

gerfen avatar gerfen commented on May 31, 2024

@ronniesa and @fbeltrao I've confirmed that I can register more than 100 devices with my gateway. Thanks for the assistance!

Closing the issue.

from iotedge-lorawan-starterkit.

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.