Difference between revisions of "CanLoader"

From Wiki for iCub and Friends
Jump to: navigation, search
m (Device type)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
The canLoader application allows to flash the firmware of the dsp boards using the canbus interface.
 
The canLoader application allows to flash the firmware of the dsp boards using the canbus interface.
  
It is also very useful to determine what boards are up and running.
+
It can be also used to determine which boards are up and running.
  
The canLoader2.0 allows to either use plx canbus boards or esd canbus boards (actually any device implementing an ICanBus interface in YARP).
+
The canLoader allows to either use plx canbus boards or esd canbus boards (actually any device implementing an ICanBus interface in YARP).
  
 
Detailed CANLoader protocol: [https://robotcub.svn.sourceforge.net/svnroot/robotcub/trunk/iCubPlatform/doc/manuals/RC_DIST_100_D_15_01_CANLOADER_PROTOCOL.doc doc file from SVN repository].
 
Detailed CANLoader protocol: [https://robotcub.svn.sourceforge.net/svnroot/robotcub/trunk/iCubPlatform/doc/manuals/RC_DIST_100_D_15_01_CANLOADER_PROTOCOL.doc doc file from SVN repository].
  
 
== Steps ==  
 
== Steps ==  
* Determine the type of device you want to use. If you are on the pc104 this will probably be the pcan device (but see below).
+
* Determine the type of device you want to use. If you are on the pc104 this will probably be the '''cfw2''' device.
* Make sure you have compiled the appropriate canbus device (pcan) (read [[Compilation on the pc104]]).
+
* Make sure you have compiled the appropriate canbus device (pcan,cfw2 or ecan) (read [[Compilation on the pc104]]).
* Make sure the canLoader20 program has been compiled. In the main iCub project, this is done automatically if you have the gtk/gtkmm libraries and you enabled CREATE_GUIS_GTK
+
* Make sure the canLoader program has been compiled. In the main iCub project, this is done automatically if you have the gtk/gtkmm libraries.
* Run the canLoader20 program. If you ssh into the pc104 make sure you use the -X option to redirect the graphic output to your local machine.  
+
* Run the canLoader program. If you ssh into the pc104 make sure you use the -X option to redirect the graphic output to your local machine.  
* Select the device you use (pcan) in the text box (for historical reason default is ecan).
+
* Select the device you use (cfw2/pcan/ecan) in the text box (for historical reason default is ecan).
* Select the can network you want to probe (0 to 4), and hit connect. See below for a list of the can networks.
+
* Select the can network you want to probe (0 to 9), and hit connect. See below for a list of the can networks.
  
 
You should see a list of boards that are available in the network you have selected, their id, the version of the firmware, the build number and a text description. If a card is listed here it means that it was able to reply to the broadcast message from the canLoader (a good start).
 
You should see a list of boards that are available in the network you have selected, their id, the version of the firmware, the build number and a text description. If a card is listed here it means that it was able to reply to the broadcast message from the canLoader (a good start).
  
[[Image: canLoader.jpg|canLoader]]
+
[[Image: ft_update1.jpg|canLoader]]
  
 
== Device type ==
 
== Device type ==
  
The device type is the software module that wraps the can bus device you are using. On the first version of iCub the pc104 has a plx can bus device, wrapped by the pcan software module.
+
The device type is the software module that wraps the can bus device you are using.  
 +
* On the first version of iCub the pc104 has a '''plx''' can bus device, wrapped by the pcan software module.
  
On iCub 1.1 the pc104 also mounts two esd can bus devices, which are wrapped by the ecan software module. In this case the device module you use depends on the can bus network (or body part) your want to access.
+
* On iCub 1.1 the pc104 also mounts two '''esd''' can bus devices, which are wrapped by the ecan software module. In this case the device module you use depends on the can bus network (or body part) your want to access.
  
On iCub1.2 the pc104 mounts 6 can bus devices, which are wrapped by the cfw2 software module.
+
* On iCub 1.1.1 (and later) the pc104 mounts up to 9 can bus devices, which are wrapped by the '''cfw2''' software module.
  
 
== Can Networks ==
 
== Can Networks ==
  
 
See: [[Can_addresses_and_associated_firmware|Can addresses and associated firmware]].
 
See: [[Can_addresses_and_associated_firmware|Can addresses and associated firmware]].

Latest revision as of 05:59, 3 August 2011

The canLoader application allows to flash the firmware of the dsp boards using the canbus interface.

It can be also used to determine which boards are up and running.

The canLoader allows to either use plx canbus boards or esd canbus boards (actually any device implementing an ICanBus interface in YARP).

Detailed CANLoader protocol: doc file from SVN repository.

Steps

  • Determine the type of device you want to use. If you are on the pc104 this will probably be the cfw2 device.
  • Make sure you have compiled the appropriate canbus device (pcan,cfw2 or ecan) (read Compilation on the pc104).
  • Make sure the canLoader program has been compiled. In the main iCub project, this is done automatically if you have the gtk/gtkmm libraries.
  • Run the canLoader program. If you ssh into the pc104 make sure you use the -X option to redirect the graphic output to your local machine.
  • Select the device you use (cfw2/pcan/ecan) in the text box (for historical reason default is ecan).
  • Select the can network you want to probe (0 to 9), and hit connect. See below for a list of the can networks.

You should see a list of boards that are available in the network you have selected, their id, the version of the firmware, the build number and a text description. If a card is listed here it means that it was able to reply to the broadcast message from the canLoader (a good start).

canLoader

Device type

The device type is the software module that wraps the can bus device you are using.

  • On the first version of iCub the pc104 has a plx can bus device, wrapped by the pcan software module.
  • On iCub 1.1 the pc104 also mounts two esd can bus devices, which are wrapped by the ecan software module. In this case the device module you use depends on the can bus network (or body part) your want to access.
  • On iCub 1.1.1 (and later) the pc104 mounts up to 9 can bus devices, which are wrapped by the cfw2 software module.

Can Networks

See: Can addresses and associated firmware.