Announcement

Collapse
No announcement yet.

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

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

    #31
    Thank you David!

    I am still going strong with HS2, but will need your plugins for the HS3 move. I use both the matrix one, and two way communication with the IP/serial one.

    Comment


      #32
      Run events from an IP connection

      Hello,

      What I am trying to do seems very simple to me but I can't seem to get it to work and I am looking for help to figure out what I am doing wrong. I have a simple script called "MyEventScript2.vb" which looks like this:

      Code:
      Sub Main(ByVal parm as object)
      hs.triggerEvent(parm(0))
      End Sub
      I set up a TCP host connection that runs the script above passing a parameter to it based on what is sent through the TCP connection.

      <a href="http://tinypic.com?ref=2rgde2d" target="_blank"><img src="http://i57.tinypic.com/2rgde2d.png" border="0" alt="Image and video hosting by TinyPic"></a>

      The desired effect is that I can open a TCP connection to the plugin, send the name of the event, and then the event is run via the script.

      I opened a debug window on the sever and sure enough I can see that the script is run passing the event name that I sent but the event never triggers. Can anyone see the flaw in what I am trying to do or how I am going about doing it?


      Thanks.

      Comment


        #33
        IP / Serial Plugin for HS3 (by &quot;drule&quot - Discussion Thread

        Originally posted by denoid View Post
        Hello,



        What I am trying to do seems very simple to me but I can't seem to get it to work and I am looking for help to figure out what I am doing wrong. I have a simple script called "MyEventScript2.vb" which looks like this:



        Code:
        Sub Main(ByVal parm as object)
        
        hs.triggerEvent(parm(0))
        
        End Sub


        I set up a TCP host connection that runs the script above passing a parameter to it based on what is sent through the TCP connection.







        The desired effect is that I can open a TCP connection to the plugin, send the name of the event, and then the event is run via the script.



        I opened a debug window on the sever and sure enough I can see that the script is run passing the event name that I sent but the event never triggers. Can anyone see the flaw in what I am trying to do or how I am going about doing it?





        Thanks.


        Not sure if this is the problem or not, but the scripting docs for triggering events in HS3 show hs.TriggerEvent instead of hs.triggerEvent



        http://www.homeseer.com/support/home...iggerevent.htm
        Last edited by cheeryfool; September 5, 2014, 04:06 PM.
        cheeryfool

        Comment


          #34
          Originally posted by cheeryfool View Post
          Not sure if this is the problem or not, but the scripting docs for triggering events in HS3 show hs.TriggerEvent instead of hs.triggerEvent



          http://www.homeseer.com/support/home...iggerevent.htm
          I changed the capitalization bu that didn't do it. From your reply, can I assume that what I am trying to do "should" work? I just didn't want to spend time troubleshooting a lost cause.

          I am also open to ideas on how I could achieve the same thing using a different method.

          Thanks,

          -Denoid

          Comment


            #35
            Originally posted by jlrichar View Post
            Drule. What's your favorite beer?
            HS3 version of my Monoprice HDX plugin is ready for some alpha testing. Devices, triggers and actions all work. Still need to add conditions and a GUI for setup. Drop me a note if you'd like to test.

            -David

            Comment


              #36
              Hi,

              I am glad this plugin is now also available in HS3
              Had it working (TCP only) in HS Pro before and must admit it is working as a charm now in HS3

              Thanks for the good work .


              Redbull

              Comment


                #37
                i amhaving hard time getting serial devices to be controlled by homeseer.

                i have been rying your plugin--but no major success

                i have a panasonic projector connected at port 8.

                via putty or other programs i can use CTRLB POF CTRLC to turn it off .

                can you please help give a basic step by step about how to use your plugin to do the same

                i do see port 8 when i installed your plugin.

                but within connections, i cannot get it working or send commands.

                Comment


                  #38
                  Gefen 4x2 HDMI control

                  I just installed this plugin. I have HS3Pro and am connecting via global cache IP2SL-P. I have the virtual serial port created on COM30. From my HS3Pro server I am able to connect via COM30 and issue the command "r 1 1". That causes the HDMI matrix to switch as expected. The documentation states

                  "When sending Telnet or RS-232 commands, a carriage return (0d) and a line feed (0a) must be included at the end of the command."

                  What is the best way to accomplish that?

                  Below is what I have configured so far and does not seem to work.


                  Click image for larger version

Name:	Commands.jpg
Views:	1
Size:	23.9 KB
ID:	1175435

                  Click image for larger version

Name:	Connections.jpg
Views:	1
Size:	24.5 KB
ID:	1175436

                  Click image for larger version

Name:	Events.png
Views:	1
Size:	42.9 KB
ID:	1175437

                  Click image for larger version

Name:	Execute-Trigger.png
Views:	1
Size:	35.4 KB
ID:	1175438

                  Click image for larger version

Name:	SerialPorts.jpg
Views:	1
Size:	29.9 KB
ID:	1175439

                  Comment


                    #39
                    Update

                    When monitoring the serial connection with eterlogic, it appears that the plugin is not even attempting to connect to the serial port. What should the connection screen look like to connect to a serial port? I thought it was supposed to be set to client, but it always say that port is disabled. If i change it to server, it will let me enable it, but still no bytes sent to the serial port.

                    Comment


                      #40
                      drule or cheeryfool,

                      I see Samsung TV on/off, is it possible to do the same for a Sony TV.

                      I'm just getting into the AV scene with regard to HS, but any thoughts iRule vs Universal Remote Control. Or why you guys went with iRule. I know URC is very complicated with regards to the software setup for their remotes and base stations. It is do able though. The set up software is only available to dealers, but there are copies out there. Mark Anderson had URC-HS plugin but I believe he left HS for another automation software. So I'm less inclined to invest in URC since future URC - HS integration is questionable. Would love to hear your thoughts.
                      Last edited by TomTom; December 8, 2014, 03:39 AM.
                      Tom
                      baby steps...starting again with HS3
                      HS3Pro: Z-NET & 80 Z wave Devices,
                      HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
                      Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
                      In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
                      System: XP on Fanless Mini-ITX w/ SSD

                      Comment


                        #41
                        Originally posted by heimdm View Post
                        I just installed this plugin. I have HS3Pro and am connecting via global cache IP2SL-P. I have the virtual serial port created on COM30. From my HS3Pro server I am able to connect via COM30 and issue the command "r 1 1". That causes the HDMI matrix to switch as expected. The documentation states

                        "When sending Telnet or RS-232 commands, a carriage return (0d) and a line feed (0a) must be included at the end of the command."

                        What is the best way to accomplish that?

                        Below is what I have configured so far and does not seem to work.


                        [ATTACH]42759[/ATTACH]

                        [ATTACH]42760[/ATTACH]

                        [ATTACH]42761[/ATTACH]

                        [ATTACH]42762[/ATTACH]

                        [ATTACH]42763[/ATTACH]

                        Dennis

                        I have not used the GC ip/serial server but I do have a couple of other similar devices. Their intention is to provide serial capabilities over IP, so that you don't have to have/use a serial port directly on the driving computer. Usually, rather than providing a serial port on the host PC, they are configured with an IP and port that the driving PC connects to.

                        In my case I have a 4 serial port device that I address from HomeSeer as ports 4000 to 4003 on 192.168.1 xxx

                        So, in the plugin you would set up an IP connection instead of a serial one. Use: TCP / Client / ip of serial server / port of serial server

                        Give that a try with your existing command and if that doesn't work we'll dig to the next level on the commands and CR/LF if needed
                        cheeryfool

                        Comment


                          #42
                          Originally posted by TomTom View Post
                          drule or cheeryfool,

                          I see Samsung TV on/off, is it possible to do the same for a Sony TV.

                          I'm just getting into the AV scene with regard to HS, but any thoughts iRule vs Universal Remote Control. Or why you guys went with iRule. I know URC is very complicated with regards to the software setup for their remotes and base stations. It is do able though. The set up software is only available to dealers, but there are copies out there. Mark had URC-HS plugin but I believe he left HS for another automation software. So I'm less inclined to invest in URC since future URC - HS integration is questionable. Would love to hear your thoughts.

                          Tom.

                          What type of control does your Sony TV support? If you haven't looked already, what is the model that you own?

                          I haven't tried URC. David showed me iRule a couple of years ago when I was using a Harmony 880 that was beginning to show signs of age. I liked the idea and we already had multiple iOS devices ripe for repurpose. I really like the flexibility of iRule, especially when paired with HomeSeer and connected using this plugin. IRule also seem to be a great company that is continually innovating. I have already seen a lot of improvements in the product and they continue to add to the capabilities.
                          cheeryfool

                          Comment


                            #43
                            Cheeryfool,
                            TV supports RS232C I believe. It's a sony W850A model KDL65W850A

                            Yeah I looked iRule a while back loved the professional look of the interface.

                            looking at your signature: you still use your Harmony one and iRule?

                            What I'm most in need of for my AV setup more hdmi inputs to TV (a monoprice hdmi 2x4 matrix should work) and send IR signals to devices() behind a cabinet door(wood).

                            I noticed your using irTrans Ethernet. I was thinking about the global cache gc-100-6 or global cache gc-100-12. That should work with iRule like irTrans Ethernet right?

                            Sorry about all the questions. I think I can really use iRule, and just need to make sure I have idea of the equipment I need to buy to make it happen. Thank you for your input.
                            Last edited by TomTom; December 8, 2014, 09:39 AM.
                            Tom
                            baby steps...starting again with HS3
                            HS3Pro: Z-NET & 80 Z wave Devices,
                            HSTouch: 4 Joggler (Android Kitkat), 2 iPhone, 3 iPads
                            Whole House Audio: 5 SqueezePlay Jogglers w Bose Speakers
                            In The Works: 10 Cameras Geovision, new Adecmo/Envisalink Alarm, Arduinos
                            System: XP on Fanless Mini-ITX w/ SSD

                            Comment


                              #44
                              Originally posted by TomTom View Post

                              I noticed you're using irTrans Ethernet. I was thinking about the global cache gc-100-6 or global cache gc-100-12. That should work with iRule like irTrans Ethernet right?
                              Funnily enough, the next version of the plugin has support for the Global Cache GC-100 and iTach controllers for sending IR and the GC-IRE for receiving IR. It also has support for sending IR via the IRTrans. Receiving IRTrans works but is limited. I'm hoping it will be ready to post to this forum soon.

                              As for serial. I didn't do any testing of serial when I moved the plugin from HS2 to HS3. If you are running HS3 on Linux, unfortunately it simply isn't go to work right now due to limitations in the way MONO handles .NET serial port controls. In the next update, the plugin will detect if it is running on Linux and block the serial interface if it is. On Windows it should run just fine but I'll probably have to do some debugging to make sure.

                              That said, if you are using an iTach IP2SL, you'd be better off not using the virtual serial port software and connecting to it via TCP on port 4999. I've tested this on my GC-100 and can confirm it works.

                              -David

                              Comment


                                #45
                                I will post the latest version tonight that comes with IR capabilities. I have tested basic commands to irTrans which work. I have not tested native serial in the HS3 version as I am now using an ip/serial server, but I am driving 3 serial devices over IP.
                                cheeryfool

                                Comment

                                Working...
                                X