Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic Firmware Update #149

Merged
merged 30 commits into from
May 23, 2024
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
40f814f
automatic fw update - program script ok
davidetome Mar 20, 2024
910143b
update for amc amc2c
davidetome Apr 16, 2024
541b7ed
adding timestamps + network for ergocub 2foc+ems
davidetome May 6, 2024
30f861e
adding foc-special for sepcial FW flashing
davidetome May 6, 2024
479890f
adding network files for ergocub foc or foc-special programming
davidetome May 7, 2024
df761e3
adding script to flash all foc or foc-special
davidetome May 7, 2024
c0e8081
adding 2foc-special binary from AMI
davidetome May 7, 2024
e67ac74
fix rights
davidetome May 7, 2024
e8f0a50
fixed log filename for foc-special
davidetome May 9, 2024
1f5a95d
fixed filename
davidetome May 10, 2024
e966e5f
set the network XML filename in the script for flashing all 2foc
davidetome May 16, 2024
87b61d6
automatic fw update - program script ok
davidetome Mar 20, 2024
74ee3e9
update for amc amc2c
davidetome Apr 16, 2024
3e1ed1e
adding timestamps + network for ergocub 2foc+ems
davidetome May 6, 2024
ab7d205
adding foc-special for sepcial FW flashing
davidetome May 6, 2024
07adca6
adding network files for ergocub foc or foc-special programming
davidetome May 7, 2024
1114afb
adding script to flash all foc or foc-special
davidetome May 7, 2024
98f6dcd
adding 2foc-special binary from AMI
davidetome May 7, 2024
98eacee
fix rights
davidetome May 7, 2024
ba7d386
fixed log filename for foc-special
davidetome May 9, 2024
c3a1c69
fixed filename
davidetome May 10, 2024
9ae2350
set the network XML filename in the script for flashing all 2foc
davidetome May 16, 2024
44d07d0
Merge branch 'devel' of https://github.com/davidetome/icub-firmware-b…
davidetome May 16, 2024
79907d0
automatic firmware update - removed unused files
davidetome May 16, 2024
c5db6b2
automatic firmware update - updated logs filenames for 2foc scripts
davidetome May 16, 2024
5c53835
automatic firmware update - fixed FW rev for 2foc-special (AMI)
davidetome May 21, 2024
5486f08
Update FirmwareUpdater.script.info.all.sh
davidetome May 22, 2024
9b3f192
Update FirmwareUpdater.script.update.all.foc-special.sh
davidetome May 22, 2024
e1787bb
automatic FW update - updating scripts for 2foc update
davidetome May 22, 2024
a176198
Update scripts/manageFWrobot.py
davidetome May 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1,911 changes: 1,911 additions & 0 deletions CAN/2foc/2foc-special.hex

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions info/firmware.info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,13 @@
</firmware>
</board>

<board type="foc-special">
<firmware>
<file>../CAN/2foc/2foc-special.hex</file>
<version major='3' minor='3' build='26'/>
davidetome marked this conversation as resolved.
Show resolved Hide resolved
</firmware>
</board>

<board type="2foc.r1.dc">
<firmware>
<file>../CAN/2foc/2foc.r1.dc.hex</file>
Expand Down
4 changes: 3 additions & 1 deletion scripts/FirmwareUpdater.script.info.all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ echo ""

echo "this bash is executing: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a info | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.info.all.txt"
echo ""
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a info | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.info.all.txt
# ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p head -a info | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.info.all.txt
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml | grep ^\".*$ | sed 's/"//g'` -f ../info/firmware.info.xml -p head -a info | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.info.all.txt
davidetome marked this conversation as resolved.
Show resolved Hide resolved

echo ""
echo "this bash has executed: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a info | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.info.all.txt"
echo ""
2 changes: 1 addition & 1 deletion scripts/FirmwareUpdater.script.program.all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo ""

echo "this bash is executing: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a program | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.program.all.txt"
echo ""
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a program | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.program.all.txt
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml | grep ^\".*$ | sed 's/"//g'` -f ../info/firmware.info.xml -p all -a program | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.program.all.txt
echo ""
echo "this bash has executed: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a program | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.program.all.txt"
echo ""
16 changes: 16 additions & 0 deletions scripts/FirmwareUpdater.script.update.all.foc-special.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

#!/bin/bash


# this script which uses FirmwareUpdater by means of the python program manageFWrobot.py

echo ""
echo ""
echo ""

davidetome marked this conversation as resolved.
Show resolved Hide resolved
echo "this bash is executing: ./manageFWrobot.py -n `yarp resource --from network.ergocub-2foc-special.xml` -f ../info/firmware.info.xml -p all -b foc-special -a update | tee ../logs/log.of.FirmwareUpdater.ergocub-2foc-special.update.all.foc-special.txt"
echo ""
./manageFWrobot.py -n `yarp resource --from network.ergocub-2foc-special.xml | grep ^\".*$ | sed 's/"//g'` -f ../info/firmware.info.xml -p all -b foc-special -a update | tee ../logs/log.of.FirmwareUpdater.ergocub-2foc-special.update.all.foc-special.txt
echo ""
echo "this bash has executed: ./manageFWrobot.py -n `yarp resource --from network.ergocub-2foc-special.xml` -f ../info/firmware.info.xml -p all -b foc-special -a update | tee ../logs/log.of.FirmwareUpdater.ergocub-2foc-special.update.all.foc-special.txt"
echo ""
6 changes: 3 additions & 3 deletions scripts/FirmwareUpdater.script.update.all.foc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ echo ""
echo ""
echo ""

echo "this bash is executing: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -b foc -a update | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.update.all.foc.txt"
echo "this bash is executing: ./manageFWrobot.py -n `yarp resource --from network.ergocub-2foc.xml` -f ../info/firmware.info.xml -p all -b foc -a update | tee ../logs/log.of.FirmwareUpdater.ergocub-2foc..update.all.foc.txt"
echo ""
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -b foc -a update | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.update.all.foc.txt
./manageFWrobot.py -n `yarp resource --from network.ergocub-2foc.xml | grep ^\".*$ | sed 's/"//g'` -f ../info/firmware.info.xml -p all -b foc -a update | tee ../logs/log.of.FirmwareUpdater..ergocub-2foc.update.all.foc.txt
echo ""
echo "this bash has executed: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -b foc -a update | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.update.all.foc.txt"
echo "this bash has executed: ./manageFWrobot.py -n `yarp resource --from network.ergocub-2foc.xml` -f ../info/firmware.info.xml -p all -b foc -a update | tee ../logs/log.of.FirmwareUpdater..ergocub-2foc.update.all.foc.txt"
echo ""
2 changes: 1 addition & 1 deletion scripts/FirmwareUpdater.script.verify.all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo ""

echo "this bash is executing: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a verify | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.verify.all.txt"
echo ""
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a verify | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.verify.all.txt
./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml | grep ^\".*$ | sed 's/"//g'` -f ../info/firmware.info.xml -p all -a verify | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.verify.all.txt
echo ""
echo "this bash has executed: ./manageFWrobot.py -n `yarp resource --from network.$YARP_ROBOT_NAME.xml` -f ../info/firmware.info.xml -p all -a verify | tee ../logs/log.of.FirmwareUpdater.$YARP_ROBOT_NAME.verify.all.txt"
echo ""
7 changes: 7 additions & 0 deletions scripts/firmwareupdater.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[DRIVERS]
CFW2_CAN "0"
CFW2_CAN "1"
ESD_CAN "5"
ESD_CAN "6"
SOCKETCAN "can0"
ETH "10.0.1.104:3333"
Loading