-
Notifications
You must be signed in to change notification settings - Fork 104
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
Added CLI options to change CAN ID and IP address #776
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting the CI and the merge!
Thanks heaps @davidetome 👍🏻
Not blocking at all, but it would be nice to have that the examples contained in the body of the PR could copied somewhere (even just https://github.com/robotology/icub-firmware-build/tree/master/docs, or in the README of firmwareupdater directory), otherwise we risk that they will be lost with the sands of time. |
Good idea @traversaro , just for completion, we may consider adding also the content of these PRs :
If you and @pattacini agree, I'll open an issue about that 👍🏻 |
Yep, agreed @davidetome 👍🏻 |
New FirmwareUpdater CLI options
This PR introduces the
FirmwareUpdater CLI
capability to change :SOCKETCAN
deviceETH
deviceChange CAN ID via SOCKETCAN
In this example, we change the
CAN ID
on anmtb
board connected viaSOCKETCAN
from 1 to 2.The syntax of the command is the following :
where :
-g -e SOCKETCAN -i 0 -c 0
is need to use aSOCKETCAN
device (i.e.ESD CAN/USB
) withID=0
andcanline=0
-n 1 -k 2
changes old id 1 (-n 1) to 2 (-k 2)1.mp4
Change CAN ID via ETH
In this example, we change the
CAN ID
on anmtb
board connected viaETH
through anems4
board w/IP address = 10.0.1.1
from 1 to 2.The syntax of the command is the following :
where :
-g -e ETH -i eth1 -t 10.0.1.1 -c 1
is need to use aETH
device (i.e.ems4
) withip address = 10.0.1.1
andcanline=1
-n 1 -k 2
changes old id 1 (-n 1) to 2 (-k 2)2.mp4
Change IP address of an ETH board
In this example, we change the
IP address on an
ems4board from
10.0.1.1` to 110.0.1.21.The syntax of the command is the following :
where :
-g -e ETH -i eth1
is need to use aETH
device (i.e.ems4
)-t 10.0.1.1 -2 10.0.1.2
changes old iIP address
10.0.1.1 to 10.0.1.23.mp4
cc @pattacini @maggia80 @emilianob80 @Uboldi80 @gsisinna @marcoaccame