Serial comm with vb and comm control 
Author Message
 Serial comm with vb and comm control

Hi,

I have a problem with the MS COMM Control provided with vb5-6.

It's not possible to make a protocol with a START BIT.
(and this is what i need to communicate with a hardware device)

Only baudrate, parity, data bit, stop bit.

If someone has a solution for this, please tell me.

TNX!!

Wimpie



Wed, 20 Feb 2002 03:00:00 GMT  
 Serial comm with vb and comm control
There is a start bit on every character by default.  The MSCOMM control
manipulates the port with the WIN32 API.  Look at the DCB type in the
api text viewer.  It provides no entry for start bits, so you're stuck
with the default which is probably what your protocol requires anyway.

Doug Moore

Quote:

> Hi,

> I have a problem with the MS COMM Control provided with vb5-6.

> It's not possible to make a protocol with a START BIT.
> (and this is what i need to communicate with a hardware device)

> Only baudrate, parity, data bit, stop bit.

> If someone has a solution for this, please tell me.

> TNX!!

> Wimpie




Wed, 20 Feb 2002 03:00:00 GMT  
 Serial comm with vb and comm control
The UARTs in a PC always use one start bit and there is no way to use
anything other than this. In other words you do not really have a
problem because all RS232 devices including your PC use one start bit.
I would recommend getting a good book on the MSCOMM control like the
Visual Basic Programmers Guide to Serial Communications by Richard
Grier. You can find it at www.amazon.com or at:
http://ourworld.compuserve.com/homepages/richard_grier.

For a good tutorial on serial communications and more serial I/O
solutions visit http://www.taltech.com



Quote:
>Hi,

>I have a problem with the MS COMM Control provided with vb5-6.

>It's not possible to make a protocol with a START BIT.
>(and this is what i need to communicate with a hardware device)

>Only baudrate, parity, data bit, stop bit.

>If someone has a solution for this, please tell me.

>TNX!!

>Wimpie




Sat, 02 Mar 2002 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Serial comm control vb.net

2. Serial Comm Break and RTS control

3. want serial comm control

4. Serial Comm Control

5. How to loop comm port control to read text files through serial port in VB3

6. Getting Data from Serial Port using Comm Control

7. A Recent Serial Comm Control (OCX/ActiveX)?

8. Getting Data from Serial Port using Comm Control

9. Getting Data from Serial Port using Comm Control

10. Comm control Serial Tx

11. serial port and comm control

12. How to Do Serial Comm in VB.net ??

 

 
Powered by phpBB® Forum Software