Announcement

Collapse
No announcement yet.

IP / Serial Plugin for HS3 (by "drule") - Discussion Thread

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

    Originally posted by smokeycoles View Post
    Hi All
    • I have 2x Samsung E6300 series TV's.
    • I have installed Drules Plugin and a GC-100 in the post for next week.

    • I have 2x BN39 Samsung cables (3.5mm to RS232). I have 2x RS232 2m cables to test (eventually I will use a RS232 over CAT6 but not at the moment).


    Please can someone help me setup, and possibly write step by step instructions. How to configure GC100 for the Samsung TV (including COM and network stuff) and how to setup an event. And show me how to send it other commands like 3D, or the number 3, etc for the 6300 series.

    Thank you
    Chris
    This is what I have for Samsung codes. I've used them successfully on various US models of Samsung TVs. I've never had to go in to the service menu this document talks about. The codes have always simply just worked for me.

    Click image for larger version

Name:	exlink.jpg
Views:	1
Size:	89.3 KB
ID:	1187035

    -David

    Comment


      Originally posted by larhedse View Post
      I've got a new error in my LOG file:
      Code:
      [COLOR=#8700FF]sep-12 05:52:21 [/COLOR] <table class="log_table_row" cellspacing="0"><tbody><tr><td class="LogDateShort LogDateTime1" colspan="1" style=" white-space: nowrap;" align="left">
      </td><td class="LogPri1" colspan="1" align="left"> [COLOR=#8700FF]   [/COLOR] </td><td class="LogType1" colspan="3" align="left"> [COLOR=#8700FF] drhsIpPlugIn [/COLOR] </td><td class="LogEntry1" colspan="8" align="left"> [COLOR=#8700FF] concatenated string exceeds maximum [/COLOR]</td></tr></tbody></table>
      That message is generated when the data received is larger than 1024 bytes. Do you know what the string you are expecting is? I can look at ways to remove this limitation.

      -David

      Comment


        You write receive - as in FROM the IP-host in this case?

        It should really not be that large at all. This is a Marantz receiver and well the message sent in return could just be a status message (so called NSA* messages where NSA0 is just <CR> then 1-8 is 96 bytes long) from the display (OSD Info). However normally that is NOT triggered without a "NSA" command sent to the receiver.

        There are of course times when the returncode is not 200 - not that big clue what is returned then actually. I know it differs from my coding on Fibaro HC2, but sorry no real clue about what or why.

        Comment


          Originally posted by larhedse View Post
          You write receive - as in FROM the IP-host in this case?

          It should really not be that large at all. This is a Marantz receiver and well the message sent in return could just be a status message (so called NSA* messages where NSA0 is just <CR> then 1-8 is 96 bytes long) from the display (OSD Info). However normally that is NOT triggered without a "NSA" command sent to the receiver.

          There are of course times when the returncode is not 200 - not that big clue what is returned then actually. I know it differs from my coding on Fibaro HC2, but sorry no real clue about what or why.
          Can you enable Developer Mode from the Plug-ins menu? This will cause the plugin to launch a DOS-style command window that will contain a lot more debug info.

          Thanks
          -David

          Comment


            Yea sure, however two things:

            1) I am running headless, where will the window pop up? putty?

            2) When I come home today, the same events run and everything seem to work this time, except the LOG says:
            Code:
            sep-12 16:31:14 	  	drhsIpPlugIn 	concatenated string exceeds maximum
            sep-12 16:31:11 	  	Event 	Event Trigger "Control Internet Radio PreSet Internet Station 1"
            sep-12 16:31:11 	  	Event 	Deleting event after run: "Delayed Actions PreSet Internet Radio (Delayed Action)"
            sep-12 16:31:11 	  	Device Control 	Device: Vardagsrum Media System PreSet Internet Radio to Internet Radio Station 1 (0)
            sep-12 16:31:11 	  	Event 	Event Trigger "Delayed Actions PreSet Internet Radio (Delayed Action)"
            sep-12 16:31:10 	  	drhsIpPlugIn 	concatenated string exceeds maximum
            sep-12 16:31:09 	  	Event 	Event Trigger "Control Media Sound Volume -50dB"
            sep-12 16:31:09 	  	Event 	Event Trigger "Control Media Sound Volume -50dB"
            sep-12 16:31:09 	  	Event 	Deleting event after run: "Delayed Actions Volume (Delayed Action)"
            So I guess I could repeat the error at will... Hmm...

            Comment


              No window opened (headless...), and well I can not for the moment find where the log might be. I do have more errors though... Some of them are mine some are the same as above

              Comment


                Originally posted by larhedse View Post
                No window opened (headless...), and well I can not for the moment find where the log might be. I do have more errors though... Some of them are mine some are the same as above
                So you're running in Linux then? Me too! :-) Easiest way to get the debug window is to stop the plugin via the web interface and then putty into your box and launch the executable from the shell.

                -David

                Comment


                  Yes I have a HomeSeer Zee S2, running well HomeSeer brewed version of Rasp Linux....

                  I guess the command for that then should be:
                  Code:
                  /usr/bin/mono /usr/local/HomeSeer/HSPI_drhsIpPlugIn.exe
                  I'll give it a try :-) Hang on, here we go....

                  Comment


                    Okay... I guess I should have done something about <CR> but didn't so here we go...

                    Code:
                    Everything OFF
                    2016-09-12 17:05:26:[drhsIpPlugIn]->There are 1 TcpClients for Marantz
                    2016-09-12 17:05:26:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    @PWR:19-12 17:05:26:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 17, containing: PWSTANDBY
                    2016-09-12 17:05:26:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:26:[drhsIpPlugIn]->Concat strings
                    @PWR:19-12 17:05:26:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 30, containing: PWSTANDBY
                    2016-09-12 17:05:26:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:26:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:3,0
                    2016-09-12 17:05:26:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE1Sverige17:05:28:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 202, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE2S??k Stationer8:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 258, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE2S??k Stationer8:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 303, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE3S??k Podcastsr8:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 404, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE4ekommenderade stationerPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 505, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE5adiomarantz.comtationerPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 606, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE6Nyligen speladetationerPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 707, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE7S??k med s??kordationerPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 808, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE8$  [    1/7    ]ationerPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 909, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE0Internet Radio ]ationerPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 1010, containing: NSE0Internet Radio
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    2016-09-12 17:05:28:[drhsIpPlugIn]->concatenated string exceeds maximum
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE1Sverige
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE2S??k Stationer8:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 202, containing: NSE1Sverige
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE3S??k Podcastsr8:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 303, containing: NSE1Sverige
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:28:[drhsIpPlugIn]->Concat strings
                    NSE4Rekommenderade stationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 404, containing: NSE1Sverige
                    2016-09-12 17:05:28:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:29:[drhsIpPlugIn]->Concat strings
                    NSE5radiomarantz.comtationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 505, containing: NSE1Sverige
                    2016-09-12 17:05:29:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:29:[drhsIpPlugIn]->Concat strings
                    NSE6Nyligen spelademtationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 606, containing: NSE1Sverige
                    2016-09-12 17:05:29:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:29:[drhsIpPlugIn]->Concat strings
                    NSE7S??k med s??kordtationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 707, containing: NSE1Sverige
                    2016-09-12 17:05:29:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:29:[drhsIpPlugIn]->Concat strings
                    NSE8$  [    1/7    ]tationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 808, containing: NSE1Sverige
                    2016-09-12 17:05:29:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:30:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:30:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:3,0
                    2016-09-12 17:05:30:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:34:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:34:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:2,1
                    2016-09-12 17:05:34:[drhsIpPlugIn]->no triggers
                    Code:
                    Everything ON
                    2016-09-12 17:05:36:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:36:[drhsIpPlugIn]->There are 1 TcpClients for Marantz
                    2016-09-12 17:05:36:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:36:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:3,0
                    2016-09-12 17:05:36:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:40:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:40:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:3,0
                    2016-09-12 17:05:40:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:44:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:44:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:2,1
                    2016-09-12 17:05:44:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:46:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:05:46:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:2,1
                    2016-09-12 17:05:46:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:57:[drhsIpPlugIn]->There are 1 TcpClients for Marantz
                    @PWR:29-12 17:05:57:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 12, containing: ZMON
                    2016-09-12 17:05:57:[drhsIpPlugIn]->no triggers
                    @VOL:-5502 17:05:58:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 15, containing: MV25
                    2016-09-12 17:05:58:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:58:[drhsIpPlugIn]->Concat strings
                    @PWR:25502 17:05:58:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 27, containing: MV25
                    2016-09-12 17:05:58:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:05:58:[drhsIpPlugIn]->Concat strings
                    MVMAX 9802 17:05:58:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 36, containing: MV25
                    2016-09-12 17:05:58:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:00:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE0Now Playing
                    2016-09-12 17:06:00:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:00:[drhsIpPlugIn]->Concat strings
                    NSE1Rixton - Me And My Broken Heart>Marantz - received TCP data from: 10.168.1.7, length: 202, containing: NSE0Now Playing
                    2016-09-12 17:06:00:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:00:[drhsIpPlugIn]->Concat strings
                    NSE2Lugna Favoriter 104.7 FMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 303, containing: NSE0Now Playing
                    2016-09-12 17:06:00:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:00:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:06:00:[drhsIpPlugIn]->Concat strings
                    NSE344.1kHzavoriter 104.7 FMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 404, containing: NSE0Now Playing
                    2016-09-12 17:06:00:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:01:[drhsIpPlugIn]->Concat strings
                    NSE444.1kHzavoriter 104.7 FMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 505, containing: NSE0Now Playing
                    2016-09-12 17:06:01:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:01:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:2,1
                    2016-09-12 17:06:01:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:01:[drhsIpPlugIn]->Concat strings
                    NSE5   00:26       0%tionerMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 606, containing: NSE0Now Playing
                    2016-09-12 17:06:01:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:01:[drhsIpPlugIn]->Concat strings
                    NSE6   00:26       0%tionerMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 707, containing: NSE0Now Playing
                    2016-09-12 17:06:01:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:01:[drhsIpPlugIn]->Concat strings
                    NSE7   00:26       0%tionerMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 808, containing: NSE0Now Playing
                    2016-09-12 17:06:01:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:01:[drhsIpPlugIn]->Concat strings
                    NSE8   [    1/7    ]%tionerMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 909, containing: NSE0Now Playing
                    2016-09-12 17:06:01:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:02:[drhsIpPlugIn]->There are 1 TcpClients for GC100
                    2016-09-12 17:06:03:[drhsIpPlugIn]->GC100 - received TCP data from: 10.168.1.4, length: 17, containing: completeir,4:2,1
                    2016-09-12 17:06:03:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->There are 1 TcpClients for Marantz
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE1Sverige17:06:07:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 202, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE0Internet Radio7:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 303, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE1Sveriget Radio7:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 404, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE2S??k Stationer7:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 505, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE3S??k Podcastsr7:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 606, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE4Rekommenderade stationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 707, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:07:[drhsIpPlugIn]->Concat strings
                    NSE5radiomarantz.comtationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 808, containing: NSE0Internet Radio
                    2016-09-12 17:06:07:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:08:[drhsIpPlugIn]->Concat strings
                    NSE6Nyligen spelademtationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 909, containing: NSE0Internet Radio
                    2016-09-12 17:06:08:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:08:[drhsIpPlugIn]->Concat strings
                    NSE7S??k med s??kordtationerlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 1010, containing: NSE0Internet Radio
                    2016-09-12 17:06:08:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:08:[drhsIpPlugIn]->Concat strings
                    2016-09-12 17:06:08:[drhsIpPlugIn]->concatenated string exceeds maximum
                    2016-09-12 17:06:08:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE8$  [    1/7    ]
                    2016-09-12 17:06:08:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:08:[drhsIpPlugIn]->Concat strings
                    @VOL:-5002 17:06:08:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 116, containing: NSE8$  [    1/7    ]
                    2016-09-12 17:06:08:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:08:[drhsIpPlugIn]->Concat strings
                    MVMAX 9802 17:06:08:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 125, containing: NSE8$  [    1/7    ]
                    2016-09-12 17:06:08:[drhsIpPlugIn]->no triggers
                    @PWR:29-12 17:06:08:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 12, containing: PWON
                    2016-09-12 17:06:08:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:09:[drhsIpPlugIn]->There are 1 TcpClients for Marantz
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Concat strings
                    NSE0Now Playing6:11:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 202, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Concat strings
                    NSE1Rixton - Me And My Broken Heart>Marantz - received TCP data from: 10.168.1.7, length: 303, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Concat strings
                    NSE2Lugna Favoriter 104.7 FMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 404, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Concat strings
                    NSE344.1kHzavoriter 104.7 FMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 505, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Concat strings
                    NSE444.1kHzavoriter 104.7 FMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 606, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:11:[drhsIpPlugIn]->Concat strings
                    NSE5   00:01       0%tionerMn Heart>Marantz - received TCP data from: 10.168.1.7, length: 707, containing: NSE0Internet Radio
                    2016-09-12 17:06:11:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:12:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 101, containing: NSE6
                    2016-09-12 17:06:12:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:12:[drhsIpPlugIn]->Concat strings
                    NSE7-09-12 17:06:12:[drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 202, containing: NSE6
                    2016-09-12 17:06:12:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:12:[drhsIpPlugIn]->Concat strings
                    NSE8   [    1/7    ][drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 258, containing: NSE6
                    2016-09-12 17:06:12:[drhsIpPlugIn]->no triggers
                    2016-09-12 17:06:12:[drhsIpPlugIn]->Concat strings
                    NSE8   [    1/7    ][drhsIpPlugIn]->Marantz - received TCP data from: 10.168.1.7, length: 303, containing: NSE6
                    2016-09-12 17:06:12:[drhsIpPlugIn]->no triggers
                    From what I understand, and I have no experince of this before, it seems to return current internet radio station or something....

                    The thing I do not get is evern WHY i get them - I have not asked for that info to be returned. However I could of course use it IF I only knew how to get "hold of it" so to say...?

                    Comment


                      Originally posted by larhedse View Post
                      From what I understand, and I have no experince of this before, it seems to return current internet radio station or something....

                      The thing I do not get is evern WHY i get them - I have not asked for that info to be returned. However I could of course use it IF I only knew how to get "hold of it" so to say...?
                      Looks like your Marantz is pretty chatty. The plugin will concatenate data received from a TCP client if the gap between the packets being received is less than the number of milliseconds defined in the plugin's config page. If you want to separate these out into individual strings, you could try lowering the timeout value.

                      Easiest way to get hold of them and use them for something would be to send them to a pass-thru script. There are some good examples of doing this a couple of pages back on this thread.

                      -David

                      Comment


                        Mmm I'm still tracing this, it seems to be a bit chatty as you write WHEN I do something like change internet radio station... And it does return ODI info - what is presented on the display. The "manual" over IP commands does not mention this behavior though...

                        I'll be looking into the script thing - I think I know what you mean....

                        I have lowered the concatinating timeout value to 5ms - that solved the "error"...

                        Comment


                          Well have lower the timeout to 1ms - with a script I got the "error" back - not so with 1ms (which seems a bit tight, but it does work).

                          Think I got control over the NSE* thing also - started to look on my old LUA code from my Fibaro HC2. I had a watch dog for the internet radio (since it from time to time fails), which I had not yet implemented, however it seems I am doing that this evening... Thanks for reminding me and showing the way :-)

                          And a very Large Thanks for all help!!!

                          Comment


                            Okay, new day new challenges...

                            What I am trying now is to use the Script function on connection to catch the feedback from my Marantz. Now notice that without script I had to run 1ms timeout. WITH script well now that does not work some times, so I get the:
                            Code:
                            sep-13 16:44:04           drhsIpPlugIn     concatenated string exceeds maximum
                            from time to time. Does not seem to matter what timeout on concatination....

                            And then well I have some sort of issue I guess, can not realy figure out how this might work. When I send "NSE" to query my Marantz what it is doing, well I expect like 9 rows or so in return. Now that does not realy happen with this plugin, somewhere somehow I get a mix up... And the result is well handled more than once....

                            In this log I started with 50ms concat timeout, then 5ms and last 1ms. However it did not matter, since well I got way to many rows back than expected. There got to be either a timing issue or the fact that it return CTRL-M (13) and nothing else as line break?

                            (In this list I have filtered in the vb script code to only log NSE1/2/5 - they are the only ones I am interested in, line 1, line 2 and line 5).
                            Code:
                            sep-13 17:35:14           NSE5     Buffert : 51:09 100%tioner
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE5     Buffert : 51:09 100%tioner
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE5     Buffert : 51:09 100%tioner
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE5     Buffert : 51:09 100%tioner
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE2     Buffert :
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           NSE1     Buffert : Ub40 - Can't Help Falling In Love
                            sep-13 17:35:14           Event     Event Trigger "Control WatchDog Send WatchDog"
                            sep-13 17:35:14           Event     Event Control WatchDog Send WatchDog triggered by the event page 'Run' button.
                            sep-13 17:34:39           NSE5     Buffert : 50:33 100%tioner
                            sep-13 17:34:39           NSE2     Buffert :
                            sep-13 17:34:39           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:34:39           NSE5     Buffert : 50:33 100%tioner
                            sep-13 17:34:39           NSE2     Buffert :
                            sep-13 17:34:39           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:34:39           NSE5     Buffert : 50:33 100%tioner
                            sep-13 17:34:39           NSE2     Buffert :
                            sep-13 17:34:39           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:34:38           NSE2     Buffert :
                            sep-13 17:34:38           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:34:38           NSE2     Buffert :
                            sep-13 17:34:38           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:34:38           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:34:38           Event     Event Trigger "Control WatchDog Send WatchDog"
                            sep-13 17:34:38           Event     Event Control WatchDog Send WatchDog triggered by the event page 'Run' button.
                            sep-13 17:33:57           NSE5     Buffert : 49:52 100%tioner
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           NSE5     Buffert : 49:52 100%tioner
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           NSE5     Buffert : 49:52 100%tioner
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           NSE5     Buffert : 49:52 100%tioner
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           NSE2     Buffert :
                            sep-13 17:33:57           NSE1     Buffert : Frans - If I Were Sorry
                            sep-13 17:33:57           Event     Event Trigger "Control WatchDog Send WatchDog"
                            sep-13 17:33:57           Event     Event Control WatchDog Send WatchDog triggered by the event page 'Run' button.
                            vb script code:
                            Code:
                            Sub Main(param() As Object)
                                Dim ConnectionName As String = param(0)
                                Dim FromIp As String = param(1)
                                Dim AsciiData As String = param(2)
                                Dim MarantzData As String = param(2)
                            
                                If InStr(MarantzData,"NSE1") Then
                                    hs.WriteLog("NSE1", "Buffert : " & Mid(MarantzData,InStr(MarantzData,"NSE1")+5,40))
                                End If
                            
                                If InStr(MarantzData,"NSE2") Then
                                    hs.WriteLog("NSE2", "Buffert : " & Mid(MarantzData,InStr(MarantzData,"NSE2")+5,40))
                                End If
                            
                                If InStr(MarantzData,"NSE5") Then
                                    hs.WriteLog("NSE5", "Buffert : " & Mid(MarantzData,InStr(MarantzData,"NSE5")+5,40))
                                End If
                            
                            End Sub
                            Any ideas?
                            Last edited by larhedse; September 13, 2016, 10:32 AM. Reason: added script and comment about filter in script

                            Comment


                              Originally posted by larhedse View Post
                              Any ideas?
                              How about I make a change to the plugin so that if you set the timeout to 0ms, it never concatenates the data and sends it to the pass-thru script as is?

                              -David

                              Comment


                                Originally posted by drule View Post
                                How about I make a change to the plugin so that if you set the timeout to 0ms, it never concatenates the data and sends it to the pass-thru script as is?

                                -David
                                I think that will be an excellent solution!

                                Comment

                                Working...
                                X