Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on May 2010
#1
Hi,

does anybody know, how to invoke serial connection from python?

"rfcomm connect /dev/rfcomm0 11:22:33:44:55:66" works, i'd like to accomplish same inside python program.

but the python script I found here http://permalink.gmane.org/gmane.lin...ez.kernel/4725 keeps failing and saying

"Traceback (most recent call last):
File "bl_test.py", line 21, in <module>
node = serial.Connect(service)
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 68, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/pymodules/python2.5/dbus/proxies.py", line 140, in __call__
**keywords)
File "/usr/lib/pymodules/python2.5/dbus/connection.py", line 622, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.bluez.Error.Failed: No record found
"
 
pbouda's Avatar
Posts: 35 | Thanked: 37 times | Joined on Nov 2009 @ Alcanena / Portugal
#2
Hi,

what script did you use exactly? The script in the second reply worked for me:

http://article.gmane.org/gmane.linux.bluez.kernel/4749

Peter
__________________
Peter
http://www.peterbouda.eu
 
Posts: 2 | Thanked: 0 times | Joined on May 2010
#3
Hi Peter,

Yes, I used exactly the same example code, but I get the "dbus.exceptions.DBusException: org.bluez.Error.Failed: No record found" exception.. At the same time , rfcomm connect works.

I'm a bit puzzled now, where to look further, the maemo python and bluetooth API doesn't seem to have very extensive documentation :-)
 
Reply


 
Forum Jump


All times are GMT. The time now is 18:52.