Hi all,

I am trying to connect my Gumstix Overo to the e-puck robot (www.e-puck.org) via Bluetooth.
For that, I make use of the latest stable image found at http://cumulus.gumstix.org/images/angstrom/factory/2011-08-30-1058/

I am able to see the robot via the command 'hcitool scan'

root@overo:~/pyScript# hcitool scan
Scanning ...
    F4:0B:93:4B:E0:4B    Maria
    00:1A:75:A5:21:CB    K610i
    E0:2A:82:F6:33:40    ubuntuMachine-0
    00:1C:9A:F5:76:4F    Maria
    04:0C:CE:EA:E5:D5    n/a
    E0:CA:94:0A:0E:E8    MARIA-TOSH
    40:2C:F4:18:A4:88    FBD-XRAFAEL
    CC:52:AF:89:51:2F    FBD-JMFERNANDEZ
    0C:60:76:98:9B:86    FBD-ARIUS
    B8:8D:12:07:88:EF    MacBook Air de Marc
    10:00:E8:AD:79:A8    e-puck_2464

I tried to establish a connection with the RFCOMM protocol as indicated in [http://www.e-puck.org/index.php?option=com_content&view=article&id=11&Itemid=15]
but I get as a response

root@overo:~/pyScript# rfcomm bind 0
root@overo:~/pyScript# rfcomm connect 0
Can't connect RFCOMM socket: Connection refused

since I am missing the correct PIN for entering my bluetooth device (e-puck). I tried to follow this thread [http://gumstix.8.n6.nabble.com/Bluez4-on-Overo-connectivity-td589186.html]
in order to set the PIN of the bluetooth device downloading the script to make the passkey-agent from [http://shr-project.org/trac/wiki/Using] but I get the following error:
root@overo:~/pyScript# python agent.py
Traceback (most recent call last):
  File "agent.py", line 94, in <module>
    path = manager.DefaultAdapter()
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 68, in __call__
    return self._proxy_method(*args, **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.NoSuchAdapter: No such adapter

Has anyone been in that situation?

Thanks to all,

Sergi

--
SERGI TORRELLAS SOCASTRO
eHealth AIL Coordinator
R+D Salut

M. 616.21.72.97

storrellas@bdigital.org
skype:sergi.torrellas



BARCELONA DIGITAL CENTRE TECNOLÒGIC
R
oc Boronat 117, 5a planta, 08018 Barcelona 
Tel. +34 93 553 45 40 - Fax. +34 93 553 45 41 

www.bdigital.org