Re: network access and WiFi control
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Tue, 18 Dec 2007 11:51:05 -0700
There's no right answer to this. The device OEM, not Microsoft, decides if
the WiFi connection is shut down when the device suspends or not (or if the
device can suspend when there is traffic). Certainly, if you are using a
'card' for WiFi (which I'd guess almost everyone is, even if the card is not
user-unpluggable), there's little doubt that the card will be powered off
when suspend occurs and I suspect that the WiFi driver is either not
configured to keep the device on when active or just doesn't support that.
If the amount of time you might be 'up' is limited, you can keep the device
on by periodically calling SystemIdleTimerReset(). This will also keep the
screen on, so that might not be what you're after, exactly, of course.
If you absolutely must have it so that the screen can go dark, etc., but the
WiFi has to keep the device from going into full suspend, you're going to
need to look at the registry settings for the network adapter and maybe NDIS
itself. The documentation may be on MSDN (Windows CE x.x or Platform
Builder x.x).
Paul T.
"Glindberg" <Glindberg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DC764B62-83AD-4877-9572-59AB7D122CA7@xxxxxxxxxxxxxxxx
I the case I'm trying to solve, the user has started the program up and
requested some data from the backend server. If the WiFi link is set up
to
time out after the display goes dark, then the connections to the back end
are dropped, even though the documentation says that the WiFi won't be
shut
off if there is traffic. I need to be able to signal the WiFi connection
to
stay up and then release it when I'm done.
"Paul G. Tobey [eMVP]" wrote:
It's up to the user of the device to decide whether WiFi is on or off and
what it connects to. You'll have to be more-specific about why you think
that WiFi is the right answer on this particular device, configured as it
is. That is, what is the full scenario? The device is always in contact
with WiFi? The device might be in range of one of your own access
points?
The device is in the user's hand and he might be 2000 miles from the
nearest
WiFi network?
Paul T.
"Glindberg" <Glindberg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:43E23794-771C-445A-B483-ED3E68E180CD@xxxxxxxxxxxxxxxx
I have a Windows Mobile 6 program running that uses the CInternetSession
GetHttpConnection() to establish a connection to our web site and
transfer
data. Now I need to request that the WiFi connect and stay up while
I'm
connected and then release Wifi when I'm done.
I've tried ConnMgrEstablishConnection(), but even establishing
connections
to all of the destinations that ConnMgr enumerates doesn't start or
keep
Wifi
up.
Any suggestions on what would be a better solution would be greatly
appreciated.
.
- Follow-Ups:
- Re: network access and WiFi control
- From: Glindberg
- Re: network access and WiFi control
- References:
- Re: network access and WiFi control
- From: Paul G. Tobey [eMVP]
- Re: network access and WiFi control
- Prev by Date: Re: PLATFORM DEFINE
- Next by Date: Re: wxwidget
- Previous by thread: Re: network access and WiFi control
- Next by thread: Re: network access and WiFi control
- Index(es):
Relevant Pages
|
Loading