|
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
|