821 Commits

Author SHA1 Message Date
Orne Brocaar
1de90f7ec4 Bump version to 4.12.0-test.1
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
api/go/v4.12.0-test.1 v4.12.0-test.1
2025-03-12 16:31:25 +00:00
Orne Brocaar
4984b1e13a Set device tags after FUOTA complete.
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
2025-03-11 09:36:55 +00:00
Orne Brocaar
adea555777 Error if there are no fuota devices + cleanup mc group.
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
In case there are no fuota devices (e.g. all devices failed the previous
step), this will log a warning and the flow will continue with multicast
cleanup and completion steps.
2025-03-05 16:33:51 +00:00
Orne Brocaar
189d5e7180 Set FUOTA deployment completed_at. 2025-03-05 15:50:27 +00:00
Orne Brocaar
0f0cfce65b Implement full FUOTA flow + UI components. 2025-03-05 14:10:40 +00:00
Orne Brocaar
db07368750 ui: Make app-layer params configurable. 2025-03-05 14:10:09 +00:00
Orne Brocaar
8dfaefb10c Add get_ and update_device to fuota storage + add return_msg.
The return_msg (text) field can be used to capture errors, e.g. when the
end-device failed to setup the multicast-group.
2025-02-19 09:34:17 +00:00
Orne Brocaar
d3dd14b029 lrwn: Add function for encrypting McKey. 2025-02-19 08:52:38 +00:00
Orne Brocaar
62e8cfb7f1 Implement handling AppTimeReq / AppTimeAns.
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
2025-02-18 14:08:28 +00:00
Orne Brocaar
8e47ea1483 Update fuota + device-keys structs / storage.
This add the gen_app_key to the device keys which is needed for FUOTA
and adds a random multicast address + key to the fuota deployment. To
the FUOTA job structure, this adds a return msg such that errors can
be captured in the database.
2025-02-18 11:59:38 +00:00
Orne Brocaar
aa11db15de lrwn: Fix clocksync time_correction type.
The correct type is i32 instead of u32, as the value can be negative.
2025-02-17 09:41:43 +00:00
Orne Brocaar
ceb8523ebd Rename ts00x_port to _f_port.
This is consistent with the naming in the lrwn package.
2025-02-17 09:40:22 +00:00
Orne Brocaar
e9dfad2d64 ui: First part of FUOTA UI implementation.
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
Currently this allows for creating FUOTA dpeloyments and adding to /
removing from devices and gateways. In its current state, it does not
show the status of the FUOTA deployment.
2025-02-12 11:18:05 +00:00
Orne Brocaar
d958bbe5f1 api: List devices by device-profile + expose tags. 2025-02-11 14:09:37 +00:00
Orne Brocaar
e7644bb2d1 Add APIs + functions to get app. device-profiles and tags.
These API methods can be used to given an application id, retrieve
the list of used device-profiles and device tags.
2025-02-11 11:00:51 +00:00
Orne Brocaar
41d25ae2fb Update fuota API. Add options for auto-calculation of params.
This adds options to auto-calculate the fragment size (based on max.
payload size available for the given data-rate) and multicast
timeout (based on server settings).
2025-02-10 15:40:13 +00:00
Orne Brocaar
1a51aa836d Add start job + get schedulable jobs functions + API. 2025-02-10 15:40:13 +00:00
Orne Brocaar
c04d867864 Add tests + add fuota jobs functions. 2025-02-10 15:40:13 +00:00
Orne Brocaar
d48dbf4d3b Add first fuota storage functions / API. 2025-02-10 15:40:11 +00:00
Orne Brocaar
2a834bbc29 Add option to filter devices by tags. 2025-02-10 15:36:16 +00:00
Orne Brocaar
20a52251ad api: Extend 'limit' field documentation. 2025-02-10 15:31:11 +00:00
Orne Brocaar
477f7c74d2 Add app-layer params field to device-profile API. 2025-02-10 15:31:08 +00:00
Orne Brocaar
12c0334391 Add app-layer params field to device-profile schema. 2025-02-10 15:26:18 +00:00
Orne Brocaar
24b5202f49 Refactor device-profile relay fields. 2025-02-10 15:26:18 +00:00
Orne Brocaar
ede03a279a Refactor device-profile class-c fields. 2025-02-10 15:26:18 +00:00
Orne Brocaar
e39f007ed4 Refactor device-profile class-b fields. 2025-02-10 15:26:18 +00:00
Orne Brocaar
6a8f83f25e Refactor device-profile abp fields.
This this puts the ABP parameters into a single JSON(B) field, to reduce
the amount of device-profile fields that currently exist. The same work
will be done for Class-B/C and Relay parameters. Once completed, this
means we can drop the diesel '64-column-tables' feature, which will
reduce compile time.
2025-02-10 15:26:05 +00:00
Orne Brocaar
89cad57ecb lrwn: Implement v1 applayer multicastsetup key functions. 2025-02-10 15:24:06 +00:00
Orne Brocaar
981adafd3a lrwn: Implement applayer v1 fragmentation encoding func. 2025-02-10 15:24:06 +00:00
Orne Brocaar
af606230e7 lrwn: Implement v1 applayer fragmentation structs. 2025-02-10 15:24:06 +00:00
Orne Brocaar
2f554795b1 lrwn: Replace Duration with u32 in applayer timesync. 2025-02-10 15:24:06 +00:00
Orne Brocaar
0254d56b2b lrwn: Implement v1 applayer multicast setup structs. 2025-02-10 15:24:06 +00:00
Orne Brocaar
4af2c4cd79 lrwn: Implement v1 applayer clock sync structs. 2025-02-10 15:24:06 +00:00
Tomas Tulka
01246dd124
Add sorting to device and gw table. (#579)
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
Co-authored-by: Franka Schmid <fra.schmid@rational-online.com>
Co-authored-by: Orne Brocaar <info@brocaar.com>
2025-02-10 12:18:08 +00:00
Orne Brocaar
2fc762d932 Bump version to 4.11.1 api/go/v4.11.1 v4.11.1 2025-02-10 11:41:05 +00:00
Orne Brocaar
24333f8b5d Bump version to 4.11.1-test.2 api/go/v4.11.1-test.2 v4.11.1-test.2 2025-02-10 11:10:11 +00:00
Orne Brocaar
99239a82d4 Revert from sqlite-interactive to sqlite. 2025-02-10 10:56:48 +00:00
Orne Brocaar
317c1cb14d Update dev-dependencies to shell.nix. 2025-02-10 10:27:22 +00:00
Orne Brocaar
2e0d034a6b Bump version to 4.11.1 2025-02-07 15:56:39 +00:00
Orne Brocaar
fb59f541b1 Fix ns_time + setting of JSON flag.
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
These lines were accidentally removed by 922a83597f8aaed089f5c6ed610d20c5aaa91102
when removing the metadata keys as part of the region refactor.
2025-02-03 12:46:04 +00:00
Orne Brocaar
f6374f00f8 Bump version to 4.11.1-test.1
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
api/go/v4.11.1-test.1 v4.11.1-test.1
2025-01-30 19:37:17 +00:00
Orne Brocaar
32a9aadbae Re-use http clients within integrations.
This reduces CPU load, especially in case when HTTPS is being used
as connections will be pooled by the http client.
2025-01-30 19:17:44 +00:00
Orne Brocaar
99613014ad Return LinkCheckAns with margin=0 for non-LoRa modulations.
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
2025-01-22 09:09:27 +00:00
Orne Brocaar
8cb2d4f383 Bump version to 4.11.0
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
api/go/v4.11.0 v4.11.0
2025-01-15 12:13:04 +00:00
Orne Brocaar
96b544974e Bump version to 4.11.0-test.2
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
api/go/v4.11.0-test.2 v4.11.0-test.2
2025-01-13 15:00:37 +00:00
Orne Brocaar
a71113db42 Update Rust toolchain + fix Clippy feedback. 2025-01-13 12:16:15 +00:00
Orne Brocaar
2e738e1f33 Bump version to 4.11.0 2025-01-10 13:44:11 +00:00
dependabot[bot]
0487d6a7f0
Bump golang.org/x/net from 0.23.0 to 0.33.0 in /examples/frame_log/go (#591)
Some checks failed
CI / tests (postgres) (push) Has been cancelled
CI / tests (sqlite) (push) Has been cancelled
CI / dist (postgres) (push) Has been cancelled
CI / dist (sqlite) (push) Has been cancelled
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-10 11:57:09 +00:00
dependabot[bot]
6864f6ef2b
Bump thiserror from 2.0.6 to 2.0.10 (#592)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 2.0.6 to 2.0.10.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/2.0.6...2.0.10)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-10 11:53:56 +00:00
dependabot[bot]
9c25a5d48b
Bump serde_json from 1.0.134 to 1.0.135 (#593)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.134 to 1.0.135.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.134...v1.0.135)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-10 11:53:43 +00:00