Announcement

Collapse
No announcement yet.

MCS One Wire - cant add new devices....

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

  • MCS One Wire - cant add new devices....

    Guys... I need help....

    I have had xapMCS1Wire running for ages, along with MCSTemp and Stuart Booth's xAP Hub.

    Its all been great, with 20 odd 1 wire devices.

    Now, I need to add another 5 1-wire devices, and for the life of me, I cannot get them visible in mcsXAP (v1.3.0.124) setup....

    If I look at the 1-wire data monitor window (provided by the xapmcs1wire.exe), the new devices are there, so its not a 1-wire error....

    I am using v2054 of xapmcs1wire....

    What am I doing wrong... or, given the other 1 wire were configured ages ago, what steps have I omitted!?!?!?

    If anyone has any ideas, they would be very much appreciated!

    DJ
    ---------------------------------------------------http://weather.penicuik.org

  • #2
    Hi folks....

    Well, after much playing, I am no further forward...

    Can someone confirm my thinking re how this all works pls....

    xapmcs1wire -> xaphub -> mcsXAP -> mcsTemperature

    1 wire data monitor window still shows the devices - I have now setup a small test with just a thermometer plus a dual counter only, having removed the rest of the thermometers.... to try and make things simpler to see whats going on!

    So, from the xapmcs1wire I/O window...

    10 19:55:28 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |
    10 19:55:43 | Port=COM4::-1 Address=2F0000000252141F Family=DS2409 |
    10 19:55:43 | Port=COM4::-1 Address=9D000000024A531F Family=DS2409 |
    10 19:55:43 | Port=COM4::-1 Address=D4000003BD178109 Family=DS1982 Present |
    10 19:55:44 | Port=COM4::-1 Address=E8000000C8648128 Family=DS18B20 Temperature=25.5 |
    10 19:55:44 | Port=COM4::-1 Address=FA00000002383E1F Family=DS2409 |
    10 19:55:54 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |
    10 19:56:09 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |
    10 19:56:25 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |
    10 19:56:40 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |
    10 19:56:54 | Port=COM4::-1 Address=2F0000000252141F Family=DS2409 |
    10 19:56:54 | Port=COM4::-1 Address=9D000000024A531F Family=DS2409 |
    10 19:56:54 | Port=COM4::-1 Address=D4000003BD178109 Family=DS1982 Present |
    10 19:56:55 | Port=COM4::-1 Address=E8000000C8648128 Family=DS18B20 Temperature=25.5 |
    10 19:56:55 | Port=COM4::-1 Address=FA00000002383E1F Family=DS2409 |
    10 19:57:07 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |
    10 19:57:22 | Port=COM4::-1 Address=230000000771C31D Family=DS2423 Counter=1232/0 |



    So, when I check the xaphub......

    xap-header
    {
    v=12
    hop=1
    uid=FF000508
    class=xAPBSC.event
    source=mcs.OneWire.SPEEDY:xapmcs1Wire_.D4000003BD178109.Swit ch
    }
    input.state.1
    {
    state=ON
    displaytext=<table><td><img alt='Discrete' src='/images/sensors/On.gif' height='16' width='16'><img alt=' ' src='/images/sensors/blank3.gif'></td><td valign='middle' align='left'>ON</td></table>
    }



    xap-header
    {
    v=12
    hop=1
    uid=FF0005C9
    class=xAPBSC.event
    source=mcs.OneWire.SPEEDY:xapmcs1Wire_.E8000000C8648128.Swit ch
    }
    input.state.1
    {
    state=ON
    displaytext=<table><td><img alt='Discrete' src='/images/sensors/On.gif' height='16' width='16'><img alt=' ' src='/images/sensors/blank3.gif'></td><td valign='middle' align='left'>ON</td></table>
    }


    Can anyone explain why the DS18B20 is correctly identified by xapmcs1wire, yet it is listed as a switch by the hub?

    Any ideas why the counter is not shown in the hub window at all?

    I have attached my mcsxap1wire.ini below... in the hope someone has a few minutes!!

    Thank guys...

    Dj



    Attached Files
    ---------------------------------------------------http://weather.penicuik.org

    Comment


    • #3
      The process you have is essentially correct. There are two gateways that you need to enable. The first is to tell xapmcs1Wire to "A"ccept the new 1-wire device with the checkbox entry. Once accepted it will appear at the xaphub and at mcsXap. When mcsXap sees it it will be available in its list to where it can be "A"ccepted. When accepted it will populate an HS device. This device can then be selected within mcsTemperature.

      I'm in FL at EXH so viewing the ini file is not too easy. If the above does not explain it and you still have no success then post again.

      Comment


      • #4
        Hi - I'm Back....(sorry!)

        The xapmcs1wire "accept" stage is what I was missing - thank you!

        Problem.... when I select "browser" from the menu, it starts an IE window titles "1 wire status V2....." and then hangs around for ages.... for ever .. (left it running all last night), until you hit stop. When you do, it draws up a basic page, minus the icons etc, and shows the new devices. Also, if I exit xapmcs1wire, the page immediately populates... with the same missing icons etc.

        What could be making this status page fail/or be so slow to load?

        I am running HS 2.2 and have tried xapmcs1wire version 2.0.48 and the current 2.0.54 - they both react the same.

        I also tried removing the ini file, and starting it... same reaction....

        When I try "system Status" and "system config" they apprear to do nothing....

        If I hit setup from the menu, it loads instantly, as does IO window.

        How can I diagnose further?

        Any help is really appreciated.

        DJ
        Last edited by Bestgear; March 11th, 2007, 03:31 PM.
        ---------------------------------------------------http://weather.penicuik.org

        Comment


        • #5
          I suspect you are generating an error at some point which prevents the browser request to be serviced and the connection to the browser is not disconnected until you terminate xapmcs1wire. This is the first time something like this has been reported.

          The error messages should appear as xAP messages using the Homeseer.Event/Event.Log schema. You can look for this message using the xAP viewer, or much more easily with the xapmcsWritelog application that presents them much like the Homeseer log. It has been posted a few times on the board and you can find it at http://mcssprinklers.com/xapXap.htm as well.

          The System Status and System Config menu items are not implemented. They are part of the scheme to provide a UI that consolidates the distributed nodes into a central UI much like Homeseer consolidates their plugins into a single UI

          Comment


          • #6
            Thanks for the reply Michael.

            I left the page to load for ages, and it took about 14 hours to load!

            It has however, let me add the devices, so I will try and find out using your guide why its taking so long.

            One (last) question - I had to delete two of the counter devices in HS which had descriptions such as "use at xxx watt/hr". When the devices were automatically re-created, they appeared, but without any of the original narrative in the status column - only the numeric value.

            I am not sure which app uses mcsxapdevices.ini, but in there, the devices have the correct "waterflow=" statements all correctly entered.

            Thanks, yet again, for your help.

            DJ
            ---------------------------------------------------http://weather.penicuik.org

            Comment


            • #7
              That ini file is used by mcsXap to save the info about the xAP messages. The contents of the HS DeviceString comes from the DisplayText key of the incoming xAP message. If this key is not present then Homeseer will take the contents of DeviceValue and show it in its web page for device status.

              mcsXap recreated the device because it still existed in the mcsXap setup selection. The application that sources it (e.g. xapmcs1Wire) has not yet delivered a new value with the DisplayText field populated.

              Comment


              • #8
                Hi Michael - thanks for taking the time to reply.

                Is there anything I can do to make xapmcs1Wire deliver the new value to update the DisplayText field, or will it automatically update given time (doubt it!)?

                Thanks yet again

                Dj
                ---------------------------------------------------http://weather.penicuik.org

                Comment


                • #9
                  In some of my applications I put a button to query, but did not do it on this one. You get current status of all "A"ccepted devices from xapmcs1Wire by issuing an xAPBSC query message. You can do this by setting up an Event in Homeseer and define the parameters on the XapMessage tab. You can also paste the following in the xAP Viewer and send it from there. The message asks for all devices from the target address mcs.OneWire

                  Code:
                  xap-header
                  {
                      v=12
                      hop=1
                      uid=FF000300
                      class=xAPBSC.query
                      source=DontCare.DontCare.DontCare
                      target=mcs.OneWire.>:>
                  }
                  input.state.1
                  {
                      ID=*
                  }

                  Comment


                  • #10
                    Hi Michael... Im'm still struggling....

                    Could you help me decipher that code into something i can use within an HS event?

                    In the event, xap device text send I have the options...

                    class
                    target
                    section
                    then, keys and values....

                    How do I enter the message above into that format?

                    Thanks yet again!

                    DJ
                    ---------------------------------------------------http://weather.penicuik.org

                    Comment


                    • #11
                      class = xAPBSC.query
                      target = mcs.OneWire.>:>
                      section = input.state.1
                      Key= ID
                      Value = *

                      Only enter the part that is on right side of the equal sign on the HS event action form.

                      Comment


                      • #12
                        Excellent Michael.

                        Sorry to bother you with such a trivial thing...

                        DJ
                        ---------------------------------------------------http://weather.penicuik.org

                        Comment

                        Working...
                        X