Skip to content

Commit

Permalink
tell user which firmware file they should flash
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcottle committed Aug 28, 2024
1 parent a77de47 commit 349b8b4
Showing 1 changed file with 37 additions and 20 deletions.
57 changes: 37 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
</div>
</div>

<div v-if="selectedProduct && selectedModel && recommendedFirmwareFilename" class="border-t px-2 py-1">
<div class="text-sm">You should flash: {{ recommendedFirmwareFilename }}</div>
</div>

<div class="border-t px-2 py-1">
<div class="text-sm space-x-1">
<a target="_blank" href="https://github.com/markqvist/RNode_Firmware/releases" class="text-blue-500 hover:underline">Official Firmware</a>
Expand Down Expand Up @@ -264,6 +268,7 @@
name: "868 MHz / 915 MHz / 923 MHz",
},
],
firmware_filename: "rnode_firmware_heltec32v2.zip",
flash_config: {
flash_size: "8MB",
flash_files: {
Expand All @@ -289,6 +294,7 @@
name: "868 MHz / 915 MHz / 923 MHz",
},
],
firmware_filename: "rnode_firmware_heltec32v3.zip",
flash_config: {
flash_size: "8MB",
flash_files: {
Expand All @@ -313,6 +319,7 @@
name: "868 MHz / 915 MHz / 923 MHz",
},
],
firmware_filename: "rnode_firmware_lora32v10.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -338,6 +345,7 @@
name: "868 MHz / 915 MHz / 923 MHz",
},
],
firmware_filename: "rnode_firmware_lora32v20.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -357,6 +365,7 @@
{
id: ROM.MODEL_B4,
name: "433 MHz",
firmware_filename: "rnode_firmware_lora32v21.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -371,6 +380,7 @@
{
id: ROM.MODEL_B9,
name: "868/915/923 MHz",
firmware_filename: "rnode_firmware_lora32v21.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -390,6 +400,7 @@
id: ROM.MODEL_B4_TCXO,
mapped_id: ROM.MODEL_B4, // this device uses the same model code, but different firmware file
name: "433 MHz, with TCXO",
firmware_filename: "rnode_firmware_lora32v21_tcxo.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -405,6 +416,7 @@
id: ROM.MODEL_B9_TCXO,
mapped_id: ROM.MODEL_B9, // this device uses the same model code, but different firmware file
name: "868/915/923 MHz, with TCXO",
firmware_filename: "rnode_firmware_lora32v21_tcxo.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -426,32 +438,23 @@
{
id: ROM.MODEL_A1,
name: "410 - 525 MHz (with SX1268 chip)",
flash_config: {
flash_size: "4MB",
flash_files: {
"0xe000": "rnode_firmware_t3s3.boot_app0",
"0x0": "rnode_firmware_t3s3.bootloader",
"0x10000": "rnode_firmware_t3s3.bin",
"0x210000": "console_image.bin",
"0x8000": "rnode_firmware_t3s3.partitions",
},
},
},
{
id: ROM.MODEL_A6,
name: "820 - 1020 MHz (with SX1262 chip)",
flash_config: {
flash_size: "4MB",
flash_files: {
"0xe000": "rnode_firmware_t3s3.boot_app0",
"0x0": "rnode_firmware_t3s3.bootloader",
"0x10000": "rnode_firmware_t3s3.bin",
"0x210000": "console_image.bin",
"0x8000": "rnode_firmware_t3s3.partitions",
},
},
},
],
firmware_filename: "rnode_firmware_t3s3.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
"0xe000": "rnode_firmware_t3s3.boot_app0",
"0x0": "rnode_firmware_t3s3.bootloader",
"0x10000": "rnode_firmware_t3s3.bin",
"0x210000": "console_image.bin",
"0x8000": "rnode_firmware_t3s3.partitions",
},
},
},
{
name: "LilyGO T-Beam",
Expand All @@ -461,6 +464,7 @@
{
id: ROM.MODEL_E4,
name: "433 MHz (with SX1278 chip)",
firmware_filename: "rnode_firmware_tbeam.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -475,6 +479,7 @@
{
id: ROM.MODEL_E9,
name: "868/915/923 MHz (with SX1276 chip)",
firmware_filename: "rnode_firmware_tbeam.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -489,6 +494,7 @@
{
id: ROM.MODEL_E3,
name: "433 MHz (with SX1268 chip)",
firmware_filename: "rnode_firmware_tbeam_sx1262.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -503,6 +509,7 @@
{
id: ROM.MODEL_E8,
name: "868/915/923 MHz (with SX1262 chip)",
firmware_filename: "rnode_firmware_tbeam_sx1262.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand Down Expand Up @@ -530,6 +537,7 @@
name: "868 MHz / 915 MHz / 923 MHz",
},
],
firmware_filename: "rnode_firmware_rak4631.zip",
},
{
name: "RNode",
Expand All @@ -539,6 +547,7 @@
{
id: ROM.MODEL_A2,
name: "Handheld v2.1 RNode, 410 - 525 MHz",
firmware_filename: "rnode_firmware_ng21.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -553,6 +562,7 @@
{
id: ROM.MODEL_A7,
name: "Handheld v2.1 RNode, 820 - 1020 MHz",
firmware_filename: "rnode_firmware_ng21.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -567,6 +577,7 @@
{
id: ROM.MODEL_A1,
name: "Prototype v2.2 RNode, 410 - 525 MHz",
firmware_filename: "rnode_firmware_t3s3.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand All @@ -581,6 +592,7 @@
{
id: ROM.MODEL_A6,
name: "Prototype v2.2 RNode, 820 - 1020 MHz",
firmware_filename: "rnode_firmware_t3s3.zip",
flash_config: {
flash_size: "4MB",
flash_files: {
Expand Down Expand Up @@ -1316,6 +1328,11 @@
});
},
},
computed: {
recommendedFirmwareFilename() {
return this.selectedModel?.firmware_filename ?? this.selectedProduct?.firmware_filename;
},
},
watch: {
selectedProduct() {
// reset selected model when changing selected product
Expand Down

0 comments on commit 349b8b4

Please sign in to comment.