Home AMX User Forum NetLinx Studio

Enable/Disable G4 WebControl via code?

Is is possible? Maybe using a send_command to the panel or something, i searched the software history but couldn't find anything.

Comments

  • jjamesjjames Posts: 2,908
    I'm almost certain it's not possible. I had a problem with a panel that needed its G4 Web Control to be either password protected, or assign it a username & password . . . couldn't do it. I tried a whole slew of things and couldn't get it done. It would be nice to be able to do that thought; the panel does send commands back stating whether it's enable/disabled, along with port number as well, so I dunno why we should be able to enable/disable it through code.
  • Password protection is possible, there is an option in the setup pages that lets you enter a session password. problem is, i need someone at facilities to be able to control the panel depending on if the people using the panel allow it or not.
    the option to allow/disallow this is done via an amx msp16 keypad in the same room as the touchpanel.
  • jjamesjjames Posts: 2,908
    the option to allow/disallow this is done via an amx msp16 keypad in the same room as the touchpanel.
    Through code this is possible?
  • jjames wrote:
    Through code this is possible?
    well.... that's my question :D
  • pdabrowskipdabrowski Posts: 184
    As the webcontrol is a direct TCP connection to the TP and not through the master, my suggestion would be the following - provided you don't need to have the AMX gear always TCP/IP accessable from the outside!

    have the master, tp and TCP/IP controlled equipment on it's own network (ie use a small router) then connect the router's WAN side to the building network. Make the necessary port forwards inside the router config for the master and TP.

    between the router WAN port and the building network, insert a 2 port switch - we use an Allied Telesyn AT-FS203 http://www.alliedtelesyn.com/products/details.aspx?88 here to disable network sockets on Lecturns so if a user wants to conenct to the network, they have enable this through the TP.

    Have the power for this switch controlled by a relay on the master so whenever access is granted by the user, the switch is powered!
  • HedbergHedberg Posts: 671
    Would it be possible to have the master initiate a TCP/IP connection on port 5900 (or whatever port is assigned for the VCN server) to the TP that is to be disabled ? I think that the VCN server in the TPs will only support one connection at a time -- if the port is busy, shouldn't requests for web control fail?

    If the suggestion to isolate the Netlinx network behind a router is used, the web control connections have to be created, See tn 669 where the command is described as being like:

    SEND_COMMAND 0:1:0,'G4WC "Bedroom",12.5.139.15,5900,1'

    to enable and suggests that:

    SEND_COMMAND 0:1:0,'G4WC "Bedroom",12.5.139.15,5900,0'

    would disable.

    If I'm correct about how this works, it should be easy for the program to disable WAN-side web control acces.
  • jjamesjjames Posts: 2,908
    Hedberg wrote:
    SEND_COMMAND 0:1:0,'G4WC "Bedroom",12.5.139.15,5900,1'

    to enable and suggests that:

    SEND_COMMAND 0:1:0,'G4WC "Bedroom",12.5.139.15,5900,0'

    would disable.

    I have tried this and multiple variations as it was my initial thought on how to enable/disable it, but it doesn't work.
  • HedbergHedberg Posts: 671
    I have tried this and multiple variations as it was my initial thought on how to enable/disable it, but it doesn't work.

    Ok, I don't have a TP to try it out actual web control with, but, I just tried an experiment with an NI700 and it did what I expected it to do.

    First, I have the NI700 behind its own router. The router forwards port 80 to the NI700.

    I opened a Telnet session with the NI700 (through the router, though I don't think that's important) and entered:

    send_command 0:1:0, 'G4WC "Ontario",192.168.1.99,5900,1'

    192.168.1.99 is the IP address of the WAN port on the router.

    When I access the NI700s web server at 192.168.1.99:80 under web control I see 'Ontario'

    Then when I:

    send_command 0:1:0, 'G4WC "Ontario",192.168.1.99,5900,0'

    and refresh the webcontrol page, 'Ontario' is gone.

    If I had a TP on the network with the NI700, its web control link would remain, but it wouldn't do anything because it would be for a non-resolvable IP address -- non-resolvable from the WAN side of the router, that is.

    If someone had a web browser open and that browser was paged to "web control". the 'Ontario' link would not disappear when the disabling command was sent, and I think it would still work. And, an engaged web control session would not be shut down.

    Again, this is all assuming that I understand what's going on -- not guaranteed, for sure.
  • DenisDenis Posts: 163
    Web acces problem

    Hi

    I have a similar problem with my connection.
    I applied service note 669 and the problem still. My router foward to NI-3000 trought port 1319 (I don't understand if I have to open on port 80 or 1319).

    when I tried to connect via i.e., I get the netlinx page with the second panel name as I created earlier, but when I try to connect, I get the "Failed to connect to sever" error message.

    I tried to connect with VNC Viewer and I get my panel directly

    Why?

    Any cue wil be appreciate
Sign In or Register to comment.