1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-16 00:00:02 +01:00
Commit graph

6075 commits

Author SHA1 Message Date
Philipp Jungkamp
7742a5f5b8 packaging-nix: disable hardening cxx flags in devShells
Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
2023-06-13 18:16:55 +02:00
Philipp Jungkamp
bca7f70cc2 packaging-nix: tailor libdatachannel compilation to our needs
- Use libnice for better ICE protocol support.
- Disable websockets support since we are already using libwebsockets.
- Disable media transport facilities.

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
2023-06-13 18:16:55 +02:00
Philipp Jungkamp
0d69a0eefb packaging-nix: add libdatachannel for webrtc node
Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
2023-06-13 18:16:55 +02:00
Philipp Jungkamp
03ad3a77aa packaging-nix: improve packaging + cross-compilation
- Adds and documents some simple cross-compiling support.
- More documentation in the `flake.nix`.
- Add nixpkgs overlay (though undocumented).

Signed-off-by: Philipp Jungkamp <Philipp.Jungkamp@opal-rt.com>
2023-06-13 18:16:55 +02:00
Steffen Vogel
c5606d7ac9
Merge pull request #645 from PJungkamp/packaging-nix
packaging-nix: Add `direnv` support and improve packaging
2023-06-01 20:00:53 +02:00
Philipp Jungkamp
0c9f513e8b packaging-nix: add direnv support using the nix flake
Add an `.envrc` file and add the `.direnv` directory to `.gitignore`.
`direnv` will check whether `nix` is available and `flakes` are enabled
before trying to load the environment from `packaging/nix`.

Using flakes from the `direnv` stdlib requires `direnv 2.30.0` or later.

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-06-01 13:36:11 +02:00
Philipp Jungkamp
6a07f6f2da packaging-nix: fixes + format + format check
- format all `.nix` files using `alejandra`
- check format on `nix flake check`
- only `exec $SHELL` when bash is interactive

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-06-01 13:34:12 +02:00
Steffen Vogel
ff863007d7
Merge pull request #644 from PJungkamp/villas-shell-quoting
tools/villas: improve script behaviour for `-h` or `--help`
2023-05-26 03:01:46 +02:00
Philipp Jungkamp
c194b621cb tools/villas: improve script behaviour for -h or --help
- Quote `${SUBTOOL}` in case it is set but empty
- Add `-e` flag to `grep` so `villas --help` does not show `grep --help`
- Add `-F` flag to `grep` so `villas "[ "` does not show a regexp error
- Don't exit with error when `-h` or `--help` was specified
- Add `-h` and `--help` to `Usage` in the help message.

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-05-26 01:33:45 +02:00
Steffen Vogel
7506e2c289
Merge pull request #643 from PJungkamp/packaging-nix
packaging-nix: fix broken `git+file:.` input
2023-05-25 19:58:52 +02:00
Philipp Jungkamp
58dbd91616 packaging-nix: fix broken git+file:. input
The `src` input was working locally due to a bug in the `nix` flake
evaluation. The input itself was malformed and not reproducable.

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-05-25 19:00:49 +02:00
Steffen Vogel
e47775ea29
Merge pull request #642 from PJungkamp/packaging-nix
packaging-nix: initial structure
2023-05-25 16:40:40 +02:00
Philipp Jungkamp
1fb9a89bae packaging-nix: initial structure
- add basic flake structure
- add configurable package for `villas`
- add `README` tutorial as motivation
- add package for `lib60870` and `libiec61850` not provided by `nixpkgs`

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-05-25 16:29:13 +02:00
Steffen Vogel
14c450d501
Merge pull request #641 from VILLASframework/goose-fixes
Goose: small formatting fixes
2023-05-02 18:03:20 +02:00
Steffen Vogel
571a436c2e goose: small formatting fixes
Signed-off-by: Steffen Vogel <steffen.vogel@opal-rt.com>
2023-05-02 16:11:41 +02:00
Steffen Vogel
302aa46d58
Merge pull request #640 from VILLASframework/node-iec61850-goose
IEC61850 Goose
2023-05-02 12:31:12 +02:00
Philipp Jungkamp
0ee9ab6be0 node-iec61850: fix undefined behaviour
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-04-18 13:52:24 +00:00
Philipp Jungkamp
fff889d779 node-iec61850-8-1: add OpenAPI schemas
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-04-18 14:06:34 +02:00
Philipp Jungkamp
9f58ec484f node-iec61850-8-1: fix ConfigError reporting
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-04-18 13:18:14 +02:00
Philipp Jungkamp
e619cb8bf1 rename node to iec61850-8-1
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-04-18 13:16:15 +02:00
Philipp Jungkamp
e612e7cebc node-iec61850-goose: change resend_interval to double seconds
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-04-11 15:04:41 +02:00
Philipp Jungkamp
5a1995d901 node-iec61850-goose: Periodic resend and cleanup
- introduce resend_thread for periodic resend
- change mms_type to reflect the table in iec61850.hpp to be able to
  merge these tables in the future without breaking configs

Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-03-28 13:22:16 +00:00
Niklas Eiling
83c0e2b185 Merge pull request #81 from VILLASframework/dma-ingress
adds C bindings and other smaller changes
2023-03-21 17:57:47 +01:00
Niklas Eiling
d9993409e0 fix possible NULL dereferencing in villasfpga_dma.c
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-21 14:56:54 +01:00
Niklas Eiling
1d9ccd6c05 add license note to villasfpga_dma.c
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-21 11:59:22 +01:00
Niklas Eiling
9d4cd5384d clean up debuggin output and fix scanf usage in villasfpga_dma.c
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-21 11:52:36 +01:00
Niklas Eiling
d273162f71 fix PCIeCardFactory looking for IP config file at the wrong location
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-21 11:29:32 +01:00
Niklas Eiling
d9e60e22b1 make it possible to specify a search path in PcieCard::make so we can use relative paths in config files
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-21 11:15:25 +01:00
Niklas Eiling
c05ae4d282 add C bindings for DMA interactions and add a test/example
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-21 10:47:45 +01:00
Niklas Eiling
b05910f24e add C bindings for external use of VILLASfpga
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-20 17:12:47 +01:00
Niklas Eiling
7847658548 fix output formatting not being able to print numbers larger than 9
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-20 15:35:38 +01:00
Niklas Eiling
e6f34f83f4 make villas-fpga-pipe use separat memory segments for reading and writing
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-20 12:10:37 +01:00
Niklas Eiling
4ef114fad4 remove unnecessary characters in villas-fpga-ctrl
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-20 10:23:13 +01:00
Niklas Eiling
6b58624e57 fix villas-fpga-pipe
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-15 16:11:44 +01:00
Niklas Eiling
cbad1ca9d1 ConnectString: also allow pipe as a connection target
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-03-15 16:11:44 +01:00
Philipp Jungkamp
98ac02a85b node-iec61850-goose: log error instead of crashing on unsupported mms value
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-03-14 16:46:35 +01:00
Philipp Jungkamp
9dcef61c99 node-iec61850-goose: GooseSignal refactor + fixes
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-03-14 15:34:30 +00:00
Philipp Jungkamp
89813a8cc7 iec61850-goose: multiple producers
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-03-07 12:56:03 +00:00
Niklas Eiling
dbd496c2c6 Merge pull request #80 from VILLASframework/refactorCard
Remove duplicate inherited members and functions in PcieCard class
2023-02-10 14:19:59 +01:00
Pascal Henry Bauer
3db2005bbf removed duplicated declarations
Signed-off-by: Pascal Henry Bauer <pascal.bauer@rwth-aachen.de>
2023-02-10 13:34:20 +01:00
Pascal Henry Bauer
26e2251afe reorder of members and added virtual
Signed-off-by: Pascal Henry Bauer <pascal.bauer@rwth-aachen.de>
2023-02-10 13:34:20 +01:00
Pascal Henry Bauer
85b2e8b030 removed duplicate implementation
Signed-off-by: Pascal Henry Bauer <pascal.bauer@rwth-aachen.de>
2023-02-10 13:34:20 +01:00
Philipp Jungkamp
2d643b8f47 initial example for iec61850-goose node
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-01-31 11:27:48 +00:00
Philipp Jungkamp
75ebfbc623 initial iec61850-goose node
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-01-31 11:12:51 +00:00
Philipp Jungkamp
cba7894da0 Update libiec61850 from 1.4 to 1.5
Signed-off-by: Philipp Jungkamp <philipp.jungkamp@rwth-aachen.de>
2023-01-31 11:12:49 +00:00
Niklas Eiling
8fbf0f0669 Merge pull request #76 from VILLASframework/dma-ingress
Device to Host DMA
2023-01-30 16:30:33 +01:00
Niklas Eiling
c80e5c083d remove map and umapmemoryblock from PcieCard
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-01-30 16:26:11 +01:00
Niklas Eiling
10ecf6c9a6 fix memoryBlocksMapped being defined in both Card and PcieCard
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-01-30 16:18:42 +01:00
Niklas Eiling
87968ab73e enable reading from stdin to DMA in villas-fpga-ctrl
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-01-30 16:12:16 +01:00
Niklas Eiling
1e3294d14c start readFromDmaToStdOut in separate thread
Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
2023-01-30 16:12:16 +01:00