Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_vb thread: binary serial comm


Message #1 by "Alessandro Montanari" <montanari.a@p...> on Mon, 18 Feb 2002 09:13:06
If I am understanding you right, you are trying to communicate with another
device suing the serial port.  The data stream is binary, which makes total
sense, however instead of using a the standard 1 bit start you are using a 1
and a half bit start.  Then you are trying to read the data that follows.

If this is correct then it is much like reading a PLC (Programmable Logic
Controller) used for automation.  A friend of mine was tasked to do this and
when she was interacting with the PLC using VB it required her to use
WINSOCK.  Using winsock she was able to use the serial port and communicate
with the PLC's.

I would search the web for examples of winsock programs and see how winsock
is used and configured.  I'm positive this will work for you.  

I hope this helps.

Thanks

Crane Whitehead
Programmer / Analyst
cwhitehead@h...
xxx.xxx.xxxx
 
Healthaxis
Computing and Network services
http://www.healthaxisasg.com


 -----Original Message-----
From: 	Kim, Cardyin [mailto:CKim@s...] 
Sent:	Monday, February 18, 2002 1:48 PM
Subject:	RE: binary serial comm

For this application I would actually recommend using another
language besides VB.  Perhaps C++ would be able to meet
your needs a bit more, unless of course you have VS.NET
that it doesn't matter what language you write it in.
Both C++ and VS.NET will give you the much finer control
you need.

Cardyin

-----------------------------------------
Cardyin Kim
Client/Server and Web Development Analyst
San Antonio Community Hospital
Upland, California
ckim@s...        (xxx) xxx-xxxx
-----------------------------------------


-----Original Message-----
From: Alessandro Montanari [mailto:montanari.a@p...]
Sent: Monday, February 18, 2002 1:13 AM
To: professional vb
Subject: [pro_vb] binary serial comm


I am processing an application to control a remote device custom-made that 
requires serial control messages in binary mode at a baud rate of 38,4 Kb, 
but the frame size is variable... What I mean is that apart from start bit 
(that is 1 and 1/2 bits long) the "body" of the message ranges from 4 up 
to 60 bits!
I tried to analyze "in deep" the MSCOMM object, but I wasn't able to suit 
it to my needs...

Any suggestion is useful...

Regards,
Alessandro Montanari

to unsubscribe send a blank email to ...

  Return to Index