How to connect senspod in Ubuntu

FIRST TIME -- Pairing and communicating device for Ubuntu

1. Search device

hcitool scan --refresh

This will print the mac address of the device. For example:
00:07:80:93:54:5B SENSPOD_3002

2. Connect device
You need to sue the mac address in the next command like this:

rfcomm connect 0 00:07:80:93:54:5B 1

A screen should pop up asking you the PIN (passkey), for example, 1111.

When you run the command, the blue led should light up. The output should look like this:

Connected /dev/rfcomm0 to 00:07:80:93:54:5B on channel 1
Press CTRL-C for hangup

This command has to keep running, to maintain the link with the senspod. To stop it in the end when you no longer want to work with the senspod by pressing Ctrl-C.

***If any of these commands (rfcomm or hcitool) don't work, you might need to install some packages, as written in the documentation. To search for ubuntu packages use 'apt-cache search somekeyword' and install with 'apt-get install somepackagename'.

3. Communicate with device
In another terminal, start cutecom. If the command cannot be found, install it with 'apt-get install cutecom'.
Set the device name to /dev/rfcomm0.
The baud rate should be set to 115200;
data bits: 8;
stop bits: 1;
parity: none.
And then click Open Device.

EVERY NEXT TIME

1. Switch on the device.
2. Open terminal and type:

rfcomm connect 0 00:07:80:93:54:5B 1

When you run the command, the blue led should light up. The output should look like this:

Connected /dev/rfcomm0 to 00:07:80:93:54:5B on channel 1
Press CTRL-C for hangup

3. In another terminal, start cutecom:

cutecom

Click Open Device. Wait a few moments until the sentences appear on the screen. If nothing change turn off the device, close the cutecom and repeat the steps 1-3.

If the data are not coming still then reinstall cutecome:

sudo apt-get remove --purge cutecom
sudo apt-get install cutecom