How to use a coin acceptor in VB
Posted on 2001-06-19
I'm now working with a coin acceptor and the comm port.
Using this code i'm able to reciebe the pulses of the acceptor.
Private Sub MSComm1_OnComm()
Select Case MSComm1.CommEvent
but it fails with some pulses and don't works at 100% and i have to achieve that every pulse sent by the acceptor is triggered by my program.
I am using this code to initialize the serial port:
MSComm1.CommPort = 2
MSComm1.InputLen = 0
MSComm1.Handshaking = comNone
MSComm1.PortOpen = True
I need help about what are the correct parameters to program the Mscomm to receive/send pulses to the acceptor.
I have NO idea about comm programmming and i'm actualing searching info about that :)
Thanks in advance