Sign in
|
Join
|
Help
Home
Search
Wiki
Articles
Forums
Coding Competition
Projects
OpenNETCF.com
Team Blog
OpenNETCF Community
»
.NET Compact Framework
»
How do I....?
»
Programmatically toggle flight mode using opennetcf.telephony and VB
Programmatically toggle flight mode using opennetcf.telephony and VB
Last post 09-04-2010 17:10 by
ranger.sean
. 0 replies.
Page 1 of 1 (1 items)
Sort Posts:
Oldest to newest
Newest to oldest
Previous
Next
09-04-2010 17:10
ranger.sean
Joined on 09-04-2010
New Zealand
Posts
1
Programmatically toggle flight mode using opennetcf.telephony and VB
Reply
Contact
Hi all,
I hope this is the correct forum in which to post...but if not please excuse me.
I am developing a kiosk application in VB using VS2005 for a GPRS enabled PDA running WM6. The application is to be deployed to contractors working remotely recording ecological data in forests and hill country, and it is likely that the devices will be out of cellular coverage for much of the time, therefore it is desirable to have the cellular radio turned off unless data is being emailed back to base by the user (taken care of programmatically elsewhere within the application).
The device (a Trimble Juno SC) has a GPRS modem but there is no voice or SMS capability. The default wireless state on this device seems to be flight mode i.e. the modem is powered down. I can manually change this state in the GUI prior to initiating a data connection, however if the device is subsequently powered off then the wireless state reverts to flight mode. Which is problematic as it is not desirable for end users to have access to change settings likes this. What I need is the ability to programmatically toggle flight-mode as required from within the application.
Having done the obligatory Google search I found myself reading about the OpenNETCF TAPI library which seems to offer the functionality that I require, but despite grabbing the .dll and samples from the CodePlex website I am still a bit stumped as to how to make it work in practice.
The flight mode sample provided was coded in VB for a Pocket PC 2003 device but I cannot make it work for the WM6 device that I'm developing for. I came across a post from the developer giving a brief example in C#, but unfortunately I only know VB code!. And even then my skills are fairly rudimentary.
I would be very grateful if someone could help me by providing a basic example in VB of how to make this function work on a WM6 device. At its crudest I'm simply looking to toggle flight mode on/off using a button click event.
If someone could give me that then I should be fine from there.
Any help gratefully received.
Cheers,
Sean
Filed under:
TAPI
,
VS2005
,
opennetcf.telephony
,
VB
Page 1 of 1 (1 items)