Announcement

Collapse
No announcement yet.

Communication freeze

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

    #31
    Yes, its very possible. If I understand it correctly the new driver communicates directly with the ad2usb instead of passing everything through a virtual com port first. and thus line noise isn't throwing an error that disrupts the driver. the FTDI driver must be able to handle this whereas the microsoft serial port driver couldn't.

    I think i still need a watch dog routine that monitors for a usb disconnect in case of a power outage on the computer or a physical usb disconnect. I'll just look for a few missed messages and attempt to restart the port/connection for a few minutes.

    What was your longest runtime before?
    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


      #32
      With this on/off routine every two minutes, not more than several hours.

      I wouldn't call myself fully convinced yet, but we are at the 24 hour mark. Will give it another day and see what happens. Your restart will be gravy!

      -BD

      Comment


        #33
        Oh, i forgot to ask about cmds you send to the panel from the plugin. any problems there with cmds not being executed?
        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


          #34
          Originally posted by mnsandler View Post
          Oh, i forgot to ask about cmds you send to the panel from the plugin. any problems there with cmds not being executed?
          No. Seems fine. And we are still working fine. Digits crossed!

          I think there are others who have had communications freezes... they should probably test this as well.

          -BD

          Comment


            #35
            CRASH!! Good news & bad news...

            1. Bad news first: We lost communications.
            2. Good(ish) news: It was not following a LIGHT OFF event. Here is the log when it went buh-bye:

            --------
            6/15/2012 1:48:38 PM Device Control Device: Laundry Room Lights (\38) OFF
            6/15/2012 1:48:38 PM Event Event Trigger "Lights (delayed action)"
            6/15/2012 1:47:42 PM SageInsteonTStat Temp change-Thermostat-Upstairs - old: 80 new: 79
            6/15/2012 1:47:42 PM SageInsteonTStat Direct Command Received
            6/15/2012 1:47:42 PM SageInsteonTStat Received Insteon Data: 01 14 68 64 1A 78 84 0B 6E 4F
            6/15/2012 1:47:03 PM Device Update Device: Power Energy Monitor Electric Meter kW Hours value set to 95348 (953.479 kW Hours)
            6/15/2012 1:47:03 PM Device Update Device: Power Energy Monitor Electric Meter Watts value set to 188244 (1882.44 Watts)
            6/15/2012 1:46:39 PM Vista Alarm [1000000110000000----],008,[f700003f1008001c28020000000000]," DISARMED CHIME Ready to Arm "
            6/15/2012 1:46:39 PM Vista Alarm Processing msg on Partition 1
            6/15/2012 1:46:38 PM Device Control Device: Laundry Room Lights (\38) ON
            6/15/2012 1:46:38 PM Event Event Trigger "Laundry Lights Test"
            6/15/2012 1:46:29 PM Vista Alarm [1000000110000000----],008,[f700003f1008001c28020000000000]," DISARMED CHIME Ready to Arm "
            6/15/2012 1:46:29 PM Vista Alarm Processing msg on Partition 1
            6/15/2012 1:46:19 PM Vista Alarm [1000000110000000----],008,[f700003f1008001c28020000000000]," DISARMED CHIME Ready to Arm "
            6/15/2012 1:46:19 PM Vista Alarm Processing msg on Partition 1
            -------

            Note that communications stopped out of nowhere, while the light was already ON and well before it went OFF.

            Now, truth be told: we were in the middle of a thunderstorm with a good bit of lightning, but we never lost power or anything else funky.

            3. Badder news: Sending a command does nothing. No error, no nada. Check it:

            -----
            6/15/2012 2:22:03 PM Device Update Device: Power Energy Monitor Electric Meter kW Hours value set to 95471 (954.708 kW Hours)
            6/15/2012 2:22:03 PM Device Update Device: Power Energy Monitor Electric Meter Watts value set to 339816 (3398.16 Watts)
            6/15/2012 2:21:38 PM Device Control Device: Laundry Room Lights (\38) ON
            6/15/2012 2:21:38 PM Event Event Trigger "Laundry Lights Test"
            6/15/2012 2:20:03 PM Web Server Web Server authorized login successful from: 192.168.1.1 User: admin
            6/15/2012 2:20:00 PM Event Running script in background: ElectricCostCalc.vb
            6/15/2012 2:20:00 PM Event Event Trigger "Power Cost Calculator"
            6/15/2012 2:19:36 PM Vista Alarm Sending [code]+1
            6/15/2012 2:19:14 PM Web Server Web Server authorized login successful from: 192.168.1.184 User: admin
            6/15/2012 2:19:03 PM Web Server Web Server authorized login successful from: 192.168.1.1 User: admin
            6/15/2012 2:18:38 PM Event Deleting event after run: "Delayed Actions Lights (delayed action)"
            6/15/2012 2:18:38 PM Device Control Device: Laundry Room Lights (\38) OFF
            6/15/2012 2:18:38 PM Event Event Trigger "Lights (delayed action)"
            6/15/2012 2:18:21 PM Vista Alarm Sending [code]+1
            6/15/2012 2:18:19 PM Web Server Web Server authorized login successful from: 192.168.1.184 User: admin
            -----

            And now we are dead. Next step?

            -BD

            Comment


              #36
              Spoke a bit soon... Tried to disable and re-enable monitor (99), and we are back in BIZNESS! Log:

              -----


              6/15/2012 2:28:33 PM Vista Alarm !AUI:1606000000006063024543f531fb456cf5ec03010101
              6/15/2012 2:28:33 PM Vista Alarm [1001010110000000----],008,[f700003f1008011c28020000000000]," DISARMED CHIME Ready to Arm "
              6/15/2012 2:28:33 PM Vista Alarm Processing msg on Partition 1
              6/15/2012 2:28:32 PM Vista Alarm !AUI:120600000000676c02456cf5ec0101010000
              6/15/2012 2:28:32 PM Vista Alarm !Sending.done
              6/15/2012 2:28:32 PM Vista Alarm Sending [code]+1
              6/15/2012 2:28:31 PM Vista Alarm [1000000110000000----],008,[f700003f1008001c28020000000000]," DISARMED CHIME Ready to Arm "
              6/15/2012 2:28:31 PM Vista Alarm Processing msg on Partition 1
              6/15/2012 2:28:26 PM Vista Alarm Monitor started...
              6/15/2012 2:28:26 PM Vista Alarm Loading Zones...
              6/15/2012 2:28:26 PM Vista Alarm Loading RF Devices...
              6/15/2012 2:28:26 PM Vista Alarm Searching for House Codes...
              6/15/2012 2:28:26 PM Vista Alarm Found the AD2USB on COM port 4 running firmware version V2.2a.4
              6/15/2012 2:28:26 PM Vista Alarm Received msg: !VER:00000793,V2.2a.4,TX;RX;SM;VZ;RF;ZX;RE;AU;3X;CG;DD;MF
              6/15/2012 2:28:26 PM Vista Alarm Sent cmd: V
              6/15/2012 2:28:26 PM Vista Alarm Opened COM port 4
              6/15/2012 2:28:22 PM Vista Alarm Monitor terminated...
              6/15/2012 2:28:22 PM Vista Alarm Closed COM port 4
              6/15/2012 2:27:03 PM Device Update Device: Power Energy Monitor Electric Meter kW Hours value set to 95495 (954.953 kW Hours)
              6/15/2012 2:27:03 PM Device Update Device: Power Energy Monitor Electric Meter Watts value set to 141840 (1418.4 Watts)
              -----

              -BD

              Comment


                #37
                Very interesting all around. that' very good news that you were able to restart the monitor. That means i can restart it via the new watch dog routine. I need to do a little more testing on this before i post it, but it should be later this evening.

                I'll look into why there were no error msgs logged during the "send cmd" attempts. My guess is the driver still didn't know the port was fubar'd

                thanks for the feedback
                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


                  #38
                  Ok,

                  lets give this version a try. It has the watch dog routine i mentioned. If no panel messages are received for 1 minute, it will attempt to restart the monitor for 2 minutes in 10 sec increments.

                  Put both DLLs into your homeseer folder. The FDTI dll hasn't change, i only mention this in case someone wants to give it a try

                  One test you can try is to disconnect the usb cable, wait for the plugin to figure out there is an issue. Then plug the cable back in and the monitor should restart.

                  Otherwise, we wait...
                  Attached Files
                  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


                    #39
                    OK. Up and running. Did I need to enter the line into the .ini or not?

                    -BD

                    Comment


                      #40
                      Originally posted by BrunDog View Post
                      OK. Up and running. Did I need to enter the line into the .ini or not?

                      -BD
                      don't worry about the ini setting. i dropped that requirement
                      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


                        #41
                        OK cool. Now, how will I know if it crashed? Will there be a log entry? If so, what do I look (aka. search) for?

                        BTW, up and running since I posted above. Laundry light still on and off every two minutes.

                        -BD

                        Comment


                          #42
                          when the connection drops you will see the following msg:
                          Warning! Communications lost. Attempting to reset the port & monitor...

                          followed by the same type of log entries you see at startup if it can recover.

                          The following message will show if the plugin can't restart
                          Error opening COM port X to Vista Alarm
                          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


                            #43
                            In the final version, I'll add some triggers that you can use to notify yourself if the usb disconnects, and another trigger if it reconnects or has to shutdown the plugin.
                            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


                              #44
                              OK. Will keep a lookout. No "warning" in the log yet.

                              Nice work, BTW!

                              -BD

                              Comment


                                #45
                                Originally posted by BrunDog View Post
                                OK. Will keep a lookout. No "warning" in the log yet.

                                Nice work, BTW!

                                -BD
                                Thanks and thanks for helping. I hope this works. I'm running out of ideas for this issue which affects both of my plugins.
                                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