e-puck2 PC side development: Difference between revisions

From GCtronic wiki
Jump to navigation Jump to search
Line 15: Line 15:


=Robot configuration=
=Robot configuration=
This section explains how to configure the robot based on the communication channel you will use for your developments, thus you need to read only one of the following sections, but it would be better if you spend a bit of time reading them all in order to have a full understanding of the available usages.
This section explains how to configure the robot based on the communication channel you will use for your developments, thus you need to read only one of the following sections, but it would be better if you spend a bit of time reading them all in order to have a full understanding of the available configurations.
==Bluetooth and USB==
==Bluetooth and USB==
The robot is initially programmed with a firmware that includes many demos that could be started based on the selector position, refer to section [http://www.gctronic.com/doc/index.php?title=e-puck2#Standard_firmware Standard firmware] for a list of all the demos and related description. <br/>
The robot is initially programmed with a firmware that includes many demos that could be started based on the selector position, refer to section [http://www.gctronic.com/doc/index.php?title=e-puck2#Standard_firmware Standard firmware] for a list of all the demos and related description. <br/>

Revision as of 11:46, 26 July 2018

e-puck2 main wiki

Robot firmware update

Now and then there could be an official firmware update for the robot and it's important to keep the robot updated with the last firmware to get possibile new features, improvements and for bug fixes.
The onboard programmer run a GDB server, so we use GDB commands to upload a new firmware, for this reason a toolchain is needed to upload a new firmware to the robot.
The following steps explain how to update the robot firmware:
1. Download the package containing the required toolchain and script to program the robot: Windows, [Linux], [Mac OS]
2. Download the last version of the robot standard firmware
3. Extract the package and put the firmware file (with elf extension) inside the package directory; beware that only one elf file must be present inside this directory
4. Attach the USB cable and turn on the robot
5. Run the script:

Windows: double click program.bat
Linux:
Mac OS:

Robot configuration

This section explains how to configure the robot based on the communication channel you will use for your developments, thus you need to read only one of the following sections, but it would be better if you spend a bit of time reading them all in order to have a full understanding of the available configurations.

Bluetooth and USB

The robot is initially programmed with a firmware that includes many demos that could be started based on the selector position, refer to section Standard firmware for a list of all the demos and related description.
If the robot isn't programmed with the standard firmware or if you want to be sure to have the last firmware on the robot, you need to program it with the last standard firmware, refer to section Robot firmware update.
When you want to interact with the robot from the computer you need to place the selector in position 3 if you want to work with Bluetooth, or in position 8 if you want to work with USB. Both communication channels use the same protocol called asercom v2, refer to section Communication protocol: BT and USB for detailed information about this protocol.

WiFi

For working with the WiFi there is a special firmware, refer to section [].

Communication protocol

Bluetooth and USB

WiFi

Webots

TBD

ROS

TBD