Commit Graph

669 Commits

Author SHA1 Message Date
Orne Brocaar
63bc1b57de ui: Fix isGatewayAdmin build error. 2024-07-09 11:25:10 +01:00
Orne Brocaar
f854236b79 Bump version to 4.9.0-test.3 2024-06-26 14:57:17 +01:00
Orne Brocaar
d25cc3ca6d Update mesh heartbeat MQTT topic. 2024-06-25 13:57:13 +01:00
Orne Brocaar
68473906c9 Bump version to 4.9.0-test.2 2024-06-25 12:27:28 +01:00
Orne Brocaar
3f1a47e1e2 Integrate Gateway Mesh feature.
This adds a Gateway Mesh section to the web-interface (+ API endpoints)
to see the status op each Relay Gateway within the Gateway Mesh.

The Gateway Mesh (https://github.com/chirpstack/chirpstack-gateway-mesh)
is an experimental feature to extend LoRaWAN coverage throug Relay
Gateways.
2024-06-25 11:37:57 +01:00
Orne Brocaar
c0b148fecb Fix exposing full JS codec error.
In some cases tests would fail (I assume based on load / running
concurrent tests) without the full JS codec error.

Fixes #440.
2024-06-19 09:34:09 +01:00
Orne Brocaar
6b9f7a9ea1 Fix cargo check / clippy warnings. 2024-06-19 09:27:15 +01:00
Orne Brocaar
3b95a413a6 Update Rust, Diesel CLI and dev. environment. 2024-06-18 13:56:31 +01:00
Bernd Storath
38d544a5f7
api: add grpc php support (#431) 2024-06-11 11:50:02 +01:00
Bernd Storath
880b319bfd
Update sslmode options in config template. (#433) 2024-06-10 15:09:34 +01:00
Bernd Storath
a0abd4a4bb
ui: Fix empty string in revision column (#432) 2024-06-10 14:59:18 +01:00
Orne Brocaar
52a08acf81 Add passive_roaming_validate_mic option.
This option does two things:

1) In case the passive-roaming agreement is not state-less, it will
   trigger the validation of MIC (this was already implemented at the
   roaming-session retrieval, but never used).
2) On PRStartAns, it will return the NwkSKey / FNwkSIntKey to the
   requester (such that the MIC validation can be performed).

For state-less passive-roaming, it is recommended to leave this option
set to false, such that no session-keys are exposed.
2024-05-27 11:27:26 +01:00
Orne Brocaar
04ffcf88a1 backend: Fix sending HomeNSAns response to HomeNSReq request. 2024-05-16 13:18:55 +01:00
Orne Brocaar
c7f1367bf8 api: Remove frame_log from __init__.py (Python).
Closes #422.
2024-05-16 11:54:39 +01:00
Orne Brocaar
ae31e4d85f Update cross-rs image to :main.
The :latest tag points to a very old image versions, which are not
consistent with regards to the base-image. This is causing differences
in library versions across different target platforms.

Once a v0.3.0 release is available, :main can be changed into :0.3.0.

Closes #421.
2024-05-14 11:40:32 +01:00
Orne Brocaar
4968f5d792 Bump version to 4.8.1 2024-05-13 16:47:14 +01:00
Orne Brocaar
36bbf8f153 api: Fix empty JS packages.
NPM uses the .gitignore file, which includes the generated JS code. This
caused the v4.8.0 JS packages to be completely empty. Adding an empty
.npmignore file resolves the issue as if a .npmignore file is detected,
the .gitignore file is ignored.
2024-05-13 16:32:59 +01:00
Orne Brocaar
c3de89a4a4 Bump version to 4.8.0 2024-05-13 15:35:00 +01:00
Orne Brocaar
73ad79a356 Bump version to 4.8.0-test.5 2024-05-09 13:45:24 +01:00
Orne Brocaar
a65ac0077e Update Rust to v1.78. 2024-05-09 13:17:36 +01:00
Orne Brocaar
370b84cb09 Revert "Update dependencies."
This reverts commit f475e4f642. One of the
updated dependencies introduces aws-lc-rs as dependency, which fails to
build on ARMv7.
2024-05-09 13:02:59 +01:00
Orne Brocaar
d03870ff11 Bump version to 4.8.0-test.4 2024-05-09 11:22:22 +01:00
Orne Brocaar
f62d8b325c Revert "Use mold linker for development."
This reverts commit 4f1a1bbce5. This was
intended to improve the development speed, but it breaks the build. This
is because even when cross-compiling, the Rust compiler does compile
some code for the host target for code-generation.
2024-05-09 10:53:50 +01:00
Orne Brocaar
e0a9e52cca Bump version to 4.8.0-test.3 2024-05-09 08:48:43 +01:00
Orne Brocaar
b7dad2a7d0 Add RP002-1.0.4 option to device-profile. 2024-05-08 15:05:14 +01:00
Orne Brocaar
2e65c5baa9 Set CARGO_INCREMENTAL=0 for CI builds. 2024-05-08 14:12:04 +01:00
Orne Brocaar
640a0f348e Fix formatting after cargo clippy --fix. 2024-05-08 12:09:30 +01:00
Orne Brocaar
057aed7f50 Fix cargo clippy warnings. 2024-05-08 11:53:34 +01:00
Orne Brocaar
66d0ec2f6f Speed up cargo check.
See also:
https://corrode.dev/blog/tips-for-faster-rust-compile-times/#avoid-procedural-macro-crates.
2024-05-08 11:46:35 +01:00
Orne Brocaar
f475e4f642 Update dependencies. 2024-05-08 10:59:27 +01:00
dependabot[bot]
17ae49ca7d
Bump ejs from 3.1.9 to 3.1.10 in /ui (#414)
Bumps [ejs](https://github.com/mde/ejs) from 3.1.9 to 3.1.10.
- [Release notes](https://github.com/mde/ejs/releases)
- [Commits](https://github.com/mde/ejs/compare/v3.1.9...v3.1.10)

---
updated-dependencies:
- dependency-name: ejs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-08 10:56:22 +01:00
Orne Brocaar
18e56957e2 lrwn: Validate max payload sizes for RP002-1.0.4. 2024-05-08 10:41:42 +01:00
Orne Brocaar
99dbefdfec Add support for handling HomeNSReq requests.
In this case, we return the (primary) NetID of the ChirpStack instance.
Supporting the HomeNSReq is useful in the case the roaming ChirpStack
instances are setup to resolve the servers using DNS. In case of OTAA,
the fNS resolves the JoinEUI to a hostname to which it must make the
HomeNSReq. This returns the HNetID, which then can be used to resolve
the hostname of the hNS to which the join-request must be forwarded.
2024-05-07 15:55:37 +01:00
Sajad Abdollahi
26832f3a5f
api: add --depth=1 to googleapis and protobuf clones (#420) 2024-05-07 12:21:14 +01:00
Orne Brocaar
40cfa3ddf2 Update rquickjs dependency. 2024-05-07 12:15:24 +01:00
Orne Brocaar
ed9a9b0c88 Exclude disabled devices from Class-B/C scheduler.
Closes brocaar/chirpstack-network-server#612.
2024-05-07 09:31:53 +01:00
Orne Brocaar
4f1a1bbce5 Use mold linker for development.
This speeds up check and build times.
2024-05-03 16:32:06 +01:00
Orne Brocaar
c51653d1bc Fix loading options (onFocus > onDropdownVisibleChange).
onFocus is only triggered when when dropdown doesn't have focus where
onDropdownVisibleChange is always triggered when opening / closing the
dropdown.

Closes #334.
2024-05-03 12:42:33 +01:00
Orne Brocaar
3ec9ee2031 Convert Local to NaiveDateTime before calculating intervals.
This makes it a lot easier to iterate over the intervals, as we no
longer have to take into account DST changes that could either result in
an invalid or ambiguous date, or not incrementing by the expected
interval. E.g. incrementing by 1 day resulting in a 23 hour increment
because or DST change.

On returning the metrics, we try to convert the NaiveDateTime back into
a DateTime<Local>, failing that, we skip it rather than failing on it.

Closes #415.
2024-05-03 12:25:51 +01:00
Orne Brocaar
5f6ccc35fb Auto-detect if MQTT broker supports shared-subscriptions.
Closes #413.
2024-05-02 14:12:43 +01:00
dependabot[bot]
0d11ad609a
Bump golang.org/x/net from 0.22.0 to 0.23.0 in /api/go (#406)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.22.0...v0.23.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>
2024-05-02 10:39:09 +01:00
dependabot[bot]
fed94a9b75
Bump golang.org/x/net from 0.19.0 to 0.23.0 in /examples/frame_log/go (#405)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.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>
2024-05-02 10:38:59 +01:00
dependabot[bot]
13e26977f4
Bump golang.org/x/net from 0.19.0 to 0.23.0 in /examples/request_log/go (#404)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.19.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.19.0...v0.23.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>
2024-05-02 10:38:49 +01:00
dependabot[bot]
0b665c7a11
Bump protobufjs from 7.2.4 to 7.2.6 in /api/js (#401)
Bumps [protobufjs](https://github.com/protobufjs/protobuf.js) from 7.2.4 to 7.2.6.
- [Release notes](https://github.com/protobufjs/protobuf.js/releases)
- [Changelog](https://github.com/protobufjs/protobuf.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/protobufjs/protobuf.js/compare/protobufjs-v7.2.4...protobufjs-v7.2.6)

---
updated-dependencies:
- dependency-name: protobufjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:29 +01:00
dependabot[bot]
3ee4598320
Bump tar from 6.1.15 to 6.2.1 in /api/grpc-web (#400)
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:15 +01:00
dependabot[bot]
8adc80bf4e
Bump tar from 6.1.15 to 6.2.1 in /api/js (#399)
Bumps [tar](https://github.com/isaacs/node-tar) from 6.1.15 to 6.2.1.
- [Release notes](https://github.com/isaacs/node-tar/releases)
- [Changelog](https://github.com/isaacs/node-tar/blob/main/CHANGELOG.md)
- [Commits](https://github.com/isaacs/node-tar/compare/v6.1.15...v6.2.1)

---
updated-dependencies:
- dependency-name: tar
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-02 10:38:04 +01:00
Orne Brocaar
487f785302 Add option to increase RX1 Delay in device-profile.
In general ChirpStack is configured with a rx1_delay configuration
matching the network latency (e.g. on cellular, one might want to set
this to rx1_delay=3). However, this does not take into account a
possible latency of the end-application. Handling the uplink and
enqueueing a downlink might take more time than the configured rx1_delay
(and get_downlink_data_delay) allows.

This option makes it possible to increase the RX1 Delay in the
device-profile. If the RX1 Delay has between increased relative to
the system default, then the get_downlink_data_delay will be
incremented with the same amount of seconds.
2024-05-02 10:29:10 +01:00
Orne Brocaar
a5ff416fa2 Implement storing + display duty-cycle stats.
Note that these stats are only available for Concentratord based
gateways as these metrics must be aggregated by the gateway.
2024-04-17 14:34:11 +01:00
Orne Brocaar
2889da37c2 Exclude offline gateways from multicast scheduling. 2024-04-15 14:09:38 +01:00
Orne Brocaar
378b314a32 Update rcgen dependency + cargo update. 2024-04-10 11:52:23 +01:00