Announcement

Collapse
No announcement yet.

Not able to add new devices

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

    Not able to add new devices

    Hi
    Though I still haven't managed to fix my previous problem a new one has occoured, Now I get the following message in the log file when i press "New device" on the plugin page. And when I press on the device for the gateway which is a serial connection I get the settings page for something that looks like an IP based interface.

    I have tried re-installing the plugin twice without any help.

    Code:
    	Posting back to plugin web page Modbus_Config: Objektreferanse er ikke satt til en objektforekomst.-> Server stack trace: Exception rethrown at [0]: ved System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) ved System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) ved HomeSeerAPI.IPlugInAPI.PostBackProc(String page, String data, String user, Int32 userRights) ved Scheduler.proxyPage.postBackProc(StateObject& state, String Data)

    #2
    And now I get the "Modbus" tab everytime I add a new device, is this correct? Seems to be for the IP Modbus and no good for me as I use Serial Modbus


    Current Date/Time: 02.06.2017 15.34.22
    HomeSeer Version: HS3 Pro Edition 3.0.0.318
    Operating System: Microsoft Windows 10 Pro - Work Station
    System Uptime: 1 Day 2 Hours 8 Minutes 31 Seconds
    IP Address: 192.168.40.51
    Number of Devices: 412
    Number of Events: 142
    Available Threads: 400

    Enabled Plug-Ins
    1.0.0.131: Arduino Plugin
    2.0.8.0: BLCpuAdvisor
    2.0.35.0: BLLAN
    3.0.0.68: HSTouch Server
    3.9.6344.24357: Modbus
    30.0.0.34: RFXCOM
    3.0.0.39: XBMC
    3.0.1.87: Z-Wave

    Comment


      #3
      I'm struggling to re-create this problem I'm afraid. Can you disable the plugin, remove any "orphaned" devices that were created in error, restart Homeseer and then re-enable the plugin?
      Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

      Comment


        #4
        Hi thank you for answering

        I now tried what you asked and the problem still persists, it came after I updated to the current version. Not sure what the number of the previous version was.
        Also on the Modbus Config page the gateway shows up as "Master" and not the name I give it when I create it. And if I press this one I get to the same page as "Add IP-RTU Master".

        Comment


          #5
          Hi Chris. Can you do the following please:

          1. Grab the latest version form the updater (I added some more logging)
          2. Enable debug logging and "log to file" in the plugin config page
          3. Try to add a new serial RTU device and send me errors (if any) from the HS3 Log, the HSPI_MODBUS.LOG file (in \logs) folder.
          Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

          Comment


            #6
            When I press the "Add device" button a devce is created but I am not taken to the "New device" page. The device that is created is under device type "Modbus" but not associated with the plugin in it looks like as it doesn't get the "Modbus" tab in the preferences page. I added some screenshots to visualize it.

            From the modbus log file:

            Code:
            ----------------- Logging started on 2017-06-03 13:39:45.6106 ------------------
            2017-06-03 13:39:45.6006|  INFO|HSPI_MODBUS.plugin.InitailiseAllGateways|Initalising modbus master gateways 
            2017-06-03 13:39:53.1441|  INFO|HSPI_MODBUS.plugin.CreateGatewayDevice  |Creating gateway device for plugin 
            2017-06-03 13:39:53.1621|  INFO|HSPI_MODBUS.plugin.CreateGatewayDevice  |Created a device with reference 488 for Gateway Device  
            2017-06-03 13:40:06.3357| ERROR|HSPI_MODBUS.plugin.ConfigCommonDevicePost|Error in ConfigCommonDevicePost: The given key was not present in the dictionary. 
            System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
               at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
               at HSPI_MODBUS.plugin.ConfigCommonDevicePost(Int32 ref, NameValueCollection parts, GatewayDevice& DeviceConfig)
            2017-06-03 13:40:06.3838| ERROR|HSPI_MODBUS.plugin.GetNewGatewayInstance|Error in GetNewGatewayInstance: String was not recognized as a valid TimeSpan. 
            System.FormatException: String was not recognized as a valid TimeSpan.
               at System.Globalization.TimeSpanParse.TimeSpanResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName)
               at System.Globalization.TimeSpanParse.ProcessTerminal_HM_S_D(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
               at System.Globalization.TimeSpanParse.ProcessTerminalState(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
               at System.Globalization.TimeSpanParse.TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanResult& result)
               at System.Globalization.TimeSpanParse.Parse(String input, IFormatProvider formatProvider)
               at HSPI_MODBUS.plugin.PopulateCommonAttributes(IGateway& gateway, DeviceClass dv, GatewayDevice deviceConfig)
               at HSPI_MODBUS.plugin.GetNewGatewayInstance(DeviceClass dv)
            2017-06-03 13:40:06.3948|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Master] 
            2017-06-03 13:40:06.4048| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 0 devices associated with this gateway. 
            2017-06-03 13:40:06.4168| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: The given key was not present in the dictionary. 
            System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
               at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
               at HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
            2017-06-03 13:40:06.4168|  WARN|HSPI_MODBUS.Gateway.Init                |Gateway [Master] is disabled, not initialising transport 
            2017-06-03 13:40:09.9563| DEBUG|HSPI_MODBUS.plugin.SetIOMulti           |CAPI Control set value: 1 for device ref:488 
            2017-06-03 13:40:14.0697| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: The given key was not present in the dictionary. 
            System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
               at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
               at HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
            2017-06-03 13:40:14.0757| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: The given key was not present in the dictionary. 
            System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
               at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
               at HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
            2017-06-03 13:40:14.0757|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Master] every 601 seconds 
            2017-06-03 13:40:14.0917| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Master. Reading 0 registers from slaves 
            2017-06-03 13:40:14.0917|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Master] status has changed to [Connected] 
            2017-06-03 13:40:19.3586|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Creating holding register device for plugin 
            2017-06-03 13:40:19.3716| ERROR|HSPI_MODBUS.WebConfig.postBackProc      |Error in postBackProc: Object reference not set to an instance of an object. 
            System.NullReferenceException: Object reference not set to an instance of an object.
               at HSPI_MODBUS.plugin.CreateRegisterDevice(Int32 parentRef)
               at HSPI_MODBUS.WebConfig.postBackProc(String page, String data, String user, Int32 userRights)
            2017-06-03 13:40:37.5259|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Creating holding register device for plugin 
            2017-06-03 13:40:37.5410| ERROR|HSPI_MODBUS.WebConfig.postBackProc      |Error in postBackProc: Object reference not set to an instance of an object. 
            System.NullReferenceException: Object reference not set to an instance of an object.
               at HSPI_MODBUS.plugin.CreateRegisterDevice(Int32 parentRef)
               at HSPI_MODBUS.WebConfig.postBackProc(String page, String data, String user, Int32 userRights)
            2017-06-03 13:40:43.5646|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Creating holding register device for plugin 
            2017-06-03 13:40:43.5646| ERROR|HSPI_MODBUS.WebConfig.postBackProc      |Error in postBackProc: Object reference not set to an instance of an object. 
            System.NullReferenceException: Object reference not set to an instance of an object.
               at HSPI_MODBUS.plugin.CreateRegisterDevice(Int32 parentRef)
               at HSPI_MODBUS.WebConfig.postBackProc(String page, String data, String user, Int32 userRights)
            From HSLog

            Code:
            un-03 13.40.09	 	Modbus Debug	CAPI Control set value: 1 for device ref:488
            jun-03 13.40.06	 	Modbus Warning	Gateway [Master] is disabled, not initialising transport
            jun-03 13.40.06	 	Modbus Error	Error in UpdateGatewayDevice: The given key was not present in the dictionary.
            jun-03 13.40.06	 	Modbus Debug	Found 0 devices associated with this gateway.
            jun-03 13.40.06	 	Modbus	Populating register database for gateway [Master]
            jun-03 13.40.06	 	Modbus Error	Error in GetNewGatewayInstance: String was not recognized as a valid TimeSpan.
            jun-03 13.40.06	 	Modbus Error	Error in ConfigCommonDevicePost: The given key was not present in the dictionary.
            jun-03 13.39.53	 	Modbus	Created a device with reference 488 for Gateway Device
            jun-03 13.39.53	 	Modbus	Creating gateway device for plugin
            jun-03 13.39.49	 	Z-Wave	Device: Node 7 Z-Wave Luminance Set to 296 (Lux)
            jun-03 13.39.46	 	Web Server	Web Server authorized login successful from: 192.168.40.105 User: christoffer
            jun-03 13.39.45	 	Modbus	Initalising modbus master gateways
            jun-03 13.39.44	 	Plug-In	Finished initializing plug-in Modbus
            jun-03 13.39.44	 	Info	Plugin Modbus has connected. IP:127.0.0.1:60191
            Attached Files

            Comment


              #7
              Can you check the poll interval in the config tab is set to 00:05:00 as a default please?


              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
                Yes it's unchanged

                Sent fra min SM-G930F via Tapatalk

                Comment


                  #9
                  Ok. This data is useful. I'll work up a fix for you asap.


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

                  Comment


                    #10
                    Thank you

                    Sent fra min SM-G930F via Tapatalk

                    Comment


                      #11
                      OK, there's a new build in the updater. It has some more logging detail in it to try and get to the bottom of this. Please shutdown the plugin, remove ALL modbus devices that may be associated to the plugin in some way and install the new version.

                      Start the plugin and try to add a new Serial gateway.

                      Send me the logs after that please from there please?
                      Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

                      Comment


                        #12
                        Here you go. It now worked to add the gateway and a device. But once I try to change the poll time of that gateway it happens. I have attached the log where I do as you say and after that I changed the poll time and then it failed. Then I deleted those devices, set the poll time back to 5 mins and added them again, then I was able to change properties on the Device that I added until I again decrease the polling time. I highlighted it in red just to clarify.

                        Code:
                        2017-06-03 19:15:33.9891|  INFO|HSPI_MODBUS.plugin.CreateGatewayDevice  |Creating gateway device for plugin 
                        2017-06-03 19:15:33.9891|  INFO|HSPI_MODBUS.plugin.CreateGatewayDevice  |Created a device with reference 497 for Gateway Device  
                        2017-06-03 19:15:36.0749|  WARN|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A Modbus Plugin device has changed.  Reconfiguring. 
                        2017-06-03 19:15:36.0749| DEBUG|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A gateway device has changed, re-initialising the gateway 
                        2017-06-03 19:15:36.0900|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:15:36.0900| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 0 devices associated with this gateway. 
                        2017-06-03 19:15:36.1005|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Disabled] 
                        2017-06-03 19:15:36.1005|  WARN|HSPI_MODBUS.Gateway.Init                |Gateway [Modbus RTU Gateway] is disabled, not initialising transport 
                        2017-06-03 19:15:41.7716| DEBUG|HSPI_MODBUS.Gateway.CloseSerial         |Closing serial port 
                        2017-06-03 19:15:41.7716|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Unreachable] 
                        2017-06-03 19:15:41.7716|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:15:41.7906| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 0 devices associated with this gateway. 
                        2017-06-03 19:15:41.9699|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Connected] 
                        2017-06-03 19:15:41.9879|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Modbus RTU Gateway] every 300 seconds 
                        2017-06-03 19:15:41.9879| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Modbus RTU Gateway. Reading 0 registers from slaves 
                        2017-06-03 19:15:54.1103|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Creating holding register device for plugin 
                        2017-06-03 19:15:54.1173|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Created a new device with reference 498 
                        2017-06-03 19:15:56.4839|  WARN|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A Modbus Plugin device has changed.  Reconfiguring. 
                        2017-06-03 19:15:56.4879| DEBUG|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A register device has changed, re-populating the register database 
                        2017-06-03 19:15:56.4879|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:15:56.4879| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:15:56.4879| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 1:1:HoldingRegister:Int16 to Modbus RTU Gateway 
                        2017-06-03 19:16:04.8987|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:16:04.8987| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:16:04.9107| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 33:181:HoldingRegister:Int16 to Modbus RTU Gateway 
                        2017-06-03 19:18:58.3060|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:18:58.3060| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:18:58.3190| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 33:181:InputRegister:Int16 to Modbus RTU Gateway 
                        2017-06-03 19:19:09.1744| DEBUG|HSPI_MODBUS.Gateway.CloseSerial         |Closing serial port 
                        2017-06-03 19:19:09.2254|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Unreachable] 
                        2017-06-03 19:19:09.2404| ERROR|HSPI_MODBUS.plugin.PopulateCommonAttributes|Error reading timespan for poll: 0.00.05 - setting to default of 300 
                        System.FormatException: Strengen blir ikke gjenkjent som gyldig TimeSpan.
                           ved System.Globalization.TimeSpanParse.TimeSpanResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName)
                           ved System.Globalization.TimeSpanParse.ProcessTerminal_HM_S_D(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.ProcessTerminalState(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.Parse(String input, IFormatProvider formatProvider)
                           ved HSPI_MODBUS.plugin.PopulateCommonAttributes(IGateway& gateway, DeviceClass dv, GatewayDevice deviceConfig)
                        2017-06-03 19:19:09.2404|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Master] 
                        2017-06-03 19:19:09.2534| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:19:09.2534| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 33:181:InputRegister:Int16 to Master 
                        2017-06-03 19:19:09.3185| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:19:09.3185| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:19:09.3406|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Master] every 301 seconds 
                        2017-06-03 19:19:09.3516| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Master. Reading 1 registers from slaves 
                        2017-06-03 19:19:09.3646| DEBUG|HSPI_MODBUS.Gateway.Read                |Reading Slave: 33 Address: 181 InputRegister:Int16 
                        2017-06-03 19:19:09.4261| DEBUG|HSPI_MODBUS.Gateway.Read                |Read    Slave: 33 Address: 181 InputRegister:Int16 as 1 
                        2017-06-03 19:19:09.4431| DEBUG|HSPI_MODBUS.plugin.UpdateDevice         |Updating device [Modbus Device] - Address:181 - Type:InputRegister(Int16) to [1] 
                        2017-06-03 19:19:17.8201| DEBUG|HSPI_MODBUS.plugin.SetIOMulti           |CAPI Control set value: 1 for device ref:497 
                        2017-06-03 19:19:18.4388| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:19:18.4508| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:19:18.4618|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Master] every 301 seconds 
                        2017-06-03 19:19:18.4618| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Master. Reading 1 registers from slaves 
                        2017-06-03 19:19:18.4813| DEBUG|HSPI_MODBUS.Gateway.Read                |Reading Slave: 33 Address: 181 InputRegister:Int16 
                        2017-06-03 19:19:18.5189| DEBUG|HSPI_MODBUS.Gateway.Read                |Read    Slave: 33 Address: 181 InputRegister:Int16 as 1 
                        2017-06-03 19:19:18.5399| DEBUG|HSPI_MODBUS.plugin.UpdateDevice         |Updating device [Modbus Device] - Address:181 - Type:InputRegister(Int16) to [1] 
                        2017-06-03 19:19:18.5399|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Master] status has changed to [Connected] 
                        2017-06-03 19:19:27.3581| ERROR|HSPI_MODBUS.plugin.ConfigDataDevicePost |Error in ConfigDataDevicePost: Objektreferanse er ikke satt til en objektforekomst. 
                        System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst.
                           ved HSPI_MODBUS.plugin.ConfigDataDevicePost(String data, Int32 ref)
                        2017-06-03 19:19:31.3139| ERROR|HSPI_MODBUS.plugin.ConfigDataDevicePost |Error in ConfigDataDevicePost: Objektreferanse er ikke satt til en objektforekomst. 
                        System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst.
                           ved HSPI_MODBUS.plugin.ConfigDataDevicePost(String data, Int32 ref)
                        2017-06-03 19:19:35.6216| ERROR|HSPI_MODBUS.plugin.ConfigDataDevicePost |Error in ConfigDataDevicePost: Objektreferanse er ikke satt til en objektforekomst. 
                        System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst.
                           ved HSPI_MODBUS.plugin.ConfigDataDevicePost(String data, Int32 ref)
                        2017-06-03 19:19:43.1022| ERROR|HSPI_MODBUS.plugin.ConfigDataDevicePost |Error in ConfigDataDevicePost: Objektreferanse er ikke satt til en objektforekomst. 
                        System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst.
                           ved HSPI_MODBUS.plugin.ConfigDataDevicePost(String data, Int32 ref)
                        2017-06-03 19:21:09.6445| DEBUG|HSPI_MODBUS.Gateway.CloseSerial         |Closing serial port 
                        2017-06-03 19:21:09.6945| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:21:09.6945| ERROR|HSPI_MODBUS.plugin.PopulateCommonAttributes|Error reading timespan for poll: 0.05.00 - setting to default of 300 
                        System.FormatException: Strengen blir ikke gjenkjent som gyldig TimeSpan.
                           ved System.Globalization.TimeSpanParse.TimeSpanResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName)
                           ved System.Globalization.TimeSpanParse.ProcessTerminal_HM_S_D(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.ProcessTerminalState(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.Parse(String input, IFormatProvider formatProvider)
                           ved HSPI_MODBUS.plugin.PopulateCommonAttributes(IGateway& gateway, DeviceClass dv, GatewayDevice deviceConfig)
                        2017-06-03 19:21:09.7085|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Master] 
                        2017-06-03 19:21:09.7085| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 0 devices associated with this gateway. 
                        2017-06-03 19:21:09.7810| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:21:09.7955| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:21:09.7955|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Master] every 301 seconds 
                        2017-06-03 19:21:09.8035| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Master. Reading 0 registers from slaves 
                        2017-06-03 19:21:16.1165|  WARN|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A Modbus Plugin device has changed.  Reconfiguring. 
                        2017-06-03 19:21:16.1165| DEBUG|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A register device has been deleted, re-populating the all register databases 
                        2017-06-03 19:21:16.1165| ERROR|HSPI_MODBUS.HSPI.HSEvent                |Error in HSEvent: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.PopulateRegisters(Int32 ref)
                           ved HSPI_MODBUS.plugin.HSChangedDeviceEvent(Int32 ref, Boolean delete)
                           ved HSPI_MODBUS.HSPI.HSEvent(HSEvent EventType, Object[] parms)
                        2017-06-03 19:21:21.3154|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Creating holding register device for plugin 
                        2017-06-03 19:21:21.3209| ERROR|HSPI_MODBUS.WebConfig.postBackProc      |Error in postBackProc: Objektreferanse er ikke satt til en objektforekomst. 
                        System.NullReferenceException: Objektreferanse er ikke satt til en objektforekomst.
                           ved HSPI_MODBUS.plugin.CreateRegisterDevice(Int32 parentRef)
                           ved HSPI_MODBUS.WebConfig.postBackProc(String page, String data, String user, Int32 userRights)
                        2017-06-03 19:21:48.8739|  WARN|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A Modbus Plugin device has changed.  Reconfiguring. 
                        2017-06-03 19:21:48.8739| DEBUG|HSPI_MODBUS.Gateway.CloseSerial         |Closing serial port 
                        2017-06-03 19:21:48.9277| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:21:49.9887| DEBUG|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A device changed/deleted - This isn't my device, ignoring. 
                        2017-06-03 19:21:52.7102|  INFO|HSPI_MODBUS.plugin.CreateGatewayDevice  |Creating gateway device for plugin 
                        2017-06-03 19:21:52.7102|  INFO|HSPI_MODBUS.plugin.CreateGatewayDevice  |Created a device with reference 500 for Gateway Device  
                        2017-06-03 19:21:54.0754|  WARN|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A Modbus Plugin device has changed.  Reconfiguring. 
                        2017-06-03 19:21:54.0754| DEBUG|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A gateway device has changed, re-initialising the gateway 
                        2017-06-03 19:21:54.0884|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:21:54.0884| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 0 devices associated with this gateway. 
                        2017-06-03 19:21:54.0984|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Disabled] 
                        2017-06-03 19:21:54.0984|  WARN|HSPI_MODBUS.Gateway.Init                |Gateway [Modbus RTU Gateway] is disabled, not initialising transport 
                        2017-06-03 19:22:02.1227| DEBUG|HSPI_MODBUS.Gateway.CloseSerial         |Closing serial port 
                        2017-06-03 19:22:02.1227|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Unreachable] 
                        2017-06-03 19:22:02.1377|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:22:02.1437| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 0 devices associated with this gateway. 
                        2017-06-03 19:22:02.3148|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Connected] 
                        2017-06-03 19:22:02.3268|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Modbus RTU Gateway] every 300 seconds 
                        2017-06-03 19:22:02.3368| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Modbus RTU Gateway. Reading 0 registers from slaves 
                        2017-06-03 19:22:06.5792|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Creating holding register device for plugin 
                        2017-06-03 19:22:06.5872|  INFO|HSPI_MODBUS.plugin.CreateRegisterDevice |Created a new device with reference 501 
                        2017-06-03 19:22:09.4602|  WARN|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A Modbus Plugin device has changed.  Reconfiguring. 
                        2017-06-03 19:22:09.4602| DEBUG|HSPI_MODBUS.plugin.HSChangedDeviceEvent |A register device has changed, re-populating the register database 
                        2017-06-03 19:22:09.4602|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:22:09.4742| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:22:09.4742| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 1:1:HoldingRegister:Int16 to Modbus RTU Gateway 
                        2017-06-03 19:22:16.9559|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:22:16.9629| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:22:16.9629| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 33:105:InputRegister:Int32 to Modbus RTU Gateway 
                        2017-06-03 19:22:23.5519|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Modbus RTU Gateway] 
                        2017-06-03 19:22:23.5519| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:22:23.5519| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 33:105:InputRegister:Int32 to Modbus RTU Gateway 
                        2017-06-03 19:22:39.0971| DEBUG|HSPI_MODBUS.Gateway.CloseSerial         |Closing serial port 
                        2017-06-03 19:22:39.1491|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Modbus RTU Gateway] status has changed to [Unreachable] 
                        2017-06-03 19:22:39.1491| ERROR|HSPI_MODBUS.plugin.PopulateCommonAttributes|Error reading timespan for poll: 0.00.10 - setting to default of 300 
                        System.FormatException: Strengen blir ikke gjenkjent som gyldig TimeSpan.
                           ved System.Globalization.TimeSpanParse.TimeSpanResult.SetFailure(ParseFailureKind failure, String failureMessageID, Object failureMessageFormatArgument, String failureArgumentName)
                           ved System.Globalization.TimeSpanParse.ProcessTerminal_HM_S_D(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.ProcessTerminalState(TimeSpanRawInfo& raw, TimeSpanStandardStyles style, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.TryParseTimeSpan(String input, TimeSpanStandardStyles style, IFormatProvider formatProvider, TimeSpanResult& result)
                           ved System.Globalization.TimeSpanParse.Parse(String input, IFormatProvider formatProvider)
                           ved HSPI_MODBUS.plugin.PopulateCommonAttributes(IGateway& gateway, DeviceClass dv, GatewayDevice deviceConfig)
                        2017-06-03 19:22:39.1621|  INFO|HSPI_MODBUS.plugin.PopulateRegisters    |Populating register database for gateway [Master] 
                        2017-06-03 19:22:39.1621| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Found 1 devices associated with this gateway. 
                        2017-06-03 19:22:39.1621| DEBUG|HSPI_MODBUS.plugin.PopulateRegisters    |Adding 33:105:InputRegister:Int32 to Master 
                        2017-06-03 19:22:39.2327| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:22:39.2437| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:22:39.2437|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Master] every 301 seconds 
                        2017-06-03 19:22:39.2637| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Master. Reading 1 registers from slaves 
                        2017-06-03 19:22:39.2737| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |*Disabled* Slave: 33 Address: 105 InputRegister:Int32 as 0 
                        2017-06-03 19:22:41.3682| DEBUG|HSPI_MODBUS.plugin.SetIOMulti           |CAPI Control set value: 1 for device ref:500 
                        2017-06-03 19:22:41.9860| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:22:41.9976| ERROR|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Error in UpdateGatewayDevice: Den angitte n𫫥len finnes ikke i ordlisten. 
                        System.Collections.Generic.KeyNotFoundException: Den angitte n𫫥len finnes ikke i ordlisten.
                           ved System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                           ved HSPI_MODBUS.plugin.UpdateGatewayDevice(Int32 gatewayref)
                        2017-06-03 19:22:42.0086|  INFO|HSPI_MODBUS.Gateway.InitTimer           |Start poll timer for gateeway [Master] every 301 seconds 
                        2017-06-03 19:22:42.0086| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |Polling Master. Reading 1 registers from slaves 
                        2017-06-03 19:22:42.0216| DEBUG|HSPI_MODBUS.Gateway.OnTimedEvent        |*Disabled* Slave: 33 Address: 105 InputRegister:Int32 as 0 
                        2017-06-03 19:22:42.0366|  WARN|HSPI_MODBUS.plugin.UpdateGatewayDevice  |Gateway [Master] status has changed to [Connected]

                        Comment


                          #13
                          This looks like a regional issue. Your machine is converting the timespan from hh:mm:SA to hh.mm.ss (dots) and HS doesn't seem to like this.

                          I'll find a way to code around it and publish an update.


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

                          Comment


                            #14
                            It's not clear to me why your poll time is being reflected as 0.00.05 rather than 0:00:05 for hh:mm:ss - this has something to do with the country settings for your machine. Are you using Norwegian settings perhaps?

                            Edit: New version in the updater to test and let me know how it goes.
                            Author of Highpeak Plugins | SMS-Gateway Plugin | Blue Iris Plugin | Paradox (Beta) Plugin | Modbus Plugin | Yamaha Plugin

                            Comment


                              #15
                              Yes, that seems to be the issue. I've been testing a bit my self and if I use English, United Kingdom it will show hh:mm:ss and if I use Norwegian it will show as hh.mm.ss when I change the polling time. I might just run with English to avoid this issue if this relates to HS itself.

                              Comment

                              Working...
                              X