Hello everyone,
I'm currently developing an application in VB6 that communicates with module over serial port (text mode, not binary).
Everything I send or receive are characters.
MSComm is giving me an echo, so I can see what the application has sent to the module.
Init of port
I'm using the real serial port, not RS232-TTL USB thing.
Application works fine BUT there is an issue - when I send hex value 1A ( comm.Output = Chr(&H1A) ) to the module, MSComm echos something different - 00 :(
That's also what module has received (I can monitor received values on it).
Any other value, different from hex 1A is sent and received properly.
Does anyone has some ideas about this?
Thanks,
Peka
I'm currently developing an application in VB6 that communicates with module over serial port (text mode, not binary).
Everything I send or receive are characters.
MSComm is giving me an echo, so I can see what the application has sent to the module.
Init of port
Code:
comm.Settings = "19200,N,8,1"
comm.Handshaking = 0
comm.CommPort = 1
comm.RThreshold = 1
comm.InBufferSize = 2048
comm.OutBufferSize = 2048
comm.PortOpen = True
comm.InBufferCount = 0
Application works fine BUT there is an issue - when I send hex value 1A ( comm.Output = Chr(&H1A) ) to the module, MSComm echos something different - 00 :(
That's also what module has received (I can monitor received values on it).
Any other value, different from hex 1A is sent and received properly.
Does anyone has some ideas about this?
Thanks,
Peka