2004-12-23 11:54:03

by Manjunath Prabhu

[permalink] [raw]
Subject: [Bluez-users] get remote bt address

Hi marcel,
I am using l2cap sockets. On the receiving side, i want to find out
the remote (sender's) bluetooth address. i do not have the dev_id or
handle of the sender which has already established a connection. I
want to get it in my c code, not using hcitool con or other means.
I am trying getpeername, but it doesn't seem to work. Hope you can
suggest something.

Thanx,
Regards,
Manjunath


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users


2004-12-23 17:19:28

by Erwin Authried

[permalink] [raw]
Subject: Re: [Bluez-users] get remote bt address

Am Don, den 23.12.2004 schrieb Manjunath Prabhu um 13:18:

> Also, which would be the best Bluetooth PCMCIA card , the ones with
> linux drivers , for 2.6 kernels?
>
the Conceptronic CBT100C is a class 1 card for < EUR 50,-.
I have used it with 2.4.20uc1 (uClinux) with success. With "regular"
Linux (2.4.22), the socket driver needed a small patch because the card
is encoded as a low voltage+3.3V card and wasn't powered up at all.

Regards,
Erwin




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-12-23 16:05:25

by Jay W. Summet

[permalink] [raw]
Subject: Re: [Bluez-users] get remote bt address

Manjunath Prabhu wrote:

> Also, which would be the best Bluetooth PCMCIA card , the ones with
> linux drivers , for 2.6 kernels?
I'm using a Zoom bluetooth adapter (Class 1, w/ 100m claimed range and pop-out
antenna) with 2.6.8 and am very happy with it. (It's also inexpensive to buy
online...)

Keep in mind that I only need it to do 6kbps to talk with my phone, so I've
never tested it under a high-throughput situation, but I know of no reason it
wouldn't work as well as any other bluetooth card...

more comments:
http://www.summet.com/x31/zoom.html

Jay


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-12-23 12:18:53

by Manjunath Prabhu

[permalink] [raw]
Subject: Re: [Bluez-users] get remote bt address

Hi marcel,
yup, getpeername() works.....had done something silly.
i have 2 questions about BT products,
the csr press release says BT-EDR chips are in market......have BT
dongles with EDR come into the market???
Also, which would be the best Bluetooth PCMCIA card , the ones with
linux drivers , for 2.6 kernels?

thanx once again,
regards,
manjunath

On Thu, 23 Dec 2004 12:58:29 +0100, Marcel Holtmann <[email protected]> wrote:
> Hi Manjunath,
>
> > I am using l2cap sockets. On the receiving side, i want to find out
> > the remote (sender's) bluetooth address. i do not have the dev_id or
> > handle of the sender which has already established a connection. I
> > want to get it in my c code, not using hcitool con or other means.
> > I am trying getpeername, but it doesn't seem to work. Hope you can
> > suggest something.
>
> the getpeername() is the right function and it works. If not, then your
> code is wrong.
>
> Regards
>
> Marcel
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Bluez-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

2004-12-23 11:58:29

by Marcel Holtmann

[permalink] [raw]
Subject: Re: [Bluez-users] get remote bt address

Hi Manjunath,

> I am using l2cap sockets. On the receiving side, i want to find out
> the remote (sender's) bluetooth address. i do not have the dev_id or
> handle of the sender which has already established a connection. I
> want to get it in my c code, not using hcitool con or other means.
> I am trying getpeername, but it doesn't seem to work. Hope you can
> suggest something.

the getpeername() is the right function and it works. If not, then your
code is wrong.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users