Re: Making a Bluetooth BNEP connection from Windows XP SP2

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: NPR (NPR_at_discussions.microsoft.com)
Date: 11/22/04


Date: Mon, 22 Nov 2004 15:53:07 -0800

Hello Andreas,

Just want to conclude on this!

I got the Bluetooth PAN connect work-around, working in my prototype, thanks
to you sample code.

Regarding the "sin6_scope_id", I found that in the IP_ADAPTER_ADDRESSES
struct using the GetAdaptersAddresses() function. The struct member is called
"Ipv6IfIndex" (no documentation of that either!).

Thanks for all the help!

Niels

"Andreas Heyer" wrote:

> Hello Niels!
>
> NPR wrote:
> > Thanks for the sample code!, this was exactly what I was looking for.
> > How in the he.. did you manage to find all this undocumented stuff. ?, I am
> > impressed!
>
> I have to thank ;-) It took some hours to do that, because I never done it before! But if you read
> MS programming docs you will sooner or later discover how MS builts its APIs. Mostly it's all the
> same like enum something and look for your needed infos.
>
> Unforntunately the user still have to make the connection itself. I didn't figure out how to connect
> this PAN programmatically, e.g. you give the BT address to a connect function and no UI is needed.
> If you look into the PAN COM component with oleviewer you will see some more interfaces implemented.
> But I haven't found the needed header/idl or typelib yet, so I can't tell how to use them at the moment.
>
>
> > You seem to be into the core of networking, so I think I will try another
> > question on you, :-)
>
> Sorry, I'm not :-( But I will give my best!
>
>
> > I want to use IPv6 on the newly created Bluetooth connection, so I use the
> > sockaddr_in6 struct in my TCP connect(), this struct has a member variable
> > called "sin6_scope_id" (used to hold the interface # show if you use
> > "ipconfig"). My problem is that I don't know how to resolve this IF #
> > programmatically. The # can change from one boot to another. So far I have
> > looked it up using ipconfig and then hard coded it into my application. I
> > haven't found any documentation from MS about resolving the scope_id.
>
> I never used IPv6 before. But as I said: Let us try...
>
> First of all you have to check if the IPv6 driver is bound to the PAN connection. You should look
> inside the network connection folder for that. As I know you can't bind IPv6 to a dial up connection
> for example. This is done via the built in IPv6-IPv4-bridge or redirector if I understand right. I
> don't know if the PAN connection is different to normal ethernet LAN connections, so you have to
> watch if you can bind IPv6. I can't figure it out at the moment, because I forgot my BT dongle at
> home. So there's no PAN connection on my PC.
>
> And then look inside PSDK doc under networking section for IPHelper API. When making the connection
> program yesterday I saw that API. If I remember right than you can enumerate IP interfaces with it
> and query the needed informations for a special one. It also supports IPv6. The doc is next to the
> Connection API doc I used and which doc path I noted inside my source code.
>
>
> Mit freundlichen Grüßen
> Andreas ;-)
>
>



Relevant Pages

  • Slow IP assigning for Bluetooth PAN
    ... I am using two Win CE 6 devices with activated Bluetooth PAN service. ... But during establishing the connection, ... Assigning the IP and/or ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Pan
    ... Pan doesn't use encryption so couldn't make the ... connection. ... If you want to use Pan with an encrypted connection, ... You may find more on openSUSE-specific searching the openSUSE mailing ...
    (alt.os.linux.suse)
  • Re: New Bluetooth Stack Connection Problem
    ... but having a PAN connection doesn't somehow magically ... I would like to know how can I access a PC that is connected in a PAN ... or you want to make an ActiveSync connection with the PC? ... thread I suppose it is a problem with the keyboard I am using. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: [Xnews] Best version for Wine?
    ... I understand you very well - I remember using my dial up connection until ... is what I read on the wiki of ubuntu. ... Take the cd put it in your pc's cd-rom and follow the instructions ... Shark and Mark Dee I'm testing the stable version of pan ...
    (news.software.readers)
  • Tryin to develop a jca connector
    ... I'm new to jca and reading specification is drivin me a little bit ... I' ve "googled" for sample code but the few I found are ... I supposed that it should be in the lower layer, the connection ... If make an instance of CICSSocket in the Connection class constructor, ...
    (comp.lang.java.programmer)