CAN bus recorded on the server into ASAM MDF4: can-recorder (Rust, can-recorder/) reads every interface's SocketCAN frames with the kernel's timestamp and writes a finished .mf4 every 5 min (data/can_rec/<UTC start>.mf4, .part then renamed: a power cut loses at most the last segment), its own minimal MDF 4.10 writer in the CANedge CAN_DataFrame layout (mdf4-rs's lacks the bus-event flags and components: asammdf couldn't DBC-decode it) — checked in asammdf 8.8.35 against candump, every frame, < 0.002 ms, DBC decoding works; lib/maptool/can_recorder.rb starts and stops it, GET/POST/DELETE /api/can/recording, the files by GET /api/can/recordings/<name>; /trace.html's 'Recording on the server (MF4)'; built in its own Dockerfile stage (rust:1.100-slim-trixie)
This commit is contained in:
1 parent
712c6bf7ad
commit
60d7c825fc
13 files changed
+980
No files matched your search
+10
@@ -1,3 +1,11 @@
|
||||
# can-recorder (can-recorder/, Rust): the CAN bus into MF4 files, started
|
||||
# and stopped by lib/maptool/can_recorder.rb. Built in its own stage, only
|
||||
# the binary goes into the image (trixie as well: the same glibc).
|
||||
FROM rust:1.100-slim-trixie AS can-recorder
|
||||
WORKDIR /src
|
||||
COPY can-recorder/ ./
|
||||
RUN cargo build --release --locked
|
||||
|
||||
# trixie, not bookworm: Planetiler needs Java 21+ (UnsupportedClassVersionError
|
||||
# otherwise) and bookworm's own default-jre-headless is only Java 17 —
|
||||
# bookworm-backports doesn't carry a newer one either, only trixie's does.
|
||||
@@ -51,6 +59,8 @@ ARG PLANETILER_VERSION=0.11.1
|
||||
RUN curl -fsSL "https://github.com/onthegomap/planetiler/releases/download/v${PLANETILER_VERSION}/planetiler.jar" \
|
||||
-o /usr/local/lib/planetiler.jar
|
||||
|
||||
COPY --from=can-recorder /src/target/release/can-recorder /usr/local/bin/can-recorder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY Gemfile Gemfile.lock ./
|
||||
|
||||
Reference in new issue
Block a user