GithubHelp home page GithubHelp logo

Comments (7)

zhaozhenhong5 avatar zhaozhenhong5 commented on May 31, 2024 1

Yes,I am monitoring a single device using VsCode. I can only see the messages of a single one.
If single gateway can connect 500 devices,that will be good,if not ,that will be two or more.

from iotedge-lorawan-starterkit.

fbeltrao avatar fbeltrao commented on May 31, 2024

Hi,

Could you please provide your LoRaWanNetworkSrvModule logs?
Which region is your IoT Hub? What is your latency to Azure Cloud?

from iotedge-lorawan-starterkit.

zhaozhenhong5 avatar zhaozhenhong5 commented on May 31, 2024

Now I found the engine can work well with one device sending messages every 1 second. But 2 or more would show that delay issue.

My IoT Hub location is East US,and I used the lorawan US region to change into CN470.(But the downstream can't work well now)
OK,you can see my LoRaWanNetworkSrvModule test logs here:
I need the Azure Cloud latency is as less as possible. In fact,I need about 500 devices work sending messages every 5 second.

from iotedge-lorawan-starterkit.

fbeltrao avatar fbeltrao commented on May 31, 2024

Hi,

Thanks for the information and logs.

We tested the solution with multiple devices and haven't experience the problem you have. In order to help us troubleshoot the problem could you please make a few changes and try again with multiple devices?

Changes

  1. In your leaf devices please remove the property "SensorDecoder". Your payload seems to be in binary format causing problems in the value decoder "Invalid JSON returned from 'DecoderValueSensor'"

  2. Disable for now cloud to device message by editing the class IoTHubConnector replacing ReceiveAsync with (we have a pending task to make it easier in the future):

public Task<Message> ReceiveAsync(TimeSpan timeout) => Task.FromResult((Message)null);
  1. Build, push and deploy the solution

  2. Test with 3 devices are you had before

  3. Publish the logs and results

Additional questions:

  • You are monitoring a single device using VsCode, aren't you? In that case you would only see the messages of a single one, not from the remaining 2
  • Is your intention to connect all 500 devices to a single gateway?

If you wish we can have a call to discuss your scenario and give your more information about the project.

from iotedge-lorawan-starterkit.

zhaozhenhong5 avatar zhaozhenhong5 commented on May 31, 2024

I have changed the code just like this:
` public async Task ReceiveAsync(TimeSpan timeout)
{
return await Task.FromResult((Message)null);
/* try
{
CreateDeviceClient();

            deviceClient.OperationTimeoutInMilliseconds = 1500;

            setRetry(true);

            Logger.Log(DevEUI, $"checking c2d message", Logger.LoggingLevel.Full);

            Message msg = await deviceClient.ReceiveAsync(timeout);

            Logger.Log(DevEUI, $"done checking c2d message", Logger.LoggingLevel.Full);

            setRetry(false);

            return msg;

        }
        catch (Exception ex)
        {
            Logger.Log(DevEUI, $"Could not retrieve c2d message with error: {ex.Message}", Logger.LoggingLevel.Error);
            return null;
        }

*/ }`
But the delay problem can't solved.You can see the log here

I think we should make a call as soon as you online.I can get your email and add your skype(email adress?).

from iotedge-lorawan-starterkit.

fbeltrao avatar fbeltrao commented on May 31, 2024

After our call, switching to IoT Hub direct connection on the Network Server removed the delay.

Follow up:

  • provide guidelines on how to configure direct connection to IoT Hub
  • implement deactivation flag for C2D message on device level
  • investigate delay in IoT Edge device telemetry

from iotedge-lorawan-starterkit.

zhaozhenhong5 avatar zhaozhenhong5 commented on May 31, 2024

Yes,thank you. The delay problem is solved perfectly.

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.