PC Review


Reply
Thread Tools Rate Thread

ActiveSync question

 
 
Simone
Guest
Posts: n/a
 
      5th Sep 2003
We're building an app using SQL Server 2000, and .NET Compact Framework on
Pocket PC 2002. Requirements include the desktop application to control what
is being sent to the device, and what's being received on the desktop. The
data will be synced often, via cradle, no wireless. Data would consist of
some fields, and binary data. As soon as the device is docked, I would like
to send the data, no questions asked, and if an error occurs, the desktop
should handle it. Data would be passed back and forth from device to
desktop.

Browsing through the newsgroups I realized there were some many different
ways of passing data. I would prefer RDA, but reason I'm avoiding it is
because of this activesync requirement. I still have a lot of questions:
1) The only way to sync as soon as device is docked would be by creating an
ActiveSync provider, is this correct, or is there an easier way?
2) As of today are there any .NET wrappers for writing ActiveSync providers?
3) Can I program the ActiveSync provider to send data directly to ADO and
Sql Server over TCP?
4) Any sample applications for creating providers like that?

Thanks in advance for all your help.

Simone


 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a
 
      5th Sep 2003
If you want to completely ignore whether the device is connected or not on
the device side, MSMQ is the best way to do that. You drop the message you
want to send into the queue and then completely forget about it. When a
connection to the PC is available, the message is sent. The PC, then is
responsible for doing whatever it needs to do with the data. MSMQ is also
transport independent. Although you now think that the cradle is the only
connection to the device, you'll be wrong about that soon. Someone will
need to use cellular or RF Ethernet and you'll have to start writing special
cases for the connection...

Paul T.

"Simone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> We're building an app using SQL Server 2000, and .NET Compact Framework on
> Pocket PC 2002. Requirements include the desktop application to control

what
> is being sent to the device, and what's being received on the desktop. The
> data will be synced often, via cradle, no wireless. Data would consist of
> some fields, and binary data. As soon as the device is docked, I would

like
> to send the data, no questions asked, and if an error occurs, the desktop
> should handle it. Data would be passed back and forth from device to
> desktop.
>
> Browsing through the newsgroups I realized there were some many different
> ways of passing data. I would prefer RDA, but reason I'm avoiding it is
> because of this activesync requirement. I still have a lot of questions:
> 1) The only way to sync as soon as device is docked would be by creating

an
> ActiveSync provider, is this correct, or is there an easier way?
> 2) As of today are there any .NET wrappers for writing ActiveSync

providers?
> 3) Can I program the ActiveSync provider to send data directly to ADO and
> Sql Server over TCP?
> 4) Any sample applications for creating providers like that?
>
> Thanks in advance for all your help.
>
> Simone
>
>



 
Reply With Quote
 
Simone
Guest
Posts: n/a
 
      5th Sep 2003
Thanks for the input. MSMQ does seem like a more flexible option. I will do
some researching on MSMQ.

"Paul G. Tobey [eMVP]" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> If you want to completely ignore whether the device is connected or not on
> the device side, MSMQ is the best way to do that. You drop the message

you
> want to send into the queue and then completely forget about it. When a
> connection to the PC is available, the message is sent. The PC, then is
> responsible for doing whatever it needs to do with the data. MSMQ is also
> transport independent. Although you now think that the cradle is the only
> connection to the device, you'll be wrong about that soon. Someone will
> need to use cellular or RF Ethernet and you'll have to start writing

special
> cases for the connection...
>
> Paul T.
>
> "Simone" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > We're building an app using SQL Server 2000, and .NET Compact Framework

on
> > Pocket PC 2002. Requirements include the desktop application to control

> what
> > is being sent to the device, and what's being received on the desktop.

The
> > data will be synced often, via cradle, no wireless. Data would consist

of
> > some fields, and binary data. As soon as the device is docked, I would

> like
> > to send the data, no questions asked, and if an error occurs, the

desktop
> > should handle it. Data would be passed back and forth from device to
> > desktop.
> >
> > Browsing through the newsgroups I realized there were some many

different
> > ways of passing data. I would prefer RDA, but reason I'm avoiding it is
> > because of this activesync requirement. I still have a lot of questions:
> > 1) The only way to sync as soon as device is docked would be by creating

> an
> > ActiveSync provider, is this correct, or is there an easier way?
> > 2) As of today are there any .NET wrappers for writing ActiveSync

> providers?
> > 3) Can I program the ActiveSync provider to send data directly to ADO

and
> > Sql Server over TCP?
> > 4) Any sample applications for creating providers like that?
> >
> > Thanks in advance for all your help.
> >
> > Simone
> >
> >

>
>



 
Reply With Quote
 
John Atkins
Guest
Posts: n/a
 
      7th Sep 2003
To start an app automatically when ActiveSync connects, set the following
key in the PC's registry

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows CE Services\AutoStartOnConnect

to the name of the exe to execute and any parameters.

For example, setting it to

"notepad" "C:\\temp.txt"

will invoke Notepad to open a file called C:\temp.txt

hence you could auto execute your RDA program

John.


"Simone" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> We're building an app using SQL Server 2000, and .NET Compact Framework on
> Pocket PC 2002. Requirements include the desktop application to control

what
> is being sent to the device, and what's being received on the desktop. The
> data will be synced often, via cradle, no wireless. Data would consist of
> some fields, and binary data. As soon as the device is docked, I would

like
> to send the data, no questions asked, and if an error occurs, the desktop
> should handle it. Data would be passed back and forth from device to
> desktop.
>
> Browsing through the newsgroups I realized there were some many different
> ways of passing data. I would prefer RDA, but reason I'm avoiding it is
> because of this activesync requirement. I still have a lot of questions:
> 1) The only way to sync as soon as device is docked would be by creating

an
> ActiveSync provider, is this correct, or is there an easier way?
> 2) As of today are there any .NET wrappers for writing ActiveSync

providers?
> 3) Can I program the ActiveSync provider to send data directly to ADO and
> Sql Server over TCP?
> 4) Any sample applications for creating providers like that?
>
> Thanks in advance for all your help.
>
> Simone
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ActiveSync question chook.harel@gmail.com Microsoft Dot NET Compact Framework 6 25th May 2006 06:12 PM
ActiveSync question =?Utf-8?B?UGV0ZXIgU2NobWl0eg==?= Microsoft Dot NET Compact Framework 1 23rd Apr 2005 02:41 PM
ActiveSync Question bxb7668 Windows XP Basics 2 18th Jan 2005 08:12 PM
Question about ActiveSync and Outlook DRIESSEN Michel Microsoft Outlook 1 24th Dec 2004 12:21 PM
How to question: RAPI based desktop app and ActiveSync Coder Microsoft Dot NET Compact Framework 0 29th Aug 2003 07:18 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:05 PM.