mspocketpc.org Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what are API for Bluetooth Internet Access using "dial up nu

 
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developer Networking
Author Message
sisimma



Joined: 17 Jan 2008
Posts: 5

PostPosted: Fri Feb 22, 2008 9:00 am    Post subject: what are API for Bluetooth Internet Access using "dial up nu Reply with quote

Hi,
I'm developing an socket application on Windows Mobile via Bluetooth.
Once Bluetooth is set up for Internet access using Dial up null modem, my
program can get a IP from 'socket()'function so that it connects IP network.

However, when Windows mobile wakes up after sleep mode, current my program
cannot get a IP address because 'socket()' does not return an IP.
In this situation, if I run Internet Explorer on Windows mobile, it goes
through Bluetooth Internet using Dial Null Modem. then my program can get the
IP that is assigned when Internet explorer connected to Internet.

Could you please how to use the APIs for the Bluetooth dial up null modem on
Windows mobile?

thank you so much.

Archived from group: microsoft>public>pocketpc>developer>networking
Back to top
View user's profile Send private message
Peter Foot



Joined: 01 Sep 2007
Posts: 56

PostPosted: Mon Feb 25, 2008 1:24 pm    Post subject: Re: what are API for Bluetooth Internet Access using "dial u Reply with quote

If your Bluetooth modem is setup correctly then Connection Manager should be
able to establish a connection through it - see ConnMgrEstablishConnection
and related APIs. Alternatively you could call the RAS API directly to
establish the connection.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
www.peterfoot.net | www.inthehand.com
In The Hand Ltd - .NET Solutions for Mobility

"sisimma" wrote in message @microsoft.com...
> Hi,
> I'm developing an socket application on Windows Mobile via Bluetooth.
> Once Bluetooth is set up for Internet access using Dial up null modem, my
> program can get a IP from 'socket()'function so that it connects IP
> network.
>
> However, when Windows mobile wakes up after sleep mode, current my program
> cannot get a IP address because 'socket()' does not return an IP.
> In this situation, if I run Internet Explorer on Windows mobile, it goes
> through Bluetooth Internet using Dial Null Modem. then my program can get
> the
> IP that is assigned when Internet explorer connected to Internet.
>
> Could you please how to use the APIs for the Bluetooth dial up null modem
> on
> Windows mobile?
>
> thank you so much.
Back to top
View user's profile Send private message
sisimma



Joined: 17 Jan 2008
Posts: 5

PostPosted: Tue Feb 26, 2008 10:21 pm    Post subject: Re: what are API for Bluetooth Internet Access using "dial u Reply with quote

Thank you so much, Peter.
You are the only and first person who answered my questions.

I referred an article which is titled as
"Using Connection Manager to Establish Data Calls"
http://msdn2.microsoft.com/en-us/library/ms838160.aspx

sample code available :
http://download.microsoft.com/download/2/7/a/27ad518a-32d8-4638-b704-2b7485cb5cd1/datacall.exe


Now my app. can launch a data call using Bluetooth even when a Windows
mobile is at the moment after wake-up following sleep mode.

keep in mind that the function "EstablishConnection(TCHAR *IPout)" should be
called after WSAStartup( wVersionRequested, &wsaData ).

Good luck.
Sean.


"Peter Foot" wrote:

> If your Bluetooth modem is setup correctly then Connection Manager should be
> able to establish a connection through it - see ConnMgrEstablishConnection
> and related APIs. Alternatively you could call the RAS API directly to
> establish the connection.
>
> Peter
>
> --
> Peter Foot
> Microsoft Device Application Development MVP
> www.peterfoot.net | www.inthehand.com
> In The Hand Ltd - .NET Solutions for Mobility
>
> "sisimma" wrote in message
> @microsoft.com...
> > Hi,
> > I'm developing an socket application on Windows Mobile via Bluetooth.
> > Once Bluetooth is set up for Internet access using Dial up null modem, my
> > program can get a IP from 'socket()'function so that it connects IP
> > network.
> >
> > However, when Windows mobile wakes up after sleep mode, current my program
> > cannot get a IP address because 'socket()' does not return an IP.
> > In this situation, if I run Internet Explorer on Windows mobile, it goes
> > through Bluetooth Internet using Dial Null Modem. then my program can get
> > the
> > IP that is assigned when Internet explorer connected to Internet.
> >
> > Could you please how to use the APIs for the Bluetooth dial up null modem
> > on
> > Windows mobile?
> >
> > thank you so much.
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
pocket pc emulator - can't access internet Hi, I have a basic network with local router. Have installed pocket pc emulator 5.0 msfp. Have installed the emulator images. I can't browse the net and probably the network. I have bind the ne2000 driver to my network car on my laptop. Here is the startu

access to network card is there a way (in c#)to access network card (pocket pc)and renew ip (obtained from dhcp) , other that with p/invoke to import iphlpapi.dll. thanks.

Access web service using PPC emulator Hi, I noticed that some people have problems writing a Pocket PC (PPC) program that access the web service in the same notebook. Symptoms are: cannot contact web service, intermittent problems accessing the web service, etc. These problems happen especial

can you access a LAN via PPC 2003 device in a cradle? ?

PPC HTTP Client cannot access Desktop PC Setup: I have a PPC device in cradle with ActiveSync4.1 It is set up so that I can access the internet via the desktop PC's internet connection. This shows that TCP/IP comms is fine. I also have an HTTP server listening on the PC's IP addr
Post new topic   Reply to topic    mspocketpc.org Forum Index -> Developer Networking All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group