|
2008-10-07
, 07:49
|
Guest |
Posts: n/a |
Thanked: 0 times |
Joined on
|
#2
|
The goal of this project is to offer a special module to get connected with the pyS60'S bluetooth console and keep it easy and quickly.
|
2008-10-07
, 13:35
|
Posts: 134 |
Thanked: 57 times |
Joined on Mar 2008
@ South Bend IN
|
#3
|
|
2008-10-07
, 14:23
|
|
Posts: 283 |
Thanked: 60 times |
Joined on Nov 2005
@ It's dark in here. I hear laughing.
|
#4
|
|
2008-10-07
, 23:34
|
Posts: 134 |
Thanked: 57 times |
Joined on Mar 2008
@ South Bend IN
|
#5
|
self.bus = dbus.SystemBus(); self.bmgr = dbus.Interface(self.bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager') self.bus_id = self.bmgr.ActivateService('serial') self.adapter_add = self.bmgr.DefaultAdapter() print self.adapter_add self.adapter = dbus.Interface(self.bus.get_object('org.bluez', self.adapter_add), 'org.bluez.Adapter') mode = self.adapter.GetMode() print mode self.disable_bt = False if mode == "off": print "setting adapter on" self.adapter.SetMode("connectable") self.disable_bt = True self.ser_int = dbus.Interface(self.bus.get_object(self.bus_id, '/org/bluez/serial'), 'org.bluez.serial.Manager') self.device = self.ser_int.ConnectService("00:06:66:00:D4:0C", "spp") print self.device; self.port = serial.Serial(str(self.device), 115200, timeout=1)
The Following User Says Thank You to hvacengi For This Useful Post: | ||
|
2008-10-08
, 09:16
|
Posts: 88 |
Thanked: 63 times |
Joined on Feb 2008
@ Solingen; Germany
|
#6
|
|
2008-10-08
, 11:47
|
|
Posts: 283 |
Thanked: 60 times |
Joined on Nov 2005
@ It's dark in here. I hear laughing.
|
#7
|
|
2008-10-09
, 11:42
|
Posts: 88 |
Thanked: 63 times |
Joined on Feb 2008
@ Solingen; Germany
|
#8
|
client_sock.send("import audio) client_sock.send("audio.say('Hallo World!')")
Tags |
b60, bluesixty, python, rfcomm, serial |
|
As the thread is called I would know from you, where to get the
package "python-serial" for diablo, which is important for my future
project to work with serial ports...
I registred a project at garage today:
b60 ( just waiting for the feedback)
The goal of this project is to offer a special module to get connected with the pyS60'S bluetooth console and keep it easy and quickly.
I look foreward to see programms of these:
http://de.youtube.com/watch?v=JPf5-r7dl5U
using the motion-sensor (here of the n95).
greeez
__________________________________________________ _____________________
| Thread "Python: Serial" renamed as "BlueSixty: Get Connected with PyS60" |
Last edited by thopiekar; 2008-10-09 at 11:58.