Comments (7)
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.
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.
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.
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
-
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'"
-
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);
-
Build, push and deploy the solution
-
Test with 3 devices are you had before
-
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.
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.
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.
Yes,thank you. The delay problem is solved perfectly.
from iotedge-lorawan-starterkit.
Related Issues (20)
- Fix the Label on PRs
- All CIs should be using federated Identities when possible and functional HOT 1
- [Story] Create pull requests from release workflow
- [Bug] If building the provisioning cli fails, release workflow looks green
- [Story] Create Arduino Sample for Class B beaconing HOT 2
- Document twin settings for Class B beaconing HOT 2
- DRs set to 0 in US915 router config recognized as FSK instead of "undefined" HOT 11
- When running E2E CI manually it still fail trying to update PR Label HOT 1
- Release pipeline: Azure Functions zip improperly created HOT 1
- Deployment Failed: 'PrincipalNotFound' error when deploying Discovery Service HOT 1
- QUESTION: Azure IoT TLS upgrade HOT 3
- Wrong manifest creation in release pipeline HOT 1
- Enhance Class B documentation
- Deployment is not idempotent when the deployDevice parameter is enabled HOT 1
- Add timestamp/datetime to console logs HOT 4
- Remove dynamic binding introduced with #1841
- Could not get Facade information from module twin HOT 2
- [QUESTION] Upgrading to latest bits HOT 1
- Join requests received are considered as unexpected HOT 4
- No matching manifest for linux/arm/v7 HOT 11
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 iotedge-lorawan-starterkit.