Updating Mac firmware updater app

3D_moves
Windell Oskay 2017-07-09 14:17:28 -07:00
rodzic b1a3e27d2d
commit 32acbffb8a
11 zmienionych plików z 3816 dodań i 3129 usunięć

Wyświetl plik

@ -1,35 +1,37 @@
#!/bin/bash #!/bin/bash
echo -e "Welcome to the EiBotBoard (EBB) Firmware Updater, version 2.5.3"
base='/dev/' base='/dev/'
result=`ls /dev | grep -m 1 usbmodem` result=`ls /dev | grep -m 1 usbmodem`
portName=$base$result portName=$base$result
#echo "$portName" #echo -e "$portName"
if [ "$result" ] if [ "$result" ]
then then
echo "USB device found at $portName" printf "\n\nEBB appears to be located; Beginning update process. "
echo "Entering bootloader."
echo -e "BL" > $portName echo -e "BL" > $portName
sleep 2s sleep 2s
echo "Calling mphidflash to update firmware 2.5.1" #echo -e "Calling mphidflash to update firmware"
./mphidflash -w app.X.production.hex -r ./mphidflash -w app.X.production.hex -r
echo "Firmware burn complete. Preparing to test." printf "\n\nFirmware update complete. Preparing to test."
sleep 1s sleep 2s
echo "Querying EBB version" printf "\nAsking the EBB for its firmware version:"
echo -e "V" > $portName echo -e "V" > $portName
result2=`head -n 1 < $portName` result2=`head -n 1 < $portName`
echo "$result2" printf "\n$result2"
if [[ $result2 == *"2.5.1"* ]] if [[ $result2 == *"2.5.3"* ]]
then then
echo "Firmware updated successfully."; printf "\n\nFirmware updated successfully."
else else
echo "Firmware update may not have succeeded."; printf "\n\nFirmware update may not have succeeded."
fi fi
else else
echo "No EBB found via standard method...." printf "\nChecking to see if we have a device in bootloader mode."
echo "Checking to see if we have a device in bootloader mode."
./mphidflash -w app.X.production.hex -r ./mphidflash -w app.X.production.hex -r
sleep 2s sleep 2s
base='/dev/' base='/dev/'
@ -38,23 +40,23 @@ else
if [ "$result" ] if [ "$result" ]
then then
echo "Firmware burn complete. Preparing to test." printf "\nFirmware burn complete. Preparing to test."
sleep 1s
echo "Querying EBB version" sleep 2s
printf "\nAsking the EBB for its firmware version:"
echo -e "V" > $portName echo -e "V" > $portName
result2=`head -n 1 < $portName` result2=`head -n 1 < $portName`
echo "$result2" printf "\n$result2"
if [[ $result2 == *"2.5.1"* ]] if [[ $result2 == *"2.5.3"* ]]
then then
echo "Firmware updated successfully."; printf "\n\nFirmware updated successfully."
else else
echo "Firmware update may not have succeeded."; printf "\n\nFirmware update may not have succeeded."
fi fi
else else
echo "Firmware update appears to have failed."; printf "\n\nFirmware update appears to have failed."
fi
fi fi
fi

Wyświetl plik

@ -1,35 +1,45 @@
#!/bin/bash #!/bin/bash
echo -e "Welcome to the EiBotBoard (EBB) Firmware Updater, version 2.5.3"
base='/dev/' base='/dev/'
result=`ls /dev | grep -m 1 usbmodem` result=`ls /dev | grep -m 1 usbmodem`
portName=$base$result portName=$base$result
#echo "$portName" #echo -e "$portName"
if [ "$result" ] if [ "$result" ]
then then
echo "USB device found at $portName" #echo -e "\nApparent EBB found; Beginning update process. "
echo "Entering bootloader." printf "\n\nEBB appears to be located; Beginning update process. "
echo -e "BL" > $portName echo -e "BL" > $portName
sleep 2s sleep 2s
echo "Calling mphidflash to update firmware 2.5.1" #echo -e "Calling mphidflash to update firmware"
./mphidflash -w app.X.production.hex -r ./mphidflash -w app.X.production.hex -r
echo "Firmware burn complete. Preparing to test." #echo -e "\nFirmware update complete. Preparing to test."
sleep 1s printf "\n\nFirmware update complete. Preparing to test."
echo "Querying EBB version" sleep 2s
printf "\nAsking the EBB for its firmware version:"
# echo -e "Querying EBB version"
echo -e "V" > $portName echo -e "V" > $portName
result2=`head -n 1 < $portName` result2=`head -n 1 < $portName`
echo "$result2" # echo -e "$result2"
printf "\n$result2"
if [[ $result2 == *"2.5.1"* ]] if [[ $result2 == *"2.5.3"* ]]
then then
echo "Firmware updated successfully."; #echo -e "\n\nFirmware updated successfully.";
printf "\n\nFirmware updated successfully."
else else
echo "Firmware update may not have succeeded."; #echo -e "\n\nFirmware update may not have succeeded.";
printf "\n\nFirmware update may not have succeeded."
fi fi
else else
echo "No EBB found via standard method...." #echo -e "No EBB found via standard methods...."
echo "Checking to see if we have a device in bootloader mode." #echo -e "Checking to see if we have a device in bootloader mode."
printf "\nChecking to see if we have a device in bootloader mode."
./mphidflash -w app.X.production.hex -r ./mphidflash -w app.X.production.hex -r
sleep 2s sleep 2s
base='/dev/' base='/dev/'
@ -38,23 +48,28 @@ else
if [ "$result" ] if [ "$result" ]
then then
echo "Firmware burn complete. Preparing to test." # echo -e "Firmware burn complete. Preparing to test."
sleep 1s printf "\nFirmware burn complete. Preparing to test."
echo "Querying EBB version"
sleep 2s
printf "\nAsking the EBB for its firmware version:"
echo -e "V" > $portName echo -e "V" > $portName
result2=`head -n 1 < $portName` result2=`head -n 1 < $portName`
echo "$result2" # echo -e "$result2"
printf "\n$result2"
if [[ $result2 == *"2.5.1"* ]] if [[ $result2 == *"2.5.3"* ]]
then then
echo "Firmware updated successfully."; # echo -e "\n\nFirmware updated successfully.";
printf "\n\nFirmware updated successfully."
else else
echo "Firmware update may not have succeeded."; # echo -e "\n\nFirmware update may not have succeeded.";
printf "\n\nFirmware update may not have succeeded."
fi fi
else else
echo "Firmware update appears to have failed."; # echo -e "\n\nFirmware update appears to have failed.";
fi printf "\n\nFirmware update appears to have failed."
fi fi
fi

Wyświetl plik

@ -6,27 +6,27 @@
<dict> <dict>
<key>Resources/AppSettings.plist</key> <key>Resources/AppSettings.plist</key>
<data> <data>
AhwXj6WFA308NRvHb7fCGu1Ot3A= Few2LBNciX42IkdrBnAq3ary+Uc=
</data> </data>
<key>Resources/MainMenu.nib</key> <key>Resources/MainMenu.nib</key>
<data> <data>
vIzxAyKAR2AhinwkbfEpDTyjb9I= NewvWHjsdhvS62VxKoSkxe8dNhs=
</data> </data>
<key>Resources/app.X.production.hex</key> <key>Resources/app.X.production.hex</key>
<data> <data>
cGyNYziot/lZJHOxKnmkxKNEpsA= E+4QUxNx6AlTIyCzM7m3Kqn2Hdk=
</data> </data>
<key>Resources/appIcon.icns</key> <key>Resources/appIcon.icns</key>
<data> <data>
FKJmC5RFxCdL0HDqAaN8oTskxxU= HBDI8vivcy+joKCWSHorAjo37UE=
</data> </data>
<key>Resources/mphidflash</key> <key>Resources/mphidflash</key>
<data> <data>
D05Hu8EtGq3b1Dtmaeuorin/T6w= BJU+D6kAE3CEhGYf/ZtGg/e/pyA=
</data> </data>
<key>Resources/script</key> <key>Resources/script</key>
<data> <data>
lSoVJe7qrfle/LE/5f7SWr5G+AQ= yWh2k/RbKol2NDRSMtQRCvujKcs=
</data> </data>
</dict> </dict>
<key>files2</key> <key>files2</key>
@ -35,66 +35,66 @@
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
AhwXj6WFA308NRvHb7fCGu1Ot3A= Few2LBNciX42IkdrBnAq3ary+Uc=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
CxnCYSv/oFtbpSK+NMIPVQqt7koC6V7ySf8y1vI9k20= tvdQEx9EBjtU1x4RLoGR03RNnIgh8fDhKyjlMlv1TqY=
</data> </data>
</dict> </dict>
<key>Resources/MainMenu.nib</key> <key>Resources/MainMenu.nib</key>
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
vIzxAyKAR2AhinwkbfEpDTyjb9I= NewvWHjsdhvS62VxKoSkxe8dNhs=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
4aN++qYd12oN5mP7nFu1TVAttAhxiNLZdE0Gx6gDVHo= qzWV1mtMEaQ+rRLjlHVn30rpOa7zWu+teJbf1ayCG7Y=
</data> </data>
</dict> </dict>
<key>Resources/app.X.production.hex</key> <key>Resources/app.X.production.hex</key>
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
cGyNYziot/lZJHOxKnmkxKNEpsA= E+4QUxNx6AlTIyCzM7m3Kqn2Hdk=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
e9PizcyE6HfSf4rh4kMIeWrmGIC6yzOUzD2YZF2D8BM= 8O9ED+s2EZUEzi1uAJRnmKU7on/hYOn9lx/ejPRk6jg=
</data> </data>
</dict> </dict>
<key>Resources/appIcon.icns</key> <key>Resources/appIcon.icns</key>
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
FKJmC5RFxCdL0HDqAaN8oTskxxU= HBDI8vivcy+joKCWSHorAjo37UE=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
iS+6tXzgeQcoUEMPuy+A1izbTDCGTTEgMK5l/m/Wh+4= p55gXGHE70E5eNgYzXp0+85fSIcBbVCIqaC97xQ1EA4=
</data> </data>
</dict> </dict>
<key>Resources/mphidflash</key> <key>Resources/mphidflash</key>
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
D05Hu8EtGq3b1Dtmaeuorin/T6w= BJU+D6kAE3CEhGYf/ZtGg/e/pyA=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
vCRvPO0k9oXHwJA3XPkQQOgBJpeECpv2hHWsnhEd51U= ZxtH/Xo6u9guNDxYgH3pxKzjN/JKSK0b8lpA57qk1fw=
</data> </data>
</dict> </dict>
<key>Resources/script</key> <key>Resources/script</key>
<dict> <dict>
<key>hash</key> <key>hash</key>
<data> <data>
lSoVJe7qrfle/LE/5f7SWr5G+AQ= yWh2k/RbKol2NDRSMtQRCvujKcs=
</data> </data>
<key>hash2</key> <key>hash2</key>
<data> <data>
ko3HdPl/M1bABOJikcNDHjmu9V8Fa+3qbuucbb1cZiU= x0MTSudc37G3DwJ19QqS+cZXV6SFwVOMupWAwSOtmF4=
</data> </data>
</dict> </dict>
</dict> </dict>

Wyświetl plik

@ -822,16 +822,7 @@
</li> </li>
<li> <li>
<span style="font-weight: bold;">Version History:</span> <span style="font-weight: bold;">Version History:</span>
First added (partially functional) in v2.5.0 First added in v2.5.0 with partial functionality. This command should only be considered to be functional as of v2.5.3.
<p>
In v2.5.0, this command would not accept negative values of DeltaR, so no deceleration was possible.
</p>
<p>
In v2.5.1 and beyond, DeltaR can be negative or positive and will properly decelerate or accelerate the axis.
</p>
<p>
In v2.5.2 and beyond, invalid combinations of zero values for parameters will cause the command to be ignored. See <a href="https://github.com/evil-mad/EggBot/issues/78">GitHub issue #78</a>.
</p>
</li> </li>
</ul> </ul>