Re: MSComm Control

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Dick Grier (dick_grierNOSPAM_at_msn.com)
Date: 03/25/04


Date: Thu, 25 Mar 2004 08:29:31 -0700

Hi,

>>
I then tried another Telnet client - ZOC and that one
worked. I can't figure it out.
<<

Telnet isn't an issue, unless you are doing this remotely. The Weigh-tronix
scales that I have seen are quite simple. You just connect the cable,
configure the serial port (including RTS), and enable OnComm receive by
setting RThreshold = 1. Data are delimited by a vbCRLF, so receiving each
message is straight forward. You append it to a buffer and display the
result in a text box -- you can parse the results as soon as the CFLF have
been received.

I'd have to suspect that you have a configuration problem, but without more
information, or hands-on with the scale, it is hard for me to suggest
anything else.

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.


Relevant Pages

  • Re: What is Hyperterminal for?
    ... communicate directly with a modem, a serial port, to link two PCs together ... actual Windows "Component" used when Windows needs a telnet client. ... To some people it IS a useful tool that carries so little overhead it may as ...
    (microsoft.public.windowsxp.general)
  • Re: RS-232 Digital thermometer - interface and driver
    ... But the big advantage of a modem program for initial ... testing is that you can change the serial port configuration ... > modem program (and a Telnet client, FTP client, etc etc) but also a ... Thanks for the links, Frank. ...
    (comp.os.linux.misc)
  • Re: Finding a pattern in a stream?
    ... Just doing a quick read of the page it looks as though Regex functions ... similarly to the InStr() function. ... read of the serial port I get "TH". ... > my app to disconnect the telnet client. ...
    (microsoft.public.dotnet.languages.vb)