Interfacing PC with VB6.0 Help

Status
Not open for further replies.

augusbas

Newbie level 3
Joined
Oct 24, 2006
Messages
3
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,302
hi

i am going to connect PC DB-9 serial port to Max232 ic

From MAX i will get the data to the PC.

using VB how can i configure the serial port,Collect data?

How will be the connection i.e wiring between serial ports & Max232?only i need to connect 2 (RXD) to T1Out of MAX232 , 3(TXD) to R1In of MAX 232 & 5 to gnd of DB9. or more else connection is needed?
 

first u require a microcontroller to do this
see how i had done with AVR microcontroller
**broken link removed**
**broken link removed**
**broken link removed**
**broken link removed**

Bibin John
www.bibinjohn.tk
 

Assalamo Allykum !

Your connections are perfect. Only three connections are needed to receive and transmit the data form PC to Microcontroller.

Use the following command to Write ther Data form the PC .....

MsComm1.Output = Chr$(Data)

Use the following command to Read the data from the PC .......

If CommEvent = ComEvReceive Then

(variable) = MsComm1.Input ; The received data is in the styring format
; Convert it to the Integer
End if




Take Care

If you have any confusion then you are free to ask.

Keep remember me in your prauers.
 

ey...baskar....

first make sure the connections(between pc and serial port tx=rx and rx=tx) i forgot about that pin number.use mazidi book.and open the communication control (mscomm)in the vb.make the port open =true,set the baudrate.like that difrent options u just check the property window and st the proper controls.
"Why don't you download and read the manuals? It will have all the information you need. If you can't do the minor research necessary to figure out PC interface you have no business messing with the PC in the first place."
K.....if any doubt try to contact me.....
All de best
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…