Re: programming serial communications

acreepycow_at_yahoo.com
Date: 01/28/05


Date: 28 Jan 2005 13:37:51 -0800

i am merely trying to write a program that sends strings over the
serial port. i looked at the modem connetions to make sure i had the
correct name of the port.
Alex

Paul G. Tobey [eMVP] wrote:
> Let's start at a slightly lower level. What, exactly, are you trying
to do?
> It sounds from what you've tried to far like you are trying to
communicate
> via a modem. If that's the case, tell us what sort of communications
you're
> trying to set up (if you're dialing into an ISP-type connection or
just
> connecting to a server that will pick up the phone and use some other

> communication method).
>
> The error codes can easily be looked up using the Error Code Lookup
tool on
> the Tools menu of eVC...
>
> Paul T.
>
> <acreepycow@yahoo.com> wrote in message
> news:1106929332.462088.101690@z14g2000cwz.googlegroups.com...
> > i've been struggling to program serial communications for my pocket
pc
> > using embedded visual c++ 4.0. I followed the directions from the
msdn
> > help page
> >
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wceseril/html/cmconprogrammingserialconnections.asp.
> > I started to create a modem connection from the communications
window
> > and found the serial port name to be "Hayes Compatible on COM1:".
then
> > i finally figured out how to put the string in the correct format
to be
> > a COM name and the code was able to compile. when i run it it
doesn't
> > not work and the error code from SetCommState is 6, which i have
looked
> > up to mean "The handle is invalid."
> > Could anyone tell me what this error means? I'm relatively new to
> > (embedded) visual studio and don't really understand what a handle
is.
> > thank you very much in advance
> > Alex Steingart
> > Duke University '06
> >



Relevant Pages

  • Re: CF2.0 WM5 Comms help required please
    ... FOr the built-in modem, it won't work like a serial port. ... What I *now* want to do is develop the app further my using VB.Net 2005 to ... The previous GSM modem worked, as did previous attemtps to use a GSM ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: CF2.0 WM5 Comms help required please
    ... During the development of this application I also connected a GSM modem to ... The latter two methods used a virtual serial port rather ... What I *now* want to do is develop the app further my using VB.Net 2005 to ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: minicom serial output
    ... >>doesn't react and a multimeter accross the serial port shows that no data ... I already changed the modem initialisation string to ... >>'D' (one of the commands recognised by my device) and I can get my device ... > present minicom configuration, go back to the default configuration ...
    (comp.os.linux.hardware)
  • Re: GSM modem driver with multiplexing
    ... > I need to write a driver for GSM modem connected to serial port. ... > multiplexing is needed because I want to have PPP connection opened and ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Best fax modem settings to receive from multifunction devices?
    ... On compatibility with other machines, I find that turning ECM *OFF* works ... If speeds do not matter, why do MVPs ... I also switched between that one and the motherboard serial port (this ... defaults, reset the COM ports to default, reset the Modem speed to ...
    (microsoft.public.windows.server.sbs)