Home AMX User Forum NetLinx Studio

Master to Master Communications - Button Press?

I have 2 separate systems that I would like to link together.
Master A (Master Master) I have full control over as I have the code for this one.
Master B (Slave) I have limited control over as I do not have to the code for this.

I would essentially like to have Master A "press" a button on master B (or at least on a TP connected to Master A).

What would be the best way to handle this (I'm new to M2M). I do have the 2 units talking and have sent strings to the ports on B from A.

Comments

  • ppdkppdk Posts: 31
    Hi jabramson,

    Pressing a button on a TP via code is being done with the DO_PUSH function (Search the Netlinx Help for details).
    But if the referenced panel is connected to the Slave system then the DO_PUSH might not help. Read this thread
    for more info:
    http://www.amxforums.com/showthread.php?8852-Emulate-TP-Button-Press-in-Code
  • jabramsonjabramson Posts: 106
    I was able to figure this out. It was ridiculously easy, not sure why I was making it so complicated. here is the code in case anyone needs to do the same. No changes were made on Master 1, only on Master 2.

    Added Master 1 in Master 2 URL list
    DEFINE_DEVICE
    dvTP1Remote = 10001:1:1 (*Touch Panel Remote Connected to System 1 - Note System Number..This is also the name device number as the number on Master 1*)
    dvTP2Local = 10002:1:0 (*Touch Panel Local Connected to System 2 - Note System Number*)
    
    DEFINE_EVENT
    BUTTON_EVENT[dvTP2Local,###]  //Some Button Number (same button number as master 1 panel 10001)
    {
       do_push (dvTP1Remote,BUTTON.INPUT.CHANNEL)
    }
    
    

    That's it!
Sign In or Register to comment.