Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Compact Framework / March 2007

Tip: Looking for answers? Try searching our database.

Start a mobile application from the PC

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jimmy - 29 Mar 2007 23:47 GMT
Hello all,

I would like to start an application on a Pocket PC 2003 device when,
for example, the user presses a button in a .Net application running
on the PC.  Its fair if the device has to be cradled, but I'd also
like ideas for when the device is not cradled.

Any ideas?

Thanks,
jimmy
Paul G. Tobey [eMVP] - 30 Mar 2007 00:21 GMT
You're going to have to do something *very* custom for the not-cradled case,
to be general.  While on the cradle, you can look up the functions in the
Remote API, or RAPI.  It will allow you to launch a program that's on the
device under the control of a program running on the connected PC.
OpenNETCF, among other things, has a managed code wrapper for the RAPI API.
www.opennetcf.org.  Since you're using an older device type, you could use
ActiveSync 3.8 and use RAPI over the network to do the same thing, too,
using the same API, but AS3.8 really isn't supported, because of security
problems, by MS any more.  ActiveSync 4.x doesn't support network sync
between ordinary desktop PCs and devices.

For not cradled, you could create a server program running on the device to
which the PC could connect over the network (WinSock sockets-type
application), and send it a command to do something.  There are standard
methods that you could use to create this server (make it use the Telnet
protocol and port, for example).  This *will* be a security problem and
there's a problem knowing what the device's IP address is, particularly if
it's a phone.  There are no good solutions for this problem (you could have
a server where a device calls up and registers its name and IP address any
time it changes and your PC program could do a lookup by name to find the
address, etc.), so I think you're going to have to provide some more details
about what's OK, what's not OK, where 'on the network' the device will be,
etc.

Paul T.

> Hello all,
>
[quoted text clipped - 7 lines]
> Thanks,
> jimmy
Neil Cowburn - 30 Mar 2007 11:42 GMT
Direct link the product Paul is talking about: the Desktop Communications
library --  http://www.opennetcf.com/sharedsource/communication.ocf

Signature

Neil Cowburn
Principal Partner
OpenNETCF Consulting, LLC.

Managed Code in the Embedded World

http://www.opennetcf.com/
http://www.smartdeviceframework.com/

> You're going to have to do something *very* custom for the not-cradled
> case, to be general.  While on the cradle, you can look up the functions
[quoted text clipped - 33 lines]
>> Thanks,
>> jimmy
chris-s@mailcity.com - 30 Mar 2007 09:07 GMT
> Hello all,
>
[quoted text clipped - 7 lines]
> Thanks,
> jimmy

Following on from Paul's suggestion for the 'disconnected' method, you
could use a webservice and have an app running on the device which is
monitoring the webservice for an updated value. Might be a bit easier
to implement than a sockets based idea depending on your experience.

Of course, either disconnected solutions should work fine in the
'connected' scenario.

Chris
jimmy - 30 Mar 2007 16:00 GMT
thanks to everyone.

i'll be using the the OpenNET Desktop.Communication solution to get
something working quickly, and then work on implementing one of the
disconnected solutions.

- jimmy

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.