Announcement

Collapse
No announcement yet.

RS232 or IP control of Martin Logan MDA-16 Zoned Amp

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

  • John245
    replied
    Originally posted by Stevemeck View Post
    Thats great and I'm very keen to become self sufficient with this, however coming from zero working knowledge I don't know how to test scenarios in the sandbox. I tried last night at length. Could you please show me a specific example of how I would sandbox the power commands, for example?
    I assume your device contains:
    Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0; (Put this in the variable input of the sanbox)

    In the expression box you can use: ${ Substring(input, 5, 1) } ${ Substring(input, 12, 1) }

    This will result in 0 0

    You can also use the more sophisticated commands to do it smarter. But I suggest to go the easy way and optimize when it is working.

    ---
    John

    Leave a comment:


  • risquare
    replied
    1. Proposed solution was for the case of 8 zones input as it was presented originally.

    Try this as name expression for more flexibility. Remember to use straight quotes " " ONLY.

    Substring((Split(input, ";")[0]),0,5)&& Substring((Split(input, ";")[1]),0,5)&& ... Substring((Split(input, ";")[7]),0,5)

    This would change only the respective zone in the case of single zone action and response.
    Furthermore, it will manage other actions such as VOL for example if the responses are uniform.

    For Example if you receive a response

    Z4VOL15

    than Big5 will create HS3 device

    Z4VOL = 15

    However if the responses are not uniform than you have to create different TCP for different actions.



    2. Examples

    If a response arrives for a single zone (zone4 in the example below) like this

    Z4POW1

    than what happens is


    BEFORE

    Z1POW = 1 (because the names were fixed and the value of the first (and only ) input goes to Name #1 which is Z1POW)


    NOW with the new name expression

    Z4POW = 1 (because the name is not fixed but retrieved from the input )

    3. Avoid disappointments and red ink. Always test your expressions before deploying

    GoTo HS3-->Plugins-->Big5-->Documentation Scroll down to the sandbox

    Example:

    Input box - Z4POW1

    Expression box (always wrap your expression in ${....} wrapper) - ${Substring((Split(input, ";")[0]),0,5)}

    Result - Z4POW

    Leave a comment:


  • Stevemeck
    replied
    Thats great and I'm very keen to become self sufficient with this, however coming from zero working knowledge I don't know how to test scenarios in the sandbox. I tried last night at length. Could you please show me a specific example of how I would sandbox the power commands, for example?

    Leave a comment:


  • John245
    replied
    Originally posted by Stevemeck View Post
    OK, I think that's precisely the step I'm struggling with - parsing the correct information...
    The sandbox is a good environment to practice.

    ---
    John

    Leave a comment:


  • Stevemeck
    replied
    OK, I think that's precisely the step I'm struggling with - parsing the correct information...

    Leave a comment:


  • John245
    replied
    Originally posted by Stevemeck View Post
    If I turn some zones on at the amp and run the command again it shows those zones as on in the log... ie. I put zones 1 3 and 5 on then get:
    Feb-23 15:45:14 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW1;Z2POW0;Z3POW1;Z4POW0;Z5POW1;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:45:14 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 1
    Feb-23 15:45:14 Big5 [Big5 Plugin] [Raw message in]: Z1POW1;Z2POW0;Z3POW1;Z4POW0;Z5POW1;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:45:14 Big5 [TcpConnection] Reusing existing outgoing TCP connection
    Feb-23 15:45:14 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?;
    Feb-23 15:45:14 Big5 [Big5 Plugin] message = Z0POW?;
    Feb-23 15:45:14 Big5 [Big5 Plugin] profile = 621257
    Feb-23 15:45:14 Big5 [Big5 Plugin] type = TCP
    Feb-23 15:45:14 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
    Feb-23 15:45:14 Event Event Trigger "AAAA Anthem"
    That is great. So you need to create devices and parse the correct information by using RegEx.

    You can use the Sandbox to give that a try

    ---
    John

    Leave a comment:


  • Stevemeck
    replied
    If I turn some zones on at the amp and run the command again it shows those zones as on in the log... ie. I put zones 1 3 and 5 on then get:
    Feb-23 15:45:14 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW1;Z2POW0;Z3POW1;Z4POW0;Z5POW1;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:45:14 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 1
    Feb-23 15:45:14 Big5 [Big5 Plugin] [Raw message in]: Z1POW1;Z2POW0;Z3POW1;Z4POW0;Z5POW1;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:45:14 Big5 [TcpConnection] Reusing existing outgoing TCP connection
    Feb-23 15:45:14 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?;
    Feb-23 15:45:14 Big5 [Big5 Plugin] message = Z0POW?;
    Feb-23 15:45:14 Big5 [Big5 Plugin] profile = 621257
    Feb-23 15:45:14 Big5 [Big5 Plugin] type = TCP
    Feb-23 15:45:14 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
    Feb-23 15:45:14 Event Event Trigger "AAAA Anthem"

    Leave a comment:


  • John245
    replied
    Originally posted by Stevemeck View Post
    Not sure what you mean. If I run that as a command I get the following back:
    Feb-23 15:16:40 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:16:40 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 0
    Feb-23 15:16:40 Big5 [Big5 Plugin] [Raw message in]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:16:40 Big5 [TcpConnection] Reusing existing outgoing TCP connection
    Feb-23 15:16:40 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?;
    Feb-23 15:16:40 Big5 [Big5 Plugin] message = Z0POW?;
    Feb-23 15:16:40 Big5 [Big5 Plugin] profile = 621257
    Feb-23 15:16:40 Big5 [Big5 Plugin] type = TCP
    Feb-23 15:16:40 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
    Feb-23 15:16:40 Event Event Trigger "AAAA Anthem"
    Feb-23 15:16:40 Event Event AAAA Anthem triggered by the event page 'Run' button.
    Feb-23 15:16:37 Big5 [Big5 Plugin] message__15_A0 = Z0POW?;
    Feb-23 15:16:37 Big5 [Big5 Plugin] profile__15_A0 = 621257
    Feb-23 15:16:37 Big5 [Big5 Plugin] type__15_A0 = TCP
    Feb-23 15:16:37 Big5 [Big5 Plugin] Debugging dictionary with 3 keys

    No devices created...
    You get back: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;

    So all zones off.

    What will hapen if you change 1 zone to on using the AMP and run the command again?

    ---
    John

    Leave a comment:


  • Stevemeck
    replied
    Not sure what you mean. If I run that as a command I get the following back:
    Feb-23 15:16:40 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:16:40 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 0
    Feb-23 15:16:40 Big5 [Big5 Plugin] [Raw message in]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
    Feb-23 15:16:40 Big5 [TcpConnection] Reusing existing outgoing TCP connection
    Feb-23 15:16:40 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?;
    Feb-23 15:16:40 Big5 [Big5 Plugin] message = Z0POW?;
    Feb-23 15:16:40 Big5 [Big5 Plugin] profile = 621257
    Feb-23 15:16:40 Big5 [Big5 Plugin] type = TCP
    Feb-23 15:16:40 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
    Feb-23 15:16:40 Event Event Trigger "AAAA Anthem"
    Feb-23 15:16:40 Event Event AAAA Anthem triggered by the event page 'Run' button.
    Feb-23 15:16:37 Big5 [Big5 Plugin] message__15_A0 = Z0POW?;
    Feb-23 15:16:37 Big5 [Big5 Plugin] profile__15_A0 = 621257
    Feb-23 15:16:37 Big5 [Big5 Plugin] type__15_A0 = TCP
    Feb-23 15:16:37 Big5 [Big5 Plugin] Debugging dictionary with 3 keys

    No devices created...

    Leave a comment:


  • John245
    replied
    Originally posted by Stevemeck View Post
    What happen if you toggle zone 2 via the AMP - that's exactly what I'm doing in the example above - toggling the zone 2 power at the amp, sorry should have been clearer.


    btw for zone 1 you can defne the value 1 as on under status graphics? Yep - once I've got it all up and running I'll refine status graphics etc..
    What will happen if you go the Z0POW? route?

    ---
    John

    Leave a comment:


  • Stevemeck
    replied
    What happen if you toggle zone 2 via the AMP - that's exactly what I'm doing in the example above - toggling the zone 2 power at the amp, sorry should have been clearer.


    btw for zone 1 you can defne the value 1 as on under status graphics? Yep - once I've got it all up and running I'll refine status graphics etc..

    Leave a comment:


  • John245
    replied
    Originally posted by Stevemeck View Post
    Hi John. Its now functioning to a certain extent. So, using this profile:

    Click image for larger version Name:	Screenshot 2020-02-23 at 13.51.11.png Views:	0 Size:	146.8 KB ID:	1365488

    and running this event:

    Click image for larger version Name:	Screenshot 2020-02-23 at 13.53.06.png Views:	0 Size:	217.6 KB ID:	1365489



    Big 5 creates this device:

    Click image for larger version Name:	Screenshot 2020-02-23 at 13.54.04.png Views:	0 Size:	13.3 KB ID:	1365490

    If I then change the zone power to off (via amp) then device changes to:

    Click image for larger version Name:	Screenshot 2020-02-23 at 13.55.35.png Views:	0 Size:	18.8 KB ID:	1365491

    And cycles correctly each time I power zone 1 on or off. Heres the log FYI:
    Feb-23 13:56:57 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW1;
    Feb-23 13:56:57 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 1
    Feb-23 13:56:57 Big5 [Big5 Plugin] [Raw message in]: Z1POW1;
    However, if I then toggle the power status of any other zone it also shifts the zone 1 device on / off. Here's the log when I turn zone 2 on:
    Feb-23 13:58:51 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z2POW1;
    Feb-23 13:58:51 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 1
    Feb-23 13:58:51 Big5 [Big5 Plugin] [Raw message in]: Z2POW1;

    So the Zone 1 device is not picking up that this is a different zone. Hope that makes sense. Thanks for taking time to look at this, I really appreciate the help.
    What happen if you toggle zone 2 via the AMP.


    btw for zone 1 you can defne the value 1 as on under status graphics?

    ---

    John

    Leave a comment:


  • Stevemeck
    replied
    Hi John. Its now functioning to a certain extent. So, using this profile:

    Click image for larger version  Name:	Screenshot 2020-02-23 at 13.51.11.png Views:	0 Size:	146.8 KB ID:	1365488

    and running this event:

    Click image for larger version  Name:	Screenshot 2020-02-23 at 13.53.06.png Views:	0 Size:	217.6 KB ID:	1365489



    Big 5 creates this device:

    Click image for larger version  Name:	Screenshot 2020-02-23 at 13.54.04.png Views:	0 Size:	13.3 KB ID:	1365490

    If I then change the zone power to off (via amp) then device changes to:

    Click image for larger version  Name:	Screenshot 2020-02-23 at 13.55.35.png Views:	0 Size:	18.8 KB ID:	1365491

    And cycles correctly each time I power zone 1 on or off. Heres the log FYI:
    Feb-23 13:56:57 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW1;
    Feb-23 13:56:57 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 1
    Feb-23 13:56:57 Big5 [Big5 Plugin] [Raw message in]: Z1POW1;
    However, if I then toggle the power status of any other zone it also shifts the zone 1 device on / off. Here's the log when I turn zone 2 on:
    Feb-23 13:58:51 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z2POW1;
    Feb-23 13:58:51 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: 1
    Feb-23 13:58:51 Big5 [Big5 Plugin] [Raw message in]: Z2POW1;

    So the Zone 1 device is not picking up that this is a different zone. Hope that makes sense. Thanks for taking time to look at this, I really appreciate the help.

    Leave a comment:


  • John245
    replied
    Originally posted by Stevemeck View Post
    I'm making progress! As John suggested earlier in the thread, I'm tempted to work on a basic command/response and get that working properly. Lets take a single zone's power as an example...

    I have now got a device now that updates it's status to on/off with the amp zone turning on/off - so far so good.

    However, it also changes if I turn any of the other zones on or off.

    How do I configure so I have a Zone Power device for all 8 zones that only updates when the respective zone updates?
    Do you mean that in case you send Z3POW1 all zones are updated instead of only zone 3?

    ---
    John

    Leave a comment:


  • Stevemeck
    replied
    I'm making progress! As John suggested earlier in the thread, I'm tempted to work on a basic command/response and get that working properly. Lets take a single zone's power as an example...

    I have now got a device now that updates it's status to on/off with the amp zone turning on/off - so far so good.

    However, it also changes if I turn any of the other zones on or off.

    How do I configure so I have a Zone Power device for all 8 zones that only updates when the respective zone updates?

    Leave a comment:

Working...
X