Announcement

Collapse
No announcement yet.

Script access of ttyUSBx on Zee

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Script access of ttyUSBx on Zee

    Hello - I'm attempting to modify a vbscript I've used with my Denon receiver on HS2 with PC successfully for a couple years. Background is here

    I've migrated to Zee and need to make this vbscript conform with vb.net.

    The first challenge I have is opening the serial port (usb-serial). I have confirmed the Zee is connected to the usb-serial adapter and can talk to the Denon by running Minicom from the console.

    Here's what I've researched...which errors.
    imports serial
    imports system.io.ports

    Sub Main(ByVal parm as object)

    ser = serial('/dev/ttyUSB1','BaudRate',9600);
    ser.write("PW?")
    ser.close()
    End Sub

    The error I received is :
    "Error Compiling script /usr/local/HomeSeer/scripts/comnuvo4.vb: Expected ')'.{0xD}"


    Any help would be appreciated.
Working...
X