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

  • #16
    That's fine. Instructions do not change. Same setup for TCP profile. However make sure that you do NOT check the box "listening" in Big5 TCP profile. Big5 will act as TCP clinet in this case and your amplifier will be the TCP server.

    Comment


    • #17
      Thanks again. OK, so I've done that;

      Click image for larger version  Name:	Screenshot 2020-02-21 at 22.07.32.png Views:	1 Size:	384.0 KB ID:	1364934
      Is there anything else I need to do for TCP Profile? I think the port number 14999 is OK. I read it's the default on the amp and if use a different port number I get an error e.g:

      "(TcpConnection) No connection could be made because the target machine actively refused it 192.168.1.67:14998"

      Whereas no error with 14999.

      With the following event (which should return power status of all amp zones):

      Click image for larger version  Name:	Screenshot 2020-02-21 at 22.12.55.png Views:	1 Size:	37.7 KB ID:	1364935

      I get the following in log:
      Feb-21 22:10:21 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?
      Feb-21 22:10:21 Big5 [Big5 Plugin] message = Z0POW?
      Feb-21 22:10:21 Big5 [Big5 Plugin] profile = 621257
      Feb-21 22:10:21 Big5 [Big5 Plugin] type = TCP
      Feb-21 22:10:21 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
      Feb-21 22:10:21 Event Event Trigger "Test Anthem"
      But then nothing. Any idea what I'm missing?

      Comment


      • #18
        I've also tried direct commands e.g. Z1INP04, which should put zone 1 on input 4 (then return a confirmation), with no joy:
        Feb-21 22:24:18 Big5 [TcpConnection] Reusing existing outgoing TCP connection
        Feb-21 22:24:18 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z1INP04
        Feb-21 22:24:18 Big5 [Big5 Plugin] message = Z1INP04
        Feb-21 22:24:18 Big5 [Big5 Plugin] profile = 621257
        Feb-21 22:24:18 Big5 [Big5 Plugin] type = TCP
        Feb-21 22:24:18 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
        Feb-21 22:24:18 Event Event Trigger "Sonos Test Anthem"

        Comment


        • #19
          Try checking the "persistent" box in the TCP profile. It seems that Big5 sends out the control message fine. It drops the connection immediately thereafter most likely and not getting the response back. The "persistent" is made specifically for situations like that.

          Comment


          • #20
            Thanks. I've tried with Persistent flag on and off and get the same outcome.

            Comment


            • #21
              .... also I see discrepancy at the screenshots above. One shows port 14998 and the other 14999.

              Comment


              • #22
                Pls keep persistent on. Pick only one TCP profile to work with. Must be the same profile in all events. Make sure IP address port # are correct and match your Amplifier setup. Keep it simple send out one command only and provide the whole Big5 log.

                On the outgoing part - Big5 shows that the command goes out. If amplifier doesn't act upon such command than refer to Amplifier's documentation and settings.
                On the input part - Big5 will show if it gets any response from the amplifier. If not than refer to Amplifier's documentation and settings. If you see Big5 getting response (marked IN...) than I will help you putting this response into HS3 devices if the above RegEx do not work as expected.

                Comment


                • #23
                  Yes, sorry if it wasn't clear - that was just to show you that I was getting an error on 14998, but not on 14999 - so 14999 (which I'm using) is working.

                  Comment


                  • #24
                    Thanks for your help so far..

                    OK, just did a reset of HS3 and things are starting to work. I'm getting responses back in Big5 when I make changes at the amp, and it seems I can control the amp as well. There are errors in the log though:
                    Feb-21 23:02:57 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ;
                    Feb-21 23:02:57 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ${Substring(input, 6, 1)}
                    Feb-21 23:02:57 Big5 Error (Big5Connection) at System.String.Substring(Int32 startIndex, Int32 length) at HSPI_Big5.Big5ExpressionFunctions.Substring(String str, Int32 from, Int32 length) at Flee Expression(Object , ExpressionContext , VariableCollection ) at Flee.InternalTypes.Expression`1.Evaluate() at HSPI_Big5.Big5Connection.EncodeStringForTransmission(String message, String input)
                    Feb-21 23:02:57 Big5 Error (Big5Connection) startIndex cannot be larger than length of string. Parameter name: startIndex
                    Feb-21 23:02:57 Big5 Error (Big5Connection) at System.String.Substring(Int32 startIndex, Int32 length) at HSPI_Big5.Big5ExpressionFunctions.Substring(String str, Int32 from, Int32 length) at Flee Expression(Object , ExpressionContext , VariableCollection ) at Flee.InternalTypes.Expression`1.Evaluate() at HSPI_Big5.Big5Connection.EncodeStringForTransmission(String message, String input)
                    Feb-21 23:02:57 Big5 Error (Big5Connection) startIndex cannot be larger than length of string. Parameter name: startIndex
                    Feb-21 23:02:57 Big5 [Big5 Plugin] [Raw message in]: ;
                    Feb-21 23:02:57 Big5 [TcpConnection] Reusing existing outgoing TCP connection
                    Feb-21 23:02:57 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z1INP07;
                    Any ideas?

                    There are devices created, but not sure they are right...

                    Click image for larger version

Name:	Screenshot 2020-02-21 at 23.06.21.png
Views:	38
Size:	71.2 KB
ID:	1364957

                    Comment


                    • #25
                      Getting the same error messages using other commands as well;
                      Feb-21 23:24:34 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ;
                      Feb-21 23:24:34 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ${Substring(input, 6, 1)}
                      Feb-21 23:24:34 Big5 Error (Big5Connection) at System.String.Substring(Int32 startIndex, Int32 length) at HSPI_Big5.Big5ExpressionFunctions.Substring(String str, Int32 from, Int32 length) at Flee Expression(Object , ExpressionContext , VariableCollection ) at Flee.InternalTypes.Expression`1.Evaluate() at HSPI_Big5.Big5Connection.EncodeStringForTransmission(String message, String input)
                      Feb-21 23:24:34 Big5 Error (Big5Connection) startIndex cannot be larger than length of string. Parameter name: startIndex
                      Feb-21 23:24:34 Big5 Error (Big5Connection) at System.String.Substring(Int32 startIndex, Int32 length) at HSPI_Big5.Big5ExpressionFunctions.Substring(String str, Int32 from, Int32 length) at Flee Expression(Object , ExpressionContext , VariableCollection ) at Flee.InternalTypes.Expression`1.Evaluate() at HSPI_Big5.Big5Connection.EncodeStringForTransmission(String message, String input)
                      Feb-21 23:24:34 Big5 Error (Big5Connection) startIndex cannot be larger than length of string. Parameter name: startIndex
                      Feb-21 23:24:34 Big5 [Big5 Plugin] [Raw message in]: ;
                      Feb-21 23:24:34 Big5 [TcpConnection] Reusing existing outgoing TCP connection
                      Feb-21 23:24:34 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z1VOL64;

                      Comment


                      • #26
                        O.K. The value expression and name expression were designed around the samples provided by you. Maybe the real response is different. Pls. remove everything from Name expression and Value expression boxes. Save a copy of the content of same. Save the modified Big5 TCP profile and run the tests again. Provide Big5 reports from the log.

                        Comment


                        • #27
                          Thanks again. OK, so I've removed the value and name expressions, saved the new profile and running some commands get:
                          Feb-22 18:01:58 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
                          Feb-22 18:01:58 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
                          Feb-22 18:01:58 Big5 [Big5 Plugin] [Raw message in]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
                          Feb-22 18:01:57 Big5 [TcpConnection] Reusing existing outgoing TCP connection
                          Feb-22 18:01:57 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?;
                          Feb-22 18:01:57 Big5 [Big5 Plugin] message = Z0POW?;
                          and that resulted in a new device being created:

                          Click image for larger version

Name:	Screenshot 2020-02-22 at 18.05.54.png
Views:	28
Size:	23.4 KB
ID:	1365283

                          And another example:
                          Feb-22 18:07:45 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ;
                          Feb-22 18:07:45 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ;
                          Feb-22 18:07:45 Big5 [Big5 Plugin] [Raw message in]: ;
                          Feb-22 18:07:44 Big5 [TcpConnection] Reusing existing outgoing TCP connection
                          Feb-22 18:07:44 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z1VOL25;
                          Feb-22 18:07:44 Big5 [Big5 Plugin] message = Z1VOL25;
                          Feb-22 18:07:44 Big5 [Big5 Plugin] profile = 621257
                          Feb-22 18:07:44 Big5 [Big5 Plugin] type = TCP
                          Feb-22 18:07:44 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
                          Feb-22 18:07:44 Event Event Trigger "AAAA Anthem"
                          Feb-22 18:07:44 Event Event AAAA Anthem triggered by the event page 'Run' button.
                          Feb-22 18:07:42 Big5 [Big5 Plugin] message__15_A0 = Z1VOL25;
                          Created:
                          Click image for larger version

Name:	Screenshot 2020-02-22 at 18.09.06.png
Views:	22
Size:	14.2 KB
ID:	1365284

                          Comment


                          • #28
                            Let's start with your second example. The command Z1VOL25 does go out. Not sure if the amplifier executes it, but the response is empty. Work with your Amplifier documentation and/or vendor about it.

                            As far as the first example goes, the Amplifier does respond. What part of this response do you want in HS3 devices? I assume you want to know about each of the 8 zones powered status (which the request/response is about).

                            Name expression. Z1POW&&Z2POW&&....Z8POW
                            Value expression: Substring((Split(input, ";")[0]),5)&& Substring((Split(input, ";")[1]),5)&&... Substring((Split(input, ";")[7]),5)

                            ... mean that you continue in the same fashion from 1 to 8 in Names and 0 to 7 in values

                            Comment


                            • #29
                              If everything runs as intended than you should get 8 HS3 devices with names and values as listed below at floor=Big5 and room=TCP

                              Z1POW = 0
                              Z2POW = 0
                              ...
                              Z8POW = 0


                              If the responses from your Amplifier are not uniform in format than you may need to create different TCP profiles to accommodate different response formats. If the responses are in uniform format than you may use the same TCP profile and change the Name expression to derive the names from the input as opposed to fixed names as proposed above.

                              For example if response to VOL command is

                              Z1VOL25;Z2VOL18;......

                              Name expression could be

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

                              It will produce HS3 davices named Z1VOL, Z2VOL.... etc, if the input is VOL and Z1POW, Z2POW...etc if the input is POW.

                              Big5 is made for non-programmers to use. In order to understand the logic behind the RegEx "Substring..." above please go to the Expressions tab of Big5's online documentation available at http://big5.ivanv.com . The proposed expressions are combination of the expressions for


                              split along ";" - Split(input,";")
                              extract end of string starting at position 5 - Substring("...above string here...",5)


                              It's always good to know what you are doing. Also I always recommend that you test any expression that you use in the sandbox of Big5 available at Big5 plug-in "Documentation" tab. Do not forget to wrap it in $ {...} wrapper before testing.

                              Comment


                              • #30
                                Originally posted by Stevemeck View Post
                                Thanks again. OK, so I've removed the value and name expressions, saved the new profile and running some commands get:
                                Feb-22 18:01:58 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
                                Feb-22 18:01:58 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
                                Feb-22 18:01:58 Big5 [Big5 Plugin] [Raw message in]: Z1POW0;Z2POW0;Z3POW0;Z4POW0;Z5POW0;Z6POW0;Z7POW0;Z8POW0;
                                Feb-22 18:01:57 Big5 [TcpConnection] Reusing existing outgoing TCP connection
                                Feb-22 18:01:57 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z0POW?;
                                Feb-22 18:01:57 Big5 [Big5 Plugin] message = Z0POW?;
                                and that resulted in a new device being created:

                                Click image for larger version

Name:	Screenshot 2020-02-22 at 18.05.54.png
Views:	28
Size:	23.4 KB
ID:	1365283

                                And another example:
                                Feb-22 18:07:45 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ;
                                Feb-22 18:07:45 Big5 [Big5 Plugin] [TCP TCP hostname 192.168.1.67, port 14999 IN]: ;
                                Feb-22 18:07:45 Big5 [Big5 Plugin] [Raw message in]: ;
                                Feb-22 18:07:44 Big5 [TcpConnection] Reusing existing outgoing TCP connection
                                Feb-22 18:07:44 Big5 [TcpConnection] [TCP TCP hostname 192.168.1.67, port 14999 OUT]: Z1VOL25;
                                Feb-22 18:07:44 Big5 [Big5 Plugin] message = Z1VOL25;
                                Feb-22 18:07:44 Big5 [Big5 Plugin] profile = 621257
                                Feb-22 18:07:44 Big5 [Big5 Plugin] type = TCP
                                Feb-22 18:07:44 Big5 [Big5 Plugin] Debugging dictionary with 3 keys
                                Feb-22 18:07:44 Event Event Trigger "AAAA Anthem"
                                Feb-22 18:07:44 Event Event AAAA Anthem triggered by the event page 'Run' button.
                                Feb-22 18:07:42 Big5 [Big5 Plugin] message__15_A0 = Z1VOL25;
                                Created:
                                Click image for larger version

Name:	Screenshot 2020-02-22 at 18.09.06.png
Views:	22
Size:	14.2 KB
ID:	1365284
                                May I suggest to start with the Sample command strings.

                                Or just start with the basics and first get it working with RS-232.
                                ---
                                John

                                Comment

                                Working...
                                X