USB connexion

  • Thread starter Thread starter Vincent A.
  • Start date Start date
V

Vincent A.

Hi !

I'm developping using C# and .NET CF 1.0. I'd like to connect an USB
printer on my device. I know how to manipulate serial port COM1: /
COM2: but i've never tested with an USB port. Can I manipulate USB as
Serial port ?

Thanks in advance,

Vincent.
 
Hi,
Can I manipulate USB as
Serial port ?
<<

Not unless that device (printer) is installed as a serial printer. Almost
certainly it IS NOT. Instead it is a standard printer, and you would use
exactly the same methods that you would use if it were a parallel printer.
In fact, even if had been installed as a serial device, you still would
(normally) choose to use standard printer output, otherwise, you would be
bypassing the Windows print spooler, etc.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
Hi Vincent,

Sorry, I misread your post, completely! I must have been asleep.

In answer to your real question.... No. The USB port is not a serial port,
and standard serial APIs cannot be used. In fact, there is nothing that you
can do with the USB port (except to use it for ActiveSync -- and, thereby,
use it for a network connection via TCP/IP, or from the desktop via RAPI).

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
First of all, you'd need USB host on your device to connect anything with
USB interface.

Most devices don't have USB host, only client, so USB connection is not
possible at all.

If your particular device has USB host, please contact printer manufacture
for Windows CE driver and SDK.


--
Best regards,


Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
Back
Top