From 76d5894bba1db928a53fe3515ed216812bcd8cf9 Mon Sep 17 00:00:00 2001 From: ozfox Date: Mon, 21 Oct 2024 16:23:42 +0200 Subject: [PATCH] Dump --- node/code/dev/border_router/start.sh | 4 ++-- platform/compose.bordi.yml | 13 +++++++++++++ platform/teashan/client/client-wrapper.sh | 7 ++++++- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 platform/compose.bordi.yml diff --git a/node/code/dev/border_router/start.sh b/node/code/dev/border_router/start.sh index 209a8874..db0ca692 100755 --- a/node/code/dev/border_router/start.sh +++ b/node/code/dev/border_router/start.sh @@ -4,10 +4,10 @@ SCRIPTPATH=$(dirname "$SCRIPT") echo $SCRIPTPATH -export RIOTTOOLS="$SCRIPTPATH/../RIOT/dist/tools" +export RIOTTOOLS="$SCRIPTPATH/../../RIOT/dist/tools" $RIOTTOOLS/usb-cdc-ecm/start_network.sh 2001:db8::/64 ip link add d0 type dummy ip link set up d0 -ip addr add 2001:db8:1::1/64 dev d0 \ No newline at end of file +ip addr add 2001:db8:1::1/64 dev d0 diff --git a/platform/compose.bordi.yml b/platform/compose.bordi.yml new file mode 100644 index 00000000..330d6d9f --- /dev/null +++ b/platform/compose.bordi.yml @@ -0,0 +1,13 @@ +# +# Additions which are only relevant on the Raspberry Pi. Use with `-f` option, +# e.g.: `docker compose -f compose.yml -f compose.raspi.yml up` +# + +services: + teashan: + ports: + - "[2001:db8:1::1]:5683:5683/udp" # [coap://] CoAP over UDP (with experimental OSCORE) + - "[2001:db8:1::1]:5683:5683/tcp" # [coap+tcp://] CoAP over TCP (experimental) + - "[2001:db8:1::1]:5684:5684/udp" # [coaps://] CoAP over DTLS + - "[2001:db8:1::1]:5684:5684/tcp" # [coaps+tcp://] CoAP over TLS (experimental) + - "[2001:db8:1::1]:5685:5685/udp" # [coap://] CoAP over UDP[::] diff --git a/platform/teashan/client/client-wrapper.sh b/platform/teashan/client/client-wrapper.sh index c6771541..e4e327f3 100755 --- a/platform/teashan/client/client-wrapper.sh +++ b/platform/teashan/client/client-wrapper.sh @@ -26,11 +26,15 @@ fi USE_BOOTSTRAP=true MODELS_FOLDER=models -ENDPOINT_NAME=teamagochi-java-client-0 +DEFAULT_ENDPOINT_ID=java-1 +ENDPOINT_NAME="urn:t8i:dev:${1:-$DEFAULT_ENDPOINT_ID}" + +shift if [ "$USE_BOOTSTRAP" = true ]; then # With bootstrap server SERVER_URL=coap://localhost:5683 + #SERVER_URL=coap://teamagochi:5683 { sleep 5; echo -e "create 32769\n create 32770\n delete 6\n delete 3303\n delete 3442\n"; } \ | java -jar ./leshan-client-demo.jar \ --models-folder="$MODELS_FOLDER" \ @@ -40,6 +44,7 @@ if [ "$USE_BOOTSTRAP" = true ]; then else # Without bootstrap server SERVER_URL=coap://localhost:5783 + #SERVER_URL=coap://teamagochi:5783 { sleep 5; echo -e "create 32769\n create 32770\n delete 6\n delete 3303\n delete 3442\n"; } \ | java -jar ./leshan-client-demo.jar \ --models-folder="$MODELS_FOLDER" \