Data Structures | |
| struct | BtDevice |
| general struct for bluetooth device More... | |
| struct | BtEPuck |
| general struct for other e-puck More... | |
Functions | |
| int | e_bt_find_epuck (void) |
| Try to find other e-puck. | |
| char | e_bt_connect_epuck (void) |
| char | e_bt_read_local_pin_number (char *PIN) |
| Read the PIN number of this e-puck's bluetooth module. | |
| char | e_bt_read_local_name (char *name) |
| Read the name of this e-puck's bluetooth module. | |
| char | e_bt_write_local_pin_number (char *PIN) |
| Write the PIN number on this e-puck's bluetooth module. | |
| char | e_bt_write_local_name (char *name) |
| Write the name on this e-puck's bluetooth module. | |
| char | e_bt_etablish_SPP_link (char *address) |
| Try to connect to another bluetooth device. | |
| char | e_bt_release_SPP_link (void) |
| Unconnect from the current bluetooth device. | |
| char | e_bt_send_SPP_data (char *data, char datalenght) |
| Send data to the current bluetooth device. | |
| char | e_bt_tranparent_mode (void) |
| Change to transparent mode. | |
| void | e_bt_exit_tranparent_mode (void) |
| Exit from the transparent mode. | |
| char | e_bt_list_local_paired_device (void) |
| Make a list of the bluetooth address of paired device. | |
| char | e_bt_remove_local_paired_device (int) |
| Remove a paired bluetooth device. | |
| int | e_bt_inquiry (struct BtDevice *device) |
| Research all the accessible bluetooth devices. | |
| char | e_bt_get_friendly_name (struct BtDevice *device) |
| To get the friendly name of a bluetooth device. | |
| int | e_bt_reset (void) |
| Reset the bluetooth module. | |
| char | e_bt_factory_reset (void) |
| Factory reset of the bluetooth module. | |
Variables | |
| unsigned char | e_bt_local_paired_device [6 *8] |
| struct BtDevice | e_bt_present_device [10] |
| struct BtEPuck | e_bt_present_epuck [10] |
This module manage the bluetooth device.
| char e_bt_connect_epuck | ( | void | ) |
| char e_bt_etablish_SPP_link | ( | char * | address | ) |
Try to connect to another bluetooth device.
| address | A pointer on the device address which you want to connect |
| void e_bt_exit_tranparent_mode | ( | void | ) |
Exit from the transparent mode.
| char e_bt_factory_reset | ( | void | ) |
Factory reset of the bluetooth module.
| int e_bt_find_epuck | ( | void | ) |
Try to find other e-puck.
This function make global inguiry and check which device are e-puck, and list them in globales tables.
| char e_bt_get_friendly_name | ( | struct BtDevice * | device | ) |
To get the friendly name of a bluetooth device.
| device | A pointer on the device that you want the name |
| int e_bt_inquiry | ( | struct BtDevice * | device | ) |
Research all the accessible bluetooth devices.
| device | A pointer to BtDevice to store all the caracteristics of each devices found |
| char e_bt_list_local_paired_device | ( | void | ) |
Make a list of the bluetooth address of paired device.
| char e_bt_read_local_name | ( | char * | name | ) |
Read the name of this e-puck's bluetooth module.
| name | A pointer to store the name |
| char e_bt_read_local_pin_number | ( | char * | PIN | ) |
Read the PIN number of this e-puck's bluetooth module.
| PIN | A pointer to store the PIN number |
| char e_bt_release_SPP_link | ( | void | ) |
Unconnect from the current bluetooth device.
| char e_bt_remove_local_paired_device | ( | int | j | ) |
Remove a paired bluetooth device.
| j | The number of the paired device to remove from the e_bt_local_paired_device array. |
| int e_bt_reset | ( | void | ) |
Reset the bluetooth module.
| char e_bt_send_SPP_data | ( | char * | data, | |
| char | datalength | |||
| ) |
Send data to the current bluetooth device.
| data | The datas to send | |
| datalength | The length of the datas to send |
| char e_bt_tranparent_mode | ( | void | ) |
Change to transparent mode.
| char e_bt_write_local_name | ( | char * | name | ) |
Write the name on this e-puck's bluetooth module.
| name | A pointer to store the name |
| char e_bt_write_local_pin_number | ( | char * | PIN | ) |
Write the PIN number on this e-puck's bluetooth module.
| PIN | A pointer to store the PIN number |
| unsigned char e_bt_local_paired_device[6 *8] |
| struct BtDevice e_bt_present_device[10] |
An extern array containing all the bluetooth device detected. It's carried out by the fonction e_bt_find_epuck
| struct BtEPuck e_bt_present_epuck[10] |
An extern array containing all the e-puck detected. It's carried out by the fonction e_bt_find_epuck
1.5.4