Announcement

Collapse
No announcement yet.

Devices quit updating

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

    Devices quit updating

    Attached is a DEBUG log file. Modbus connects read / write is good for awhile then stops. Disable the plugin then enable. All is good for awhile.


    Any help would be great


    Thanks Jay





    HomeSeer Version: HS3 Pro Edition 3.0.0.318
    Operating System: Microsoft Windows 7 Professional - Work Station
    System Uptime: 0 Days 6 Hours 22 Minutes 19 Seconds
    IP Address: 10.5.6.7
    Number of Devices: 785
    Number of Events: 120
    Available Threads: 400

    Enabled Plug-Ins
    3.2.0.5: APCUPSD
    2.0.46.0: BLBackup
    2.0.33.0: BLGData
    2.0.6.0: BLPlugins
    2.0.17.0: BLRing
    1.1.2.0: Device History
    3.0.0.18: DirecTV
    3.0.0.18: DirecTV
    3.0.0.18: DirecTV
    3.6.5.0: Harmony Hub
    3.0.0.68: HSTouch Server
    3.0.6.0: Insteon
    3.0.0.83: LutronCaseta
    3.8.6121.22741: Modbus
    1.0.17123.357: MyQ
    3.0.0.26: Nest
    3.0.0.155: PHLocation
    0.0.0.30: Pushover 3P
    3.1.0.18: Sonos
    3.0.6260.19461: UltraMon3
    3.0.6104.19146: UltraRachio3
    3.0.6265.20586: UltraWeatherWU3
    3.0.0.63: weatherXML
    3.0.1.94: Z-Wave
    Attached Files

    #2
    For some reason we're losing the TCP connection to the gateway. Could another system be connecting? Could the gateway you're connecting to be going into some sort of sleep mode? I need some more detail n the TCP gateway you're using to see if there's something we're missing.

    2017-05-14 13:55:52.3139| ERROR|HSPI_MODBUS.Gateway.Read |Error in Read: The operation is not allowed on non-connected sockets.
    System.InvalidOperationException: The operation is not allowed on non-connected sockets.
    at System.Net.Sockets.TcpClient.GetStream()
    at Modbus.IO.TcpClientAdapter.Write(Byte[] buffer, Int32 offset, Int32 size)
    at Modbus.IO.ModbusIpTransport.Write(IModbusMessage message)
    at Modbus.IO.ModbusTransport.UnicastMessage[T](IModbusMessage message)
    at Modbus.Device.ModbusMaster.PerformReadDiscretes(ReadCoilsInp utsRequest request)
    at Modbus.Device.ModbusMaster.ReadCoils(Byte slaveAddress, UInt16 startAddress, UInt16 numberOfPoints)
    at HSPI_MODBUS.Gateway.ReadBoolean(Int32 address, Int32 SlaveID, AddressTypes AddressType)
    at HSPI_MODBUS.Gateway.ReadValue(Address address)
    at HSPI_MODBUS.Gateway.Read(Address& address)
    Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

    Comment


      #3
      Maybe it will help to change The default port 502 to another value.

      ---
      John


      Verzonden vanaf mijn iPhone met Tapatalk

      Comment


        #4
        Okay

        I changed to port number - same results.

        I updated the Plug In - now the problem is worst I lose comm after about 3 mins....


        Jay

        Comment


          #5
          Jay this still seems like something it terminating the TCP session to your gateway.

          1. Is there any firewall of any sort between the plugin and the g/w?

          2. Can you try the modpoll utility from the 'net with the same poll interval and let me know if that is stable?

          It's very difficult to troubleshoot TCP connection issues with so many variables at play.

          Lastly can you send me any docs on the device your using please?

          Gavin


          Sent from my iPhone using Tapatalk
          Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

          Comment


            #6
            Thanks!

            I downloaded the Modpoll it appears to only poll slaves?

            Jay

            Comment


              #7
              That's correct. Modpoll (or the plugin) is the master. It polls slaves for data.

              I wanted to check if you get modpoll to poll a slave over TCP whether it has the same timeout issues as as the plugin.


              Sent from my iPhone using Tapatalk
              Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

              Comment


                #8
                Originally posted by Jayh391 View Post
                Thanks!

                I downloaded the Modpoll it appears to only poll slaves?

                Jay
                Hi Jay,

                Any requirements in the documentation for:
                1. Read/write retries
                2. Read write timeout
                3. Delay between each address poll


                I know these could cause that issue (had it in the past for a device)

                ---
                John

                Comment


                  #9
                  Nope nothing in the documentation.

                  I loaded a script to start / stop the plugin and is has the problem bandaided for now

                  Comment

                  Working...
                  X