Announcement

Collapse
No announcement yet.

Error creating Group

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Error creating Group

    I just tried to join two KPL buttons into a Group but keep getting an error. It used to work fine, but I have updated to .15 recently. I believe this is the part of the log that may be relevant.

    Insteon Plug-in Error Log Generated 5/27/2017 2:37:45 PM
    -----------*Error Message*----------------
    Error: Error in ProgramRemoteLink - Step 1: startIndex + length cannot exceed length of string.
    Parameter name: length -- Details System.ArgumentOutOfRangeException: startIndex + length cannot exceed length of string.
    Parameter name: length
    at System.String.Substring (Int32 startIndex, Int32 length) [0x00000] in <filename unknown>:0
    at Insteon.Support.Core.InsteonModule.ProgramRemoteLink (System.String RemAddr, System.String LinkAddr, Int32 LinkGrpNum, Byte OnLevel, Byte RampRate, Boolean SlaveLink, Int32 RemAddrGrpNum) [0x00000] in <filename unknown>:0 -- 5/27/2017 2:37:45 PM


    5/27/2017 2:37:31 PM - Entering group add/edit page in buildpage
    5/27/2017 2:37:31 PM - gHTMLDevice Is 3
    5/27/2017 2:37:40 PM - Entering group add/edit routine in pageput
    5/27/2017 2:37:40 PM - Adding Device 41.E0.E4:5 to group participant list
    5/27/2017 2:37:40 PM - Adding Device 41.E0.E4:6 to group participant list
    5/27/2017 2:37:40 PM - Setting Group Controller to 00.00.00:0
    5/27/2017 2:37:40 PM - Save Changes and Reprogram Group Selected
    5/27/2017 2:37:40 PM - Set group job participant data to 41.E0.E4:5,100,31,41.E0.E4:6,100,31 for this number of participants: 2
    5/27/2017 2:37:40 PM - Launching new BackgroundUpdate Thread with job type 5...
    5/27/2017 2:37:40 PM - In BackgroundUpdate Thread...
    5/27/2017 2:37:40 PM - Programming a link record for Group 3 to Insteon device ID 41.E0.E4 (1 of 2)...
    5/27/2017 2:37:40 PM - Attempting to update the status for Kitchen KI.(KPL) (41.E0.E4)
    5/27/2017 2:37:40 PM - ResourceManager::RequestExclusive for Resource 1
    5/27/2017 2:37:40 PM - ResourceManager::RequestExclusive acquired for Resource 1
    5/27/2017 2:37:40 PM - Sending command 02 62 41 E0 E4 0A 19 00 to RF PLM, (Expecting 0 bytes extra back) Pre-Payload ACK:False, NAK is ok:False
    5/27/2017 2:37:41 PM - ..Got RF PLM Response 02 62 41 E0 E4 0A 19 00 06
    5/27/2017 2:37:41 PM - ResourceManager::ReleaseExclusive for Resource 1
    5/27/2017 2:37:41 PM - Received STX 0x50 (Raw Insteon Rec):41 E0 E4 44 84 83 2A 02 00
    5/27/2017 2:37:41 PM - CheckRawMessageMatch: 01 41 E0 E4 44 84 83 2A 02 00 against key 0* 41 E0 E4 44 84 83 2* ** **
    5/27/2017 2:37:41 PM - Wait: Found a matching Insteon raw message: 01 41 E0 E4 44 84 83 2A 02 00
    5/27/2017 2:37:41 PM - Database recently heard delta value for device 41.E0.E4 is current.
    5/27/2017 2:37:41 PM - Database delta value of 2 for device 41.E0.E4 is current. No changes since last database update.
    5/27/2017 2:37:41 PM - Programming group links for 41.E0.E4
    5/27/2017 2:37:41 PM - Calling AddRecord for 41.E0.E4 19 False
    5/27/2017 2:37:41 PM - ResourceManager::RequestExclusive for Resource 1
    5/27/2017 2:37:41 PM - ResourceManager::RequestExclusive acquired for Resource 1
    5/27/2017 2:37:41 PM - Sending command 02 6F 40 F2 13 41 E0 E4 00 00 00 to RF PLM, (Expecting 0 bytes extra back) Pre-Payload ACK:False, NAK is ok:True
    5/27/2017 2:37:41 PM - Received message from Kitchen KI.(KPL) (41.E0.E4) taking hops: 1
    5/27/2017 2:37:41 PM - Received a Direct ACK from Kitchen KI.(KPL) (41.E0.E4): 41 E0 E4 44 84 83 2A 02 00
    5/27/2017 2:37:41 PM - ..Got RF PLM Response 02 6F 40 F2 13 41 E0 E4 00 00 00 15
    5/27/2017 2:37:41 PM - ResourceManager::ReleaseExclusive for Resource 1
    5/27/2017 2:37:41 PM - Scheduled polling temporarily stopped.
    5/27/2017 2:37:41 PM - Program Remote Record not needed for 41.E0.E4 to A213448483FF1F05
    5/27/2017 2:37:41 PM - Scheduled polling resumed.
    5/27/2017 2:37:41 PM - Scheduled polling temporarily stopped.
    --------*End Pre-Error Log*--------------

    Any advice? Comms for all my devices show "Excellent".

    #2
    please make sure the kpl links are up to date before programming the group

    did the group get created? if so, does it partially work? if so, can you add the other kpl to the group.
    Mark

    HS3 Pro 4.2.19.5
    Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
    Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
    Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

    Comment


      #3
      The group was created and seems to work well so all the links must have been created successfully. Just the misleading message that it failed.

      Comment


        #4
        Originally posted by andyf View Post
        The group was created and seems to work well so all the links must have been created successfully. Just the misleading message that it failed.
        How many devices were in the original group before you added the KPLs?

        I'll try to recreate and test
        Mark

        HS3 Pro 4.2.19.5
        Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
        Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
        Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

        Comment


          #5
          This was a new group with just the "E" & "F" buttons of an 8 button KPL in it. They are just status buttons I use to indicate whether my HVAC is Heating (Button E) or Cooling (Button F). When the system goes Idle I wanted to turn off both buttons with just one command, so I created a group. There is no controller in it.

          I had created the same group some time ago but started playing with the light on an HSM200 so I deleted the group previously. Then I changed my mind and re-created the group but with the newer version of the plug-in and saw this error message.

          Comment


            #6
            found the issue. it will be fixed in the next beta
            Mark

            HS3 Pro 4.2.19.5
            Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
            Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
            Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

            Comment


              #7
              Thank you. I'll watch out for it.

              Comment


                #8
                I ran into a similar problem when programming a group

                11/26/2017 10:08:47 AM - ***:Error in ProgramRemoteLink - Step 1: Index and length must refer to a location within the string.
                Parameter name: length -- Details System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
                Parameter name: length
                at System.String.Substring(Int32 startIndex, Int32 length)
                at Insteon.Support.Core.InsteonModule.ProgramRemoteLink(String RemAddr, String LinkAddr, Int32 LinkGrpNum, Byte OnLevel, Byte RampRate, Boolean SlaveLink, Int32 RemAddrGrpNum)

                When I removed the KPL from the group, it seemed to help. I was able to add the KPL in after, and everything seems to be working fine.
                Joe (zimmer62)

                BLSecurtiy, AC-RF2, RCS Serial Thermostats, RFXCOM SMarthome SwitchLinc, mcsXap, Global Cache GC100, SqueezeBox, TWA_ONKYOINTEGRA, BLLogMonitor, BLPlugins, BLRadar, BLSpeech, BLZLog.aspx, HSTouch (Windows, iPhone, iPod), USB Mimo touchscreens, VMWare Server, Vortexbox, Windows Home Server, MyMovies, Windows Media Center, X10, ZWave, and much much much more.

                Comment


                  #9
                  Originally posted by zimmer62 View Post
                  I ran into a similar problem when programming a group

                  11/26/2017 10:08:47 AM - ***:Error in ProgramRemoteLink - Step 1: Index and length must refer to a location within the string.
                  Parameter name: length -- Details System.ArgumentOutOfRangeException: Index and length must refer to a location within the string.
                  Parameter name: length
                  at System.String.Substring(Int32 startIndex, Int32 length)
                  at Insteon.Support.Core.InsteonModule.ProgramRemoteLink(String RemAddr, String LinkAddr, Int32 LinkGrpNum, Byte OnLevel, Byte RampRate, Boolean SlaveLink, Int32 RemAddrGrpNum)

                  When I removed the KPL from the group, it seemed to help. I was able to add the KPL in after, and everything seems to be working fine.
                  Joe,
                  what version of the plugin are you running? have you tried the latest beta

                  does the group you were working with have a controller?
                  Mark

                  HS3 Pro 4.2.19.5
                  Hardware: Insteon Serial PLM | AD2USB for Vista Alarm | HAI Omnistat2 | 1-Wire HA7E | RFXrec433 | Dahua Cameras | LiftMaster Internet Gateway | Tuya Smart Plugs
                  Plugins: Insteon (mine) | Vista Alarm (mine) | Omnistat 3 | Ultra1Wire3 | RFXCOM | HS MyQ | BLRadar | BLDenon | Tuya | Jon00 Charting | Jon00 Links
                  Platform: Windows Server 2022 Standard, i5-12600K/3.7GHz/10 core, 16GB RAM, 500GB SSD

                  Comment

                  Working...
                  X