Announcement

Collapse
No announcement yet.

Reset not working

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

    Reset not working

    Hi
    i have everything working fine except the reset doesn’t work.
    Arduino mega (genuine) with eth shield.
    As a result fails to reconnect with network outage. Got round the problem by changing sketch to reconnect rather than reset.
    ideas on how to trouble shoot?
    thanks

    #2
    Just to add have updated all libraries, latest plugins and sketch.

    Comment


      #3
      I have had one other report of this happening on their board and I have spent many hours trying to reproduce it on my test systems but can not work out why this would happen. I will see if I can do some more tests next week and track down the problem or like you have done just remove the full reset and make it a reconnect routine instead.

      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


        #4
        Hi

        I've finally got this to work.

        Whilst I downloaded all the library files to required directory, I didn't realize the libraries needed to be manually updated in the Arduino IDE. I went to manage libraries and found "Ethernet2" was version 1.0.0. I upgraded to 1.0.4 and reset now works. I hope this solves it for others also.

        Cheers

        Comment


          #5
          This is sort of related. For another reason (serial port not supported on Linux) I have moved the hardware to MKRZero. This is not directly supported, however using the API interface it's relatively easy to support other Arduino platforms and thus this is working fine.

          The only issue I ran into is the reset API command. I forgot to update the sketch for that hardware and the default (vector to address zero) causes the sketch to crash. So I updated the sketch to use the correct means to reset the device and now it works fine.

          Except, along the way I discovered that the reset command appears to be sent every 60 seconds. For example, here is debug output from my sketch:
          15:48:05.194 -> DataEvent: >>> 2 K 0 0 0
          15:48:15.983 -> DataEvent: >>> 2 h 0 0 0
          15:48:20.708 -> DataEvent: >>> 2 r 0 0 0

          There are a number of "2 K" (Board 2, Keep-Alive as expected) and "2 h" (not sure) events that happen. However a "2 r" causes the sketch to reset/reboot. Looking at the debug output from the plugin:
          Debug log For Homeseer 3 Arduino Plugin By Enigmatheatre (Greig Dempster)

          Debugging Started at = 1/11/2021 ,14:19:20.503
          ************************************************************ ****************************
          Arduino Plugin Version = 1.0.0.166

          *************************************Homeseer*************** ****************************
          Homeseer Version = 3.0.0.548
          Homeseer IP = 192.168.100.8
          OS Version = Unix (5.4.0.89)
          ....
          Ref = 557 | Address = Arduino, Board:2 advancedeth = 0, autoconnect = 1, boardno = 2, boardtype = 1, comport = 1001, index = 2, ipaddress = 192.168.100.15, lcdaddress = 0x27, macaddress = 76:E8:C7:BC:CE:44, port = 8901, type = Board,
          ....
          1/11/2021 ,14:20:54.075 Timer 1 Reset Loc 2
          1/11/2021 ,14:21:03.044 Running Send to port, Data = K
          1/11/2021 ,14:21:03.047 Sent to IP:192.168.100.15 Port No:8901 = 2 K ,Keep Alive Command
          1/11/2021 ,14:21:03.049 Keeping Board: 2 Alive.
          1/11/2021 ,14:21:03.276 Data Received:Alive 2
          1/11/2021 ,14:21:03.278 Timer 2 Reset Loc 2
          1/11/2021 ,14:21:14.681 ComNoArr = 1001 , ComPortEnum.Ethernet.ToString() = Ethernet , BoardIPArr = 192.168.100.15 , BoardPortArr = 8901
          1/11/2021 ,14:21:14.680 Data Received:Connect 2
          1/11/2021 ,14:21:14.688 Connecting Board No:2 at ip address 192.168.100.15 Port No:8901

          This puzzles me and for now I need to disable the reboot - a Reset command is effectively ignored. Am I doing something wrong? I would have thought the Keep-Alive command would prevent the Reset command from being issued. However the output from this is not what appears to be happening.

          Gregg, is there anything I should do to help figure this out?

          Thanks,
          -Jeff

          Comment

          Working...
          X