2005-01-19 15:26:42

by Erwin Authried

[permalink] [raw]
Subject: [Bluez-users] how to obtain address for rfcomm connection

I want to establish a rfcomm connection to a mobile phone. I don't know
the phone's address or name a-priori. The pairing is initated from the
phone before the rfcomm connection is initiated. Is there an easy way to
get the phone's address from the preceding link key exchange (from
/etc/bluetooth/link_key?). Browsing/scanning for devices might give more
than one canditate for communication, but I want to use only the one
that has already paired.

Regards,
Erwin




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2005-01-19 20:36:53

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] how to obtain address for rfcomm connection

Hi Erwin,

> the phone (ericsson t630) didn't connect to a specific service, there's
> a menu entry for discovering new devices. After a few seconds, the names
> of the discovered devices show up. When one of them is selected, the
> phone shows a prompt for entering the pincode, and the link key is saved
> on the Linux system. The purpose of the system is a tcp/ip transmission
> from the Linux system via GSM/GPRS. On the Linux system, no selection or
> entry should be necessary, the ppp over rfcomm connection should come up
> automatically or by pressing a button.

establish a OBEX push service on your device and after you send a vCard
from your phone you get the BD_ADDR.

Regards

Marcel




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-01-19 20:01:03

by Erwin Authried

[permalink] [raw]
Subject: Re: [Bluez-users] how to obtain address for rfcomm connection

Am Mit, den 19.01.2005 schrieb Marcel Holtmann um 18:05:
> Hi Erwin,
>
> > I want to establish a rfcomm connection to a mobile phone. I don't know
> > the phone's address or name a-priori. The pairing is initated from the
> > phone before the rfcomm connection is initiated. Is there an easy way to
> > get the phone's address from the preceding link key exchange (from
> > /etc/bluetooth/link_key?). Browsing/scanning for devices might give more
> > than one canditate for communication, but I want to use only the one
> > that has already paired.
>
> you will find any paired device in the link_key file. However if the
> phone was connected then you can use normal technics to get the device
> address at the that time. To what service did the phone connect?
>
> Regards
>
> Marcel

Hi Marcel,
the phone (ericsson t630) didn't connect to a specific service, there's
a menu entry for discovering new devices. After a few seconds, the names
of the discovered devices show up. When one of them is selected, the
phone shows a prompt for entering the pincode, and the link key is saved
on the Linux system. The purpose of the system is a tcp/ip transmission
from the Linux system via GSM/GPRS. On the Linux system, no selection or
entry should be necessary, the ppp over rfcomm connection should come up
automatically or by pressing a button.

Regards,
Erwin




-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2005-01-19 17:05:08

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] how to obtain address for rfcomm connection

Hi Erwin,

> I want to establish a rfcomm connection to a mobile phone. I don't know
> the phone's address or name a-priori. The pairing is initated from the
> phone before the rfcomm connection is initiated. Is there an easy way to
> get the phone's address from the preceding link key exchange (from
> /etc/bluetooth/link_key?). Browsing/scanning for devices might give more
> than one canditate for communication, but I want to use only the one
> that has already paired.

you will find any paired device in the link_key file. However if the
phone was connected then you can use normal technics to get the device
address at the that time. To what service did the phone connect?

Regards

Marcel




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users