Announcement

Collapse
No announcement yet.

ADIOcelot Plugin

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

    Michael,

    Speaking strictly in VB6/16-bit terms:

    An integer uses the 16th bit to indicate positive/negative. Thus, 8000 is -32767 or something like that. When this is passed as bytes or anything where the 16th bit is just another bit, then it works fine. However, it is stored in the database as a signed value, and so it is written as a negative integer and then read into a long integer, so the sign is retained. In the case of &H8000, it becomes &H80000000 because the sign bit is now the 32nd bit instead of the 16th bit. This means that the SetIO bit is turned OFF just through the act of passing this value through different sized variables.
    Regards,

    Rick Tinker (a.k.a. "Tink")

    Comment


      I guess I'm being dense on this. The VB6 plugin passes the Long value 00008000 as a 32 bit value to HS in the .misc value of a DeviceClass. HS then saves this to the datbase as 80000000 and then retuns it to the DeviceClass.misc in this same manner so the SETIO bit it OFF.

      What does a VB6 plugin need to do so the SETIO bit is maintained as HS saves the .misc property to the database?

      All the values that are being used within ADIOcelot are declared as Long so if HS has also declared .misc as .NET Integer (32 bit) then there should not be any sign extension. If HS has declared .misc as .NET short (16 bit) then the upper 16 bits of the value from ADIOcelot will be truncated and the 8000 will then appear as a negative number.

      I did post the related code from the plugin earlier in this thread. What needs to change so SETIO bit will be maintained?

      Comment


        Michael,

        I missed where you mentioned you are using all Long Integers, and I did not look at the code until now.

        The issue is likely then to be related to a change in hs_compatibility.exe or something else - as I mentioned before, I am not sure when/where the change was made, but I am not doubting that a change at our end was the catalyst.

        However, I am trying to get this moving forward, and that means correcting the situation in a one-time fix. That is, providing there are no places where it goes through a 16 bit integer, then we only need to get the value back to its proper place.

        This happened with 1-2 users and the Compose plug-in. Once they changed to using the .NET plug-in so that it would not go through a 16 bit integer, they still had to fix the device, and that was done by deleting it and re-creating it, which is what I was suggesting here.
        Regards,

        Rick Tinker (a.k.a. "Tink")

        Comment


          Comment


            I deleted the relay devices, installed new version 1.14.0.10, created devices again and evewrything seems to be working.
            Thanks Michael!!!

            Marty

            Comment


              I am having the same exact problem with HS 2.3. and I am using 1.14.0.3 version. How can I download 1.14.0.10 version?

              Comment


                The most current versionof the plugin is at the top of this subforum. Download,stopHS, unzip into main homeseer folder to replace previous hspi_adiocelot.ocx

                Comment


                  Originally posted by Czechmarty View Post
                  I deleted the relay devices, installed new version 1.14.0.10, created devices again and evewrything seems to be working.
                  Thanks Michael!!!
                  Yes, thank you Michael.

                  Steve

                  Comment


                    I have been sitting on the sidelines wondering if my system was affected because my garage door sensor connected to Ocelot was not working correctly. Seemed to happen when I upgrade to HS 2.3 but have been busy making sure all my own plug-ins were baheving well with HS 2.3. Installing new ADIOcelot build now.
                    Jim Doolittle

                    My Twitter
                    My Hardware & Software

                    Comment


                      Hi guys<o></o>
                      <o></o>
                      Any progress with the new ADIOcelot plug-in<o></o>

                      1.14.0.10 plug-in


                      1021

                      Comment


                        Any idea why I wouldn't be able to run the setup function either from the config option in setup or the setup function from the drop down area on the window menu for HomeSeer? I migrated from the other Ocelot plug-in some months ago and have never been able to get the setup option to work. Now I am attempting to make some forward progress with my IR and I need the setup capability.

                        Comment


                          Some log information

                          2/26/2009 5:57:26 AM - Info - Initializing Infrared interface ADIOcelot on COM 3
                          2/26/2009 5:57:26 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:57:26 AM - Warning - MoveSettings is no longer supported
                          2/26/2009 5:57:27 AM - HAI System - Message 1: Trash Day
                          2/26/2009 5:57:27 AM - HAI System - Message 2: Recycle Day
                          2/26/2009 5:57:28 AM - ADIOcelot - Using Comm Port 3 0
                          2/26/2009 5:57:28 AM - ADIOcelot - Found CPU-XA/Ocelot 0
                          2/26/2009 5:57:29 AM - ADIOcelot - Ocelot IR size: 1024 0
                          2/26/2009 5:57:29 AM - HAI System - Checking special devices, creating any that need to be created....
                          2/26/2009 5:57:29 AM - HAI System - --- Starting global update of system at: 5:57:29 AM
                          2/26/2009 5:57:31 AM - ADIOcelot - Unit found: SECU16IR Addr: 1 0
                          2/26/2009 5:57:33 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:57:33 AM - MLHSPlugin MsgLog - Connection established from MLServer MLHSPLugin at 192.168.102.108
                          2/26/2009 5:57:33 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:57:33 AM - Info - Finished initializing infrared interface ADIOcelot
                          2/26/2009 5:57:33 AM - MLHSPlugin MsgLog - Now subscribing to the following devices :[50~`41~`42
                          2/26/2009 5:57:40 AM - HAI System - --- DONE with global update of system at: 5:57:40 AM
                          2/26/2009 5:57:40 AM - HAI System - --- Elapsed time: 10 seconds.
                          2/26/2009 5:57:40 AM - HAI System - All HAI Items and Units are Up-To-Date. Triggers and Conditions are now active.
                          2/26/2009 5:59:02 AM - Info - Initializing X10 Plug-in: ADIOcelot On COM Port 3
                          2/26/2009 5:59:02 AM - Info - Initializing Plug-in: ADIOcelot
                          2/26/2009 5:59:02 AM - ADIOcelot - Initializing X10 Interface on port 3 0
                          2/26/2009 5:59:03 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:03 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:03 AM - Info - Finished initializing X10 interface ADIOcelot
                          2/26/2009 5:59:03 AM - Info - Shutting down Infrared Plug-In: ADIOcelot
                          2/26/2009 5:59:05 AM - Info - Initializing Infrared interface ADIOcelot on COM 3
                          2/26/2009 5:59:05 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:07 AM - ADIOcelot - Using Comm Port 3 0
                          2/26/2009 5:59:08 AM - ADIOcelot - Found CPU-XA/Ocelot 0
                          2/26/2009 5:59:08 AM - ADIOcelot - Ocelot IR size: 1024 0
                          2/26/2009 5:59:10 AM - ADIOcelot - Unit found: SECU16IR Addr: 1 0
                          2/26/2009 5:59:12 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:12 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:12 AM - Info - Finished initializing infrared interface ADIOcelot
                          2/26/2009 5:59:12 AM - Info - Initializing Plug-in: ADIOcelot
                          2/26/2009 5:59:12 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:12 AM - COM Plugin - Calling InitIO
                          2/26/2009 5:59:14 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:14 AM - Info - Finished initializing plug-in ADIOcelot
                          2/26/2009 5:59:14 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:23 AM - ConfigIO - Calling ConfigIO for ADIOcelot
                          2/26/2009 5:59:23 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:42 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:42 AM - ADIOcelot - Select Menu 40
                          2/26/2009 5:59:49 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:49 AM - ADIOcelot - Select Menu 40
                          2/26/2009 5:59:59 AM - MLHSPlugin Debug - Entered name() function.
                          2/26/2009 5:59:59 AM - ADIOcelot - Select Menu 40

                          Comment


                            Problem I/O Devices Tab Units not Discovered New Installation

                            I have moved my Ocelot to a new HomeSeer Machine at my home in Atlanta.

                            The program sees unit 0

                            However, it does not see my three 2500 ADICON Secur-16's
                            there is a Secur-16 and two Secur-16i's....

                            What trouble shooting things do you recommend......... I was only using the one Secu-16 on the other system at my other home and all was working fine when I shut it down and removed it on Thursday. The leds on the 2500's all indicate they are active and communicating with the Ocelot.

                            Once I saw one of the Secur-16i's but with unit 0 but that was all....

                            Cheers,

                            Gary

                            Comment


                              I do not have anything beyond the phsical connections to check and in particular to the first in the chain that is not responding. The plugin queries the ocelot for attached dvices at startup and the respons is displayed on the 1st tab of the setup page.

                              Comment


                                Gary,
                                Try to re-address the units. Long long time ago I had the same problem. After playing with the address buttons it was OK. Oh and also for some reason my units (SECU16, SECU16IR) don't like to be powered by the same PS as the Ocelot unit.
                                Also you can go to the MAX software and see if Ocelot actually sees the units or not. If MAX sees them, the plugin should as well.

                                Comment

                                Working...
                                X