# Remap Identifiers using asebaswitch

Aseba provides asebaswitch, a command-line utility that can connect several targets. The syntax is the following:

    asebaswitch [options] [additional targets]*

For detailed informations, please type:

    asebaswitch --help

Note that additional targets must follow the Dashel naming convention.

# Advanced use

Aseba demands that every node in a network has a different identifier, because Aseba uses the latter to route data. However, some targets, such as the Thymio, have an identifier hard-coded in their firmware. Fortunately, asebaswitch provides an identifier remapping mechanism, that allows to remap the identifier of a target.

This mechanism allows, for example, to have two Thymios on the same Aseba network. Under Linux, this translates into this command line:

    asebaswitch -d "ser:device=/dev/ttyACM0;remapLocal=1" "ser:device=/dev/ttyACM1;remapLocal=2"

The remapping mechanism adds two options to the target-description string:

- `remapLocal`, the identifier under which the target node should appear locally,
- `remapTarget` (default: `1`), the identifer of the target node to remap.

Currently, this mechanism allows to remap only one node per target. We might generalize this depending on the needs.