From 22ccbf734d9a35380c92642f20d5d6433dca01fc Mon Sep 17 00:00:00 2001 From: John Poole Date: Mon, 18 May 2026 18:31:24 -0700 Subject: [PATCH 1/2] flagged as executable --- migration/zerodev1_command_clump_Gate2F_If.sh | 0 migration/zerodev2_command_clump_Gate2F_If.sh | 0 2 files changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 migration/zerodev1_command_clump_Gate2F_If.sh mode change 100644 => 100755 migration/zerodev2_command_clump_Gate2F_If.sh diff --git a/migration/zerodev1_command_clump_Gate2F_If.sh b/migration/zerodev1_command_clump_Gate2F_If.sh old mode 100644 new mode 100755 diff --git a/migration/zerodev2_command_clump_Gate2F_If.sh b/migration/zerodev2_command_clump_Gate2F_If.sh old mode 100644 new mode 100755 From 270755ee738bec5e33904a4fa1918e4d58fe5d15 Mon Sep 17 00:00:00 2001 From: John Poole Date: Mon, 18 May 2026 18:50:47 -0700 Subject: [PATCH 2/2] Gate2F Bilateral Constitution test scripts --- ..._Gate2F_BilateralConstitution_90seconds.sh | 56 +++++++++++++++++++ ..._Gate2F_BilateralConstitution_90seconds.sh | 56 +++++++++++++++++++ 2 files changed, 112 insertions(+) create mode 100755 migration/zerodev1_command_clump_Gate2F_BilateralConstitution_90seconds.sh create mode 100755 migration/zerodev2_command_clump_Gate2F_BilateralConstitution_90seconds.sh diff --git a/migration/zerodev1_command_clump_Gate2F_BilateralConstitution_90seconds.sh b/migration/zerodev1_command_clump_Gate2F_BilateralConstitution_90seconds.sh new file mode 100755 index 0000000..5230fbb --- /dev/null +++ b/migration/zerodev1_command_clump_Gate2F_BilateralConstitution_90seconds.sh @@ -0,0 +1,56 @@ +#!/usr/bin/bash +# +# +# +# Gate 2F Life Field Acceptance Bilateral Constitution 90 seconds +# zerodev1 CPP Command clump START +date +cd /usr/local/src/ble-reticulum/ +chronyc tracking +chronyc sources -v +echo . + +cd migration/protocol_core +python3 setup.py build_ext --inplace +cd ../.. + +PYTHONPATH=src:migration/protocol_core \ +BLE_RETICULUM_SESSION_BACKEND=cpp \ +BLE_RETICULUM_FRAGMENTATION_BACKEND=cpp \ +python3 - <<'PY' +import os, sys +print("PYTHON:", sys.executable) +print("PYTHONPATH:", os.environ.get("PYTHONPATH")) +print("BLE_RETICULUM_SESSION_BACKEND:", os.environ.get("BLE_RETICULUM_SESSION_BACKEND")) +print("BLE_RETICULUM_FRAGMENTATION_BACKEND:", os.environ.get("BLE_RETICULUM_FRAGMENTATION_BACKEND")) +import ble_protocol_core_cpp +print("ble_protocol_core_cpp:", ble_protocol_core_cpp.__file__) +from ble_reticulum.BLEFragmentationBackend import BACKEND as FRAG_BACKEND +from ble_reticulum.BLESessionBackend import BACKEND as SESSION_BACKEND +print("fragmentation backend:", FRAG_BACKEND) +print("session backend:", SESSION_BACKEND) +if FRAG_BACKEND != "cpp": + raise SystemExit(f"ERROR: expected fragmentation backend cpp, got {FRAG_BACKEND!r}") +if SESSION_BACKEND != "cpp": + raise SystemExit(f"ERROR: expected session backend cpp, got {SESSION_BACKEND!r}") +print("CPP backend preflight: OK") +PY + +echo . + +PYTHONPATH=src:migration/protocol_core \ +BLE_RETICULUM_SESSION_BACKEND=cpp \ +BLE_RETICULUM_FRAGMENTATION_BACKEND=cpp \ +BLE_RETICULUM_FRAGMENTATION_BACKEND_REPORT=1 \ +timeout 90 python3 examples/ble_dual_node_echo.py \ + --ble-role peripheral \ + --message-file /usr/local/src/ble-reticulum/samples/US_Constitution.txt \ + --message-chunk-size 900 \ + --announce-only-when-disconnected \ + --verbosity debug + +echo . +chronyc tracking +chronyc sources -v +# zerodev1 Command clump END for Gate 2F Life Field Acceptance Bilateral Constitution 90 seconds + diff --git a/migration/zerodev2_command_clump_Gate2F_BilateralConstitution_90seconds.sh b/migration/zerodev2_command_clump_Gate2F_BilateralConstitution_90seconds.sh new file mode 100755 index 0000000..1798abf --- /dev/null +++ b/migration/zerodev2_command_clump_Gate2F_BilateralConstitution_90seconds.sh @@ -0,0 +1,56 @@ +#!/usr/bin/bash +# +# +# + +# Gate 2F Life Field Acceptance Bilateral Constitution 90 seconds +# zerodev2 CPP Command clump START +date +cd /usr/local/src/ble-reticulum/ +chronyc tracking +chronyc sources -v +echo . + +cd migration/protocol_core +python3 setup.py build_ext --inplace +cd ../.. + +PYTHONPATH=src:migration/protocol_core \ +BLE_RETICULUM_SESSION_BACKEND=cpp \ +BLE_RETICULUM_FRAGMENTATION_BACKEND=cpp \ +python3 - <<'PY' +import os, sys +print("PYTHON:", sys.executable) +print("PYTHONPATH:", os.environ.get("PYTHONPATH")) +print("BLE_RETICULUM_SESSION_BACKEND:", os.environ.get("BLE_RETICULUM_SESSION_BACKEND")) +print("BLE_RETICULUM_FRAGMENTATION_BACKEND:", os.environ.get("BLE_RETICULUM_FRAGMENTATION_BACKEND")) +import ble_protocol_core_cpp +print("ble_protocol_core_cpp:", ble_protocol_core_cpp.__file__) +from ble_reticulum.BLEFragmentationBackend import BACKEND as FRAG_BACKEND +from ble_reticulum.BLESessionBackend import BACKEND as SESSION_BACKEND +print("fragmentation backend:", FRAG_BACKEND) +print("session backend:", SESSION_BACKEND) +if FRAG_BACKEND != "cpp": + raise SystemExit(f"ERROR: expected fragmentation backend cpp, got {FRAG_BACKEND!r}") +if SESSION_BACKEND != "cpp": + raise SystemExit(f"ERROR: expected session backend cpp, got {SESSION_BACKEND!r}") +print("CPP backend preflight: OK") +PY + +echo . + +PYTHONPATH=src:migration/protocol_core \ +BLE_RETICULUM_SESSION_BACKEND=cpp \ +BLE_RETICULUM_FRAGMENTATION_BACKEND=cpp \ +BLE_RETICULUM_FRAGMENTATION_BACKEND_REPORT=1 \ +timeout 90 python3 examples/ble_dual_node_echo.py \ + --ble-role both \ + --message-file /usr/local/src/ble-reticulum/samples/US_Constitution.txt \ + --peer 926e6d3b35b7d5940be7edeb47c41b78 \ + --announce-only-when-disconnected \ + --verbosity debug + +echo . +chronyc tracking +chronyc sources -v +# zerodev2 Command clump END Bilateral Constitution 90 seconds