Home AMX User Forum AMX General Discussion

2N intercom door lock AMX

Hi I want to control 2N door intercom from AMX for door opening and closing.

The commands are [url]HTTP://ip_address/enu/lockstate.XML.p?lockXstate=Y[/url]

where x is which lock and y is on or off

This command when I am putting in my web browser the door lock is working. But when I am using it for AMX it is not working. I am sure the port is 80 because when I am putting :80 last it's working when I am putting other port numbers like 8080 or 443 it will not.


Anybody experienced this type of problem?

Comments

  • pdabrowskipdabrowski Posts: 184
    You are dealing with the http protocol so there might be something happening in the exchange between the browser and device you aren't replicating in code.

    Run a wireshark on your pc while doing the activity and see exactly what is going on. Remember that just opening a socket to that address is probably not enough to tell the device what you want. it might just be as simple as sending the usual request headers. There is a lot of other info from other programmers here in dealing with http control that will get you down the right path.
  • ericmedleyericmedley Posts: 4,177
    Post some code where you are sending the commands.
Sign In or Register to comment.