Announcement

Collapse
No announcement yet.

Connection Error - Connection Failed

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

    Connection Error - Connection Failed

    I am using HS3 (Version 3.0.0.194), installed the Arduino plugin and installed Arduino 1.0.5-r2 to install the sketch. I have an Arduino Uno R3 to control an RGB LED as well as have output for 4 relays and input for 4 switches. This will control the lighting for my house number sign as well as monitor and control all 4 garage doors.

    I set up Board No1 with all the parameters needed to do this. Download the Arduino library and put it same library folder as the Arduino.exe file.

    I then download the firmware, open it and uploaded it to the Arduino via USB with the Ethernet shield attached. No errors come up and everything seems good.

    I then disconnect the programmed Arduino from the HS3 computer and connect it to the network via ethernet cable and a wall wart for power. HS3 connects with it right away. I have the outputs of the Arduino connected to a relay board with 4 relays just to get some real world confirmation. I can switch the output off and on from HS3 but the relays do not function and then shortly after I get a connection error and then a connection failed.

    I ping the Arduino and it seems it is there, this is what I get from the CMD.exe screen:

    C:Users\CAD>ping 192.168.1.133

    Pinging 192.168.1.133 with 32 bytes of data:
    Reply from 192.168.1.133: bytes=32 time=4ms TTL=128
    Reply from 192.168.1.133: bytes=32 time=2ms TTL=128
    Reply from 192.168.1.133: bytes=32 time=1ms TTL=128
    Reply from 192.168.1.133: bytes=32 time=1ms TTL=128

    Ping statistics for 192.168.1.133:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
    Minimum = 1ms, Maximum = 4ms, Average = 2ms
    Any idea what I am doing wrong?
    Attached Files

    #2
    Your set up looks ok to me. Can you send me a debug log to see if I can spot what is going on in there. Enable Debug logging in plugin config page then try and connect to the board then disable debug logging and send me the file.

    Greig.
    Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
    X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
    Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
    Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
    Scripts =
    Various

    Comment


      #3
      Just reading into the Ethernet Shield; Pin 10, 11, 12, 13 is used by the shield so this may be the problem? So do this instead?

      Switch Input: A0, A1, A2, A3 (using analog pins for switch input?)
      Relay Output: 2, 4, 7 ,8
      Red PWM LED Output: 3
      Green PWM LED Output: 5
      Blue PWM LED Output: 6

      Would this work?

      Comment


        #4
        Just tried it. Here's the debug file.

        During the debugging process this is what was in the Log.

        Aug-07 11:33:46 AM Arduino Plugin Disconnected from Board No:1 at ip address 192.168.1.133 Port No:8900
        Aug-07 11:33:46 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 D ,Disconnect Command
        Aug-07 11:33:46 AM Arduino Plugin Error = Board: 1 Connection FAILED.
        Aug-07 11:33:16 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 K ,Keep Alive Command
        Aug-07 11:33:16 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 C ,Connect Command
        Aug-07 11:33:16 AM Arduino Plugin Warning = Board: 1 has a connection ERROR. Retrying.
        Aug-07 11:33:16 AM Arduino Plugin Keeping Board: 1 Comport Alive.
        Aug-07 11:33:16 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 K ,Keep Alive Command
        Aug-07 11:32:45 AM Arduino Plugin Keeping Board: 1 Comport Alive.
        Aug-07 11:32:45 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 K ,Keep Alive Command
        Aug-07 11:32:27 AM Arduino Plugin rgb device found , RedPin = 9, GreenPin = 8, Bluepin = 10
        Aug-07 11:32:16 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 C ,Connect Command
        Aug-07 11:32:16 AM Arduino Plugin Connecting Board No:1 at ip address 192.168.1.133 Port No:8900
        Aug-07 11:32:02 AM Arduino Plugin Sent to IP:192.168.1.133 Port No:8900 = 1 C ,Connect Command
        Aug-07 11:32:02 AM Arduino Plugin Connecting Board No:1 at ip address 192.168.1.133 Port No:8900
        Aug-07 11:31:25 AM Arduino Plugin Debuging Enabled
        Attached Files

        Comment


          #5
          ok just looked at your log and post again and yes the problem is you are using the wrong pins as they are used by the Ethernet shield. Please uncheck the advanced Ethernet check box as this is why you can use them and there is no reason for you to use this at the moment.
          I would delete the board and recreate it and then the selectable pins will be the ones you can use.

          Greig.
          Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
          X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
          Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
          Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
          Scripts =
          Various

          Comment


            #6
            Originally posted by enigmatheatre View Post
            ok just looked at your log and post again and yes the problem is you are using the wrong pins as they are used by the Ethernet shield. Please uncheck the advanced Ethernet check box as this is why you can use them and there is no reason for you to use this at the moment.
            I would delete the board and recreate it and then the selectable pins will be the ones you can use.

            Greig.
            Yep that fixed it Greig...I am able to control the output of the pins for now. Haven't played with inputs or RGB stuff just yet. Just getting my feet wet. I did notice the voltage regulator on the Arduino getting quite hot while powering the Ethernet shield...but I have been reading about dropping down from a 12v PS to a 5v or 9v which should help reduce the amount of heat. Once I get a bit more playtime with this I don't see any issue buying this plugin, steal of a deal considering with one Arduino it can take the place of 4 Mimolites for controlling and monitoring the garage doors. Smoking deal!

            Comment


              #7
              Good news. Any other problems give me a shout

              Sent from my HTC One using Tapatalk
              Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
              X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
              Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
              Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
              Scripts =
              Various

              Comment


                #8
                I have the outputs controlling a set of relays without any issue. Fantastic. Just got to trying the RGB output and wow that's awesome! The only issue I had after creating the RGB device was dimming the output "Board:1, RGB:1", going from 100% to anything below that just shuts off the LED's it doesn't actually dim. However playing with the brightness sliders for each of the individual LED channels does work. Any idea?

                I also realized how limiting the Uno is in regards to inputs/outputs! I have a few Megas on order!

                Comment


                  #9
                  Originally posted by Conrad_Turbo View Post
                  I have the outputs controlling a set of relays without any issue. Fantastic. Just got to trying the RGB output and wow that's awesome! The only issue I had after creating the RGB device was dimming the output "Board:1, RGB:1", going from 100% to anything below that just shuts off the LED's it doesn't actually dim. However playing with the brightness sliders for each of the individual LED channels does work. Any idea?

                  I also realized how limiting the Uno is in regards to inputs/outputs! I have a few Megas on order!
                  Using the master device should use each individual timing on each channel. Try changing all the fade values and then moving the master and this is the same command sent to the board. If this is not working then capture me a debug log so I can see if the timings are being sent to the board.

                  Greig.
                  Zwave = Z-Stick, 3xHSM100� 7xACT ZDM230, 1xEverspring SM103, 2xACT HomePro ZRP210.
                  X10 = CM12U, 2xAM12, 1xAW10, 1 x TM13U, 1xMS13, 2xHR10, 2xSS13
                  Other Hardware = ADI Ocelot + secu16, Global Cache GC100, RFXtrx433, 3 x Foscams.
                  Plugings = RFXcom, ActiveBackup, Applied Digital Ocelot, BLDeviceMatrix, BLGarbage, BLLAN, Current Cost, Global Cache GC100,HSTouch Android, HSTouch Server, HSTouch Server Unlimited, NetCAM, PowerTrigger, SageWebcamXP, SqueezeBox, X10 CM11A/CM12U.
                  Scripts =
                  Various

                  Comment

                  Working...
                  X