Announcement

Collapse
No announcement yet.

Error messages with Rain8UPB

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

    Error messages with Rain8UPB

    I finally got around to installing a second PIM so I can talk to the Rain8UPB. It seems to work okay, but I get lots (several per second) error messages:

    Dec-20 11:46:08 AM mcsSprinklers ProcessUPBCommData Line 110 Index and length must refer to a location within the string. Parameter name: length

    In the hopes that IOWindow.txt gives you something meaningful, here is a snippet from that file (the entire file has grown to well over 1MB in the ten minutes since I turned it on):
    12/20/2015 11:46:53 | 1595312 | Rain8UPB IN | F
    X1F
    X-
    12/20/2015 11:46:53 | 1595328 | Rain8UPB IN | F
    X1F
    X
    12/20/2015 11:46:53 | 1595343 | Rain8UPB IN | 2F
    X1F
    X
    12/20/2015 11:46:53 | 1595359 | Rain8UPB IN | 1F
    X1F
    X
    12/20/2015 11:46:53 | 1595375 | Rain8UPB IN | 1F
    X-F

    12/20/2015 11:46:53 | 1595406 | Rain8UPB IN | X-F
    X1F

    12/20/2015 11:46:53 | 1595406 | Rain8UPB IN | X-F
    X1F

    12/20/2015 11:46:53 | 1595421 | Rain8UPB IN | X1F
    X1F
    12/20/2015 11:46:53 | 1595437 | Rain8UPB IN |
    X1F
    X1F
    12/20/2015 11:46:53 | 1595453 | Rain8UPB IN |
    X-F
    X1F
    12/20/2015 11:46:53 | 1595484 | Rain8UPB IN |
    X-F
    X1
    12/20/2015 11:46:53 | 1595484 | Rain8UPB IN | F
    X1F
    X1
    12/20/2015 11:46:53 | 1595500 | Rain8UPB IN | F
    X1F
    X1
    12/20/2015 11:46:53 | 1595515 | Rain8UPB IN | F
    X1F
    X
    12/20/2015 11:46:53 | 1595562 | Rain8UPB IN | 1F
    X1F
    X
    12/20/2015 11:46:53 | 1595562 | Rain8UPB IN | 1F
    X1F
    X
    12/20/2015 11:46:53 | 1595562 | Rain8UPB IN | 1F
    X1F

    12/20/2015 11:46:53 | 1595609 | Rain8UPB IN | X1F
    X1F
    X-F
    X1F

    12/20/2015 11:46:53 | 1595609 | Rain8UPB IN | X1F
    X1F
    12/20/2015 11:46:53 | 1595625 | Rain8UPB IN |
    X1F
    X1F
    12/20/2015 11:46:53 | 1595640 | Rain8UPB IN |
    X1F
    X-F
    12/20/2015 11:46:54 | 1595671 | Rain8UPB IN |
    X1F
    X1F
    12/20/2015 11:46:54 | 1595687 | Rain8UPB IN |
    X1F
    X1
    12/20/2015 11:46:54 | 1595687 | Rain8UPB IN | F
    X1F
    X1
    12/20/2015 11:46:54 | 1595703 | Rain8UPB IN | F
    X1F
    X-
    12/20/2015 11:46:54 | 1595718 | Rain8UPB IN | F
    X1F
    X
    12/20/2015 11:46:54 | 1595750 | Rain8UPB IN | 1F
    X1F
    X
    12/20/2015 11:46:54 | 1595750 | Rain8UPB IN | 1F
    X1F

    12/20/2015 11:46:54 | 1595812 | Rain8UPB IN | X1F
    X-F

    12/20/2015 11:46:54 | 1595812 | Rain8UPB IN | X-F
    X1F
    X1F
    X1F

    12/20/2015 11:46:54 | 1595828 | Rain8UPB IN | X1F
    X1F
    12/20/2015 11:46:54 | 1595828 | Rain8UPB IN |
    X-F
    X1F
    12/20/2015 11:46:54 | 1595859 | Rain8UPB IN |
    X1F
    X-F
    12/20/2015 11:46:54 | 1595906 | Rain8UPB IN |
    X1F
    X1
    12/20/2015 11:46:54 | 1595906 | Rain8UPB IN | F
    X1F
    X1F
    X1F
    X1
    12/20/2015 11:46:54 | 1595921 | Rain8UPB IN | F
    X1F
    X

    If it matters, I am running HOmeseer Pro 3.0.0.208; MCS Sprinklers Pro 2.15.0.27 and the PIM is a USB PIM on COM10

    THanks for your help as these errors are overwhelming my log.

    #2
    I think the PIM is configured to be in pulse rather than message mode. Pulse mode is used by Upstart, but applications such as mcsSprinklers use message mode. The serial PIM comes from the factory in message mode. Never have looked at USB PIM, but should have the capability to set it back to message mode by setting it back to factory defaults. Documentation with the PIM should describe how to do this.

    Comment


      #3
      Thanks Michael---sounds right as the only thing I have ever used this PIM for is UPstart. I'll figure out how to get it back in message mode and let you know if I have any problems.

      Comment


        #4
        Originally posted by pete@malibubeach.com View Post
        Thanks Michael---sounds right as the only thing I have ever used this PIM for is UPstart. I'll figure out how to get it back in message mode and let you know if I have any problems.
        FYI, the UPBSpud plugin sets the PIM in message mode everytime it starts, I'm not sure if it is persistent or not, but you could try it.

        Comment


          #5
          @Pete,

          Curious what is the second UPB Pim that you are using?

          I am guessing too that you know that the PCS and the SA USB PIM are totally different.

          The PCS PIM is a true USB to serial thing while the SA USB PIM is using a unique SA only set of USB drivers.

          I have one of the SA USB PIMs here today (aside from multiple serial PIMs).
          - Pete

          Auto mator
          Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
          Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
          HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

          HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
          HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

          X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

          Comment


            #6
            I have the UPB plug-in talking to an HAI USB PIM (and that has worked fine for a long time). The MCSSprinklers is talking to the PCS PIM-U. Both are just using a standard USB to serial driver. I reset the PCS PIM to factory default settings, following their instructions. I also tried switching the PIMs. In both cases, the UPB plug-in seems to work okay; MCSSprinklers is much better now but not perfect. I still get the same error message; but before I reset the PIM the error occurred several times per second. Now it is occurring only once every minute or two---this is tolerable.

            Comment


              #7
              Still have problem

              It looked good---it just turned on one of the Rain8UPB zones on schedule. The sprinkler went on, but there is a message in the log

              Dec-21 9:20:55 AM mcsSprinklers Zone R19 has been declared failed after multiple attempts due to timeout in expected response

              So I guess MCSSprinklers does not know the valve is on, and then there is no attempt to turn off the sprinkler 5 minutes later. It went off by itself based on the default timeout programmed into the Rain8. Could be repeated collisions since the UPB plug-in is still doing its initialization (which sends a lot of messages).

              This is not great, but tolerable if MCSSprinklers will try it again in two days on its next scheduled run time

              Comment


                #8
                Can you provide the IO log so the communication stream can be observed? The failure report means that a status response was not received from Rain8UPB. Are you setup in mcsSprinklers to poll status or to request status after command?

                During initialization mcsSprinklers does send hex bytes 70 and 03 to try to set the mode. Again don't know of difference between serial and USB PIMs.

                Comment


                  #9
                  Michael,
                  Here is an Excel file with your log on one tab and the HS log for the corresponding period on another tab. All of the errors seem to occur during a period of UPB activity (no real surprise, I guess). I had the UPB plugin log running at debug level for the duration of this.
                  Attached Files

                  Comment


                    #10
                    I decoded the first set of what looked like Rain8UPB commands. ON command sent, the two PIMs respond as expected (PA & PN). STATUS REQUEST sent, but no response from Rain8UPB. mcsSprinklers retries the STATUS REQUEST four times and then will declare a failure. Other UPB traffic existed, but not traffic from Rain8UPB.

                    Since you reported the valve was actually controlled the problem appears to be on the Rain8UPB through PIM on ability of Rain8UPB to report its state. I don't have any specific suggestions. I believe the test utilities provided by WGL provide ability to command, but they do not have ability to evaluate the state response. I do have both a Rain8UPB and Rain8UPB PRO hardware for testing and both do function with status response using serial PIM from SA and HAI.

                    @9:20:03 08001B5BFF2264FD ON command sent
                    NID = 1B
                    DID = 5B
                    SID = FF
                    MDID = 22 (goto)
                    ARG = 64 (level 100%)

                    @9:20:03 PA ack from PC PIM
                    @9:20:03 PN ack from Rain8UPB PIM

                    @9:20:13 07001B5BFF3054 STATUS REQUEST command sent
                    MDID = 30 (report state)

                    @9:20:23 PU07141B0DFF308E ... not Rain8UPB data

                    @9:20:23 07001B5BFF3054 STATUS REQUEST command retry sent

                    @9:20:45 PU08001BFF0D86004B
                    SID = 0D (not Rain8UPB)
                    MDID = 86 (state report)
                    ARG = 00 (likely off for something)

                    [Revision]
                    I took a look at the HS log on the other tab and found the following which is the Rain8UPB response that was expected. The question now is why did the PIM connected to HS see the Rain8UPB status and the PIM connected to mcsSprinklers not see it. It seems the issue is isolated to this PIM.
                    DEBUG PIM_RCVR:: Received UPB command [PU08001BFF5B866499]

                    Comment


                      #11
                      Thanks Michael,
                      It seems to be more or less working. Still getting the occasional error messages that you can see in the Homeseer log (for no reason that is obvious to me). But they are relatively infrequent. I think it is all tolerable at this point. The two PIM'[s are plugged in adjacent to each other, so it is a little surprising that one saw the response and the other did not.

                      Comment

                      Working...
                      X