Announcement

Collapse
No announcement yet.

Com Port Auto Connect Issues

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

    Com Port Auto Connect Issues

    Hi

    Relatively new to Homeseer and the Audrino plug-in. Thanks to this forum I've solved 9 of my 10 issues through research. Fantastic system having used Vera before.

    However stumped with fixing this.

    Requirement:
    - Have Audrino auto re-connect when either USB connection lost or PC reboots
    - Need to have system operating close to 24/7 without intervention (WAF)

    Observations:
    1) Pulling USB plug out, Audrino plug-in still shows "Connected" with "Warning = Com Port No:4 is not open"
    2) Putting USB back in, plug-in does not restore connections, despite showing "connected"
    3) Manually disconnecting and connecting sometimes work, but often get "Error = Exception in Connect : Access to the port 'COM4' is denied"
    4) Unchecking and checking "Auto Connect" sometimes works
    5) With PC restart, connection re-established automatically 80% of the time
    6) Manually killing the service "HSPI_Arduino (32)" (Arduino IDE) seems to unlock access to the com port and everything works fine again

    Setup:
    - Arduino Mega 2560
    - Arduino Plugin V1.0.0.147
    - Arduino IDE 1.8.1

    Debug file attached.

    Any help or advice to a novice appreciated.

    Thanks!
    Attached Files

    #2
    From personal experience, move to Ethernet based connection.....I had found previously during testing rapid relay output changes, some would get lost....it never got lost when i moved to ethernet.

    Pete
    HS 2.2.0.11

    Comment


      #3

      Comment


        #4
        Ethernet shield Auto connect issues

        Ok - I've connected an ethernet shield which solved an issue with the LCD not displaying as described in this thread:

        https://forums.homeseer.com/showthre...00#post1368600

        I do still have a problem with re-connection issues however with the shield.

        The problem occurs when I lose IP connection (either I unplug the ethernet cable or the server reboots with uninterrupted power to the board). I get "Error = Board: 1 Connection FAILED". Hitting "Connect" or "Reset" makes no difference.

        Once I cycle the power to the Board, a get a successful Auto connection within about 2 seconds. It's a problem as my server reboots weekly and I'd like it to automatically reconnect.

        I have attached my log file.

        Appreciate any suggestions on how I can fix.
        Attached Files

        Comment


          #5
          Can not connect

          I can not seem to get the board to connect or stay connected. Yesterday it would connect but fail after a few minutes (before I could even add any pins). Today I can't even get it to connect. I have read through the instructions several times and think I have done each step. I can connect with the Arduino software as I can see the board config has changed. I'm a bit out of my league so any help would be greatly appreciated. I have attached tke .ino debug file.
          Attached Files

          Comment


            #6
            Can not connect

            Digging further to see if it's a COM port issue, I find the following error.

            The application-specific permission settings do not grant Local Launch permission for the COM Server application with CLSID Windows.SecurityCenter.WscDataProtection and APPID
            Unavailable to the user NT AUTHORITY\SYSTEM SID (S-1-5-18) from address LocalHost (Using LRPC) running in the application container Unavailable SID (Unavailable). This security permission can be modified using the Component Services administrative tool.

            again...waaaay out of my league but maybe there is a nugget that some would find useful. I think have had other COM port issues with in ability to COM 1 once in a while. HS even replaced S6 but problem still existed.....assumed it was Napco Gemini or GTS CPUXA issue.

            Comment


              #7
              I assume you can connect and download the sketch over the same com port using the Arduino IDE?

              Comment


                #8
                Looking at the debug the board is not connected on the comport. have you uploaded the sketch from the config page with the IDE? can you post this sketch so I can check it is correct?

                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


                  #9
                  Can not connect

                  Yes I have. I think I had the wrong IDE version when the original sketch was downloaded, modified and uploaded. I have 1.8.1 (was 1.6.?) maybe I need to start over. How would I get back to a basic sketch (or the one that came on the board)?
                  Attached Files

                  Comment


                    #10
                    The sketch you just attached is set for Ethernet connection so will not work.

                    Do the following.

                    1.Set up the board comport on the config page
                    2. Select the board number from the dropdown list at the top of the page then click to download the sketch.
                    3. Open this sketch in the IDE ensuring you have the same version as stated on the plugin config page.
                    4.Select your board type and comport.
                    5.Click to compile and download the sketch to the board.
                    6.Close the IDE and then connect to the board in homeseer.
                    7. Set up the pins you require.
                    8. Wire it all up and have fun.

                    You never need to modify the sketch as the plugin will do this for you.
                    The only time you need a new sketch is when there is an update or you change the connection from Com to Ethernet or back again.

                    I hope this helps.

                    Greig.

                    Sent from my SM-G950F 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


                      #11
                      Can not connect

                      Sweet. Thanks. I was missing setting up the board BEFORE downloading. I thought I did that in the IDE first. Working now.

                      Comment


                        #12
                        Hi Greig

                        I was wondering if you could help with my open issue with the ethernet shield connection issue I have (as stated above).

                        Is it normal that I have to cycle the power on the board to re-establish an IP connection once it drops out?

                        Thanks

                        Comment


                          #13
                          Originally posted by santoal View Post
                          Hi Greig

                          I was wondering if you could help with my open issue with the ethernet shield connection issue I have (as stated above).

                          Is it normal that I have to cycle the power on the board to re-establish an IP connection once it drops out?

                          Thanks
                          No this is not normal. I did have problems with this but it turned out to be a power drain on the board from external devices on startup causing the board to crash. Can I ask what you are powering the board with and what devices you have connected to the outputs?

                          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


                            #14
                            Originally posted by jasonr2231 View Post
                            Sweet. Thanks. I was missing setting up the board BEFORE downloading. I thought I did that in the IDE first. Working now.
                            Good news. Have Fun.

                            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


                              #15
                              Originally posted by enigmatheatre View Post
                              No this is not normal. I did have problems with this but it turned out to be a power drain on the board from external devices on startup causing the board to crash. Can I ask what you are powering the board with and what devices you have connected to the outputs?

                              Greig.
                              Thanks Greig. I'm glad to hear it's not normal... so something is causing the issue.

                              The board is currently being powered by a 7.2V DC power supply as I found a 5V power supply wasn't enough to power the LCD (its drops to 3.4V on the 5V terminals on the board).

                              In testing, I've also tried 12V (but gets a little hot as per other posts), USB and POE+ via my Unifi 24 port switch. I currently have the POE disconnected. I find that turning off and on the 7.2V power results in a re-connection with the no POE connection. If I remove the 7.2V and use the POE, then the board still fails to reconnect. Again, if I cycle the POE power from the unifi controller, it will also reconnect.

                              I currently have the following devices connected:
                              - 16x2 LCD with I2C
                              - 8 channel relay board (with only 1 device connected)
                              - Genuine ethernet V2 shield

                              The devices connected are to and from 12 V relays for door locks and reed switches (dry contacts). I still had the issue when I disconnected the devices.

                              Here is the message on the plug-in console when I unplug the ethernet cable:
                              Warning = Board: 1 has a connection ERROR. Retrying.
                              Warning = Board: 1 has a connection ERROR. Trying Reset.
                              Error = Board: 1 Connection FAILED.
                              [PLUG ETHERNET CABLE BACK IN - NO RECONNECTION]
                              [MANUAL CONNECTION ATTEMPT]

                              Connecting Board No:1 at ip address 192.168.1.65 Port No:8900
                              [NO RESPONSE - PWR CYCLE HERE]
                              Com port lost
                              Connecting Board No:1 at ip address 192.168.1.65 Port No:8900
                              Board 1 Version 1.0.0.145 and Plugin Version 1.0.0.147 are compatible.
                              Connected to Board No:1 at ip address 192.168.1.65 Port No:8900
                              Updating pins on Board No: 1
                              Updating Values on Board No: 1
                              [RECONNECTED]


                              I can also ping the board when the ethernet cable is reconnected.

                              Thoughts?

                              Comment

                              Working...
                              X