add initial ldmc variant for random-sensor

This commit is contained in:
Michael Sippel 2025-03-19 17:29:57 +01:00
parent cbee09be85
commit 76e3369844
Signed by: senvas
GPG key ID: F96CF119C34B64A6
5 changed files with 345 additions and 0 deletions
random-sensor-ldmc

View file

@ -0,0 +1,25 @@
#!/bin/sh
RPC_HOST="localhost"
RPC_PORT="8070"
RPC_TAG="0"
echo -n ${RPC_TAG} \
| morph " RpcTag ~
~ <PosInt 10 BigEndian>
~ < Seq~<ValueTerminated 0>
<Digit 10>
~ Char ~ Ascii ~ x86.UInt8
>" \
" RpcTag ~
~ x86.UInt64" \
| nc ${RPC_HOST} ${RPC_PORT} \
| morph " TimePoint
~ <TimeSince UnixEpoch>
~ Duration ~ Seconds
~ ~ <QuantizedLinear 0 1 1000>
~ ~ x86.UInt64" \
" TimePoint
~ ISO8601
~ <Seq Char~Unicode> ~ UTF-8
~ <Seq~<ValueTerminated 0> x86.UInt8>"