Click here to get back home

Access COM1: (CE) from XP via ActiveSync?

 HomeNewsGroups | Search | About
 microsoft.public.pocketpc.activesync    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Access COM1: (CE) from XP via ActiveSync? Benjamin Lukner 07-05-2007
Get Chitika Premium
Posted by Benjamin Lukner on July 5, 2007, 8:38 am
Please log in for more thread options
Hi!

I've found the following section in the RAPI help:

"You can use the CeCreateFile function to open a disk drive or a
partition on a disk drive. The function returns a handle to the disk
device. That handle can be used with the DeviceIoControl function."

Now I wonder if it is also possible to access and configure a serial
port on the device from my PC.

I don't think so, but you never know...

Kind regards,

Benjamin Lukner

Posted by Paul G. Tobey [eMVP] on July 5, 2007, 1:31 pm
Please log in for more thread options
I would guess that it probably is, but what would you do with that? You
can't set the baud rate, character size, stop bits, timeouts, etc. over a
RAPI connection, so you can't really use it as a serial port from the PC.
Since you can call DeviceIoControl, you could create the same IoControl
stuff that the serial port driver actually gets when things like
SetCommState() are called locally, but that seems like a lot of work...

Paul T.

> Hi!
>
> I've found the following section in the RAPI help:
>
> "You can use the CeCreateFile function to open a disk drive or a partition
> on a disk drive. The function returns a handle to the disk device. That
> handle can be used with the DeviceIoControl function."
>
> Now I wonder if it is also possible to access and configure a serial port
> on the device from my PC.
>
> I don't think so, but you never know...
>
> Kind regards,
>
> Benjamin Lukner



Posted by Benjamin Lukner on July 6, 2007, 5:18 am
Please log in for more thread options
Paul G. Tobey [eMVP] wrote:
> I would guess that it probably is, but what would you do with that? You
> can't set the baud rate, character size, stop bits, timeouts, etc. over a
> RAPI connection, so you can't really use it as a serial port from the PC.
> Since you can call DeviceIoControl, you could create the same IoControl
> stuff that the serial port driver actually gets when things like
> SetCommState() are called locally, but that seems like a lot of work...

Hi Paul,

thanks for your answer!

The background for my question was that on the CE device there's a
built-in IC connected via serial port that can be programmed. So I
thought if it would be possible to program it directly from my PC.

But there's also no problem to copy&execute a "wrapper" to the device
that "tunnels" the COM port to my PC.

Regards,
Benjamin Lukner

Posted by Paul G. Tobey [eMVP] on July 9, 2007, 1:32 pm
Please log in for more thread options
I'd guess that you could probably do it, but, yes, the value of programming
it directly from the PC would have to be balanced against the fact that it
really doesn't look like a simple serial port any more because of the
necessity of doing DeviceIoControl() rather than SetCommState(), etc.

Paul T.

> Paul G. Tobey [eMVP] wrote:
>> I would guess that it probably is, but what would you do with that? You
>> can't set the baud rate, character size, stop bits, timeouts, etc. over a
>> RAPI connection, so you can't really use it as a serial port from the PC.
>> Since you can call DeviceIoControl, you could create the same IoControl
>> stuff that the serial port driver actually gets when things like
>> SetCommState() are called locally, but that seems like a lot of work...
>
> Hi Paul,
>
> thanks for your answer!
>
> The background for my question was that on the CE device there's a
> built-in IC connected via serial port that can be programmed. So I thought
> if it would be possible to program it directly from my PC.
>
> But there's also no problem to copy&execute a "wrapper" to the device that
> "tunnels" the COM port to my PC.
>
> Regards,
> Benjamin Lukner



Posted by Mike Hudgell on July 10, 2007, 8:00 am
Please log in for more thread options
"Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT
> I'd guess that you could probably do it, but, yes, the value of
> programming it directly from the PC would have to be balanced against the
> fact that it really doesn't look like a simple serial port any more
> because of the necessity of doing DeviceIoControl() rather than
> SetCommState(), etc.

Wouldn't it be simpler to map the port over bluetooth (providing the PC and
PDA support it)? You'd then automatically get a full COM-port on the PC for
it...

Mike



Similar ThreadsPosted
ActiveSync only finds COM1 September 18, 2005, 8:53 pm
ActiveSync Does Not release COM1 when not in use. May 15, 2007, 12:02 pm
ActiveSync 4.0 cannot access to network after a while November 3, 2005, 10:44 pm
ActiveSync and Pocket Access August 29, 2006, 9:11 am
Restricting user access to ActiveSync February 24, 2006, 7:03 pm
How to config Activesync for LAN/WAN access with Small Bus 2 March 16, 2006, 7:06 am
ActiveSync only connects when I have access to the Internet August 2, 2008, 3:46 am
Cannot access internet through ActiveSync with Windows Mobile 5.0 January 5, 2006, 10:33 am
ActiveSync window invisible, so can't access options December 1, 2006, 2:39 pm
ActiveSync 4.5 drops support for Access databases? February 15, 2007, 7:17 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap