Announcement

Collapse
No announcement yet.

Slow response with last beta

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

    Slow response with last beta

    Hi, I'm testing a lot the Arduino plugin, my goal is move all my home automation on this board.

    With .36 plugin version and only one board (normal) connected (Arduino Mega) all work great. I have some events, when I push a button, if related LED is off, the LED switch ON, if it is off, it is switched ON. The LED change status was immediate pushing button.

    Now, added a new board (API), update to last version plugin to solve a problem " "Exception in RecievedText: Exception in RecievedText: Object reference not set to an instance of an object.".
    All works, but sometimes there are a long lags, a delay in response. I push the button and the led change status after 1 or 2 or 3 seconds! Strange. After "stabilization" the response is immediate for some time.

    The API board (connected with a power consumption meter) send a data at maximum every 1 second (when power usage is over 3 KWh).

    I tried:
    Change PC with a new more performance PC ---> no results
    Change OS (win7 --> win8 --> win10) --> no results

    During weekend, I'll tray to disconnect the API board and check response.

    Any ideas?

    #2
    Installed latest plugin version (.99) but still have a delay (tested on 2 genuine arduino mega boards)
    The event is simple:
    if the input change status -> then change status (on or off) to the related OUT.
    The delay is random, when there is a delay, the duration of delay arrive up to2 seconds!!!
    This problem stop me to move all my home automation on Arduino and Greig's plugin.

    With 1.0.0.36 version, no delay but I can't use the API plugin version.

    Suggestions?

    Comment


      #3
      I have not encountered any variable delays. I have a specific set of delay tests I run and the round trip for Arduino has always been around 1.5 seconds. I wired an output pin directly to an input pin for the test. The Round trip is measured by turning on an Output, looking at an input to change, then triggering an event that turns the output off, looking for the input to change and then logging the time it takes to do the full cycle. You could extrapolate that there is about half that time in the response to a single input change or output function. I have run the test over a 48 hour period and never got a result outside of the approximate 1.5 second cycle time.

      Greig would have to answer if there is anything that can be done about it, but my results have been consistent throughout the plug-ins development.

      Mine are all Ethernet, so it is possible it could be different on a USB connection, but I would think, if anything, it would be faster on USB.


      Below are 7 cycles from just now.

      Dec-15 11:12:01 AM Delay Arduino board delay test completion time 00:00:01.3593669
      Dec-15 11:12:00 AM Delay Z-Wave delay test completion time 00:00:00.1718831
      Dec-15 11:12:00 AM Delay Virtual delay test completion time 00:00:00.1196970
      Dec-15 11:11:01 AM Delay Arduino board delay test completion time 00:00:01.5468894
      Dec-15 11:11:00 AM Delay Z-Wave delay test completion time 00:00:00.1562499
      Dec-15 11:11:00 AM Delay Virtual delay test completion time 00:00:00.1196753
      Dec-15 11:10:01 AM Delay Arduino board delay test completion time 00:00:01.2656652
      Dec-15 11:10:00 AM Delay Z-Wave delay test completion time 00:00:00.2187517
      Dec-15 11:10:00 AM Delay Virtual delay test completion time 00:00:00.1040387
      Dec-15 11:09:01 AM Delay Arduino board delay test completion time 00:00:01.4687980
      Dec-15 11:09:00 AM Delay Z-Wave delay test completion time 00:00:00.1718896
      Dec-15 11:09:00 AM Delay Virtual delay test completion time 00:00:00.1196520
      Dec-15 11:08:07 AM Delay Arduino board delay test completion time 00:00:01.6249922
      Dec-15 11:08:05 AM Delay Z-Wave delay test completion time 00:00:05.2343760
      Dec-15 11:08:00 AM Delay Virtual delay test completion time 00:00:00.1509055
      Dec-15 11:07:01 AM Delay Arduino board delay test completion time 00:00:01.5468639
      Dec-15 11:07:00 AM Delay Z-Wave delay test completion time 00:00:00.1562605
      Dec-15 11:07:00 AM Delay Virtual delay test completion time 00:00:00.1665097
      Dec-15 11:06:02 AM Delay Arduino board delay test completion time 00:00:01.6093724
      Dec-15 11:06:00 AM Delay Z-Wave delay test completion time 00:00:00.3593766
      Dec-15 11:06:00 AM Delay Virtual delay test completion time 00:00:00.1196222

      Comment


        #4
        My first suggestion would be for you to post your API Sketch that you are using as this may be the problem.

        Greig.

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


          #5
          Thanks rprade and Greig for replay.

          The problem is on the "normal" .ino sketch, not on the API .ino and my arduino board is USB connected.
          In addition, the problem is random!
          I press the button-> delay for 1-2 seconds -> light ON.
          After that for some hours all is ok. Seems to be a "sleep mode" that is deactivated when I wake-up arduino with a command... Already changed PC.
          Now I want to re-test "old" plugin version (.36).
          The problem is not blocking, but is not a good experience push the button, wait a second and have the light ON.

          Comment


            #6
            Originally posted by khriss75 View Post
            Thanks rprade and Greig for replay.

            The problem is on the "normal" .ino sketch, not on the API .ino and my arduino board is USB connected.
            In addition, the problem is random!
            I press the button-> delay for 1-2 seconds -> light ON.
            After that for some hours all is ok. Seems to be a "sleep mode" that is deactivated when I wake-up arduino with a command... Already changed PC.
            Now I want to re-test "old" plugin version (.36).
            The problem is not blocking, but is not a good experience push the button, wait a second and have the light ON.
            can you send me a debug log of your setup.

            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


              #7
              Strange question but are you using pin 5 or 6 for the input that is slow?

              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


                #8
                Originally posted by enigmatheatre View Post
                Strange question but are you using pin 5 or 6 for the input that is slow?

                Greig.
                No. The slow response is on all input. I repeat, the problem is random, slow response is not anytime!
                Now I want to check if the problem could be X10 and rfxcom plugin.
                I remember that I updated your plugin and added a rfxcom plugin to use a "old" marmitek touch panel that send command in X10 RF. I connected an rfxcom usb receiver.
                So, my test are:
                1)-remove rfxcom plugin and receiver
                If not solved
                2)return to your x.36 plugin

                Comment


                  #9
                  Originally posted by enigmatheatre View Post
                  can you send me a debug log of your setup.

                  Greig.
                  I'll prepare the log and I'll send you.
                  Thanks Greig!

                  Comment


                    #10
                    Originally posted by rprade View Post
                    I have not encountered any variable delays. I have a specific set of delay tests I run and the round trip for Arduino has always been around 1.5 seconds. I wired an output pin directly to an input pin for the test. The Round trip is measured by turning on an Output, looking at an input to change, then triggering an event that turns the output off, looking for the input to change and then logging the time it takes to do the full cycle. You could extrapolate that there is about half that time in the response to a single input change or output function. I have run the test over a 48 hour period and never got a result outside of the approximate 1.5 second cycle time.

                    Greig would have to answer if there is anything that can be done about it, but my results have been consistent throughout the plug-ins development.

                    Mine are all Ethernet, so it is possible it could be different on a USB connection, but I would think, if anything, it would be faster on USB.


                    Below are 7 cycles from just now.

                    Dec-15 11:12:01 AM Delay Arduino board delay test completion time 00:00:01.3593669
                    Dec-15 11:12:00 AM Delay Z-Wave delay test completion time 00:00:00.1718831
                    Dec-15 11:12:00 AM Delay Virtual delay test completion time 00:00:00.1196970
                    Dec-15 11:11:01 AM Delay Arduino board delay test completion time 00:00:01.5468894
                    Dec-15 11:11:00 AM Delay Z-Wave delay test completion time 00:00:00.1562499
                    Dec-15 11:11:00 AM Delay Virtual delay test completion time 00:00:00.1196753
                    Dec-15 11:10:01 AM Delay Arduino board delay test completion time 00:00:01.2656652
                    Dec-15 11:10:00 AM Delay Z-Wave delay test completion time 00:00:00.2187517
                    Dec-15 11:10:00 AM Delay Virtual delay test completion time 00:00:00.1040387
                    Dec-15 11:09:01 AM Delay Arduino board delay test completion time 00:00:01.4687980
                    Dec-15 11:09:00 AM Delay Z-Wave delay test completion time 00:00:00.1718896
                    Dec-15 11:09:00 AM Delay Virtual delay test completion time 00:00:00.1196520
                    Dec-15 11:08:07 AM Delay Arduino board delay test completion time 00:00:01.6249922
                    Dec-15 11:08:05 AM Delay Z-Wave delay test completion time 00:00:05.2343760
                    Dec-15 11:08:00 AM Delay Virtual delay test completion time 00:00:00.1509055
                    Dec-15 11:07:01 AM Delay Arduino board delay test completion time 00:00:01.5468639
                    Dec-15 11:07:00 AM Delay Z-Wave delay test completion time 00:00:00.1562605
                    Dec-15 11:07:00 AM Delay Virtual delay test completion time 00:00:00.1665097
                    Dec-15 11:06:02 AM Delay Arduino board delay test completion time 00:00:01.6093724
                    Dec-15 11:06:00 AM Delay Z-Wave delay test completion time 00:00:00.3593766
                    Dec-15 11:06:00 AM Delay Virtual delay test completion time 00:00:00.1196222
                    rprade,
                    are you using some analog input?
                    I'm focusing on these... I have 4 analog pin in my setup and checking log file seems that every second arduino read these pins (plugin set to read analog pins every 3-5 minutes)...

                    Comment


                      #11
                      There was a bug with the Analog inputs that was stopping the timer working so it was updating to fast. It is fixed in the .101 beta I sent you. The slowest update time is now set to 1 min.

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


                        #12
                        Originally posted by enigmatheatre View Post
                        There was a bug with the Analog inputs that was stopping the timer working so it was updating to fast. It is fixed in the .101 beta I sent you. The slowest update time is now set to 1 min.

                        Sent from my SM-G925F using Tapatalk
                        I have received no reply (checked also in spam), but no problem I saw that i available for download.
                        I'll tray it!

                        Thanks

                        Cris

                        Comment


                          #13
                          I will send it again later today. It is not in the updater yet.

                          Greig.

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


                            #14
                            Originally posted by enigmatheatre View Post
                            I will send it again later today. It is not in the updater yet.

                            Greig.

                            Sent from my SM-G925F using Tapatalk
                            Ok. You are right... in updater there is .100 version.

                            I wait for your mail.

                            Thanks

                            Cris

                            Comment


                              #15
                              Greig, with new beta version, I can confirm the end of any delay.
                              Well done!

                              Cris

                              Comment

                              Working...
                              X