BTcom programm

1.0

Introduction

BTcom is a simple text-based protocol that allows the PC to control the e-puck via Bluetooth. With BtCom, the PC can read the e-puck's sensors and set the e-puck's actuators. The PC can be a human using a serial communication program (such as Hyperterminal) or a program using a serial port library for exemple you can use the e-puck_monitor.exe locate in "tool\e-puck_monitor", a part of the transfert data can be also done in a binary mode(big endian).

Compiling and running

First of all you have to compile the programm.

Flash the programm to the e-puck.
Warning:
To compile the programm, you HAVE to compile with a "large data model" option you find in built option project
The linker command lign must be -mlarge-data
or you set the define variable MIC_SAMP_NB in the file library\a_d\advance_ad_scan\e_ad_con.h with 100
It must look like this: define MIC_SAMP_NB 100

Using sercom with Hyperterminal

Pair the e-puck with your computer: this will create a new virtual COM port that you can use to communicate with the e-puck.
With Hyperterminal, connect to this COM port and play with the e-puck serial protocol. The available commands are listed in this file: http://asl.epfl.ch/epfl/education/courses/MicroInfo2/TP/sercom1.02.pdf . You can also press 'H' + return to see the list of available commands.

External links

Author:
Code: Micahael Bonani
Doc: Jonathan Besuchet

Generated on Fri Feb 29 14:27:26 2008 for advance_sercom by  doxygen 1.5.4