diff --git a/.github/workflows/adj-tester.yaml b/.github/workflows/adj-tester.yaml index c6fd55d..d89174a 100644 --- a/.github/workflows/adj-tester.yaml +++ b/.github/workflows/adj-tester.yaml @@ -1,7 +1,7 @@ -name: ADJ Validator +name: ADJ Validator (and Compact) on: - push: + push: pull_request: jobs: @@ -25,3 +25,60 @@ jobs: - name: Run ADJ validation run: | python3 .github/workflows/scripts/adj-tester/main.py + + - name: Notify Slack on failure + if: failure() + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }} + run: | + jq -n \ + --arg repo "${{ github.repository }}" \ + --arg branch "${{ github.ref_name }}" \ + --arg actor "${{ github.actor }}" \ + --arg run_url "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \ + '{ + text: " ❌ ADJ Validator Failed\n\nRepository: \($repo)\nBranch: \($branch)\nActor: \($actor)\n\nWorkflow run:\n\($run_url)" + }' | curl -X POST -H "Content-type: application/json" \ + --data @- \ + $SLACK_WEBHOOK + + publish-compact-adj: + needs: validate-adj + runs-on: ubuntu-latest + env: + TARGET_REPO: Hyperloop-UPV/ADJ-Archive + TARGET_BRANCH: main + TARGET_PATH: storage/commit-${{ github.sha }}.json + + steps: + - name: Checkout source repository + uses: actions/checkout@v4 + + - name: Compact ADJ + run: | + chmod +x .github/workflows/scripts/adj-compact/compact.sh + .github/workflows/scripts/adj-compact/compact.sh "${{ runner.temp }}/adj.json" + + - name: Upload to destination repo via API + env: + GH_TOKEN: ${{ secrets.TARGET_REPO_TOKEN }} + run: | + base64 -w0 "${{ runner.temp }}/adj.json" > "${{ runner.temp }}/adj.b64" + jq -n \ + --arg message "chore: add compacted ADJ from ${{ github.repository }}@${{ github.sha }}" \ + --rawfile content "${{ runner.temp }}/adj.b64" \ + --arg branch "$TARGET_BRANCH" \ + '{ + message: $message, + content: $content, + branch: $branch, + committer: {name: "github-actions[bot]", email: "41898282+github-actions[bot]@users.noreply.github.com"}, + author: {name: "github-actions[bot]", email: "41898282+github-actions[bot]@users.noreply.github.com"} + }' \ + > "${{ runner.temp }}/body.json" + curl --fail-with-body -sS -X PUT \ + -H "Authorization: Bearer $GH_TOKEN" \ + -H "Accept: application/vnd.github+json" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + --data "@${{ runner.temp }}/body.json" \ + "https://api.github.com/repos/${TARGET_REPO}/contents/${TARGET_PATH}" diff --git a/.github/workflows/scripts/adj-compact/compact.sh b/.github/workflows/scripts/adj-compact/compact.sh new file mode 100755 index 0000000..d6d2d30 --- /dev/null +++ b/.github/workflows/scripts/adj-compact/compact.sh @@ -0,0 +1,31 @@ +#!/usr/bin/env bash +set -euo pipefail + +# Javier Ribal del Río +# ADJ Compact: Merge all JSON files into a single `adj.json` for easier consumption by clients that prefer a single file. +# Usage: `./compact.sh [output-file]` +# Version: v11.0.0 (2026-05-18) +# + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" +ROOT="$(git -C "$SCRIPT_DIR" rev-parse --show-toplevel 2>/dev/null || (cd "$SCRIPT_DIR/../../../.." && pwd))" +OUT="${1:-${ROOT}/adj.json}" +OUT_BASE="$(basename "$OUT")" + +cd "$ROOT" + +acc='{}' +# Sort shallowest-first so files like `boards.json` are merged before `boards/X/Y.json`, +# letting the deeper, more specific content override the index-file stubs. +while IFS= read -r rel; do + [[ -z "$rel" ]] && continue + [[ "$rel" == "$OUT_BASE" ]] && continue + key="${rel%.json}" + acc=$(jq -c --arg k "$key" --slurpfile v "$rel" ' + ($k | split("/")) as $p + | . * ([{($p[-1]): $v[0]}] | .[0] | reduce ($p[:-1] | reverse)[] as $seg (.; {($seg): .})) + ' <<<"$acc") +done < <(find . -type d -name .github -prune -o -type f -name '*.json' -printf '%d %p\n' | sort -n | sed 's|^[0-9]* \./||') + +printf '%s\n' "$acc" >"$OUT" +echo "Wrote $OUT" diff --git a/.github/workflows/scripts/adj-tester/schema/board.schema.json b/.github/workflows/scripts/adj-tester/schema/board.schema.json index f640ac7..3c189c8 100644 --- a/.github/workflows/scripts/adj-tester/schema/board.schema.json +++ b/.github/workflows/scripts/adj-tester/schema/board.schema.json @@ -6,9 +6,7 @@ "additionalProperties": true, "required": [ "board_id", - "board_ip", - "measurements", - "packets" + "board_ip" ], "properties": { "board_id": { diff --git a/.github/workflows/scripts/adj-tester/schema/socket.schema.json b/.github/workflows/scripts/adj-tester/schema/socket.schema.json index 5c9644c..79ef9e9 100644 --- a/.github/workflows/scripts/adj-tester/schema/socket.schema.json +++ b/.github/workflows/scripts/adj-tester/schema/socket.schema.json @@ -43,10 +43,20 @@ "description": "Remote IPv4 address" }, "remote_port": { - "type": "integer", - "minimum": 1, - "maximum": 65535, - "description": "Remote port number for Socket" + "oneOf": [ + { + "type": "integer", + "minimum": 1, + "maximum": 65535 + }, + { + "type": "string", + "enum": [ + "backend" + ] + } + ], + "description": "Remote port number for Socket or the string \"backend\"" } } } diff --git a/boards.json b/boards.json index c240a92..9de2c65 100644 --- a/boards.json +++ b/boards.json @@ -1,9 +1,6 @@ { - "HVSCU-Cabinet": "boards/HVSCU-Cabinet/HVSCU-Cabinet.json", - "BCU": "boards/BCU/BCU.json", - "PCU": "boards/PCU/PCU.json", + "VCU": "boards/VCU/VCU.json", "LCU": "boards/LCU/LCU.json", - "HVSCU": "boards/HVSCU/HVSCU.json", - "BMSL": "boards/BMSL/BMSL.json", - "VCU": "boards/VCU/VCU.json" + "PCU": "boards/PCU/PCU.json", + "HVBMS": "boards/HVBMS/HVBMS.json" } diff --git a/boards/BCU/BCU.json b/boards/BCU/BCU.json deleted file mode 100644 index 235a0b1..0000000 --- a/boards/BCU/BCU.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "board_id": 217, - "board_ip": "192.168.2.17", - "packets": [ - "orders.json", - "hvscu_orders.json", - "packets.json" - ], - "measurements": [ - "order_measurements.json", - "hvscu_order_measurements.json", - "measurements.json" - ] -} \ No newline at end of file diff --git a/boards/BCU/hvscu_order_measurements.json b/boards/BCU/hvscu_order_measurements.json deleted file mode 100644 index 42d227a..0000000 --- a/boards/BCU/hvscu_order_measurements.json +++ /dev/null @@ -1,34 +0,0 @@ -[ - { - "id": "HVSCU-Cabinet_target_charge_voltage", - "name": "Target Charge Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "above": { - "warning": 100.0 - } - }, - { - "id": "HVSCU-Cabinet_imd_bypass", - "name": "Bypass IMD?", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Enable", - "Disable" - ] - }, - { - "id": "HVSCU-Cabinet_sdc_enable", - "name": "Enable SDC?", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Enable", - "Disable" - ] - } -] \ No newline at end of file diff --git a/boards/BCU/hvscu_orders.json b/boards/BCU/hvscu_orders.json deleted file mode 100644 index 9e7b179..0000000 --- a/boards/BCU/hvscu_orders.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "id": 1694, - "type": "order", - "name": "SDC Enable", - "variables": [ - "HVSCU-Cabinet_sdc_enable" - ] - }, - { - "id": 1695, - "type": "order", - "name": "IMD Bypass", - "variables": [ - "HVSCU-Cabinet_imd_bypass" - ] - }, - { - "id": 1696, - "type": "order", - "name": "Reset Supercaps", - "variables": [] - }, - { - "id": 1697, - "type": "order", - "name": "Charge Supercaps", - "variables": [ - "HVSCU-Cabinet_target_charge_voltage" - ] - }, - { - "id": 1698, - "type": "order", - "name": "Open Contactors", - "variables": [] - }, - { - "id": 1693, - "type": "order", - "name": "Hold Supercaps Charge", - "variables": [] - }, - { - "id": 1699, - "type": "order", - "name": "Close Contactors", - "variables": [] - } -] \ No newline at end of file diff --git a/boards/BCU/measurements.json b/boards/BCU/measurements.json deleted file mode 100644 index b2371bc..0000000 --- a/boards/BCU/measurements.json +++ /dev/null @@ -1,358 +0,0 @@ -[ - { - "id": "bcu_general_state", - "name": "General State", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Connecting", - "Operational", - "Fault" - ] - }, - { - "id": "bcu_operational_state", - "name": "Operational State", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Idle", - "Charging", - "Charged", - "Precharge", - "Engaged" - ] - }, - { - "id": "bcu_nested_state", - "name": "Nested State", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Idle", - "Testing", - "Ready", - "Boosting", - "Precharging" - ] - }, - { - "id": "control_state", - "name": "Control State", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Idle", - "Test PWM", - "Space Vector", - "Current Control", - "Speed Control" - ] - }, - { - "id": "space_vector_time", - "name": "Space Vector Time", - "type": "float32", - "podUnits": "s", - "displayUnits": "s" - }, - { - "id": "output_modulation_index", - "name": "Output Modulation Index", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "output_modulation_frequency_hz", - "name": "Output Modulation Frequency", - "type": "float32", - "podUnits": "Hz", - "displayUnits": "Hz" - }, - { - "id": "dc_link_average_voltage", - "name": "DC Link Average Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 400.0, - "warning": 446.4 - } - }, - { - "id": "bcu_bus_voltage", - "name": "Bus Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 400.0, - "warning": 446.4 - } - }, - { - "id": "dc_link_a_voltage", - "name": "DC Link A Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 400.0, - "warning": 446.4 - } - }, - { - "id": "dc_link_b_voltage", - "name": "DC Link B Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 400.0, - "warning": 446.4 - } - }, - { - "id": "average_current_u", - "name": "Average Current U", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "average_current_v", - "name": "Average Current V", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "average_current_w", - "name": "Average Current W", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "current_u_motor_a", - "name": "Current U Motor A", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "current_v_motor_a", - "name": "Current V Motor A", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "current_w_motor_a", - "name": "Current W Motor A", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "current_u_motor_b", - "name": "Current U Motor B", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "current_v_motor_b", - "name": "Current V Motor B", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "current_w_motor_b", - "name": "Current W Motor B", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - -100.0, - 100.0 - ] - } - }, - { - "id": "position_speetec_1", - "name": "Position Speetec 1", - "type": "float64", - "podUnits": "m", - "displayUnits": "m", - "below": { - "safe": 3.0, - "warning": 4.0 - } - }, - { - "id": "speed_speetec_1", - "name": "Speed Speetec 1", - "type": "float64", - "podUnits": "m/s", - "displayUnits": "m/s", - "below": { - "safe": 10.0 - } - }, - { - "id": "acceleration_speetec_1", - "name": "Acceleration Speetec 1", - "type": "float64", - "podUnits": "m/ss", - "displayUnits": "m/ss", - "below": { - "safe": 30.0 - } - }, - { - "id": "direction_speetec_1", - "name": "Direction Speetec 1", - "type": "bool" - }, - { - "id": "d_current_reference", - "name": "D Current Reference", - "type": "float64", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "measured_d_current", - "name": "Measured D Current", - "type": "float64", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "d_current_error", - "name": "D Current Error", - "type": "float64", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "q_current_reference", - "name": "Q Current Reference", - "type": "float64", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "measured_q_current", - "name": "Measured Q Current", - "type": "float64", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "q_current_error", - "name": "Q Current Error", - "type": "float64", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "pi_id_output", - "name": "PI ID Output", - "type": "float64", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "pi_iq_output", - "name": "PI IQ Output", - "type": "float64", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "target_u_voltage", - "name": "Target U Voltage", - "type": "float64", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "target_v_voltage", - "name": "Target V Voltage", - "type": "float64", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "target_w_voltage", - "name": "Target W Voltage", - "type": "float64", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "electrical_angle", - "name": "Electrical Angle", - "type": "float64", - "podUnits": "rad", - "displayUnits": "rad" - } -] \ No newline at end of file diff --git a/boards/BCU/order_measurements.json b/boards/BCU/order_measurements.json deleted file mode 100644 index 4816640..0000000 --- a/boards/BCU/order_measurements.json +++ /dev/null @@ -1,150 +0,0 @@ -[ - { - "id": "duty_cycle_u", - "name": "Duty Cycle U (%)", - "type": "float32", - "podUnits": "%", - "displayUnits": "%", - "out_of_range": { - "warning": [ - 0.0, - 100.0 - ] - } - }, - { - "id": "duty_cycle_v", - "name": "Duty Cycle V (%)", - "type": "float32", - "podUnits": "%", - "displayUnits": "%", - "out_of_range": { - "warning": [ - 0.0, - 100.0 - ] - } - }, - { - "id": "duty_cycle_w", - "name": "Duty Cycle W (%)", - "type": "float32", - "podUnits": "%", - "displayUnits": "%", - "out_of_range": { - "warning": [ - 0.0, - 100.0 - ] - } - }, - { - "id": "commutation_frequency_hz", - "name": "Commutation Frequency (Hz)", - "type": "uint32", - "podUnits": "Hz", - "displayUnits": "Hz", - "below": { - "warning": 30000 - } - }, - { - "id": "dead_time_ns", - "name": "Dead Time (ns)", - "type": "uint32", - "podUnits": "ns", - "displayUnits": "ns", - "above": { - "warning": 100 - } - }, - { - "id": "modulation_index", - "name": "Modulation Index", - "type": "float32", - "podUnits": "", - "displayUnits": "", - "out_of_range": { - "warning": [ - 0.0, - 1.1547 - ] - } - }, - { - "id": "modulation_frequency_hz", - "name": "Modulation Frequency (Hz)", - "type": "float32", - "podUnits": "Hz", - "displayUnits": "Hz", - "above": { - "warning": 0.0 - } - }, - { - "id": "requested_dc_link_voltage", - "name": "Requested DC Link Voltage (V)", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "warning": 446.4 - } - }, - { - "id": "requested_linear_speed", - "name": "Target Linear Speed (m/s)", - "type": "float32", - "podUnits": "m/s", - "displayUnits": "m/s", - "above": { - "warning": 0.0 - } - }, - { - "id": "requested_d_current_reference_2", - "name": "D Current Reference(A)", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - 0.0, - 80.0 - ] - } - }, - { - "id": "requested_q_current_reference_2", - "name": "Q Current Reference (A)", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "warning": [ - 0.0, - 80.0 - ] - } - }, - { - "id": "requested_speetec_emulation_mode", - "name": "Emulation Mode", - "type": "enum", - "enumValues": [ - "position", - "speed", - "acceleration" - ] - }, - { - "id": "requested_speetec_emulation_value", - "name": "Value (m | m/s | m/ss)", - "type": "float32", - "podUnits": "", - "displayUnits": "", - "above": { - "warning": 0.0 - } - } -] \ No newline at end of file diff --git a/boards/BCU/orders.json b/boards/BCU/orders.json deleted file mode 100644 index dea7945..0000000 --- a/boards/BCU/orders.json +++ /dev/null @@ -1,81 +0,0 @@ -[ - { - "id": 1799, - "type": "order", - "name": "Stop Control", - "variables": [] - }, - { - "id": 1798, - "type": "order", - "name": "Start Test PWM", - "variables": [ - "duty_cycle_u", - "duty_cycle_v", - "duty_cycle_w" - ] - }, - { - "id": 1797, - "type": "order", - "name": "Configure Commutation Parameters", - "variables": [ - "commutation_frequency_hz", - "dead_time_ns" - ] - }, - { - "id": 1796, - "type": "order", - "name": "Start Space Vector", - "variables": [ - "modulation_index", - "modulation_frequency_hz" - ] - }, - { - "id": 1795, - "type": "order", - "name": "Fix DC Link Voltage", - "variables": [ - "requested_dc_link_voltage" - ] - }, - { - "id": 1794, - "type": "order", - "name": "Unfix DC Link Voltage", - "variables": [] - }, - { - "id": 1792, - "type": "order", - "name": "Start Current Control", - "variables": [ - "requested_d_current_reference_2", - "requested_q_current_reference_2" - ] - }, - { - "id": 1791, - "type": "order", - "name": "Start Speed Control", - "variables": [ - "requested_linear_speed" - ] - }, - { - "id": 1788, - "type": "order", - "name": "DC Poles Ready (BCU)" - }, - { - "id": 1787, - "type": "order", - "name": "Start Speetec emulation", - "variables": [ - "requested_speetec_emulation_mode", - "requested_speetec_emulation_value" - ] - } -] \ No newline at end of file diff --git a/boards/BCU/packets.json b/boards/BCU/packets.json deleted file mode 100644 index cc47be4..0000000 --- a/boards/BCU/packets.json +++ /dev/null @@ -1,118 +0,0 @@ -[ - { - "id": 1700, - "type": "data", - "name": "Motor Driver", - "variables": [ - "duty_cycle_u", - "duty_cycle_v", - "duty_cycle_w", - "commutation_frequency_hz", - "dead_time_ns" - ] - }, - { - "id": 1701, - "type": "data", - "name": "State", - "variables": [ - "bcu_general_state", - "bcu_operational_state", - "bcu_nested_state", - "control_state" - ] - }, - { - "id": 1702, - "type": "data", - "name": "Space Vector", - "variables": [ - "space_vector_time", - "output_modulation_index", - "output_modulation_frequency_hz" - ] - }, - { - "id": 1703, - "type": "data", - "name": "DC Link", - "variables": [ - "dc_link_average_voltage", - "dc_link_a_voltage", - "dc_link_b_voltage" - ] - }, - { - "id": 1704, - "type": "data", - "name": "Motor Currents", - "variables": [ - "average_current_u", - "average_current_v", - "average_current_w", - "current_u_motor_a", - "current_v_motor_a", - "current_w_motor_a", - "current_u_motor_b", - "current_v_motor_b", - "current_w_motor_b" - ] - }, - { - "id": 1705, - "type": "data", - "name": "SPEETEC 1", - "variables": [ - "position_speetec_1", - "direction_speetec_1", - "speed_speetec_1", - "acceleration_speetec_1" - ] - }, - { - "id": 1706, - "type": "data", - "name": "Current Control", - "variables": [ - "d_current_reference", - "measured_d_current", - "d_current_error", - "q_current_reference", - "measured_q_current", - "q_current_error", - "target_u_voltage", - "target_v_voltage", - "target_w_voltage", - "electrical_angle", - "pi_id_output", - "pi_iq_output" - ] - }, - { - "id": 1707, - "type": "data", - "name": "Speed Control", - "variables": [ - "requested_linear_speed", - "speed_speetec_1" - ] - }, - { - "id": 1790, - "type": "data", - "name": "Enable DC Poles (BCU)" - }, - { - "id": 1789, - "type": "data", - "name": "Disable DC Poles (BCU)" - }, - { - "id": 1692, - "type": "data", - "name": "BCU Bus Voltage", - "variables": [ - "bcu_bus_voltage" - ] - } -] \ No newline at end of file diff --git a/boards/BLCU/BLCU.json b/boards/BLCU/BLCU.json new file mode 100644 index 0000000..2c98964 --- /dev/null +++ b/boards/BLCU/BLCU.json @@ -0,0 +1,12 @@ +{ + "board_id": 27, + "board_ip": "192.168.0.27", + "measurements": ["BLCU_measurements.json"], + "packets": [ + "packets.json", + "orders.json" + ], + "sockets": [ + "sockets.json" + ] +} diff --git a/boards/BLCU/BLCU_measurements.json b/boards/BLCU/BLCU_measurements.json new file mode 100644 index 0000000..f44182d --- /dev/null +++ b/boards/BLCU/BLCU_measurements.json @@ -0,0 +1,34 @@ +[ + { + "id": "target", + "name": "target", + "type": "enum", + "enumValues": [ + "VCU", + "HVBMS", + "LVBMS", + "PCU", + "LCU" + ] + }, + { + "id": "general_state_machine", + "name": "General State Machine", + "type": "enum", + "enumValues": [ + "Connecting", + "Operational", + "Fault" + ] + }, + { + "id": "operational_state_machine", + "name": "Operational state machine", + "type": "enum", + "enumValues": [ + "Idle", + "Flashing" + ] + } + +] diff --git a/boards/BLCU/orders.json b/boards/BLCU/orders.json new file mode 100644 index 0000000..1a7167d --- /dev/null +++ b/boards/BLCU/orders.json @@ -0,0 +1,15 @@ +[ + { + "id": 701, + "type": "order", + "name": "Reset All" + }, + { + "id":700, + "type": "order", + "name":"Write Program", + "variables":[ + "target" + ] + } +] diff --git a/boards/BLCU/packets.json b/boards/BLCU/packets.json new file mode 100644 index 0000000..4674afd --- /dev/null +++ b/boards/BLCU/packets.json @@ -0,0 +1,28 @@ +[ + { + "id":3, + "type": "packet", + "name":"ack" + }, + { + "id":4, + "type": "packet", + "name":"nack" + }, + + { + "id": 1, + "type": "packet", + "name": "state_machine_state", + "variables": + [ + "general_state_machine", + "operational_state_machine" + ], + "period_type": "ms", + "period": 16.67, + "socket": "control_station_udp" + + } + +] diff --git a/boards/BLCU/sockets.json b/boards/BLCU/sockets.json new file mode 100644 index 0000000..173e674 --- /dev/null +++ b/boards/BLCU/sockets.json @@ -0,0 +1,14 @@ +[ + { + "type": "ServerSocket", + "name": "control_station_tcp", + "port": 50500 + }, + + { + "type": "DatagramSocket", + "name": "control_station_udp", + "remote_ip":"backend", + "port": 50420 + } +] diff --git a/boards/BMSL/BMSL.json b/boards/BMSL/BMSL.json deleted file mode 100644 index c20082f..0000000 --- a/boards/BMSL/BMSL.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "board_id": 2, - "board_ip": "192.168.1.254", - "measurements": [ - "BMSL_measurements.json" - ], - "packets": [ - "packets.json", - "orders.json" - ] -} \ No newline at end of file diff --git a/boards/BMSL/BMSL_measurements.json b/boards/BMSL/BMSL_measurements.json deleted file mode 100644 index 4b59099..0000000 --- a/boards/BMSL/BMSL_measurements.json +++ /dev/null @@ -1,200 +0,0 @@ -[ - { - "id": "cell_1", - "name": "Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "cell_2", - "name": "Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "cell_3", - "name": "Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "cell_4", - "name": "Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "cell_5", - "name": "Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "cell_6", - "name": "Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "voltage_min", - "name": "Min Cell", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "voltage_max", - "name": "Max Cell", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "total_voltage", - "name": "Total Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "SOC", - "name": "SOC", - "type": "float32", - "podUnits": "%", - "displayUnits": "%" - }, - { - "id": "temperature_1", - "name": "Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "temperature_2", - "name": "Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "temperature_3", - "name": "Temperature 3", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "temperature_4", - "name": "Temperature 4", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "temp_min", - "name": "Min. Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "temp_max", - "name": "Max. Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "current", - "name": "Current", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "state", - "name": "State", - "type": "enum", - "enumValues": [ - "CONNECTING", - "OPERATIONAL", - "FAULT" - ] - }, - { - "id": "pfm_state", - "name": "PFM State", - "type": "enum", - "enumValues": [ - "INACTIVE", - "ACTIVE" - ] - }, - { - "id": "buffer_state", - "name": "BUFFER State", - "type": "enum", - "enumValues": [ - "HIGH", - "LOW" - ] - }, - { - "id": "reset_state", - "name": "RESET State", - "type": "enum", - "enumValues": [ - "LOW", - "HIGH" - ] - }, - { - "id": "frequency", - "name": "Frequency", - "type": "uint32", - "podUnits": "Hz", - "displayUnits": "Hz" - }, - { - "id": "dead_time", - "name": "Dead time", - "type": "uint32", - "podUnits": "ns", - "displayUnits": "ns" - }, - { - "id": "output_current", - "name": "Output Current", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "input_current", - "name": "Input Current", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "output_voltage", - "name": "Output Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "input_voltage", - "name": "Input Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - } -] \ No newline at end of file diff --git a/boards/BMSL/orders.json b/boards/BMSL/orders.json deleted file mode 100644 index f8cf846..0000000 --- a/boards/BMSL/orders.json +++ /dev/null @@ -1,30 +0,0 @@ -[ - { - "type": "order", - "name": "Turn on PFM", - "variables": [], - "id": 502 - }, - { - "type": "order", - "name": "Turn off PFM", - "variables": [], - "id": 503 - }, - { - "type": "order", - "name": "Set PFM Frequency", - "variables": [ - "frequency" - ], - "id": 504 - }, - { - "type": "order", - "name": "Set PFM Dead Time", - "variables": [ - "dead_time" - ], - "id": 505 - } -] \ No newline at end of file diff --git a/boards/BMSL/packets.json b/boards/BMSL/packets.json deleted file mode 100644 index 1b3aa85..0000000 --- a/boards/BMSL/packets.json +++ /dev/null @@ -1,50 +0,0 @@ -[ - { - "type": "data", - "name": "Battery Data", - "variables": [ - "cell_1", - "cell_2", - "cell_3", - "cell_4", - "cell_5", - "cell_6", - "voltage_min", - "voltage_max", - "total_voltage", - "SOC", - "temperature_1", - "temperature_2", - "temperature_3", - "temperature_4", - "temp_min", - "temp_max", - "current" - ], - "id": 777 - }, - { - "type": "data", - "name": "Current State", - "variables": [ - "state" - ], - "id": 778 - }, - { - "type": "data", - "name": "DCLV Data", - "variables": [ - "pfm_state", - "buffer_state", - "reset_state", - "frequency", - "dead_time", - "output_current", - "input_current", - "output_voltage", - "input_voltage" - ], - "id": 779 - } -] \ No newline at end of file diff --git a/boards/HVSCU/HVSCU.json b/boards/HVBMS/HVBMS.json similarity index 57% rename from boards/HVSCU/HVSCU.json rename to boards/HVBMS/HVBMS.json index 344dd94..caf7dcc 100644 --- a/boards/HVSCU/HVSCU.json +++ b/boards/HVBMS/HVBMS.json @@ -1,11 +1,14 @@ { - "board_id": 1, + "board_id": 7, "board_ip": "192.168.1.7", "measurements": [ - "HVSCU_measurements.json" + "HVBMS_measurements.json" ], "packets": [ "packets.json", "orders.json" + ], + "sockets": [ + "sockets.json" ] } \ No newline at end of file diff --git a/boards/HVBMS/HVBMS_measurements.json b/boards/HVBMS/HVBMS_measurements.json new file mode 100644 index 0000000..83268c1 --- /dev/null +++ b/boards/HVBMS/HVBMS_measurements.json @@ -0,0 +1,294 @@ +[ + { "id": "battery1_cell1", "name": "Battery 1 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell2", "name": "Battery 1 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell3", "name": "Battery 1 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell4", "name": "Battery 1 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell5", "name": "Battery 1 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell6", "name": "Battery 1 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell7", "name": "Battery 1 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell8", "name": "Battery 1 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell9", "name": "Battery 1 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell10", "name": "Battery 1 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell11", "name": "Battery 1 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_cell12", "name": "Battery 1 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_total_voltage", "name": "Battery 1 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery1_temp1", "name": "Battery 1 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery1_temp2", "name": "Battery 1 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery1_temp3", "name": "Battery 1 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery1_temp4", "name": "Battery 1 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery2_cell1", "name": "Battery 2 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell2", "name": "Battery 2 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell3", "name": "Battery 2 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell4", "name": "Battery 2 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell5", "name": "Battery 2 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell6", "name": "Battery 2 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell7", "name": "Battery 2 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell8", "name": "Battery 2 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell9", "name": "Battery 2 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell10", "name": "Battery 2 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell11", "name": "Battery 2 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_cell12", "name": "Battery 2 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_total_voltage", "name": "Battery 2 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery2_temp1", "name": "Battery 2 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery2_temp2", "name": "Battery 2 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery2_temp3", "name": "Battery 2 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery2_temp4", "name": "Battery 2 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery3_cell1", "name": "Battery 3 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell2", "name": "Battery 3 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell3", "name": "Battery 3 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell4", "name": "Battery 3 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell5", "name": "Battery 3 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell6", "name": "Battery 3 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell7", "name": "Battery 3 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell8", "name": "Battery 3 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell9", "name": "Battery 3 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell10", "name": "Battery 3 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell11", "name": "Battery 3 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_cell12", "name": "Battery 3 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_total_voltage", "name": "Battery 3 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery3_temp1", "name": "Battery 3 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery3_temp2", "name": "Battery 3 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery3_temp3", "name": "Battery 3 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery3_temp4", "name": "Battery 3 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery4_cell1", "name": "Battery 4 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell2", "name": "Battery 4 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell3", "name": "Battery 4 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell4", "name": "Battery 4 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell5", "name": "Battery 4 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell6", "name": "Battery 4 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell7", "name": "Battery 4 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell8", "name": "Battery 4 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell9", "name": "Battery 4 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell10", "name": "Battery 4 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell11", "name": "Battery 4 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_cell12", "name": "Battery 4 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_total_voltage", "name": "Battery 4 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery4_temp1", "name": "Battery 4 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery4_temp2", "name": "Battery 4 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery4_temp3", "name": "Battery 4 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery4_temp4", "name": "Battery 4 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery5_cell1", "name": "Battery 5 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell2", "name": "Battery 5 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell3", "name": "Battery 5 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell4", "name": "Battery 5 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell5", "name": "Battery 5 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell6", "name": "Battery 5 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell7", "name": "Battery 5 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell8", "name": "Battery 5 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell9", "name": "Battery 5 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell10", "name": "Battery 5 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell11", "name": "Battery 5 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_cell12", "name": "Battery 5 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_total_voltage", "name": "Battery 5 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery5_temp1", "name": "Battery 5 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery5_temp2", "name": "Battery 5 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery5_temp3", "name": "Battery 5 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery5_temp4", "name": "Battery 5 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery6_cell1", "name": "Battery 6 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell2", "name": "Battery 6 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell3", "name": "Battery 6 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell4", "name": "Battery 6 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell5", "name": "Battery 6 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell6", "name": "Battery 6 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell7", "name": "Battery 6 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell8", "name": "Battery 6 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell9", "name": "Battery 6 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell10", "name": "Battery 6 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell11", "name": "Battery 6 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_cell12", "name": "Battery 6 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_total_voltage", "name": "Battery 6 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery6_temp1", "name": "Battery 6 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery6_temp2", "name": "Battery 6 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery6_temp3", "name": "Battery 6 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery6_temp4", "name": "Battery 6 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery7_cell1", "name": "Battery 7 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell2", "name": "Battery 7 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell3", "name": "Battery 7 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell4", "name": "Battery 7 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell5", "name": "Battery 7 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell6", "name": "Battery 7 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell7", "name": "Battery 7 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell8", "name": "Battery 7 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell9", "name": "Battery 7 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell10", "name": "Battery 7 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell11", "name": "Battery 7 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_cell12", "name": "Battery 7 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_total_voltage", "name": "Battery 7 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery7_temp1", "name": "Battery 7 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery7_temp2", "name": "Battery 7 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery7_temp3", "name": "Battery 7 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery7_temp4", "name": "Battery 7 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { "id": "battery8_cell1", "name": "Battery 8 Cell 1", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell2", "name": "Battery 8 Cell 2", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell3", "name": "Battery 8 Cell 3", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell4", "name": "Battery 8 Cell 4", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell5", "name": "Battery 8 Cell 5", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell6", "name": "Battery 8 Cell 6", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell7", "name": "Battery 8 Cell 7", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell8", "name": "Battery 8 Cell 8", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell9", "name": "Battery 8 Cell 9", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell10", "name": "Battery 8 Cell 10", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell11", "name": "Battery 8 Cell 11", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_cell12", "name": "Battery 8 Cell 12", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_total_voltage", "name": "Battery 8 Voltage", "type": "float32", "podUnits": "mV", "displayUnits": "V" }, + { "id": "battery8_temp1", "name": "Battery 8 Temperature 1", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery8_temp2", "name": "Battery 8 Temperature 2", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery8_temp3", "name": "Battery 8 Temperature 3", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + { "id": "battery8_temp4", "name": "Battery 8 Temperature 4", "type": "float32", "podUnits": "ºC", "displayUnits": "ºC"}, + + { + "id": "batteries_voltage_reading", + "name": "Batteries Voltage", + "type": "float32", + "podUnits": "V", + "displayUnits": "V" + }, + { + "id": "voltage_reading", + "name": "Voltage Sensor", + "type": "float32", + "podUnits": "V", + "displayUnits": "V", + "safeRange": [ + 0.0, + 410.0 + ] + }, + { + "id": "current_reading", + "name": "Current Sensor", + "type": "float32", + "podUnits": "A", + "displayUnits": "A", + "safeRange": [ + -15.0, + 120.0 + ] + }, + { + "id": "sdc_status", + "name": "SDC Status", + "type": "enum", + "enumValues": [ + "ENGAGED", + "DISENGAGED" + ] + }, + { + "id": "voltage_min", + "name": "Minimum Cell Voltage", + "type": "float32", + "podUnits": "V", + "displayUnits": "V" + }, + { + "id": "voltage_max", + "name": "Maximum Cell Voltage", + "type": "float32", + "podUnits": "V", + "displayUnits": "V" + }, + { + "id": "temp_min", + "name": "Minimum Temperature", + "type": "float32", + "podUnits": "ºC", + "displayUnits": "ºC" + }, + { + "id": "temp_max", + "name": "Maximum Temperature", + "type": "float32", + "podUnits": "ºC", + "displayUnits": "ºC" + }, + { + "id": "imd_status", + "name": "IMD Status", + "type": "enum", + "enumValues":[ + "SHORTCIRCUIT", + "NORMAL", + "UNDERVOLTAGE", + "FAST_EVAL", + "EQUIPMENT_FAULT", + "GROUNDING_FAULT" + ] + }, + { + "id": "imd_resistance", + "name": "IMD Resistance", + "type": "float32", + "podUnits": "Ohm", + "displayUnits": "MOhm", + "safeRange": [ + 30, + 70 + ] + }, + { + "id": "imd_is_ok", + "name": "IMD OK", + "type": "bool" + }, + { + "id": "imd_duty", + "name": "IMD Duty", + "type": "float32" + }, + { + "id": "imd_freq", + "name": "IMD Frequency", + "type": "float32" + }, + { + "id": "contactor_precharge", + "name": "Contactor Precharge", + "type": "bool" + }, + { + "id": "contactor_discharge", + "name": "Contactor Discharge", + "type": "bool" + }, + { + "id": "contactor_high", + "name": "Contactor High", + "type": "bool" + }, + { + "id": "contactor_low", + "name": "Contactor Low", + "type": "bool" + }, + { + "id": "contactor_common_high", + "name": "Contactor Common High", + "type": "bool" + }, + { + "id": "soc", + "name": "SOC", + "type": "float32" + }, + { + "id": "sm_status", + "name": "State Machine Status", + "type": "enum", + "enumValues": [ + "Connecting", + "Idle", + "Ready To Precharge", + "Precharging", + "Energized", + "FAULT" + ] + } +] \ No newline at end of file diff --git a/boards/HVSCU/orders.json b/boards/HVBMS/orders.json similarity index 62% rename from boards/HVSCU/orders.json rename to boards/HVBMS/orders.json index f0918d4..3fae309 100644 --- a/boards/HVSCU/orders.json +++ b/boards/HVBMS/orders.json @@ -7,31 +7,25 @@ }, { "type": "order", - "name": "close_contactors", - "variables": [], - "id": 900 - }, - { - "type": "order", - "name": "open_contactors", + "name": "Open Contactors", "variables": [], "id": 901 }, { "type": "order", - "name": "sdc_obccu", + "name": "Cell Balance", "variables": [], "id": 902 }, - { + { "type": "order", - "name": "imd_bypass", + "name": "Start Precharge", "variables": [], "id": 903 }, { "type": "order", - "name": "zeroing", + "name": "Check Faults", "variables": [], "id": 904 } diff --git a/boards/HVBMS/packets.json b/boards/HVBMS/packets.json new file mode 100644 index 0000000..2b5dbbe --- /dev/null +++ b/boards/HVBMS/packets.json @@ -0,0 +1,216 @@ +[ + { + "type": "data", + "name": "High Voltage System", + "variables": [ + "voltage_min", + "voltage_max", + "temp_min", + "temp_max", + "current_reading", + "voltage_reading", + "batteries_voltage_reading", + "sm_status" + ], + "id": 950, + "period": 10, + "period_type": "ms", + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "SOC", + "variables": ["soc"], + "id": 951, + "period": 50, + "period_type": "ms", + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "SDC", + "variables": [ + "sdc_status" + ], + "id": 952, + "period": 50, + "period_type": "ms", + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "High Voltage Batteries", + "variables": [ + "battery1_cell1", + "battery1_cell2", + "battery1_cell3", + "battery1_cell4", + "battery1_cell5", + "battery1_cell6", + "battery1_cell7", + "battery1_cell8", + "battery1_cell9", + "battery1_cell10", + "battery1_cell11", + "battery1_cell12", + "battery1_total_voltage", + "battery1_temp1", + "battery1_temp2", + "battery1_temp3", + "battery1_temp4", + "battery2_cell1", + "battery2_cell2", + "battery2_cell3", + "battery2_cell4", + "battery2_cell5", + "battery2_cell6", + "battery2_cell7", + "battery2_cell8", + "battery2_cell9", + "battery2_cell10", + "battery2_cell11", + "battery2_cell12", + "battery2_total_voltage", + "battery2_temp1", + "battery2_temp2", + "battery2_temp3", + "battery2_temp4", + "battery3_cell1", + "battery3_cell2", + "battery3_cell3", + "battery3_cell4", + "battery3_cell5", + "battery3_cell6", + "battery3_cell7", + "battery3_cell8", + "battery3_cell9", + "battery3_cell10", + "battery3_cell11", + "battery3_cell12", + "battery3_total_voltage", + "battery3_temp1", + "battery3_temp2", + "battery3_temp3", + "battery3_temp4", + "battery4_cell1", + "battery4_cell2", + "battery4_cell3", + "battery4_cell4", + "battery4_cell5", + "battery4_cell6", + "battery4_cell7", + "battery4_cell8", + "battery4_cell9", + "battery4_cell10", + "battery4_cell11", + "battery4_cell12", + "battery4_total_voltage", + "battery4_temp1", + "battery4_temp2", + "battery4_temp3", + "battery4_temp4", + "battery5_cell1", + "battery5_cell2", + "battery5_cell3", + "battery5_cell4", + "battery5_cell5", + "battery5_cell6", + "battery5_cell7", + "battery5_cell8", + "battery5_cell9", + "battery5_cell10", + "battery5_cell11", + "battery5_cell12", + "battery5_total_voltage", + "battery5_temp1", + "battery5_temp2", + "battery5_temp3", + "battery5_temp4", + "battery6_cell1", + "battery6_cell2", + "battery6_cell3", + "battery6_cell4", + "battery6_cell5", + "battery6_cell6", + "battery6_cell7", + "battery6_cell8", + "battery6_cell9", + "battery6_cell10", + "battery6_cell11", + "battery6_cell12", + "battery6_total_voltage", + "battery6_temp1", + "battery6_temp2", + "battery6_temp3", + "battery6_temp4", + "battery7_cell1", + "battery7_cell2", + "battery7_cell3", + "battery7_cell4", + "battery7_cell5", + "battery7_cell6", + "battery7_cell7", + "battery7_cell8", + "battery7_cell9", + "battery7_cell10", + "battery7_cell11", + "battery7_cell12", + "battery7_total_voltage", + "battery7_temp1", + "battery7_temp2", + "battery7_temp3", + "battery7_temp4", + "battery8_cell1", + "battery8_cell2", + "battery8_cell3", + "battery8_cell4", + "battery8_cell5", + "battery8_cell6", + "battery8_cell7", + "battery8_cell8", + "battery8_cell9", + "battery8_cell10", + "battery8_cell11", + "battery8_cell12", + "battery8_total_voltage", + "battery8_temp1", + "battery8_temp2", + "battery8_temp3", + "battery8_temp4" + ], + "id": 953, + "period": 50, + "period_type": "ms", + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "IMD", + "variables": [ + "imd_status", + "imd_resistance", + "imd_is_ok", + "imd_duty", + "imd_freq" + ], + "id": 954, + "period": 50, + "period_type": "ms", + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "Contactor Status", + "variables": [ + "contactor_discharge", + "contactor_precharge", + "contactor_low", + "contactor_high", + "contactor_common_high" + ], + "id": 955, + "period": 50, + "period_type": "ms", + "socket": "vcu_udp" + } +] \ No newline at end of file diff --git a/boards/HVBMS/sockets.json b/boards/HVBMS/sockets.json new file mode 100644 index 0000000..6f49b6b --- /dev/null +++ b/boards/HVBMS/sockets.json @@ -0,0 +1,13 @@ +[ + { + "type": "ServerSocket", + "name": "vcu_tcp", + "port": 50500 + }, + { + "type": "DatagramSocket", + "name": "vcu_udp", + "remote_ip": "192.168.1.3", + "port": 50400 + } +] diff --git a/boards/HVSCU-Cabinet/HVSCU-Cabinet.json b/boards/HVSCU-Cabinet/HVSCU-Cabinet.json deleted file mode 100644 index 7ec4ab5..0000000 --- a/boards/HVSCU-Cabinet/HVSCU-Cabinet.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "board_id": 216, - "board_ip": "192.168.2.16", - "packets": [ - "supercaps_data.json", - "packets.json" - ], - "measurements": [ - "supercaps_measurements.json", - "measurements.json" - ] -} \ No newline at end of file diff --git a/boards/HVSCU-Cabinet/measurements.json b/boards/HVSCU-Cabinet/measurements.json deleted file mode 100644 index be590b9..0000000 --- a/boards/HVSCU-Cabinet/measurements.json +++ /dev/null @@ -1,94 +0,0 @@ -[ - { - "id": "HVSCU-Cabinet_sdc_good", - "name": "SDC Good", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "False", - "True" - ] - }, - { - "id": "HVSCU-Cabinet_bus_voltage", - "name": "Bus Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 400.0, - "warning": 446.4 - } - }, - { - "id": "HVSCU-Cabinet_contactors_state", - "name": "Contactors State", - "type": "enum", - "podUnits": "", - "displayUnits": "", - "enumValues": [ - "Open", - "Charging", - "Charged", - "Precharge", - "Close" - ] - }, - { - "id": "HVSCU-Cabinet_output_current", - "name": "Output Current", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "out_of_range": { - "safe": [ - -10.0, - 70.0 - ], - "warning": [ - -20.0, - 100.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_imd_state", - "name": "IMD State", - "type": "enum", - "enumValues": [ - "SHORT CIRCUIT", - "OK", - "UNDERVOLTAGE", - "FAST START", - "EQUIPMENT FAULT", - "GROUNDING FAULT", - "UNKNOWN" - ] - }, - { - "id": "HVSCU-Cabinet_isolation_resistance", - "name": "IMD Isolation Resistance", - "type": "float32", - "below": { - "warning": 100000, - "safe": 200000 - } - }, - { - "id": "HVSCU-Cabinet_ok", - "name": "IMD OK", - "type": "bool" - }, - { - "id": "HVSCU-Cabinet_soc", - "name": "Supercaps SoC", - "type": "float32", - "out_of_range": { - "warning": [ - 0.0, - 100.0 - ] - } - } -] \ No newline at end of file diff --git a/boards/HVSCU-Cabinet/packets.json b/boards/HVSCU-Cabinet/packets.json deleted file mode 100644 index 140b7f2..0000000 --- a/boards/HVSCU-Cabinet/packets.json +++ /dev/null @@ -1,37 +0,0 @@ -[ - { - "id": 1607, - "type": "data", - "name": "SDC State", - "variables": [ - "HVSCU-Cabinet_sdc_good" - ] - }, - { - "id": 1608, - "type": "data", - "name": "Contactors State", - "variables": [ - "HVSCU-Cabinet_bus_voltage", - "HVSCU-Cabinet_contactors_state" - ] - }, - { - "id": 1609, - "type": "data", - "name": "Current Sense", - "variables": [ - "HVSCU-Cabinet_output_current" - ] - }, - { - "id": 1610, - "type": "data", - "name": "Cabinet IMD", - "variables": [ - "HVSCU-Cabinet_imd_state", - "HVSCU-Cabinet_isolation_resistance", - "HVSCU-Cabinet_ok" - ] - } -] \ No newline at end of file diff --git a/boards/HVSCU-Cabinet/state_machine.json b/boards/HVSCU-Cabinet/state_machine.json deleted file mode 100644 index 08b9eb7..0000000 --- a/boards/HVSCU-Cabinet/state_machine.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "states": [ - "calibration", - "connecting", - { - "name": "operational", - "sub-states": [ - "idle", - "precharge", - "charged", - "ready", - "boosting" - ] - }, - "discharge", - "fault" - ], - "transitions": [ - { - "from": "calibration", - "to": "connecting", - "description": "All sensors zeroing complete" - }, - { - "from": "connecting", - "to": "operational", - "description": "Connection with the VCU/control station established" - }, - - { - "from": "operational.idle", - "to": "operational.precharge", - "description": "Start precharging the DC link" - }, - { - "from": "operational.precharge", - "to": "operational.charged", - "description": "Precharge successfull" - }, - { - "from": "operational.charged", - "to": "operational.ready", - "description": "Run confirmed and parameters set" - }, - { - "from": "operational.ready", - "to": "operational.booster", - "description": "Vehicle passing through booster section" - }, - { - "from": "operational.boosting", - "to": "operational.idle", - "description": "Vehicle exited booster section" - }, - - { - "from": "operational", - "to": "discharge", - "description": "Manual discharge" - }, - { - "from": "discharge", - "to": "operational", - "description": "Manual discharge reset" - } - ] -} \ No newline at end of file diff --git a/boards/HVSCU-Cabinet/supercaps_data.json b/boards/HVSCU-Cabinet/supercaps_data.json deleted file mode 100644 index 9ee7b58..0000000 --- a/boards/HVSCU-Cabinet/supercaps_data.json +++ /dev/null @@ -1,215 +0,0 @@ -[ - { - "id": 1600, - "type": "data", - "name": "Supercaps Voltage Overview", - "variables": [ - "HVSCU-Cabinet_total_supercaps_voltage", - "HVSCU-Cabinet_soc" - ] - }, - { - "id": 1601, - "type": "data", - "name": "Module 1 Overview", - "variables": [ - "HVSCU-Cabinet_module_1_voltage", - "HVSCU-Cabinet_module_1_max_cell", - "HVSCU-Cabinet_module_1_min_cell", - "HVSCU-Cabinet_module_1_average_cell", - "HVSCU-Cabinet_module_1_max_temp", - "HVSCU-Cabinet_module_1_min_temp" - ] - }, - { - "id": 1602, - "type": "data", - "name": "Module 2 Overview", - "variables": [ - "HVSCU-Cabinet_module_2_voltage", - "HVSCU-Cabinet_module_2_max_cell", - "HVSCU-Cabinet_module_2_min_cell", - "HVSCU-Cabinet_module_2_average_cell", - "HVSCU-Cabinet_module_2_max_temp", - "HVSCU-Cabinet_module_2_min_temp" - ] - }, - { - "id": 1603, - "type": "data", - "name": "Module 3 Overview", - "variables": [ - "HVSCU-Cabinet_module_3_voltage", - "HVSCU-Cabinet_module_3_max_cell", - "HVSCU-Cabinet_module_3_min_cell", - "HVSCU-Cabinet_module_3_average_cell", - "HVSCU-Cabinet_module_3_max_temp", - "HVSCU-Cabinet_module_3_min_temp" - ] - }, - { - "id": 1604, - "type": "data", - "name": "Moduel 1 Cell Votlages", - "variables": [ - "HVSCU-Cabinet_module_1_cell_1_voltage", - "HVSCU-Cabinet_module_1_cell_2_voltage", - "HVSCU-Cabinet_module_1_cell_3_voltage", - "HVSCU-Cabinet_module_1_cell_4_voltage", - "HVSCU-Cabinet_module_1_cell_5_voltage", - "HVSCU-Cabinet_module_1_cell_6_voltage", - "HVSCU-Cabinet_module_1_cell_7_voltage", - "HVSCU-Cabinet_module_1_cell_8_voltage", - "HVSCU-Cabinet_module_1_cell_9_voltage", - "HVSCU-Cabinet_module_1_cell_10_voltage", - "HVSCU-Cabinet_module_1_cell_11_voltage", - "HVSCU-Cabinet_module_1_cell_12_voltage", - "HVSCU-Cabinet_module_1_cell_13_voltage", - "HVSCU-Cabinet_module_1_cell_14_voltage", - "HVSCU-Cabinet_module_1_cell_15_voltage", - "HVSCU-Cabinet_module_1_cell_16_voltage", - "HVSCU-Cabinet_module_1_cell_17_voltage", - "HVSCU-Cabinet_module_1_cell_18_voltage", - "HVSCU-Cabinet_module_1_cell_19_voltage", - "HVSCU-Cabinet_module_1_cell_20_voltage", - "HVSCU-Cabinet_module_1_cell_21_voltage", - "HVSCU-Cabinet_module_1_cell_22_voltage", - "HVSCU-Cabinet_module_1_cell_23_voltage", - "HVSCU-Cabinet_module_1_cell_24_voltage", - "HVSCU-Cabinet_module_1_cell_25_voltage", - "HVSCU-Cabinet_module_1_cell_26_voltage", - "HVSCU-Cabinet_module_1_cell_27_voltage", - "HVSCU-Cabinet_module_1_cell_28_voltage", - "HVSCU-Cabinet_module_1_cell_29_voltage", - "HVSCU-Cabinet_module_1_cell_30_voltage", - "HVSCU-Cabinet_module_1_cell_31_voltage", - "HVSCU-Cabinet_module_1_cell_32_voltage", - "HVSCU-Cabinet_module_1_cell_33_voltage", - "HVSCU-Cabinet_module_1_cell_34_voltage", - "HVSCU-Cabinet_module_1_cell_35_voltage", - "HVSCU-Cabinet_module_1_cell_36_voltage", - "HVSCU-Cabinet_module_1_cell_37_voltage", - "HVSCU-Cabinet_module_1_cell_38_voltage", - "HVSCU-Cabinet_module_1_cell_39_voltage", - "HVSCU-Cabinet_module_1_cell_40_voltage", - "HVSCU-Cabinet_module_1_cell_41_voltage", - "HVSCU-Cabinet_module_1_cell_42_voltage", - "HVSCU-Cabinet_module_1_cell_43_voltage", - "HVSCU-Cabinet_module_1_cell_44_voltage", - "HVSCU-Cabinet_module_1_cell_45_voltage", - "HVSCU-Cabinet_module_1_cell_46_voltage", - "HVSCU-Cabinet_module_1_cell_47_voltage", - "HVSCU-Cabinet_module_1_cell_48_voltage" - ] - }, - { - "id": 1605, - "type": "data", - "name": "Module 2 Cell Voltages", - "variables": [ - "HVSCU-Cabinet_module_2_cell_1_voltage", - "HVSCU-Cabinet_module_2_cell_2_voltage", - "HVSCU-Cabinet_module_2_cell_3_voltage", - "HVSCU-Cabinet_module_2_cell_4_voltage", - "HVSCU-Cabinet_module_2_cell_5_voltage", - "HVSCU-Cabinet_module_2_cell_6_voltage", - "HVSCU-Cabinet_module_2_cell_7_voltage", - "HVSCU-Cabinet_module_2_cell_8_voltage", - "HVSCU-Cabinet_module_2_cell_9_voltage", - "HVSCU-Cabinet_module_2_cell_10_voltage", - "HVSCU-Cabinet_module_2_cell_11_voltage", - "HVSCU-Cabinet_module_2_cell_12_voltage", - "HVSCU-Cabinet_module_2_cell_13_voltage", - "HVSCU-Cabinet_module_2_cell_14_voltage", - "HVSCU-Cabinet_module_2_cell_15_voltage", - "HVSCU-Cabinet_module_2_cell_16_voltage", - "HVSCU-Cabinet_module_2_cell_17_voltage", - "HVSCU-Cabinet_module_2_cell_18_voltage", - "HVSCU-Cabinet_module_2_cell_19_voltage", - "HVSCU-Cabinet_module_2_cell_20_voltage", - "HVSCU-Cabinet_module_2_cell_21_voltage", - "HVSCU-Cabinet_module_2_cell_22_voltage", - "HVSCU-Cabinet_module_2_cell_23_voltage", - "HVSCU-Cabinet_module_2_cell_24_voltage", - "HVSCU-Cabinet_module_2_cell_25_voltage", - "HVSCU-Cabinet_module_2_cell_26_voltage", - "HVSCU-Cabinet_module_2_cell_27_voltage", - "HVSCU-Cabinet_module_2_cell_28_voltage", - "HVSCU-Cabinet_module_2_cell_29_voltage", - "HVSCU-Cabinet_module_2_cell_30_voltage", - "HVSCU-Cabinet_module_2_cell_31_voltage", - "HVSCU-Cabinet_module_2_cell_32_voltage", - "HVSCU-Cabinet_module_2_cell_33_voltage", - "HVSCU-Cabinet_module_2_cell_34_voltage", - "HVSCU-Cabinet_module_2_cell_35_voltage", - "HVSCU-Cabinet_module_2_cell_36_voltage", - "HVSCU-Cabinet_module_2_cell_37_voltage", - "HVSCU-Cabinet_module_2_cell_38_voltage", - "HVSCU-Cabinet_module_2_cell_39_voltage", - "HVSCU-Cabinet_module_2_cell_40_voltage", - "HVSCU-Cabinet_module_2_cell_41_voltage", - "HVSCU-Cabinet_module_2_cell_42_voltage", - "HVSCU-Cabinet_module_2_cell_43_voltage", - "HVSCU-Cabinet_module_2_cell_44_voltage", - "HVSCU-Cabinet_module_2_cell_45_voltage", - "HVSCU-Cabinet_module_2_cell_46_voltage", - "HVSCU-Cabinet_module_2_cell_47_voltage", - "HVSCU-Cabinet_module_2_cell_48_voltage" - ] - }, - { - "id": 1606, - "type": "data", - "name": "Module 3 Cell Voltages", - "variables": [ - "HVSCU-Cabinet_module_3_cell_1_voltage", - "HVSCU-Cabinet_module_3_cell_2_voltage", - "HVSCU-Cabinet_module_3_cell_3_voltage", - "HVSCU-Cabinet_module_3_cell_4_voltage", - "HVSCU-Cabinet_module_3_cell_5_voltage", - "HVSCU-Cabinet_module_3_cell_6_voltage", - "HVSCU-Cabinet_module_3_cell_7_voltage", - "HVSCU-Cabinet_module_3_cell_8_voltage", - "HVSCU-Cabinet_module_3_cell_9_voltage", - "HVSCU-Cabinet_module_3_cell_10_voltage", - "HVSCU-Cabinet_module_3_cell_11_voltage", - "HVSCU-Cabinet_module_3_cell_12_voltage", - "HVSCU-Cabinet_module_3_cell_13_voltage", - "HVSCU-Cabinet_module_3_cell_14_voltage", - "HVSCU-Cabinet_module_3_cell_15_voltage", - "HVSCU-Cabinet_module_3_cell_16_voltage", - "HVSCU-Cabinet_module_3_cell_17_voltage", - "HVSCU-Cabinet_module_3_cell_18_voltage", - "HVSCU-Cabinet_module_3_cell_19_voltage", - "HVSCU-Cabinet_module_3_cell_20_voltage", - "HVSCU-Cabinet_module_3_cell_21_voltage", - "HVSCU-Cabinet_module_3_cell_22_voltage", - "HVSCU-Cabinet_module_3_cell_23_voltage", - "HVSCU-Cabinet_module_3_cell_24_voltage", - "HVSCU-Cabinet_module_3_cell_25_voltage", - "HVSCU-Cabinet_module_3_cell_26_voltage", - "HVSCU-Cabinet_module_3_cell_27_voltage", - "HVSCU-Cabinet_module_3_cell_28_voltage", - "HVSCU-Cabinet_module_3_cell_29_voltage", - "HVSCU-Cabinet_module_3_cell_30_voltage", - "HVSCU-Cabinet_module_3_cell_31_voltage", - "HVSCU-Cabinet_module_3_cell_32_voltage", - "HVSCU-Cabinet_module_3_cell_33_voltage", - "HVSCU-Cabinet_module_3_cell_34_voltage", - "HVSCU-Cabinet_module_3_cell_35_voltage", - "HVSCU-Cabinet_module_3_cell_36_voltage", - "HVSCU-Cabinet_module_3_cell_37_voltage", - "HVSCU-Cabinet_module_3_cell_38_voltage", - "HVSCU-Cabinet_module_3_cell_39_voltage", - "HVSCU-Cabinet_module_3_cell_40_voltage", - "HVSCU-Cabinet_module_3_cell_41_voltage", - "HVSCU-Cabinet_module_3_cell_42_voltage", - "HVSCU-Cabinet_module_3_cell_43_voltage", - "HVSCU-Cabinet_module_3_cell_44_voltage", - "HVSCU-Cabinet_module_3_cell_45_voltage", - "HVSCU-Cabinet_module_3_cell_46_voltage", - "HVSCU-Cabinet_module_3_cell_47_voltage", - "HVSCU-Cabinet_module_3_cell_48_voltage" - ] - } -] \ No newline at end of file diff --git a/boards/HVSCU-Cabinet/supercaps_measurements.json b/boards/HVSCU-Cabinet/supercaps_measurements.json deleted file mode 100644 index 165c839..0000000 --- a/boards/HVSCU-Cabinet/supercaps_measurements.json +++ /dev/null @@ -1,1831 +0,0 @@ -[ - { - "id": "HVSCU-Cabinet_total_supercaps_voltage", - "name": "Total Supercaps Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 400.0, - "warning": 446.4 - } - }, - { - "id": "HVSCU-Cabinet_module_1_voltage", - "name": "Module 1 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 133.33, - "warning": 148.8 - } - }, - { - "id": "HVSCU-Cabinet_module_1_max_cell", - "name": "Module 1 Max Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_min_cell", - "name": "Module 1 Min Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_average_cell", - "name": "Module 1 Average Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_max_temp", - "name": "Module 1 Max Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC", - "out_of_range": { - "safe": [ - 10.5, - 30.5 - ], - "warning": [ - 5.5, - 60.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_module_1_min_temp", - "name": "Module 1 Min Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC", - "out_of_range": { - "safe": [ - 10.5, - 30.5 - ], - "warning": [ - 5.5, - 60.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_module_2_voltage", - "name": "Module 2 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 133.33, - "warning": 148.8 - } - }, - { - "id": "HVSCU-Cabinet_module_2_max_cell", - "name": "Module 2 Max Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_min_cell", - "name": "Module 2 Min Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_average_cell", - "name": "Module 2 Average Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_max_temp", - "name": "Module 2 Max Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC", - "out_of_range": { - "safe": [ - 10.5, - 30.5 - ], - "warning": [ - 5.5, - 60.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_module_2_min_temp", - "name": "Module 2 Min Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC", - "out_of_range": { - "safe": [ - 10.5, - 30.5 - ], - "warning": [ - 5.5, - 60.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_module_3_voltage", - "name": "Module 3 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "below": { - "safe": 133.33, - "warning": 148.8 - } - }, - { - "id": "HVSCU-Cabinet_module_3_max_cell", - "name": "Module 3 Max Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_min_cell", - "name": "Module 3 Min Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_average_cell", - "name": "Module 3 Average Cell Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_max_temp", - "name": "Module 3 Max Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC", - "out_of_range": { - "safe": [ - 10.5, - 30.5 - ], - "warning": [ - 5.5, - 60.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_module_3_min_temp", - "name": "Module 3 Min Temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC", - "out_of_range": { - "safe": [ - 10.5, - 30.5 - ], - "warning": [ - 5.5, - 60.0 - ] - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_1_voltage", - "name": "Module 1 Cell 1 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_2_voltage", - "name": "Module 1 Cell 2 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_3_voltage", - "name": "Module 1 Cell 3 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_4_voltage", - "name": "Module 1 Cell 4 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_5_voltage", - "name": "Module 1 Cell 5 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_6_voltage", - "name": "Module 1 Cell 6 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_7_voltage", - "name": "Module 1 Cell 7 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_8_voltage", - "name": "Module 1 Cell 8 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_9_voltage", - "name": "Module 1 Cell 9 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_10_voltage", - "name": "Module 1 Cell 10 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_11_voltage", - "name": "Module 1 Cell 11 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_12_voltage", - "name": "Module 1 Cell 12 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_13_voltage", - "name": "Module 1 Cell 13 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_14_voltage", - "name": "Module 1 Cell 14 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_15_voltage", - "name": "Module 1 Cell 15 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_16_voltage", - "name": "Module 1 Cell 16 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_17_voltage", - "name": "Module 1 Cell 17 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_18_voltage", - "name": "Module 1 Cell 18 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_19_voltage", - "name": "Module 1 Cell 19 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_20_voltage", - "name": "Module 1 Cell 20 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_21_voltage", - "name": "Module 1 Cell 21 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_22_voltage", - "name": "Module 1 Cell 22 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_23_voltage", - "name": "Module 1 Cell 23 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_24_voltage", - "name": "Module 1 Cell 24 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_25_voltage", - "name": "Module 1 Cell 25 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_26_voltage", - "name": "Module 1 Cell 26 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_27_voltage", - "name": "Module 1 Cell 27 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_28_voltage", - "name": "Module 1 Cell 28 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_29_voltage", - "name": "Module 1 Cell 29 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_30_voltage", - "name": "Module 1 Cell 30 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_31_voltage", - "name": "Module 1 Cell 31 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_32_voltage", - "name": "Module 1 Cell 32 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_33_voltage", - "name": "Module 1 Cell 33 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_34_voltage", - "name": "Module 1 Cell 34 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_35_voltage", - "name": "Module 1 Cell 35 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_36_voltage", - "name": "Module 1 Cell 36 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_37_voltage", - "name": "Module 1 Cell 37 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_38_voltage", - "name": "Module 1 Cell 38 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_39_voltage", - "name": "Module 1 Cell 39 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_40_voltage", - "name": "Module 1 Cell 40 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_41_voltage", - "name": "Module 1 Cell 41 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_42_voltage", - "name": "Module 1 Cell 42 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_43_voltage", - "name": "Module 1 Cell 43 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_44_voltage", - "name": "Module 1 Cell 44 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_45_voltage", - "name": "Module 1 Cell 45 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_46_voltage", - "name": "Module 1 Cell 46 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_47_voltage", - "name": "Module 1 Cell 47 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_1_cell_48_voltage", - "name": "Module 1 Cell 48 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_1_voltage", - "name": "Module 2 Cell 1 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_2_voltage", - "name": "Module 2 Cell 2 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_3_voltage", - "name": "Module 2 Cell 3 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_4_voltage", - "name": "Module 2 Cell 4 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_5_voltage", - "name": "Module 2 Cell 5 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_6_voltage", - "name": "Module 2 Cell 6 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_7_voltage", - "name": "Module 2 Cell 7 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_8_voltage", - "name": "Module 2 Cell 8 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_9_voltage", - "name": "Module 2 Cell 9 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_10_voltage", - "name": "Module 2 Cell 10 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_11_voltage", - "name": "Module 2 Cell 11 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_12_voltage", - "name": "Module 2 Cell 12 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_13_voltage", - "name": "Module 2 Cell 13 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_14_voltage", - "name": "Module 2 Cell 14 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_15_voltage", - "name": "Module 2 Cell 15 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_16_voltage", - "name": "Module 2 Cell 16 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_17_voltage", - "name": "Module 2 Cell 17 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_18_voltage", - "name": "Module 2 Cell 18 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_19_voltage", - "name": "Module 2 Cell 19 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_20_voltage", - "name": "Module 2 Cell 20 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_21_voltage", - "name": "Module 2 Cell 21 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_22_voltage", - "name": "Module 2 Cell 22 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_23_voltage", - "name": "Module 2 Cell 23 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_24_voltage", - "name": "Module 2 Cell 24 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_25_voltage", - "name": "Module 2 Cell 25 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_26_voltage", - "name": "Module 2 Cell 26 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_27_voltage", - "name": "Module 2 Cell 27 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_28_voltage", - "name": "Module 2 Cell 28 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_29_voltage", - "name": "Module 2 Cell 29 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_30_voltage", - "name": "Module 2 Cell 30 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_31_voltage", - "name": "Module 2 Cell 31 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_32_voltage", - "name": "Module 2 Cell 32 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_33_voltage", - "name": "Module 2 Cell 33 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_34_voltage", - "name": "Module 2 Cell 34 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_35_voltage", - "name": "Module 2 Cell 35 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_36_voltage", - "name": "Module 2 Cell 36 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_37_voltage", - "name": "Module 2 Cell 37 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_38_voltage", - "name": "Module 2 Cell 38 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_39_voltage", - "name": "Module 2 Cell 39 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_40_voltage", - "name": "Module 2 Cell 40 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_41_voltage", - "name": "Module 2 Cell 41 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_42_voltage", - "name": "Module 2 Cell 42 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_43_voltage", - "name": "Module 2 Cell 43 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_44_voltage", - "name": "Module 2 Cell 44 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_45_voltage", - "name": "Module 2 Cell 45 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_46_voltage", - "name": "Module 2 Cell 46 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_47_voltage", - "name": "Module 2 Cell 47 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_2_cell_48_voltage", - "name": "Module 2 Cell 48 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_1_voltage", - "name": "Module 3 Cell 1 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_2_voltage", - "name": "Module 3 Cell 2 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_3_voltage", - "name": "Module 3 Cell 3 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_4_voltage", - "name": "Module 3 Cell 4 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_5_voltage", - "name": "Module 3 Cell 5 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_6_voltage", - "name": "Module 3 Cell 6 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_7_voltage", - "name": "Module 3 Cell 7 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_8_voltage", - "name": "Module 3 Cell 8 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_9_voltage", - "name": "Module 3 Cell 9 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_10_voltage", - "name": "Module 3 Cell 10 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_11_voltage", - "name": "Module 3 Cell 11 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_12_voltage", - "name": "Module 3 Cell 12 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_13_voltage", - "name": "Module 3 Cell 13 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_14_voltage", - "name": "Module 3 Cell 14 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_15_voltage", - "name": "Module 3 Cell 15 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_16_voltage", - "name": "Module 3 Cell 16 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_17_voltage", - "name": "Module 3 Cell 17 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_18_voltage", - "name": "Module 3 Cell 18 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_19_voltage", - "name": "Module 3 Cell 19 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_20_voltage", - "name": "Module 3 Cell 20 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_21_voltage", - "name": "Module 3 Cell 21 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_22_voltage", - "name": "Module 3 Cell 22 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_23_voltage", - "name": "Module 3 Cell 23 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_24_voltage", - "name": "Module 3 Cell 24 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_25_voltage", - "name": "Module 3 Cell 25 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_26_voltage", - "name": "Module 3 Cell 26 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_27_voltage", - "name": "Module 3 Cell 27 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_28_voltage", - "name": "Module 3 Cell 28 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_29_voltage", - "name": "Module 3 Cell 29 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_30_voltage", - "name": "Module 3 Cell 30 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_31_voltage", - "name": "Module 3 Cell 31 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_32_voltage", - "name": "Module 3 Cell 32 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_33_voltage", - "name": "Module 3 Cell 33 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_34_voltage", - "name": "Module 3 Cell 34 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_35_voltage", - "name": "Module 3 Cell 35 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_36_voltage", - "name": "Module 3 Cell 36 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_37_voltage", - "name": "Module 3 Cell 37 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_38_voltage", - "name": "Module 3 Cell 38 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_39_voltage", - "name": "Module 3 Cell 39 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_40_voltage", - "name": "Module 3 Cell 40 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_41_voltage", - "name": "Module 3 Cell 41 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_42_voltage", - "name": "Module 3 Cell 42 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_43_voltage", - "name": "Module 3 Cell 43 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_44_voltage", - "name": "Module 3 Cell 44 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_45_voltage", - "name": "Module 3 Cell 45 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_46_voltage", - "name": "Module 3 Cell 46 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_47_voltage", - "name": "Module 3 Cell 47 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - }, - { - "id": "HVSCU-Cabinet_module_3_cell_48_voltage", - "name": "Module 3 Cell 48 Voltage", - "type": "float32", - "podUnits": "mV", - "displayUnits": "V", - "below": { - "safe": 2.78, - "warning": 3.1 - } - } -] \ No newline at end of file diff --git a/boards/HVSCU/HVSCU_measurements.json b/boards/HVSCU/HVSCU_measurements.json deleted file mode 100644 index a3c02c6..0000000 --- a/boards/HVSCU/HVSCU_measurements.json +++ /dev/null @@ -1,1504 +0,0 @@ -[ - { - "id": "battery1_SOC", - "name": "Battery 1 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery1_cell1", - "name": "Battery 1 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_cell2", - "name": "Battery 1 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_cell3", - "name": "Battery 1 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_cell4", - "name": "Battery 1 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_cell5", - "name": "Battery 1 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_cell6", - "name": "Battery 1 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_temperature1", - "name": "Battery 1 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery1_temperature2", - "name": "Battery 1 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery1_total_voltage", - "name": "Battery 1 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery1_conv_rate", - "name": "Battery 1 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery2_SOC", - "name": "Battery 2 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery2_cell1", - "name": "Battery 2 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_cell2", - "name": "Battery 2 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_cell3", - "name": "Battery 2 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_cell4", - "name": "Battery 2 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_cell5", - "name": "Battery 2 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_cell6", - "name": "Battery 2 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_temperature1", - "name": "Battery 2 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery2_temperature2", - "name": "Battery 2 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery2_total_voltage", - "name": "Battery 2 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery2_conv_rate", - "name": "Battery 2 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery3_SOC", - "name": "Battery 3 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery3_cell1", - "name": "Battery 3 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_cell2", - "name": "Battery 3 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_cell3", - "name": "Battery 3 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_cell4", - "name": "Battery 3 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_cell5", - "name": "Battery 3 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_cell6", - "name": "Battery 3 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_temperature1", - "name": "Battery 3 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery3_temperature2", - "name": "Battery 3 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery3_total_voltage", - "name": "Battery 3 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery3_conv_rate", - "name": "Battery 3 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery4_SOC", - "name": "Battery 4 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery4_cell1", - "name": "Battery 4 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_cell2", - "name": "Battery 4 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_cell3", - "name": "Battery 4 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_cell4", - "name": "Battery 4 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_cell5", - "name": "Battery 4 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_cell6", - "name": "Battery 4 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_temperature1", - "name": "Battery 4 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery4_temperature2", - "name": "Battery 4 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery4_total_voltage", - "name": "Battery 4 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery4_conv_rate", - "name": "Battery 4 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery5_SOC", - "name": "Battery 5 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery5_cell1", - "name": "Battery 5 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_cell2", - "name": "Battery 5 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_cell3", - "name": "Battery 5 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_cell4", - "name": "Battery 5 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_cell5", - "name": "Battery 5 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_cell6", - "name": "Battery 5 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_temperature1", - "name": "Battery 5 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery5_temperature2", - "name": "Battery 5 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery5_total_voltage", - "name": "Battery 5 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery5_conv_rate", - "name": "Battery 5 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery6_SOC", - "name": "Battery 6 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery6_cell1", - "name": "Battery 6 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_cell2", - "name": "Battery 6 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_cell3", - "name": "Battery 6 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_cell4", - "name": "Battery 6 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_cell5", - "name": "Battery 6 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_cell6", - "name": "Battery 6 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_temperature1", - "name": "Battery 6 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery6_temperature2", - "name": "Battery 6 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery6_total_voltage", - "name": "Battery 6 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery6_conv_rate", - "name": "Battery 6 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery7_SOC", - "name": "Battery 7 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery7_cell1", - "name": "Battery 7 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_cell2", - "name": "Battery 7 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_cell3", - "name": "Battery 7 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_cell4", - "name": "Battery 7 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_cell5", - "name": "Battery 7 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_cell6", - "name": "Battery 7 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_temperature1", - "name": "Battery 7 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery7_temperature2", - "name": "Battery 7 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery7_total_voltage", - "name": "Battery 7 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery7_conv_rate", - "name": "Battery 7 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery8_SOC", - "name": "Battery 8 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery8_cell1", - "name": "Battery 8 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_cell2", - "name": "Battery 8 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_cell3", - "name": "Battery 8 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_cell4", - "name": "Battery 8 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_cell5", - "name": "Battery 8 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_cell6", - "name": "Battery 8 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_temperature1", - "name": "Battery 8 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery8_temperature2", - "name": "Battery 8 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery8_total_voltage", - "name": "Battery 8 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery8_conv_rate", - "name": "Battery 8 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery9_SOC", - "name": "Battery 9 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery9_cell1", - "name": "Battery 9 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_cell2", - "name": "Battery 9 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_cell3", - "name": "Battery 9 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_cell4", - "name": "Battery 9 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_cell5", - "name": "Battery 9 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_cell6", - "name": "Battery 9 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_temperature1", - "name": "Battery 9 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery9_temperature2", - "name": "Battery 9 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery9_total_voltage", - "name": "Battery 9 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery9_conv_rate", - "name": "Battery 9 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery10_SOC", - "name": "Battery 10 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery10_cell1", - "name": "Battery 10 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_cell2", - "name": "Battery 10 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_cell3", - "name": "Battery 10 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_cell4", - "name": "Battery 10 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_cell5", - "name": "Battery 10 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_cell6", - "name": "Battery 10 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_temperature1", - "name": "Battery 10 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery10_temperature2", - "name": "Battery 10 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery10_total_voltage", - "name": "Battery 10 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery10_conv_rate", - "name": "Battery 10 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery11_SOC", - "name": "Battery 11 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery11_cell1", - "name": "Battery 11 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_cell2", - "name": "Battery 11 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_cell3", - "name": "Battery 11 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_cell4", - "name": "Battery 11 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_cell5", - "name": "Battery 11 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_cell6", - "name": "Battery 11 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_temperature1", - "name": "Battery 11 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery11_temperature2", - "name": "Battery 11 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery11_total_voltage", - "name": "Battery 11 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery11_conv_rate", - "name": "Battery 11 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery12_SOC", - "name": "Battery 12 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery12_cell1", - "name": "Battery 12 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_cell2", - "name": "Battery 12 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_cell3", - "name": "Battery 12 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_cell4", - "name": "Battery 12 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_cell5", - "name": "Battery 12 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_cell6", - "name": "Battery 12 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_temperature1", - "name": "Battery 12 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery12_temperature2", - "name": "Battery 12 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery12_total_voltage", - "name": "Battery 12 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery12_conv_rate", - "name": "Battery 12 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery13_SOC", - "name": "Battery 13 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery13_cell1", - "name": "Battery 13 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_cell2", - "name": "Battery 13 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_cell3", - "name": "Battery 13 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_cell4", - "name": "Battery 13 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_cell5", - "name": "Battery 13 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_cell6", - "name": "Battery 13 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_temperature1", - "name": "Battery 13 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery13_temperature2", - "name": "Battery 13 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery13_total_voltage", - "name": "Battery 13 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery13_conv_rate", - "name": "Battery 13 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery14_SOC", - "name": "Battery 14 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery14_cell1", - "name": "Battery 14 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_cell2", - "name": "Battery 14 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_cell3", - "name": "Battery 14 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_cell4", - "name": "Battery 14 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_cell5", - "name": "Battery 14 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_cell6", - "name": "Battery 14 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_temperature1", - "name": "Battery 14 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery14_temperature2", - "name": "Battery 14 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery14_total_voltage", - "name": "Battery 14 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery14_conv_rate", - "name": "Battery 14 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery15_SOC", - "name": "Battery 15 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery15_cell1", - "name": "Battery 15 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_cell2", - "name": "Battery 15 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_cell3", - "name": "Battery 15 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_cell4", - "name": "Battery 15 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_cell5", - "name": "Battery 15 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_cell6", - "name": "Battery 15 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_temperature1", - "name": "Battery 15 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery15_temperature2", - "name": "Battery 15 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery15_total_voltage", - "name": "Battery 15 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery15_conv_rate", - "name": "Battery 15 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery16_SOC", - "name": "Battery 16 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery16_cell1", - "name": "Battery 16 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_cell2", - "name": "Battery 16 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_cell3", - "name": "Battery 16 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_cell4", - "name": "Battery 16 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_cell5", - "name": "Battery 16 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_cell6", - "name": "Battery 16 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_temperature1", - "name": "Battery 16 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery16_temperature2", - "name": "Battery 16 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery16_total_voltage", - "name": "Battery 16 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery16_conv_rate", - "name": "Battery 16 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery17_SOC", - "name": "Battery 17 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery17_cell1", - "name": "Battery 17 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_cell2", - "name": "Battery 17 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_cell3", - "name": "Battery 17 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_cell4", - "name": "Battery 17 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_cell5", - "name": "Battery 17 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_cell6", - "name": "Battery 17 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_temperature1", - "name": "Battery 17 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery17_temperature2", - "name": "Battery 17 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery17_total_voltage", - "name": "Battery 17 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery17_conv_rate", - "name": "Battery 17 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "battery18_SOC", - "name": "Battery 18 SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "battery18_cell1", - "name": "Battery 18 Cell 1", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_cell2", - "name": "Battery 18 Cell 2", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_cell3", - "name": "Battery 18 Cell 3", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_cell4", - "name": "Battery 18 Cell 4", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_cell5", - "name": "Battery 18 Cell 5", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_cell6", - "name": "Battery 18 Cell 6", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_temperature1", - "name": "Battery 18 Temperature 1", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery18_temperature2", - "name": "Battery 18 Temperature 2", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "battery18_total_voltage", - "name": "Battery 18 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "battery18_conv_rate", - "name": "Battery 18 Conversion rate", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "batteries_voltage_reading", - "name": "Batteries voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "voltage_reading", - "name": "Voltage sensor", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "safeRange": [ - 0.0, - 430.0 - ] - }, - { - "id": "current_reading", - "name": "Current sensor", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -15.0, - 85.0 - ] - }, - { - "id": "general_state_machine_status", - "name": "General State Machine status", - "type": "enum", - "enumValues": [ - "CONNECTING", - "OPERATIONAL", - "FAULT" - ] - }, - { - "id": "operational_state_machine_status", - "name": "Operational State Machine status", - "type": "enum", - "enumValues": [ - "HV OPEN", - "PRECHARGE", - "HV CLOSED", - "CHARGING" - ] - }, - { - "id": "driver_reading_period", - "name": "BMS reading period", - "type": "int32" - }, - { - "id": "imd_status", - "name": "IMD Status", - "type": "enum", - "enumValues": [ - "SHORTCIRCUIT", - "NORMAL", - "UNDERVOLTAGE", - "FAST_EVAL", - "EQUIPMENT_FAULT", - "GROUNDING_FAULT" - ] - }, - { - "id": "imd_resistance", - "name": "IMD Resistance", - "type": "float32", - "podUnits": "Ohm", - "displayUnits": "MOhm", - "warningRange": [ - 0.0, - 0.1 - ] - }, - { - "id": "imd_is_ok", - "name": "IMD OK", - "type": "bool" - }, - { - "id": "sdc_status", - "name": "SDC Status", - "type": "enum", - "enumValues": [ - "ENGAGED", - "DISENGAGED" - ] - }, - { - "id": "minimum_soc", - "name": "Minimum SOC", - "type": "float32", - "displayUnits": "%" - }, - { - "id": "bms_status", - "name": "BMS Status", - "type": "enum", - "enumValues": [ - "OK", - "FAULT" - ] - }, - { - "id": "voltage_min", - "name": "Minimum cell voltage", - "type": "float32", - "displayUnits": "V" - }, - { - "id": "voltage_max", - "name": "Maximum cell voltage", - "type": "float32", - "displayUnits": "V" - }, - { - "id": "temp_min", - "name": "Minimum temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - }, - { - "id": "temp_max", - "name": "Maximum temperature", - "type": "float32", - "podUnits": "ºC", - "displayUnits": "ºC" - } -] \ No newline at end of file diff --git a/boards/HVSCU/packets.json b/boards/HVSCU/packets.json deleted file mode 100644 index 2ac6151..0000000 --- a/boards/HVSCU/packets.json +++ /dev/null @@ -1,424 +0,0 @@ -[ - { - "id": 0, - "type": "data", - "name": "FAULT" - }, - { - "id": 910, - "type": "data", - "name": "battery_1", - "variables": [ - "battery1_SOC", - "battery1_cell1", - "battery1_cell2", - "battery1_cell3", - "battery1_cell4", - "battery1_cell5", - "battery1_cell6", - "battery1_temperature1", - "battery1_temperature2", - "battery1_total_voltage", - "battery1_conv_rate" - ] - }, - { - "id": 911, - "type": "data", - "name": "battery_2", - "variables": [ - "battery2_SOC", - "battery2_cell1", - "battery2_cell2", - "battery2_cell3", - "battery2_cell4", - "battery2_cell5", - "battery2_cell6", - "battery2_temperature1", - "battery2_temperature2", - "battery2_total_voltage", - "battery2_conv_rate" - ] - }, - { - "id": 912, - "type": "data", - "name": "battery_3", - "variables": [ - "battery3_SOC", - "battery3_cell1", - "battery3_cell2", - "battery3_cell3", - "battery3_cell4", - "battery3_cell5", - "battery3_cell6", - "battery3_temperature1", - "battery3_temperature2", - "battery3_total_voltage", - "battery3_conv_rate" - ] - }, - { - "id": 913, - "type": "data", - "name": "battery_4", - "variables": [ - "battery4_SOC", - "battery4_cell1", - "battery4_cell2", - "battery4_cell3", - "battery4_cell4", - "battery4_cell5", - "battery4_cell6", - "battery4_temperature1", - "battery4_temperature2", - "battery4_total_voltage", - "battery4_conv_rate" - ] - }, - { - "id": 914, - "type": "data", - "name": "battery_5", - "variables": [ - "battery5_SOC", - "battery5_cell1", - "battery5_cell2", - "battery5_cell3", - "battery5_cell4", - "battery5_cell5", - "battery5_cell6", - "battery5_temperature1", - "battery5_temperature2", - "battery5_total_voltage", - "battery5_conv_rate" - ] - }, - { - "id": 915, - "type": "data", - "name": "battery_6", - "variables": [ - "battery6_SOC", - "battery6_cell1", - "battery6_cell2", - "battery6_cell3", - "battery6_cell4", - "battery6_cell5", - "battery6_cell6", - "battery6_temperature1", - "battery6_temperature2", - "battery6_total_voltage", - "battery6_conv_rate" - ] - }, - { - "id": 916, - "type": "data", - "name": "battery_7", - "variables": [ - "battery7_SOC", - "battery7_cell1", - "battery7_cell2", - "battery7_cell3", - "battery7_cell4", - "battery7_cell5", - "battery7_cell6", - "battery7_temperature1", - "battery7_temperature2", - "battery7_total_voltage", - "battery7_conv_rate" - ] - }, - { - "id": 917, - "type": "data", - "name": "battery_8", - "variables": [ - "battery8_SOC", - "battery8_cell1", - "battery8_cell2", - "battery8_cell3", - "battery8_cell4", - "battery8_cell5", - "battery8_cell6", - "battery8_temperature1", - "battery8_temperature2", - "battery8_total_voltage", - "battery8_conv_rate" - ] - }, - { - "id": 918, - "type": "data", - "name": "battery_9", - "variables": [ - "battery9_SOC", - "battery9_cell1", - "battery9_cell2", - "battery9_cell3", - "battery9_cell4", - "battery9_cell5", - "battery9_cell6", - "battery9_temperature1", - "battery9_temperature2", - "battery9_total_voltage", - "battery9_conv_rate" - ] - }, - { - "id": 919, - "type": "data", - "name": "battery_10", - "variables": [ - "battery10_SOC", - "battery10_cell1", - "battery10_cell2", - "battery10_cell3", - "battery10_cell4", - "battery10_cell5", - "battery10_cell6", - "battery10_temperature1", - "battery10_temperature2", - "battery10_total_voltage", - "battery10_conv_rate" - ] - }, - { - "id": 920, - "type": "data", - "name": "battery_11", - "variables": [ - "battery11_SOC", - "battery11_cell1", - "battery11_cell2", - "battery11_cell3", - "battery11_cell4", - "battery11_cell5", - "battery11_cell6", - "battery11_temperature1", - "battery11_temperature2", - "battery11_total_voltage", - "battery11_conv_rate" - ] - }, - { - "id": 921, - "type": "data", - "name": "battery_12", - "variables": [ - "battery12_SOC", - "battery12_cell1", - "battery12_cell2", - "battery12_cell3", - "battery12_cell4", - "battery12_cell5", - "battery12_cell6", - "battery12_temperature1", - "battery12_temperature2", - "battery12_total_voltage", - "battery12_conv_rate" - ] - }, - { - "id": 922, - "type": "data", - "name": "battery_13", - "variables": [ - "battery13_SOC", - "battery13_cell1", - "battery13_cell2", - "battery13_cell3", - "battery13_cell4", - "battery13_cell5", - "battery13_cell6", - "battery13_temperature1", - "battery13_temperature2", - "battery13_total_voltage", - "battery13_conv_rate" - ] - }, - { - "id": 923, - "type": "data", - "name": "battery_14", - "variables": [ - "battery14_SOC", - "battery14_cell1", - "battery14_cell2", - "battery14_cell3", - "battery14_cell4", - "battery14_cell5", - "battery14_cell6", - "battery14_temperature1", - "battery14_temperature2", - "battery14_total_voltage", - "battery14_conv_rate" - ] - }, - { - "id": 924, - "type": "data", - "name": "battery_15", - "variables": [ - "battery15_SOC", - "battery15_cell1", - "battery15_cell2", - "battery15_cell3", - "battery15_cell4", - "battery15_cell5", - "battery15_cell6", - "battery15_temperature1", - "battery15_temperature2", - "battery15_total_voltage", - "battery15_conv_rate" - ] - }, - { - "id": 925, - "type": "data", - "name": "battery_16", - "variables": [ - "battery16_SOC", - "battery16_cell1", - "battery16_cell2", - "battery16_cell3", - "battery16_cell4", - "battery16_cell5", - "battery16_cell6", - "battery16_temperature1", - "battery16_temperature2", - "battery16_total_voltage", - "battery16_conv_rate" - ] - }, - { - "id": 926, - "type": "data", - "name": "battery_17", - "variables": [ - "battery17_SOC", - "battery17_cell1", - "battery17_cell2", - "battery17_cell3", - "battery17_cell4", - "battery17_cell5", - "battery17_cell6", - "battery17_temperature1", - "battery17_temperature2", - "battery17_total_voltage", - "battery17_conv_rate" - ] - }, - { - "id": 927, - "type": "data", - "name": "battery_18", - "variables": [ - "battery18_SOC", - "battery18_cell1", - "battery18_cell2", - "battery18_cell3", - "battery18_cell4", - "battery18_cell5", - "battery18_cell6", - "battery18_temperature1", - "battery18_temperature2", - "battery18_total_voltage", - "battery18_conv_rate" - ] - }, - { - "id": 928, - "type": "data", - "name": "batteries_voltage", - "variables": [ - "batteries_voltage_reading" - ] - }, - { - "id": 930, - "type": "data", - "name": "voltage_sensor", - "variables": [ - "voltage_reading" - ] - }, - { - "id": 931, - "name": "current_sensor", - "type": "data", - "variables": [ - "current_reading" - ] - }, - { - "id": 940, - "name": "general_state_machine", - "type": "data", - "variables": [ - "general_state_machine_status" - ] - }, - { - "id": 941, - "name": "operational_state_machine", - "type": "data", - "variables": [ - "operational_state_machine_status" - ] - }, - { - "id": 942, - "name": "driver_diagnosis", - "type": "data", - "variables": [ - "driver_reading_period" - ] - }, - { - "id": 943, - "name": "imd", - "type": "data", - "variables": [ - "imd_status", - "imd_resistance", - "imd_is_ok" - ] - }, - { - "id": 944, - "name": "sdc", - "type": "data", - "variables": [ - "sdc_status" - ] - }, - { - "id": 945, - "name": "minimum_soc", - "type": "data", - "variables": [ - "minimum_soc" - ] - }, - { - "id": 946, - "name": "bms", - "type": "data", - "variables": [ - "bms_status" - ] - }, - { - "id": 947, - "name": "batteries_data", - "type": "data", - "variables": [ - "voltage_min", - "voltage_max", - "temp_min", - "temp_max" - ] - } -] \ No newline at end of file diff --git a/boards/LCU/LCU.json b/boards/LCU/LCU.json index c7332f8..41de0b0 100644 --- a/boards/LCU/LCU.json +++ b/boards/LCU/LCU.json @@ -1,11 +1,14 @@ { - "board_id": 4, - "board_ip": "192.168.1.4", - "measurements": [ - "LCU_measurements.json" - ], - "packets": [ - "packets.json", - "orders.json" - ] -} \ No newline at end of file + "board_id": 4, + "board_ip": "192.168.1.4", + "measurements": [ + "LCU_measurements.json" + ], + "packets": [ + "packets.json", + "orders.json" + ], + "sockets": [ + "sockets.json" + ] +} diff --git a/boards/LCU/LCU_measurements.json b/boards/LCU/LCU_measurements.json index db587f4..28747b5 100644 --- a/boards/LCU/LCU_measurements.json +++ b/boards/LCU/LCU_measurements.json @@ -1,806 +1,262 @@ [ - { - "id": "ldu_id", - "name": "LDU Id", - "type": "uint8" - }, - { - "id": "pwm_duty_cycle", - "name": "Duty Cycle", - "type": "float32", - "podUnits": "%", - "displayUnits": "%", - "safeRange": [ - 0.0, - 100.0 - ], - "warningRange": [ - 0.0, - 100.0 - ] - }, - { - "id": "lcu_desired_current", - "name": "Desired current to set", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -40.0, - 40.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "ldu_buffer_id", - "name": "LDU Buffer ID", - "type": "uint8" - }, - { - "id": "lcu_coil_current_1", - "name": "Current on LDU 1 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_2", - "name": "Current on LDU 2 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_3", - "name": "Current on LDU 3 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_4", - "name": "Current on LDU 4 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_5", - "name": "Current on LDU 5 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_6", - "name": "Current on LDU 6 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_7", - "name": "Current on LDU 7 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_8", - "name": "Current on LDU 8 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_9", - "name": "Current on LDU 9 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "lcu_coil_current_10", - "name": "Current on LDU 10 coil", - "type": "float32", - "podUnits": "A", - "displayUnits": "A", - "safeRange": [ - -55.0, - 55.0 - ], - "warningRange": [ - -40.0, - 40.0 - ] - }, - { - "id": "fixed_vbat", - "name": "fixed_vbat_0", - "type": "float32", - "podUnits": "V", - "displayUnits": "V", - "safeRange": [ - 250.0, - 450.0 - ], - "warningRange": [ - 300.0, - 450.0 - ] - }, - { - "id": "lcu_vbat_1", - "name": "LPU 1 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_2", - "name": "LPU 2 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_3", - "name": "LPU 3 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_4", - "name": "LPU 4 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_5", - "name": "LPU 5 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_6", - "name": "LPU 6 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_7", - "name": "LPU 7 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_8", - "name": "LPU 8 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_9", - "name": "LPU 9 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_vbat_10", - "name": "LPU 10 Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "lcu_airgap_1", - "name": "Airgap 1", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_2", - "name": "Airgap 2", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_3", - "name": "Airgap 3", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_4", - "name": "Airgap 4", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_5", - "name": "Airgap 5", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_6", - "name": "Airgap 6", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_7", - "name": "Airgap 7", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "lcu_airgap_8", - "name": "Airgap 8", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_control_y", - "name": "Dist_Control_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_control_z", - "name": "Dist_Control_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_control_x", - "name": "Rot_Control_x", - "type": "float32", - "podUnits": "deg", - "displayUnits": "deg" - }, - { - "id": "rot_control_y", - "name": "Rot_Control_y", - "type": "float32", - "podUnits": "deg", - "displayUnits": "deg" - }, - { - "id": "rot_control_z", - "name": "Rot_Control_z", - "type": "float32", - "podUnits": "deg", - "displayUnits": "deg" - }, - { - "id": "lcu_desired_distance", - "name": "desired distance (mm)", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "current_control_frequency", - "name": "current control frequency", - "type": "uint32", - "podUnits": "Hz", - "displayUnits": "Hz" - }, - { - "id": "general_state", - "name": "master state", - "type": "enum", - "enumValues": [ - "DEFINING", - "CONNECTING", - "OPERATIONAL", - "FAULT" - ] - }, - { - "id": "vertical_state", - "name": "vertical state", - "type": "enum", - "enumValues": [ - "IDLE", - "CONTROL_CURRENT", - "CONTROL_1DOF", - "CONTROL_3DOF", - "STICK_DOWN" - ] - }, - { - "id": "horizontal_state", - "name": "horizontal state", - "type": "enum", - "enumValues": [ - "NORMAL", - "BOOSTER" - ] - }, - { - "id": "lcu_coil_current_ref_1", - "name": "Ref on LDU 1", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_2", - "name": "Ref on LDU 2", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_3", - "name": "Ref on LDU 3", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_4", - "name": "Ref on LDU 4", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_5", - "name": "Ref on LDU 5", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_6", - "name": "Ref on LDU 6", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_7", - "name": "Ref on LDU 7", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_8", - "name": "Ref on LDU 8", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_9", - "name": "Ref on LDU 9", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_ref_10", - "name": "Ref on LDU 10", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_1", - "name": "exit on LDU 1", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_2", - "name": "exit on LDU 2", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_3", - "name": "exit on LDU 3", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_4", - "name": "exit on LDU 4", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_5", - "name": "exit on LDU 5", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_6", - "name": "exit on LDU 6", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_7", - "name": "exit on LDU 7", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_8", - "name": "exit on LDU 8", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_9", - "name": "exit on LDU 9", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_coil_current_exit_10", - "name": "exit on LDU 10", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_1", - "name": "Ref Dis 1", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_2", - "name": "Ref Dis 2", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_3", - "name": "Ref Dis 3", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_4", - "name": "Ref Dis 4", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_5", - "name": "Ref Dis 5", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_6", - "name": "Ref Dis 6", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_7", - "name": "Ref Dis 7", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_ref_8", - "name": "Ref Dis 8", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_1", - "name": "exit Dis 1", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_2", - "name": "exit Dis 2", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_3", - "name": "exit Dis 3", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_4", - "name": "exit Dis 4", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_5", - "name": "exit Dis 5", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_6", - "name": "exit Dis 6", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_7", - "name": "exit Dis 7", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "lcu_dis_pos_exit_8", - "name": "exit Dis 8", - "type": "float32", - "podUnits": "A", - "displayUnits": "A" - }, - { - "id": "multi_current_1", - "name": "multi_current_1", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "multi_current_2", - "name": "multi_current_2", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "multi_current_3", - "name": "multi_current_3", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "multi_current_4", - "name": "multi_current_4", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "dist_error_z", - "name": "Dist_error_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_integral_error_z", - "name": "Dist_integral_error_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_derivate_error_z", - "name": "Dist_derivate_error_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_error_y", - "name": "Dist_error_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_integral_error_y", - "name": "Dist_integral_error_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "dist_derivate_error_y", - "name": "Dist_derivate_error_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_error_z", - "name": "Rot_error_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_integral_error_z", - "name": "Rot_integral_error_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_derivate_error_z", - "name": "Rot_derivate_error_z", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_error_y", - "name": "Rot_error_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_integral_error_y", - "name": "Rot_integral_error_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_derivate_error_y", - "name": "Rot_derivate_error_y", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_error_x", - "name": "Rot_error_x", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_integral_error_x", - "name": "Rot_integral_error_x", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "rot_derivate_error_x", - "name": "Rot_derivate_error_x", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - }, - { - "id": "distance", - "name": "Distance (mm)", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" - } -] \ No newline at end of file + { + "id": "master_state_machine", + "name": "Master SM", + "type": "enum", + "enumValues": [ + "Connecting", + "Idle", + "Levitating", + "Current Control", + "Debug", + "Fault" + ] + }, + { + "id": "slave_state_machine", + "name": "Slave SM", + "type": "enum", + "enumValues": [ + "SPI Connecting", + "Idle", + "Levitating", + "Current Control", + "Debug", + "Fault" + ] + }, + { + "id": "desired_current", + "name": "Desired Current", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "fixed_vbat", + "name": "Fixed VBAT", + "type": "float32", + "podUnits": "V", + "displayUnits": "V" + }, + { + "id": "desired_distance", + "name": "Desired Distance", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "lpu_id", + "name": "LPU ID", + "type": "uint32" + }, + { + "id": "fixed_pwm_duty_cycle", + "name": "Fixed PWM Duty Cycle", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_1", + "name": "Duty Cycle 1", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_2", + "name": "Duty Cycle 2", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_3", + "name": "Duty Cycle 3", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_4", + "name": "Duty Cycle 4", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_5", + "name": "Duty Cycle 5", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_6", + "name": "Duty Cycle 6", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_7", + "name": "Duty Cycle 7", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_8", + "name": "Duty Cycle 8", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_9", + "name": "Duty Cycle 9", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "pwm_duty_cycle_10", + "name": "Duty Cycle 10", + "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "coil_current_1", + "name": "Coil Current 1", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_2", + "name": "Coil Current 2", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_3", + "name": "Coil Current 3", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_4", + "name": "Coil Current 4", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_5", + "name": "Coil Current 5", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_6", + "name": "Coil Current 6", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_7", + "name": "Coil Current 7", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_8", + "name": "Coil Current 8", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_9", + "name": "Coil Current 9", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "coil_current_10", + "name": "Coil Current 10", + "type": "float32", + "podUnits": "A", + "displayUnits": "A" + }, + { + "id": "airgap_1", + "name": "Airgap 1", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_2", + "name": "Airgap 2", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_3", + "name": "Airgap 3", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_4", + "name": "Airgap 4", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_5", + "name": "Airgap 5", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_6", + "name": "Airgap 6", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_7", + "name": "Airgap 7", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "airgap_8", + "name": "Airgap 8", + "type": "float32", + "podUnits": "m", + "displayUnits": "mm" + }, + { + "id": "cinema_current", + "name": "Cinema Current", + "type": "float32" + } +] diff --git a/boards/LCU/orders.json b/boards/LCU/orders.json index 75e8e6c..8f5e27a 100644 --- a/boards/LCU/orders.json +++ b/boards/LCU/orders.json @@ -1,121 +1,126 @@ [ - { - "type": "order", - "name": "set_LDU_pwm_params", - "variables": [ - "ldu_id", - "pwm_duty_cycle", - "current_control_frequency" - ], - "id": 9999 - }, - { - "type": "order", - "name": "send_LDU_dis", - "variables": [ - "ldu_buffer_id" - ], - "id": 9996 - }, - { - "type": "order", - "name": "set_current_desired", - "variables": [ - "ldu_id", - "lcu_desired_current" - ], - "id": 9995 - }, - { - "type": "order", - "name": "start_control", - "variables": [ - "ldu_id", - "lcu_desired_distance" - ], - "id": 9994 - }, - { - "type": "order", - "name": "stop_control", - "variables": [], - "id": 9993 - }, - { - "type": "order", - "name": "stop_pwm", - "variables": [ - "ldu_id" - ], - "id": 9991 - }, - { - "type": "order", - "name": "start_pwm", - "variables": [ - "ldu_id" - ], - "id": 9992 - }, - { - "type": "order", - "name": "set_fixed_vbat", - "variables": [ - "fixed_vbat" - ], - "id": 9990 - }, - { - "type": "order", - "name": "start_3dof", - "variables": [ - "lcu_desired_distance" - ], - "id": 9989 - }, - { - "type": "order", - "name": "start_booster", - "variables": [], - "id": 1751 - }, - { - "type": "order", - "name": "exit_booster", - "variables": [], - "id": 1750 - }, - { - "type": "order", - "name": "stick_down", - "variables": [], - "id": 9987 - }, - { - "type": "order", - "name": "start_5dof", - "variables": [ - "lcu_desired_distance" - ], - "id": 9988 - }, - { - "type": "order", - "name": "multi_current_order", - "variables": [ - "multi_current_1", - "multi_current_2", - "multi_current_3", - "multi_current_4" - ], - "id": 9986 - }, - { - "type": "order", - "name": "levitation_vcu", - "variables": [ - "distance" - ], - "id": 9998 - } -] \ No newline at end of file + { + "type": "order", + "name": "FAULT", + "variables": [], + "id": 0 + }, + { + "type": "order", + "name": "Stop", + "variables": [], + "id": 9000 + }, + { + "type": "order", + "name": "Set Fixed VBAT", + "variables": ["fixed_vbat"], + "id": 9001 + }, + { + "type": "order", + "name": "Unset Fixed VBAT", + "variables": [], + "id": 9002 + }, + { + "type": "order", + "name": "Levitate", + "variables": ["desired_distance"], + "id": 9010 + }, + { + "type": "order", + "name": "Levitate Ramp", + "variables": ["desired_distance"], + "id": 9011 + }, + { + "type": "order", + "name": "Set Desired Distance", + "variables": ["desired_distance"], + "id": 9012 + }, + { + "type": "order", + "name": "Set Desired Distance Ramp", + "variables": ["desired_distance"], + "id": 9013 + }, + { + "type": "order", + "name": "Stop Ramp", + "variables": [], + "id": 9014 + }, + { + "type": "order", + "name": "Current Control", + "variables": [ + "lpu_id", + "desired_current" + ], + "id": 9020 + }, + { + "type": "order", + "name": "All Current Control", + "variables": ["desired_current"], + "id": 9021 + }, + { + "type": "order", + "name": "Stop Current Control", + "variables": [ + "lpu_id" + ], + "id": 9022 + }, + { + "type": "order", + "name": "PWM", + "variables": [ + "lpu_id", + "fixed_pwm_duty_cycle" + ], + "id": 9030 + }, + { + "type": "order", + "name": "All PWM", + "variables": ["fixed_pwm_duty_cycle"], + "id": 9031 + }, + { + "type": "order", + "name": "Stop PWM", + "variables": [ + "lpu_id" + ], + "id": 9032 + }, + { + "type": "order", + "name": "Reset All", + "variables": [], + "id": 9100 + }, + { + "type": "order", + "name": "Reset Slave", + "variables": [], + "id": 9101 + }, + { + "type": "order", + "name": "Cinema", + "variables": ["cinema_current"], + "id": 9200 + }, + { + "type": "order", + "name": "Stop Cinema", + "variables": [], + "id": 9201 + } +] diff --git a/boards/LCU/packets.json b/boards/LCU/packets.json index c76ec96..50d1aec 100644 --- a/boards/LCU/packets.json +++ b/boards/LCU/packets.json @@ -1,113 +1,52 @@ [ - { - "type": "data", - "name": "lcu_coil_current", - "variables": [ - "general_state", - "vertical_state", - "horizontal_state", - "lcu_coil_current_1", - "lcu_coil_current_2", - "lcu_coil_current_3", - "lcu_coil_current_4", - "lcu_coil_current_5", - "lcu_coil_current_6", - "lcu_coil_current_7", - "lcu_coil_current_8", - "lcu_coil_current_9", - "lcu_coil_current_10", - "lcu_vbat_1", - "lcu_vbat_2", - "lcu_vbat_3", - "lcu_vbat_4", - "lcu_vbat_5", - "lcu_vbat_6", - "lcu_vbat_7", - "lcu_vbat_8", - "lcu_vbat_9", - "lcu_vbat_10", - "lcu_coil_current_ref_1", - "lcu_coil_current_ref_2", - "lcu_coil_current_ref_3", - "lcu_coil_current_ref_4", - "lcu_coil_current_ref_5", - "lcu_coil_current_ref_6", - "lcu_coil_current_ref_7", - "lcu_coil_current_ref_8", - "lcu_coil_current_ref_9", - "lcu_coil_current_ref_10", - "lcu_coil_current_exit_1", - "lcu_coil_current_exit_2", - "lcu_coil_current_exit_3", - "lcu_coil_current_exit_4", - "lcu_coil_current_exit_5", - "lcu_coil_current_exit_6", - "lcu_coil_current_exit_7", - "lcu_coil_current_exit_8", - "lcu_coil_current_exit_9", - "lcu_coil_current_exit_10", - "lcu_dis_pos_ref_1", - "lcu_dis_pos_ref_2", - "lcu_dis_pos_ref_3", - "lcu_dis_pos_ref_4", - "lcu_dis_pos_ref_5", - "lcu_dis_pos_ref_6", - "lcu_dis_pos_ref_7", - "lcu_dis_pos_ref_8", - "lcu_dis_pos_exit_1", - "lcu_dis_pos_exit_2", - "lcu_dis_pos_exit_3", - "lcu_dis_pos_exit_4", - "lcu_dis_pos_exit_5", - "lcu_dis_pos_exit_6", - "lcu_dis_pos_exit_7", - "lcu_dis_pos_exit_8" - ], - "id": 320 - }, - { - "type": "data", - "name": "lcu_airgap", - "variables": [ - "lcu_airgap_1", - "lcu_airgap_2", - "lcu_airgap_3", - "lcu_airgap_4", - "lcu_airgap_5", - "lcu_airgap_6", - "lcu_airgap_7", - "lcu_airgap_8", - "dist_control_y", - "dist_control_z", - "rot_control_x", - "rot_control_y", - "rot_control_z", - "dist_error_y", - "dist_integral_error_y", - "dist_derivate_error_y", - "dist_error_z", - "dist_integral_error_z", - "dist_derivate_error_z", - "rot_error_x", - "rot_integral_error_x", - "rot_derivate_error_x", - "rot_error_y", - "rot_integral_error_y", - "rot_derivate_error_y", - "rot_error_z", - "rot_integral_error_z", - "rot_derivate_error_z" - ], - "id": 318 - }, - - { - "type": "data", - "name": "OperationalState", - "variables": [ - "vertical_state", - "horizontal_state" - ], - "id": 63 - } -] \ No newline at end of file + { + "type": "data", + "name": "LPU PWM Duties", + "variables": ["pwm_duty_cycle_1", "pwm_duty_cycle_2", "pwm_duty_cycle_3", "pwm_duty_cycle_4", "pwm_duty_cycle_5", "pwm_duty_cycle_6", "pwm_duty_cycle_7", "pwm_duty_cycle_8", "pwm_duty_cycle_9", "pwm_duty_cycle_10"], + "id": 9500, + "period_type": "us", + "period": 500.0, + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "LPU Coil Currents", + "variables": ["coil_current_1", "coil_current_2", "coil_current_3", "coil_current_4", "coil_current_5", "coil_current_6", "coil_current_7", "coil_current_8", "coil_current_9", "coil_current_10"], + "id": 9501, + "period_type": "us", + "period": 500.0, + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "Airgaps", + "variables": ["airgap_1", "airgap_2", "airgap_3", "airgap_4", "airgap_5", "airgap_6", "airgap_7", "airgap_8"], + "id": 9502, + "period_type": "us", + "period": 500.0, + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "State Machine", + "variables": [ + "master_state_machine", + "slave_state_machine" + ], + "id": 9520, + "period_type": "us", + "period": 500.0, + "socket": "vcu_udp" + }, + { + "type": "data", + "name": "General State", + "variables": [ + + ], + "id": 9521, + "period_type": "us", + "period": 500.0, + "socket": "vcu_udp" + } +] diff --git a/boards/LCU/sockets.json b/boards/LCU/sockets.json new file mode 100644 index 0000000..6f49b6b --- /dev/null +++ b/boards/LCU/sockets.json @@ -0,0 +1,13 @@ +[ + { + "type": "ServerSocket", + "name": "vcu_tcp", + "port": 50500 + }, + { + "type": "DatagramSocket", + "name": "vcu_udp", + "remote_ip": "192.168.1.3", + "port": 50400 + } +] diff --git a/boards/PCU/PCU.json b/boards/PCU/PCU.json index 2024ea7..4476aa8 100644 --- a/boards/PCU/PCU.json +++ b/boards/PCU/PCU.json @@ -1,5 +1,5 @@ { - "board_id": 0, + "board_id": 5, "board_ip": "192.168.1.5", "measurements": [ "PCU_measurements.json" @@ -7,5 +7,8 @@ "packets": [ "packets.json", "orders.json" + ], + "sockets": [ + "sockets.json" ] } \ No newline at end of file diff --git a/boards/PCU/PCU_measurements.json b/boards/PCU/PCU_measurements.json index d238a00..a3094c7 100644 --- a/boards/PCU/PCU_measurements.json +++ b/boards/PCU/PCU_measurements.json @@ -8,7 +8,7 @@ }, { "id": "modulation_frequency", - "name": "Modulation frequency", + "name": "Modulation Frequency", "type": "float32", "podUnits": "Hz", "displayUnits": "Hz" @@ -35,17 +35,17 @@ "displayUnits": "%" }, { - "id": "Voltage_Battery_A", + "id": "voltage_battery_a", "name": "Voltage Battery A", "type": "float32" }, { - "id": "Voltage_Battery_B", + "id": "voltage_battery_b", "name": "Voltage Battery B", "type": "float32" }, { - "id": "V_Ref", + "id": "v_ref", "name": "Reference Voltage", "type": "float32" }, @@ -57,77 +57,67 @@ "displayUnits": "Hz" }, { - "id": "frequency_to_send_PWM", - "name": "Frequency Commutation hz", + "id": "frequency_to_send_pwm", + "name": "Frequency Commutation hz", "type": "float32", "podUnits": "Hz", "displayUnits": "Hz" }, { "id": "current_sensor_u_a", - "name": "Current sensor U connector A", + "name": "Current Sensor U Connector A", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { "id": "current_sensor_u_b", - "name": "Current sensor U connector B", + "name": "Current Sensor U Connector B", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { "id": "current_sensor_v_a", - "name": "Current sensor V connector A", + "name": "Current Sensor V Connector A", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { "id": "current_sensor_v_b", - "name": "Current sensor V connector B", + "name": "Current Sensor V Connector B", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { "id": "current_sensor_w_a", - "name": "Current sensor W connector A", + "name": "Current Sensor W Connector A", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { "id": "current_sensor_w_b", - "name": "Current sensor W connector B", + "name": "Current Sensor W Connector B", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { - "id": "general_state_machine", - "name": "General State Machine", + "id": "state", + "name": "State", "type": "enum", "enumValues": [ "Connecting", - "Operational", - "Fault" - ] - }, - { - "id": "operational_state_machine", - "name": "Operational state machine", - "type": "enum", - "enumValues": [ - "IDLE", - "Braking", + "Idle", "Accelerating", - "Regenerative" + "Fault" ] }, { - "id": "Current_Ref", + "id": "current_ref", "name": "Current Ref", "type": "float32", "podUnits": "A", @@ -141,8 +131,8 @@ "displayUnits": "Hz" }, { - "id": "freq_to_send_PWM", - "name": "Frequency Commutation hz", + "id": "freq_to_send_pwm", + "name": "Frequency Commutation hz", "type": "float32", "podUnits": "Hz", "displayUnits": "Hz" @@ -150,81 +140,75 @@ { "id": "current_Peak", "name": "Max Current Peak", - "type": "float64", + "type": "float32", "podUnits": "A", "displayUnits": "A" }, { - "id": "Error_PI", + "id": "error_pi", "name": "Actual Current Error", - "type": "float64", + "type": "float32", "podUnits": "A", "displayUnits": "A" }, { - "id": "Target_Voltage", - "name": "Target Voltage", - "type": "float64", - "podUnits": "V", - "displayUnits": "V" + "id": "vf_control", + "name": "Variable frecuency control", + "type": "bool" }, { - "id": "VMax", - "name": "Max Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" + "id": "reverse", + "name": "Reverse mode", + "type": "bool" }, { - "id": "Speed_Ref", - "name": "Reference Speed", + "id": "slip_motor", + "name": "Slip Motor", "type": "float32", + "podUnits": "%", + "displayUnits": "%" + }, + { + "id": "imu_speed_km_h", + "name": "Speed IMU", + "type": "float64", "podUnits": "km/h", "displayUnits": "km/h" }, { - "id": "SVPWM_Time", - "name": "SVPWM Time", + "id": "imu_position_m", + "name": "IMU Position", "type": "float32", - "podUnits": "s", - "displayUnits": "s" - }, - { - "id": "encoder_position", - "name": "Position Encoder", - "type": "float64", "podUnits": "m", "displayUnits": "m" }, { - "id": "encoder_direction", - "name": "Direction Encoder", - "type": "enum", - "enumValues": [ - "Forward", - "Backward" - ] + "id": "target_voltage", + "name": "Target Voltage", + "type": "float32", + "podUnits": "V", + "displayUnits": "V" }, { - "id": "encoder_speed", - "name": "Speed Encoder", - "type": "float64", - "podUnits": "m/s", - "displayUnits": "m/s" + "id": "vmax", + "name": "Max Voltage", + "type": "float32", + "podUnits": "V", + "displayUnits": "V" }, { - "id": "encoder_speed_km_h", - "name": "Speed km/h", - "type": "float64", + "id": "speed_ref", + "name": "Reference Speed", + "type": "float32", "podUnits": "km/h", "displayUnits": "km/h" }, { - "id": "encoder_acceleration", - "name": "Acceleration Encoder", - "type": "float64", - "podUnits": "m/ss", - "displayUnits": "m/ss" + "id": "svpwm_time", + "name": "SVPWM Time", + "type": "float32", + "podUnits": "s", + "displayUnits": "s" }, { "id": "target_speed", @@ -235,7 +219,7 @@ }, { "id": "speed_error", - "name": "Speed error", + "name": "Speed Error", "type": "float64", "podUnits": "km/h", "displayUnits": "km/h" @@ -247,95 +231,15 @@ "podUnits": "A", "displayUnits": "A" }, - { - "id": "Speed_Control_State", - "name": "Control Current ref", - "type": "enum", - "enumValues": [ - "Cruise_Mode", - "Regenerate_Mode" - ] - }, - { - "id": "Direction_State", - "name": "Direction Motor", - "type": "enum", - "enumValues": [ - "Forward", - "Backward" - ] - }, { "id": "imod", - "name": "modulation_index", + "name": "Modulation Index", "type": "float32" }, - { - "id": "reed1", - "name": "reed_state", - "type": "enum", - "enumValues": [ - "Not_Braking", - "Braking" - ] - }, - { - "id": "reed2", - "name": "reed_state", - "type": "enum", - "enumValues": [ - "UNDEPLOYED", - "DEPLOYED" - ] - }, - { - "id": "reed3", - "name": "reed_state", - "type": "enum", - "enumValues": [ - "Not_Braking", - "Braking" - ] - }, - { - "id": "reed4", - "name": "reed_state", - "type": "enum", - "enumValues": [ - "Not_Braking", - "Braking" - ] - }, - { - "id": "space_vector_active", - "name": "Space Vector", - "type": "enum", - "enumValues": [ - "DISABLE", - "ACTIVE" - ] - }, - { - "id": "current_control_active", - "name": "Current Control", - "type": "enum", - "enumValues": [ - "DISABLE", - "ACTIVE" - ] - }, - { - "id": "speed_control_active", - "name": "Speed Control", - "type": "enum", - "enumValues": [ - "DISABLE", - "ACTIVE" - ] - }, + { "id": "gd_fault_a", - "name": "GateDriver_A_Fault", + "name": "GateDriver A Fault", "type": "bool", "podUnits": "", "displayUnits": "", @@ -350,7 +254,7 @@ }, { "id": "gd_fault_b", - "name": "GateDriver_B_Fault", + "name": "GateDriver B Fault", "type": "bool", "podUnits": "", "displayUnits": "", @@ -365,7 +269,7 @@ }, { "id": "gd_ready_a", - "name": "GateDriver_A_Ready", + "name": "GateDriver A Ready", "type": "bool", "podUnits": "", "displayUnits": "", @@ -380,7 +284,7 @@ }, { "id": "gd_ready_b", - "name": "GateDriver_B_Ready", + "name": "GateDriver B Ready", "type": "bool", "podUnits": "", "displayUnits": "", @@ -392,44 +296,5 @@ 0.0, 100.0 ] - }, - { - "id": "requested_speetec_emulation_mode", - "name": "Emulation Mode", - "type": "enum", - "enumValues": [ - "STOP", - "position", - "speed", - "acceleration" - ] - }, - { - "id": "requested_speetec_emulation_value", - "name": "Value (m | m/s | m/ss)", - "type": "float32", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "run_id", - "name": "Run Mode", - "type": "enum", - "enumValues": [ - "LIM + Booster", - "Booster", - "LIM", - "LIM (50KM/H)" - ] - }, - { - "id": "run_state", - "name": "Run State", - "type": "enum", - "enumValues": [ - "NOTHING", - "MOVING", - "BRAKING" - ] } ] \ No newline at end of file diff --git a/boards/PCU/orders.json b/boards/PCU/orders.json index fb16cc3..428ebe2 100644 --- a/boards/PCU/orders.json +++ b/boards/PCU/orders.json @@ -1,31 +1,37 @@ [ { "type": "order", - "name": "Start_SVPWM", + "name": "FAULT", + "variables": [], + "id": 0 + }, + { + "type": "order", + "name": "Start SVPWM", "variables": [ "frequency_to_send_svpwm", - "frequency_to_send_PWM", - "V_Ref", - "VMax", - "Direction_State" + "frequency_to_send_pwm", + "v_ref", + "vmax" ], "id": 507 }, { "type": "order", - "name": "Stop_Motor", + "name": "Stop Motor", "variables": [], "id": 508 }, { "type": "order", - "name": "Send_Reference_Current", + "name": "Send Reference Current", "variables": [ "freq_to_send_svpwm", - "freq_to_send_PWM", - "Current_Ref", - "VMax", - "Direction_State" + "freq_to_send_pwm", + "current_ref", + "vmax", + "vf_control", + "reverse" ], "id": 509 }, @@ -37,63 +43,13 @@ }, { "type": "order", - "name": "Send_Reference_Speed", + "name": "Send Reference Speed", "variables": [ - "Speed_Ref", - "freq_to_send_PWM", - "VMax", - "Direction_State" + "speed_ref", + "freq_to_send_pwm", + "vmax", + "reverse" ], "id": 511 - }, - { - "type": "order", - "name": "Start_Precharge", - "variables": [ - "freq_to_send_PWM" - ], - "id": 512 - }, - { - "type": "order", - "name": "Make_Complete_Run(Regenerative)", - "variables": [ - "Speed_Ref", - "freq_to_send_PWM", - "VMax", - "Direction_State" - ], - "id": 513 - }, - { - "type": "order", - "name": "Start_Regenerative_now", - "variables": [], - "id": 514 - }, - { - "type": "order", - "name": "Brake using Motor", - "variables": [ - "VMax" - ], - "id": 515 - }, - { - "type": "order", - "name": "Start Run", - "variables": [ - "run_id" - ], - "id": 516 - }, - { - "type": "order", - "name": "Emulated Speetec", - "variables": [ - "requested_speetec_emulation_mode", - "requested_speetec_emulation_value" - ], - "id": 517 } ] \ No newline at end of file diff --git a/boards/PCU/packets.json b/boards/PCU/packets.json index 4bf84e9..2fae0bc 100644 --- a/boards/PCU/packets.json +++ b/boards/PCU/packets.json @@ -1,7 +1,7 @@ [ { "type": "data", - "name": "pwm_packet", + "name": "PWM", "variables": [ "frequency", "modulation_frequency", @@ -9,20 +9,28 @@ "duty_v", "duty_w" ], - "id": 550 + "id": 550, + "period_type": "ms", + "period": 16.67, + "socket": "vcu_udp" }, + { "type": "data", - "name": "Batteries_Voltage", + "name": "Batteries Voltage", "variables": [ - "Voltage_Battery_A", - "Voltage_Battery_B" + "voltage_battery_a", + "voltage_battery_b" ], - "id": 551 + "id": 551, + "period_type": "ms", + "period": 16.67, + "socket": "vcu_udp" }, + { "type": "data", - "name": "Current_sensors", + "name": "Current Sensors", "variables": [ "current_sensor_u_a", "current_sensor_v_a", @@ -31,87 +39,60 @@ "current_sensor_v_b", "current_sensor_w_b", "current_Peak", - "Error_PI", - "Target_Voltage", - "SVPWM_Time", + "error_pi", + "target_voltage", + "svpwm_time", "imod" ], - "id": 552 - }, - { - "type": "data", - "name": "StateMachine_states", - "variables": [ - "general_state_machine", - "operational_state_machine", - "run_state", - "space_vector_active", - "current_control_active", - "speed_control_active" - ], - "id": 553 + "id": 552, + "period_type": "ms", + "period": 16.67, + "socket": "vcu_udp" }, + { "type": "data", - "name": "Encoder_data", + "name": "State Machine States", "variables": [ - "encoder_position", - "encoder_direction", - "encoder_speed", - "encoder_speed_km_h", - "encoder_acceleration" + "state" ], - "id": 554 + "id": 553, + "period_type": "ms", + "period": 16.67, + "socket": "vcu_udp" }, + { "type": "data", - "name": "Encoder_data", + "name": "Speed Data", "variables": [ "target_speed", "speed_error", - "actual_current_ref" - ], - "id": 555 - }, - { - "type": "data", - "name": "Control_State", - "variables": [ - "Direction_State", - "Speed_Control_State" + "actual_current_ref", + "slip_motor", + "imu_speed_km_h", + "imu_position_m" ], - "id": 556 - }, - { - "type": "data", - "name": "Reeds_State", - "variables": [ - "reed1", - "reed2", - "reed3", - "reed4" - ], - "id": 557 + "id": 555, + "period_type": "ms", + "period": 16.67, + "socket": "vcu_udp" }, + + { "type": "data", - "name": "GateDriverReporting", + "name": "Gate Driver Reporting", "variables": [ "gd_fault_a", "gd_fault_b", "gd_ready_a", "gd_ready_b" ], - "id": 558 - }, - - { - "type": "data", - "name": "OperationalState", - "variables": [ - "operational_state_machine" - ], - "id": 64 + "id": 558, + "period_type": "ms", + "period": 16.67, + "socket": "vcu_udp" } ] \ No newline at end of file diff --git a/boards/PCU/sockets.json b/boards/PCU/sockets.json new file mode 100644 index 0000000..6f49b6b --- /dev/null +++ b/boards/PCU/sockets.json @@ -0,0 +1,13 @@ +[ + { + "type": "ServerSocket", + "name": "vcu_tcp", + "port": 50500 + }, + { + "type": "DatagramSocket", + "name": "vcu_udp", + "remote_ip": "192.168.1.3", + "port": 50400 + } +] diff --git a/boards/VCU/VCU.json b/boards/VCU/VCU.json index 58b8546..4f4a339 100644 --- a/boards/VCU/VCU.json +++ b/boards/VCU/VCU.json @@ -1,5 +1,5 @@ { - "board_id": 11, + "board_id": 3, "board_ip": "192.168.1.3", "measurements": [ "VCU_measurements.json" diff --git a/boards/VCU/VCU_measurements.json b/boards/VCU/VCU_measurements.json index 54a6c05..a914e0c 100644 --- a/boards/VCU/VCU_measurements.json +++ b/boards/VCU/VCU_measurements.json @@ -1,260 +1,96 @@ [ { - "id": "duty", - "name": "Duty", - "type": "uint32", - "podUnits": "%", - "displayUnits": "%" - }, - { - "id": "pump", - "name": "Pump", - "type": "enum", - "enumValues": [ - "UNIDADES", - "PLACAS" - ] - }, - { - "id": "general_state", - "name": "General State", - "type": "enum", - "enumValues": [ - "CONNECTING", - "OPERATIONAL", - "FAULT" - ] - }, - { - "id": "operational_state", - "name": "Operational State", - "type": "enum", - "enumValues": [ - "IDLE", - "END_OF_RUN", - "ENERGIZED", - "READY", - "DEMONSTRATION", - "RECOVERY" - ] - }, - { - "id": "regulator_pressure", - "name": "Regulator Pressure", - "type": "float32", - "podUnits": "bar", - "displayUnits": "bar" - }, - { - "id": "regulator", - "name": "Regulator", - "type": "enum", - "enumValues": [ - "REGULATOR 1", - "REGULATOR 2" - ] - }, - { - "id": "reed1", - "name": "Reed 1", - "type": "enum", - "enumValues": [ - "UNDEPLOYED", - "DEPLOYED" - ] - }, - { - "id": "reed2", - "name": "Reed 2", - "type": "enum", - "enumValues": [ - "UNDEPLOYED", - "DEPLOYED" - ] - }, - { - "id": "reed3", - "name": "Reed 3", - "type": "enum", - "enumValues": [ - "UNDEPLOYED", - "DEPLOYED" - ] - }, - { - "id": "reed4", - "name": "Reed 4", - "type": "enum", - "enumValues": [ - "UNDEPLOYED", - "DEPLOYED" - ] - }, - { - "id": "all_reeds", - "name": "All Reeds", - "type": "bool", - "podUnits": "", - "displayUnits": "" - }, - { - "id": "flow1", - "name": "Flow 1", - "type": "enum", - "enumValues": [ - "OFF", - "ON" - ] - }, - { - "id": "flow2", - "name": "Flow 2", + "id": "state", + "name": "State", "type": "enum", "enumValues": [ - "OFF", - "ON" + "Idle", + "Connected", + "Maintenance", + "Precharging", + "HVActive", + "Ready", + "Propulsion", + "Static Levitation", + "Dynamic Levitation", + "Fault" ] }, { - "id": "regulator_1_pressure", - "name": "Regulator 1", - "type": "float32", - "podUnits": "bar", - "displayUnits": "bar" + "id": "sdc_closed", + "name": "SDC Closed", + "type": "bool" }, { - "id": "regulator_2_pressure", - "name": "Regulator 2", + "id": "high_pressure", + "name": "High Pressure", "type": "float32", "podUnits": "bar", "displayUnits": "bar" }, { - "id": "pressure_high", - "name": "Pressure High", + "id": "low_pressure", + "name": "Low Pressure", "type": "float32", "podUnits": "bar", "displayUnits": "bar" }, { - "id": "pressure_regulator", - "name": "Pressure Regulator", + "id": "pressure_regulator_feedback", + "name": "Pressure Regulator Feedback", "type": "float32", "podUnits": "bar", "displayUnits": "bar" }, { - "id": "pressure_brakes", - "name": "Pressure Brakes", - "type": "float32", - "podUnits": "bar", - "displayUnits": "bar" + "id": "active_brakes", + "name": "Active Brakes", + "type": "bool" }, { - "id": "pressure_capsule", - "name": "Pressure Capsule", - "type": "float32", - "podUnits": "bar", - "displayUnits": "bar" + "id": "brake_fault_detected", + "name": "Brake Fault Detected", + "type": "bool" }, { - "id": "tape_enable_output", - "name": "Tape Enable", - "type": "enum", - "enumValues": [ - "DISABLED", - "ENABLED" - ] + "id": "electrovalve_enabled", + "name": "Electrovalve Enabled", + "type": "bool" }, { - "id": "emergency_tape", - "name": "Section Type", - "type": "enum", - "enumValues": [ - "EMERGENCY_SECTION", - "NORMAL_SECTION" - ] + "id": "hvbms_connected", + "name": "HVBMS Connected", + "type": "bool" }, { - "id": "SDC", - "name": "SDC", - "type": "enum", - "enumValues": [ - "OFF", - "ON" - ] + "id": "pcu_connected", + "name": "PCU Connected", + "type": "bool" }, { - "id": "levitation_distance", - "name": "Levitation Distance (mm)", - "type": "float32", - "podUnits": "mm", - "displayUnits": "mm" + "id": "lcu_connected", + "name": "LCU Connected", + "type": "bool" }, { - "id": "run_id", - "name": "Run ID", - "type": "enum", - "enumValues": [ - "LIM" - ] - }, - { - "id": "motor_direction", - "name": "Motor Direction", - "type": "enum", - "enumValues": [ - "FORWARD", - "BACKWARDS" - ] - }, - { - "id": "max_voltage", - "name": "Max Voltage", - "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "reference_voltage", - "name": "Reference Voltage", + "id": "propulsion_target_speed", + "name": "Propulsion Target Speed", "type": "float32", - "podUnits": "V", - "displayUnits": "V" - }, - { - "id": "commutation_frequency", - "name": "Commutation Frequency", - "type": "float32", - "podUnits": "Hz", - "displayUnits": "Hz" - }, - { - "id": "modulation_frequency", - "name": "Modulation Frequency", - "type": "float32", - "podUnits": "Hz", - "displayUnits": "Hz" + "podUnits": "km/h", + "displayUnits": "km/h" }, { - "id": "reference_current", - "name": "Reference Current", + "id": "propulsion_max_current", + "name": "Propulsion Max Current", "type": "float32", "podUnits": "A", "displayUnits": "A" }, { - "id": "reference_speed", - "name": "Reference Speed", + "id": "levitation_target_height", + "name": "Levitation Target Height", "type": "float32", - "podUnits": "km/h", - "displayUnits": "km/h" - }, - { - "id": "state", - "name": "Recovery State", - "type": "uint8", - "podUnits": "", - "displayUnits": "" + "podUnits": "m", + "displayUnits": "mm" } -] \ No newline at end of file +] diff --git a/boards/VCU/orders.json b/boards/VCU/orders.json index d8945e8..185c83e 100644 --- a/boards/VCU/orders.json +++ b/boards/VCU/orders.json @@ -1,129 +1,79 @@ [ { - "type": "order", - "name": "Brake", - "id": 43 + "id": 0, + "name": "FAULT", + "type": "order" }, { - "type": "order", - "name": "Unbrake", - "id": 52 + "id": 30, + "name": "Stop", + "type": "order" }, { - "type": "order", - "name": "Potencia Refri", - "variables": [ - "duty", - "pump" - ], - "id": 33 + "id": 40, + "name": "Maintenance", + "type": "order" }, { - "type": "order", - "name": "Set Regulator", - "variables": [ - "regulator_pressure", - "regulator" - ], - "id": 34 - }, - { - "type": "order", - "name": "Enable Tapes", - "id": 35 - }, - { - "type": "order", - "name": "Disbable Tapes", - "id": 36 - }, - { - "type": "order", - "name": "Close Contactors", - "id": 44 + "id": 41, + "name": "Precharge", + "type": "order" }, { - "type": "order", + "id": 42, "name": "Open Contactors", - "id": 53 + "type": "order" }, { - "type": "order", - "name": "Levitation", - "variables" : [ - "levitation_distance" - ], - "id": 37 + "id": 50, + "name": "Unbrake", + "type": "order" }, { - "type": "order", - "name": "Stop Levitation", - "id": 46 + "id": 51, + "name": "Brake", + "type": "order" }, { - "type" : "order", - "name": "Emergency Stop", - "id": 55 + "id": 60, + "name": "Static Levitation", + "type": "order" }, { - "type": "order", + "id": 61, "name": "Propulsion", - "variables" : [ - "run_id" - ], - "id": 56 - }, - { - "type": "order", - "name": "SVPWM", - "variables" : [ - "modulation_frequency", - "commutation_frequency", - "max_voltage", - "reference_voltage", - "motor_direction" - ], - "id": 57 - }, - { - "type": "order", - "name": "Stop Motor", - "id": 58 + "type": "order" }, { - "type": "order", - "name": "Current Control", - "variables" : [ - - "modulation_frequency", - "commutation_frequency", - "reference_current", - "max_voltage", - "motor_direction" - - - ], - "id": 59 + "id": 62, + "name": "Dynamic Levitation", + "type": "order" }, { + "id": 100, + "name": "Propulsion Parameterized", "type": "order", - "name": "Speed Control", - "variables" : [ - "reference_speed", - "commutation_frequency", - "max_voltage", - "motor_direction" - ], - "id": 60 + "variables": [ + "propulsion_target_speed", + "propulsion_max_current" + ] }, { + "id": 101, + "name": "Static Levitation Parameterized", "type": "order", - "name": "Motor Brake", - "id": 61 + "variables": [ + "levitation_target_height" + ] }, { + "id": 102, + "name": "Dynamic Levitation Parameterized", "type": "order", - "name": "Recovery", - "id": 32 + "variables": [ + "propulsion_target_speed", + "propulsion_max_current", + "levitation_target_height" + ] } -] \ No newline at end of file +] diff --git a/boards/VCU/packets.json b/boards/VCU/packets.json index 13f9476..c5c5608 100644 --- a/boards/VCU/packets.json +++ b/boards/VCU/packets.json @@ -1,101 +1,63 @@ [ { "type": "data", - "name": "Current State", + "name": "VCU State", "variables": [ - "general_state", - "operational_state" + "state" ], "id": 249, "period_type": "ms", - "period": 16.67, - "socket": "control_station_udp" - }, - { - "type": "data", - "name": "Reeds", - "variables": [ - "reed1", - "reed2", - "reed3", - "reed4", - "all_reeds" - ], - "id": 251, - "period_type": "us", - "period": 16.67, - "socket": "control_station_udp" - }, - { - "type": "data", - "name": "Flow", - "variables": [ - "flow1", - "flow2" - ], - "id": 250, - "period_type": "ms", - "period": 16.67, + "period": 10, "socket": "control_station_udp" }, { "type": "data", - "name": "Regulator", + "name": "Pressures", "variables": [ - "regulator_1_pressure", - "regulator_2_pressure" + "high_pressure", + "low_pressure", + "pressure_regulator_feedback" ], "id": 252, - "period_type": "us", - "period": 16.67, + "period_type": "ms", + "period": 10, "socket": "control_station_udp" }, { "type": "data", - "name": "Pressure", + "name": "Brake Status", "variables": [ - "pressure_high", - "pressure_regulator", - "pressure_brakes", - "pressure_capsule" + "active_brakes", + "brake_fault_detected" ], "id": 253, "period_type": "ms", - "period": 16.67, + "period": 10, "socket": "control_station_udp" }, { "type": "data", - "name": "tapes", + "name": "Outputs", "variables": [ - "tape_enable_output", - "emergency_tape" + "electrovalve_enabled" ], "id": 254, "period_type": "ms", - "period": 16.67, + "period": 10, "socket": "control_station_udp" }, { "type": "data", - "name": "sdc", + "name": "Safety", "variables": [ - "SDC" + "sdc_closed", + "hvbms_connected", + "pcu_connected", + "lcu_connected" ], "id": 255, "period_type": "ms", - "period": 16.67, + "period": 10, "socket": "control_station_udp" - }, - { - "type": "data", - "name": "recovery_state", - "variables": [ - "state" - ], - "id": 65, - "period_type": "ms", - "period": 16.67, - "socket": "pcu_udp" } -] \ No newline at end of file +] diff --git a/boards/VCU/sockets.json b/boards/VCU/sockets.json index c9ae043..0a124e3 100644 --- a/boards/VCU/sockets.json +++ b/boards/VCU/sockets.json @@ -4,7 +4,6 @@ "name": "control_station_tcp", "port": 50500 }, - { "type": "DatagramSocket", "name": "control_station_udp", @@ -12,44 +11,45 @@ "port": 50400 }, + { + "type": "DatagramSocket", + "name": "pcu_udp", + "remote_ip": "192.168.1.5", + "port": 50402 + }, { "type": "Socket", "name": "pcu_tcp", - "local_port": 50501, + "local_port": 50505, "remote_ip": "192.168.1.5", "remote_port": 50500 - - }, { "type": "DatagramSocket", - "name": "pcu_udp", - "remote_ip":"192.168.1.5", - "port": 50402 + "name": "hvbms_udp", + "remote_ip": "192.168.1.7", + "port": 50403 }, - - { "type": "Socket", - "name": "hvscu_tcp", - "local_port": 50502, + "name": "hvbms_tcp", + "local_port": 50507, "remote_ip": "192.168.1.7", "remote_port": 50500 - - }, { "type": "DatagramSocket", - "name": "hvscu_udp", - "remote_ip":"192.168.1.7", - "port": 50403 + "name": "lcu_udp", + "remote_ip": "192.168.1.4", + "port": 50405 + }, + { + "type": "Socket", + "name": "lcu_tcp", + "local_port": 50504, + "remote_ip": "192.168.1.4", + "remote_port": 50500 } - - - - - - ] diff --git a/general_info.json b/general_info.json index ef8fe5b..bdf05e0 100644 --- a/general_info.json +++ b/general_info.json @@ -4,10 +4,13 @@ "TCP_SERVER": 50500, "UDP": 50400, "SNTP": 123, - "TFTP": 69 + "TFTP": 69, + "BLCU_UDP": 50420, + "BLCU_TCP_CLIENT": 50421 }, "addresses": { - "backend": "192.168.0.9" + "backend": "192.168.0.9", + "hypervisor": "192.168.0.13" }, "units": { "m/ss": "*1", @@ -41,4 +44,4 @@ "add_state_order": 5, "warning": 3 } -} \ No newline at end of file +}