Posted on 1999-08-01
Thanks to Rockie for pointing out my problem last time... but I have hit another - and I am sure it is just as easy!! (Maybe I should stick to databases in the future)...
OK: I am communicating with a gizmo via COM1 which has an LCD display to show bytes received/transmitted. I know the correct bytes to send to this machine to get it to respond, but when I send them via "mscomm1.output = <string>" it does nothing! I know the string is correct because if I add a 'VB watch' to the string and then copy it to the clipboard, I can open up Hyper-terminal, set it up for COM1 and then "paste to host" from the clipboard and voila! - correct response from gizmo!!
I guess my question is: Is there anything at all I need to do other than the following?
msc1.CommPort = 1
msc1.Settings = "1200,n,8,1"
msc1.Handshaking = comNone
msc1.PortOpen = True
msc1.output = String$
msc1.PortOpen = False
Remember: Pasting String$ through Hyperterminal works just fine. There is something I am just not understanding about VB comms - can anyone enlighten me?
In case it is relevent, String$ is a five-line text message with lines separated by &HA (linefeed) and it starts with &H02 and ends with &H03 &H0D