Граф коммитов

39 Коммитов

Автор SHA1 Сообщение Дата
Mikhail Chatillon 1020e5a24c
Replace secrets with random (#2106)
* Replace secrets with random

* Add suggestions

* Address more comments
2023-10-30 09:48:43 +01:00
Mikhail Chatillon fcd01b81e2
Make adddevice idempotent (#2072)
* Make adddevice idempotent

* Fix Test & Logic

* Use Mapperly to avoid maintaining mapping code between options

* Adapt to comment

---------

Co-authored-by: Atif Aziz <code@raboof.com>
2023-04-06 08:24:46 +02:00
Daniele Antonio Maggio 1fa5e4f774
Bugfix: Adding the ability to specify an "undefined" SF value (#1981) 2022-11-18 11:58:41 +01:00
Nora Abi Akar 4cac804297
Clean up EFLOW VM scripts and add readme (#1958) 2022-11-02 16:13:28 +01:00
Mikhail Chatillon 2b35a0e13f
Move AU915 to correct folder (#1951) 2022-11-01 14:23:17 +01:00
Ophélie Le Mentec 8639ddc160
Add workflow to create a release. (#1942)
* Add workflow to create a release.

* Improved name.

* Changed DOCKERHUB_ORGANISATION to not be ouphi.

* Improved input.

* Cleanup.

* Adapt new arg name.

* Fix cli release path.

* Removed duplicate.

* Ensure dotnet version has fixed version.

* Create DOTNET_VERSION var.

* Removed gh auth

* Specify GH_TOKEN env instead of using gh auth/

* Add arm64v8 image.

* Reuse DOTNET_VERSION env var to setup net6.0 folder.

* Fixed powershell script.

* Change env var name.
2022-10-31 15:51:41 +01:00
Mikhail Chatillon 5d5c3e6f8b
Support AU915 RP1 frequencies (#1939)
* test

* Polish

* Set data rate in OTAA AU915 program.

* Renamed AU915RP1 to AU915.

* Changed data rate in ABP AU915 Arduino program.

* used DR5 for OTAA program + minor reformatting.

* Add the missing files

Co-authored-by: Ophelie Le Mentec <17216799+ouphi@users.noreply.github.com>
2022-10-28 13:25:38 +02:00
Francisco Beltrao 1d1202c3df
Remove create edge function (#1937)
* Remove create edge function

Co-authored-by: Mikhail Chatillon <chmikhai@microsoft.com>
2022-10-28 12:54:05 +02:00
Francisco Beltrao 441d48312e
Deploy devices using cli tool (#1926)
* Deploy devices using cli tool
Add gateway provisioning to cli tool

Co-authored-by: Mikhail Chatillon <chmikhai@microsoft.com>
2022-10-27 10:40:23 +02:00
Mikhail Chatillon 45761bf6a5
Add Arduino examples for AS923 (#1807)
* Add Arduino examples for AS923

* Update the provisioning tool

* Add other frequencies

* Add frequency

* Rollback false changes
2022-08-10 11:48:12 +02:00
dependabot[bot] 39788ff32d
Bump Azure.Storage.Blobs in /Tools/Cli-LoRa-Device-Provisioning (#1797)
Bumps [Azure.Storage.Blobs](https://github.com/Azure/azure-sdk-for-net) from 12.10.0 to 12.13.0.
- [Release notes](https://github.com/Azure/azure-sdk-for-net/releases)
- [Commits](https://github.com/Azure/azure-sdk-for-net/compare/Azure.Storage.Blobs_12.10.0...Azure.Storage.Blobs_12.13.0)

---
updated-dependencies:
- dependency-name: Azure.Storage.Blobs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Mikhail Chatillon <chmikhai@microsoft.com>
2022-08-05 08:20:47 +02:00
dependabot[bot] f69ec2c6a2
Bump Newtonsoft.Json in /Tools/Cli-LoRa-Device-Provisioning (#1737)
Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.3 to 13.0.1.
- [Release notes](https://github.com/JamesNK/Newtonsoft.Json/releases)
- [Commits](https://github.com/JamesNK/Newtonsoft.Json/compare/12.0.3...13.0.1)

---
updated-dependencies:
- dependency-name: Newtonsoft.Json
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Daniele Antonio Maggio <1955514+danigian@users.noreply.github.com>
2022-06-29 10:07:35 +02:00
Daniele Antonio Maggio deb72efbb3
Defaulting US902 frequencies to sub band 1 (#1423) 2022-01-28 09:48:30 +01:00
Daniele Antonio Maggio 61a39a31d3
Preparing quickstart template for v2.0.0 (#1381)
* Simplifying

* Adding required environment variables to Azure Function

* Extending createEdgeDevice template

* Updating deviceConfiguration.json

* Removing useless space

* Extending CreateEdgeDevice function to create concentrator device

* Added StationEui to LoRaDeviceTelemetry (#1357) (#1358)

* Added StationEui to LoRaDeviceTelemetry (#1357)

* Fixed unit tests after adding "stationeui" to message send to Iot Hub

* added new NOTICE file Universal_Decoder_NOTICE 41818 (#1359)

Co-authored-by: Daniele Antonio Maggio <1955514+danigian@users.noreply.github.com>

* Fix test cases that never fail due to Moq callback usage (#1355)

Fix assertions in ClassCIntegrationTests, JoinTests, KeepAliveConnectionTests, ProcessingTests, SendCloudToDeviceMessageTest, DefaultClassCDevicesMessageSenderTest, LnsProtocolMessageProcessorTests, MultiGatewayFrameCounterUpdateStrategyTest, SingleGatewayFrameCounterUpdateStrategyTest and DeduplicationStrategyIntegrationTests

* Remove ineffective "DLsettings" byte reversals in tests (#1379)

* Concentrator functions shouldn't return 422 (#1362)

* concentrator functions return 500 for missing/misconfigured cups property

* address feedback

* Fix reversed bytes of (some) MAC commands (#1371)

* stationEui parameter

* Ensure that `IotHubDeviceInfo` is serialized correctly (#1382)

Co-authored-by: Atif Aziz <code@raboof.com>

* Re-enable "CloudToDeviceMessageSizeLimitShouldAcceptTests" tests (#1380)

* Expose read-only memory on payloads (#1386)

* Revert function url

* Preparing url and docker tags for v2.0.0

* Adjusting enable gateway true

* Changing SPI dev allowed values in azuredeploy.json

* Fixing error message

Co-authored-by: Michael Gerfen <gerfen@hotmail.com>
Co-authored-by: Roel Fauconnier <roel.fauconnier@microsoft.com>
Co-authored-by: Bastian Burger <22341213+bastbu@users.noreply.github.com>
Co-authored-by: Atif Aziz <code@raboof.com>
Co-authored-by: MaggieSalak <39058899+MaggieSalak@users.noreply.github.com>
2022-01-27 16:01:40 +01:00
MaggieSalak 7bf187bd84
Use command line args for settings with secrets in Device Provisioning tool (#1375)
* parse connection strings from command line arguments

* remove connection strings from appsettings.json

* use OptionsBase for shared connection string option

* use OptionsBase in ListOptions

* use OptionsBase in UpgradeFirmwareOptions

* use OptionsBase in remaning options

* fix namespace names

* change message type to Error
2022-01-26 11:34:16 +01:00
Daniele Antonio Maggio 5ab10b5e26
Extending CUPS E2E Test with Firmware Upgrade (#1340)
* Outputting different message

* Fixing UT

* Adding conditional copy of sig-0.key file

* Adding firmware update e2e script

* Changing e2e template

* making CupsTwinInfo properties updatable at init time

* Adding UpdateExistingFirmwareUpgradeValues helper

* Extending test configuration

* Extending existing cups test to verify fw upgrade

* Fixing naming

* Missing dot

* Moving fwUpdateSample

* Using realpath

* Debug

* Missing vars

* Remove debug

* Proper log

* Adding CupsFwUrl and Package as updatable properties of the twin

* Fixing tests
2022-01-21 11:53:16 +01:00
MaggieSalak 3c2222d0fb
CUPS Firmware Upgrade - CLI tool (#1338)
* add options to be used for firmware upgrades

* firmware upload and device twin update logic

* rename version param to package

* use paths for digest and crc instead of contents directly

* query device twin after uploading firmware

* remove unnecessary log lines

* update option descriptions

* update option description

* save checksum in the twin as unit
2022-01-21 11:40:55 +01:00
Atif Aziz 909984dbb2
Fix MSB3030 error building device provisioning tool (#1309) 2022-01-20 16:47:42 +01:00
Daniele Antonio Maggio 12c630f774
Adding firmware upgrade preparation script (#1327) 2022-01-19 20:05:00 +01:00
Mikhail Chatillon ca99c726a6
Feature/fix cn (#1054)
* Add china fixes

* fix cn again

* Commit CN

* Last fixes for china

* Fix Arduino code

* Fix tests

* React to comments

* Remove old comment

* Remove  using

* Correct sample
2021-12-20 10:16:30 +01:00
Daniele Antonio Maggio db8c370063
Cli-LoRa-Device-Provisioning should be able to provision no-cups devices with client certificate thumbprints (#1044) 2021-12-10 16:28:22 +01:00
Mikhail Chatillon 252828b10e
Add CN provisioning twins (#1019) 2021-12-09 20:22:56 +01:00
Bastian Burger cb0b37cf5e
Treat Code Analysis warnings as errors in CLI project (#1004)
* Treat Code Analysis/style warnings as errors

* IDE0007: Use var instead of explicit type

* CA1062: Validate parameters in public methods

* Use consistent this preferences

* CA1031: do not catch general exception types

* Suppress CA1303

* IDE0058: Expression value is never used

* CA1822: Mark members as static

* Fix remaining CA warnings (various categories)

* CA5394: Use cryptographically secure RNG

* Fix remaining IDE violations (various categories)

* Remove unused imports

* Inline method that is only used once
2021-12-09 10:34:29 +01:00
Daniele Antonio Maggio f2c696c766
Remove validation for port 443 on provisioning tool. Changing to 5002 (#998) 2021-12-09 08:45:45 +01:00
Daniele Antonio Maggio 18621523ef
Bugfix/928 Switching from PEM to DER (#929)
* Changing helper-functions for generating DER format CA and Client Certificates

* Uploading the file with the provisioning tool should just read bytes
2021-11-30 09:59:55 +01:00
Bastian Burger 3a02b39f56
Feature/876 certificate rotation cli (#909)
* Provide certificate update mechanism

* Implement certificate revocation command

* Make RotateCertificateOptions immutable

* Revert obsolete code

* Update Tools/Cli-LoRa-Device-Provisioning/CommandLineOptions/RevokeOptions.cs

Co-authored-by: Daniele Antonio Maggio <damaggio@microsoft.com>

* Fix bug in region validation

* Fix no-cups path

* Log if thumbprint not found

Co-authored-by: Daniele Antonio Maggio <damaggio@microsoft.com>
2021-11-29 15:28:56 +01:00
Mikhail Chatillon 52078bc9eb
Add Eflow Provisioning Script (#832)
* Add Eflow Provisioning Script

* Address comments

* Last comments

* Add fix

* Fix provisioning script

* Add disclaimer
2021-11-27 17:13:18 +01:00
Bastian Burger 3200ee2f04
Support CUPS when provisioning a concentrator device via CLI (#906)
* Initial version of CUPS configuration support in CLI

* Use mutually exclusive sets in AddOptions

* Improve validation logic

* Fix CRC32 calculation

* Update CLI description

* Move credential storage container name to private constant

* Make cleanup more robust

* Add aditional validation for TC and CUPS URI
2021-11-25 17:59:41 +01:00
Daniele Antonio Maggio c13e38d840
Feature/884 Certificate Provisioning Tool (#886)
* Initial version

* Adjusting usage

* Making script compatible with git bash

* Adding line endings

* Moving gitignore to top

* Adding license statement

* Adjusting usage

* Adding forgotten .gitattributes

* Pointing to 2.0.5 tag
2021-11-25 10:42:01 +01:00
Bastian Burger e547359114
Upgrade core components to .NET 6 (#852)
* Use .NET 6 SDK

* Use .NET 6 runtime in LoRaEngine

* Update NuGet packages to latest (6.0.0)

* Update samples/tools to .NET 6

* Update CI/Image versions to .NET 6

* Update SDK version in CodeQL pipeline

* Replace wrong image name in DecoderSample

* Use C# 10

* Simplify Task.WhenAll statement

* Rename cts to cancellationToken

* Static readonly fields Pascal Case

* Revert unrelated change

* Use TargetFramework for tools/samples

* Revert some unnecessary changes to structured logging

* Fix CodeQL warnings

* Inline API comparison methods

* Use dotnet 6 step

* Use Function runtime v4 in quickstart
2021-11-23 07:13:42 +01:00
Daniele Antonio Maggio 789a27cc20
Provisioning tool update for adding BasicsStation (#826)
* Updating version and suppressing code analysis warnings

* Adding TwinProperty name

* Including default configs for EU863 and US902

* Extending helper to verify concentrator options and create twin

* Adding region and stationeui options to AddOptions

* Modifying program to handle Concentrator types
2021-11-19 09:18:52 +01:00
Roel Fauconnier e49263c124
Remove all docs from main branches (#777)
* Remove markdown linting automation

* delete /Docs/* except submodule

* Add new readme to point to docs

* update arduino readme to point to new docs

* remove decoder readme, and add new readme with pointer to docs

* update device-provisioning readme to point to new file

* Update Tools/Cli-LoRa-Device-Provisioning/README.md

Co-authored-by: Atif Aziz <code@raboof.com>

* suggestions from PR reviews

Co-authored-by: Atif Aziz <code@raboof.com>
2021-11-10 19:07:21 +01:00
Patrick Schuler 1fb6473071
Fixing docker build for LNS (#527)
* docker module builds were broken for the network server due to the addition of buidl props and version synchronization. The versions were not picked up causing the build to break.

* removing stylecop

Co-authored-by: Patrick Schuler <paschule@microsoft.com>
2021-10-14 09:32:19 +02:00
Atif Aziz 2a10fcf31e
Add global EditorConfig file for consistency (#487) 2021-10-11 15:50:09 +02:00
Roel Fauconnier 8f6993ef06
Feature/346 enable markdown linting (#371)
* Add action for linting markdown

* fix action syntax

* more syntax fix for yaml

* fix job syntax

* edit markdown to trigger action

* fix format of task

* Fix line lengths and linting

* linting of all docs/*.md

* replace config with jsonc

* add config to action

* fix some additional linting

* use CLI instead of bloated superlinter

* syntax again

Not used to Action syntax yet

* splitting steps

* ignore node-modules in linting

* Linting of additional docs

* fix another file that was missed

* rename Action and remove comments from previous implementation

* add config for mlc

* add more config for linkcheck

* test with verbose logging

* wrong links for test

* the config file was broken

* fix all broken links hopefully

* fixing links once more

* fix links and reduce verbosity

* final link fix

* simplify yaml, parallel jobs

* split runs

* inject linting error and wrong link as final test

* fixed and ci working as expected
2021-09-25 13:49:11 +02:00
Sascha Corti df0517109e
Bug #270 Fix error NU1605: Detected package downgrade on dotnet publish (#271)
* Fix error NU1605: Detected package downgrade on dotnet publish

* Remove unused directive.
2021-01-07 18:07:25 +01:00
Sascha Corti 1e1109e758
Changed /Tools/Cli-LoRa-Device-Provisioning to target .NET Core 3.1, Updated dependencies (#248)
* Change target framework to .NET Core 3.1. Update references.

* PR Feedback.

* Fix PR feedback change.
2020-08-10 18:00:21 +02:00
Sascha Corti be6d8a3f96 CLI Device Provisioning Tool: bulkverify and new twin options: RXDelay and KeepAliveTimeout (#175)
* Implement BulkVerify verb.

- Other minor fixes
- Allow for settings.local.json

* Work on BulkVerify, add missing Twin properties

RXDelay, KeepAliveTimeout

* Work in progress.

* Make the bulkverify verb pageable.

* Moved to async Main, Update docs.

* Move from settings.json to appsettings.json

- including settings.local.json to appsettings.local.json
- undo changes to .gitignore

* Updated docs to reflect change from settings.json to appsettings.json
2019-04-05 14:47:15 +02:00
Sascha Corti 11b4fd78b0 Cli-LoRa-Device-Provisioning tool (#158)
* Implemented cli-lora-device-checker

Initial implementation.
Created README.md

* Implement Update and Delete verbs

* Implement DevAddr and FCnt checks.

* Rename to Cli-LoRa-Device-Provisioning

* Finalize documentation. Fix small bugs.

In validation, RX2DataRate and RX1DROffset output warnings if set for ABP devices as we currently only support them in OTAA devices.

* Update main project's devuide.md and quickstart.md

Refer users to the tool when manually creating devices.

* Updated build instructions for multiple platforms.

* Fix a bug.

* Implement Input @fbeltrao

- Show settings file structure if settings file read error.
- Validation: If API missing from decoder name: output warning instead of error

* DevAddr verification: If wrong NetId, display the NetId it belongs to.

* Updated based on @debugerr 's suggestions

Additionally:
- grouped classes and moved to subfolders.
- changed namespace to LoRaWan.Tools.CLI in accordance with our main solution.
2019-03-27 15:16:14 +01:00