Re: Serial/USB communication by Chris
Chris
Fri Jul 09 11:18:59 CDT 2004
If you get a cable that has the serial connector, it doesn't use the USB -
it uses the internal device UART, so you use it like any serial port
(CreateFile(_T("COMn:")...)
--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
---
Principal Partner
OpenNETCF Consulting
www.OpenNETCF.com
"Geoff Callaghan" <gcallaghan@trakeng.com> wrote in message
news:O42Bh8cZEHA.3664@TK2MSFTNGP12.phx.gbl...
> I understand that, but my question is more on a coding basis. Once I have
> that cable, do I code as if it's a serial port, or do I have to learn how
to
> program for USB?
>
>
> "Chris Tacke, eMVP" <ctacke@spamfree-opennetcf.org> wrote in message
> news:OVtO5lcZEHA.2516@TK2MSFTNGP10.phx.gbl...
> > USB != RS232. There are converters for some, but with a PPC, you'd need
> USB
> > hosting, which is way different that USB function and is not avaiable on
> > most PPCs. You need to get a cable from the OEM that has the 9-pin
RS232
> > connector.
> >
> > --
> > Chris Tacke, eMVP
> > Co-Founder and Advisory Board Member
> > www.OpenNETCF.org
> > ---
> > ---
> > Principal Partner
> > OpenNETCF Consulting
> > www.OpenNETCF.com
> >
> >
> >
> > "Geoff Callaghan" <gcallaghan@trakeng.com> wrote in message
> > news:%23h7QTbcZEHA.2488@tk2msftngp13.phx.gbl...
> > > That's very interesting. It does raise another question I have been
> > > wondering about: are all USB ports capable of being used as serial
> ports,
> > or
> > > is the USB port on a PocketPC special in that respect? Do I need to
look
> > for
> > > a special kind of PocketPC, one with a serial port, or can I just use
> the
> > > USB port and treat it like a serial?
> > >
> > >
> > >
> > > "Bruce Eitman (eMVP)" <beitmannospam@nospam.neo.rr.com> wrote in
message
> > > news:uLPPp$TZEHA.644@tk2msftngp13.phx.gbl...
> > > > External device is kind of vague.
> > > >
> > > > If the external device has a USB Host port, like on a PC, you can
use
> > USB.
> > > > If on the other hand you are talking about something like a camera,
> > mouse,
> > > > keyboard, storage device, then USB is not an option.
> > > >
> > > > That leaves you with serial, Irda, Bluetooth, 802.11...
> > > >
> > > > --
> > > > Bruce Eitman (eMVP)
> > > > Senior Engineer
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>