Home AMX User Forum NetLinx Studio

VNC Connection notification

I called TS about this and they aren't sure how it works so I thought I would ask here. I would like to be able to toggle a button on a MVP 8400 if someone uses VNC to connect to the panel. Is there a way that the system gets notification if a VNC connection is made to a touch panel? I have tried printing data.text in the TPs string and command handlers but nothing is printing. The only time I see a string in the console is if I am connected using VNC and the system reboots. Then when the TP comes online I get a string like G4CW-"",192.168.0.1, 5900,1. But connecting and disconnecting to the panel using VNC doesn't create a string or command event so that I can toggle my button. Anyone had success with this before?
Thanks,
Paul

Comments

  • Joe HebertJoe Hebert Posts: 2,159
    Telnet into the TP

    I haven?t tried it personally but it sounds doable.

    I don?t think the TPs generate any channel events or any other events when a VNC connection is established (sure sounds like a good feature request though) so I doubt that we?ll get any notifications via the Netlinx master.

    However, if you telnet into the touch panel itself and enable extended diagnostics with a ?msg on? you will get notified when a VNC connection (a.k.a. Web Control) is allocated and disconnected and you also get the IP of the device making the connection which is kind of slick.

    Here?s the output of a TP telnet session while I connected and disconnected to the TP via VNC with a 192.168.1.206 computer:
    Welcome to modero v2.57.80 Copyright (C) AMX Corp. 2002-2003
    >>msg on
    Extended diagnostic information messages turned on (filter: none).
    >09/09 22:41:34.64 Info :Web Control connection 192.168.1.206 allocated
    09/09 22:41:49.66 Info :Web Control connection 192.168.1.206 disconnected
    It won?t be as simple as monitoring an event but your code can certainly open a telnet session with the touch panel and watch for the messages. Maybe more work than it?s worth?

    a_riot42 wrote: »
    I called TS about this and they aren't sure how it works so I thought I would ask here. I would like to be able to toggle a button on a MVP 8400 if someone uses VNC to connect to the panel. Is there a way that the system gets notification if a VNC connection is made to a touch panel? I have tried printing data.text in the TPs string and command handlers but nothing is printing. The only time I see a string in the console is if I am connected using VNC and the system reboots. Then when the TP comes online I get a string like G4CW-"",192.168.0.1, 5900,1. But connecting and disconnecting to the panel using VNC doesn't create a string or command event so that I can toggle my button. Anyone had success with this before?
    Thanks,
    Paul
  • a_riot42a_riot42 Posts: 1,624
    That'll work. More code than a channel event but still not much more. Thanks for the suggestion, it should do the trick!
    Paul
Sign In or Register to comment.