SetCommTimeouts() troubles

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hello
i am trying to use NetSerial example [with some addons etc.
i am having broblems setting the read timeout of the serial port
the code involved calls SetCommTimeouts(
has anybody managed to use this function with any other timeout except 0xffffffff

Thanks
 
The time-outs are a structure of values, too. It's not clear from your
comment that you understand that. Show the code that's giving problems...

Paul T.

Chris Tacke said:
Yes, I've used it without problem.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Max K. said:
hello!
i am trying to use NetSerial example [with some addons etc.]
i am having broblems setting the read timeout of the serial port.
the code involved calls SetCommTimeouts()
has anybody managed to use this function with any other timeout except 0xffffffff ?

Thanks.
 
What is the problem? These should work without any trouble.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.
 
Yes, I've used it without problem.

--
Chris Tacke, eMVP
Co-Founder and Advisory Board Member
www.OpenNETCF.org
---
Windows CE Product Manager
Applied Data Systems
www.applieddata.net


Max K. said:
hello!
i am trying to use NetSerial example [with some addons etc.]
i am having broblems setting the read timeout of the serial port.
the code involved calls SetCommTimeouts()
has anybody managed to use this function with any other timeout
except
0xffffffff ?

I'm using the OpenNETCF.IO.Serial class to do some simple BT printing
and everything is working fine, until I turn off the printer and try to
send. Is there any way to set a timeout for the OpenNETCF Port object?


// create the port settings
DetailedPortSettings portSettings = new HandshakeNone();

// create a default port on COM8 with no handshaking
port = new Port(PortNumber, portSettings);

I've looked at SetCommTimeouts, but the timeout is for the handle the
PInvoke version or the COM code.

Any insight is appreciated.

-a
 
Back
Top