While I'm waiting for my cables needed to use the plugin for my Monoprice HDMI switch, I thought I would use hs.comportsend to operate the switch.
It works great using hyperterminal. If I send "A2" I set the output A to port 2. If I send "on" I turn the unit on, "off" turns the unit off, and so on.
I thought it was just a matter of opening the com port (14 in this instance) and do:
While this works great in hyperterminal, I don't have the same luck using scripts. I'm sure there is something I don't know about serial communication, but what is it?
Thanks!
It works great using hyperterminal. If I send "A2" I set the output A to port 2. If I send "on" I turn the unit on, "off" turns the unit off, and so on.
I thought it was just a matter of opening the com port (14 in this instance) and do:
Code:
hs.OpenComPort(14,"9600,n,8,1",1,"","") hs.sendtocomport(14, "A1" & vbCrLf) hs.CloseComPort(14)
Thanks!
Comment