[maemo-developers] [maemo-developers] bi-di BT-link between two 770s

From: Johan Hedberg johan.hedberg at nokia.com
Date: Sun Nov 6 17:50:05 EET 2005
Hi Aleksandr,

On Sun, Nov 06, 2005, Aleksandr Koltsoff wrote:
> 1) When starting the game, how does the end-user "see" the other 770-device? 
> ie, is pairing necessary, and is there a GUI for this (connection damager?)

There's no GUI for currently for this. Pairing isn't necessary, but you
may want to implement it if you want better security for the connection.

> 2) What do I need to do to make 770 visible to the other 770 (assuming there 
> is a GUI for this on the other side). Can this be done programmatically 
> without requiring user intervention?

It's possible to do programmaticatlly, but requires root privileges. You
might want to take a look at the source code of hciconfig to see what it
does with the piscan command. If you want inquiry scan (aka discoverable
mode) to be always enabled you can also set "enable iscan" in
/etc/bluetooth/hcid.conf.

> 3) Is using RFCOMM-sockets between the devices a suitable transport? (I'm 
> looking for something akin to TCP). It can be assumed that only one program 
> will be active on a device at one time that needs this, so I guess BT-MAC 
> address is enough to connect?

An RFCOMM socket is probably good for your needs. You'll need the BT
address as well as an RFCOMM channel (comparable to TCP port numbers) to
connect.

> 4) Can all of this be done with a normal application installed via the AI on a 
> stock 770? (not requiring the user to reflash from the sales sw version)

Currently unfortunately not. I have gotten requests for implementing a
D-BUS interface in btcond for enabling inquiry scan (so root privileges
wouldn't be required), however that will be available earliest sometime
next year in an official firmware update.

If you have any more Bluetooth or BlueZ specific questions I'd recommend
using the bluez-users and bluez-devel mailing lists since they have
probably much more knowledgeable subcribers in this area.

Johan

More information about the maemo-developers mailing list