diff --git a/scripts/install_fw_d2rg_mmdvmhs.sh b/scripts/install_fw_d2rg_mmdvmhs.sh index 33da9f4..ea5fca8 100755 --- a/scripts/install_fw_d2rg_mmdvmhs.sh +++ b/scripts/install_fw_d2rg_mmdvmhs.sh @@ -19,8 +19,20 @@ # Configure latest version FW_VERSION="v1.4.17" -# Download latest firmware for D2RG MMDVM_HS -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/d2rg_mmdvm_hs.bin +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="d2rg_mmdvm_hs.bin" + +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -69,5 +81,5 @@ sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware # Note: /dev/ttySC0 should be enabled, see: https://github.com/bg3mdo/D2RG_MMDVM_HS_ambe_uart_service -eval sudo $STM32FLASH -v -w d2rg_mmdvm_hs.bin -g 0x0 -R -i 23,-22,22:-23,22 /dev/ttySC0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 23,-22,22:-23,22 /dev/ttySC0 diff --git a/scripts/install_fw_dualband.sh b/scripts/install_fw_dualband.sh index 4e46fa3..8ed3607 100755 --- a/scripts/install_fw_dualband.sh +++ b/scripts/install_fw_dualband.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="zumspot_dualband_fw.bin" -# Download latest firmware for ZUMspot Dualband (GPIO) -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_dualband_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w zumspot_dualband_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_duplex.sh b/scripts/install_fw_duplex.sh index 6865ca9..ac46940 100755 --- a/scripts/install_fw_duplex.sh +++ b/scripts/install_fw_duplex.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="zumspot_duplex_fw.bin" -# Download latest firmware for ZUMspot Duplex (GPIO) -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_duplex_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w zumspot_duplex_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_duplex_gpio.sh b/scripts/install_fw_duplex_gpio.sh index 8c8cbcf..dd89633 100755 --- a/scripts/install_fw_duplex_gpio.sh +++ b/scripts/install_fw_duplex_gpio.sh @@ -18,9 +18,24 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="generic_duplex_gpio_fw.bin" +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi + # Download latest firmware for Generic Duplex GPIO -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/generic_duplex_gpio_fw.bin +curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/ # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +83,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w generic_duplex_gpio_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_duplex_usb.sh b/scripts/install_fw_duplex_usb.sh index 028ddb4..56aa0cc 100755 --- a/scripts/install_fw_duplex_usb.sh +++ b/scripts/install_fw_duplex_usb.sh @@ -21,9 +21,21 @@ FW_VERSION="v1.4.17" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="generic_duplex_usb_fw.bin" -# Download latest firmware for Generic duplex USB boards -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/generic_duplex_usb_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1 eval sudo $DFU_RST $DEV_USB_SER 750 # Upload the firmware -eval sudo $DFU_UTIL -D generic_duplex_usb_fw.bin -d 1eaf:0003 -a 2 -R -R +eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R echo echo "Please RESET your MMDVM_HS board !" diff --git a/scripts/install_fw_gen_gpio.sh b/scripts/install_fw_gen_gpio.sh index e0779e7..8afeec9 100755 --- a/scripts/install_fw_gen_gpio.sh +++ b/scripts/install_fw_gen_gpio.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="generic_gpio_fw.bin" -# Download latest firmware for Generic Simplex GPIO -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/generic_gpio_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w generic_gpio_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_hsdualhat-12mhz.sh b/scripts/install_fw_hsdualhat-12mhz.sh index 5bcc132..5bc76db 100755 --- a/scripts/install_fw_hsdualhat-12mhz.sh +++ b/scripts/install_fw_hsdualhat-12mhz.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="mmdvm_hs_dual_hat_fw-12mhz.bin" -# Download latest firmware for MMDVM_HS_Hat -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_dual_hat_fw-12mhz.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w mmdvm_hs_dual_hat_fw-12mhz.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_hsdualhat.sh b/scripts/install_fw_hsdualhat.sh index a967630..7123c55 100755 --- a/scripts/install_fw_hsdualhat.sh +++ b/scripts/install_fw_hsdualhat.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="mmdvm_hs_dual_hat_fw.bin" -# Download latest firmware for MMDVM_HS_Hat -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_dual_hat_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w mmdvm_hs_dual_hat_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_hshat-12mhz.sh b/scripts/install_fw_hshat-12mhz.sh index ad1e280..6e86483 100755 --- a/scripts/install_fw_hshat-12mhz.sh +++ b/scripts/install_fw_hshat-12mhz.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="mmdvm_hs_hat_fw-12mhz.bin" -# Download latest firmware for MMDVM_HS_Hat with 12.288 MHz TCXO -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_hat_fw-12mhz.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w mmdvm_hs_hat_fw-12mhz.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_hshat.sh b/scripts/install_fw_hshat.sh index 76ae591..7ffa5da 100755 --- a/scripts/install_fw_hshat.sh +++ b/scripts/install_fw_hshat.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="mmdvm_hs_hat_fw.bin" -# Download latest firmware for MMDVM_HS_Hat -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/mmdvm_hs_hat_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w mmdvm_hs_hat_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_librekit.sh b/scripts/install_fw_librekit.sh index 09b2e58..118c640 100755 --- a/scripts/install_fw_librekit.sh +++ b/scripts/install_fw_librekit.sh @@ -21,9 +21,21 @@ FW_VERSION="v1.4.17" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="zumspot_libre_fw.bin" -# Download latest firmware for ZUMspot Libre Kit -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_libre_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1 eval sudo $DFU_RST $DEV_USB_SER 750 # Upload the firmware -eval sudo $DFU_UTIL -D zumspot_libre_fw.bin -d 1eaf:0003 -a 2 -R -R +eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R echo echo "Please RESET your ZUMspot Libre Kit !" diff --git a/scripts/install_fw_nanodv_npi.sh b/scripts/install_fw_nanodv_npi.sh index 895cef1..1fe2349 100755 --- a/scripts/install_fw_nanodv_npi.sh +++ b/scripts/install_fw_nanodv_npi.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="nanodv_npi_fw.bin" -# Download latest firmware for Nano DV -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/nanodv_npi_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w nanodv_npi_fw.bin -g 0x0 -R -i 66,-67,67:-66,67 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 66,-67,67:-66,67 /dev/ttyAMA0 diff --git a/scripts/install_fw_nanodv_usb.sh b/scripts/install_fw_nanodv_usb.sh index 71f41bf..116acb6 100755 --- a/scripts/install_fw_nanodv_usb.sh +++ b/scripts/install_fw_nanodv_usb.sh @@ -21,9 +21,21 @@ FW_VERSION="v1.4.17" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="nanodv_usb_fw.bin" -# Download latest firmware for ZUMspot USB -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/nanodv_usb_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1 eval sudo $DFU_RST $DEV_USB_SER 750 # Upload the firmware -eval sudo $DFU_UTIL -D nanodv_usb_fw.bin -d 1eaf:0003 -a 2 -R -R +eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R echo echo "Please RESET your Nano DV !" diff --git a/scripts/install_fw_nanohs.sh b/scripts/install_fw_nanohs.sh index d650f57..e345fa7 100755 --- a/scripts/install_fw_nanohs.sh +++ b/scripts/install_fw_nanohs.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="nano_hotspot_fw.bin" -# Download latest firmware for Nano hotSPOT -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/nano_hotspot_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w nano_hotspot_fw.bin -g 0x0 -R -i 200,-3,3:-200,3 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 200,-3,3:-200,3 /dev/ttyAMA0 diff --git a/scripts/install_fw_rpi.sh b/scripts/install_fw_rpi.sh index 6b160f5..ae8639e 100755 --- a/scripts/install_fw_rpi.sh +++ b/scripts/install_fw_rpi.sh @@ -18,9 +18,21 @@ # Configure latest version FW_VERSION="v1.4.17" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="zumspot_rpi_fw.bin" -# Download latest firmware for ZUMspot RPi (GPIO) -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_rpi_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -68,5 +80,5 @@ fi sudo killall MMDVMHost >/dev/null 2>&1 # Upload the firmware -eval sudo $STM32FLASH -v -w zumspot_rpi_fw.bin -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 +eval sudo $STM32FLASH -v -w $FW_FILENAME -g 0x0 -R -i 20,-21,21:-20,21 /dev/ttyAMA0 diff --git a/scripts/install_fw_usb.sh b/scripts/install_fw_usb.sh index fc06b4c..3de199a 100755 --- a/scripts/install_fw_usb.sh +++ b/scripts/install_fw_usb.sh @@ -21,9 +21,21 @@ FW_VERSION="v1.4.17" # Change USB-serial port name ONLY in macOS MAC_DEV_USB_SER="/dev/cu.usbmodem14401" + +# Configure beta version +FW_VERSION_BETA="v1.5.1b" + +# Firmware filename +FW_FILENAME="zumspot_usb_fw.bin" -# Download latest firmware for ZUMspot USB -curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/zumspot_usb_fw.bin +# Download latest firmware +if [ $1 = "beta" ]; then + echo "Downloading beta firmware..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION_BETA/$FW_FILENAME +else + echo "Downloading latest firmware (stable)..." + curl -OL https://github.com/juribeparada/MMDVM_HS/releases/download/$FW_VERSION/$FW_FILENAME +fi # Download STM32F10X_Lib (only for binary tools) if [ ! -d "./STM32F10X_Lib/utils" ]; then @@ -76,7 +88,7 @@ sudo killall MMDVMHost >/dev/null 2>&1 eval sudo $DFU_RST $DEV_USB_SER 750 # Upload the firmware -eval sudo $DFU_UTIL -D zumspot_usb_fw.bin -d 1eaf:0003 -a 2 -R -R +eval sudo $DFU_UTIL -D $FW_FILENAME -d 1eaf:0003 -a 2 -R -R echo echo "Please RESET your ZUMspot !"