Announcement

Collapse
No announcement yet.

xapmcs1Wire - 1 Wire (DS9097U / DS9490D) xAP Node

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

    #76
    The error you have in the log is with the DS1822. Apparently it does not support multiple resolutions. I removed this capability from the code and reposted.

    The wind readings show that you are trying to run your system faster than it can keep up. What should be 15 second intervals is showing up as something like 75,0,1,20,0 etc. While the software is tolerant of this, you are not getting the performance that you are expecting. With the short sample of data I would guess you are running between 1.5x and 2x faster than can be sustained. I dont know if this is 1-wire bus speeds or cpu speeds that are limiting in your case. If there are several sensors then it is likely the 1-wire speed. The software is optimized for ease of user use rather than for speed of execution. There is overhead in a discovery process which exists to automatically recognize sensors when a new one is added.

    I also added calibration constant in the output debug lines as this was the only information that was not available in the debug related to wind speed.

    Comment


      #77
      AAG TAI-8570 Barometer Support Added

      The Barometer from AAG has been implemented in V1.9.0. The 1-wire interface is through a pair of DS2406 devices. The case of the AAG instrument will have the ID's of the devices printed in reverse string format. Look for the same device ID in the Browser setup and set all 4 entries for what defaults to a Switch to a Barometer AAG. The software will change the function types to generate six devices. Each DS2406 will be shown to have identical readings of Barometric Pressure, Baro Pressure Rate, and Temperature. It is likely that one of the two DS2406 will be ignored (X column) so duplicate data will not be generated as xAP messages.

      Calibration of both altitude and a fudge-factor offset are provided in the Barometric Pressure setup section. The weight factors for determine the sensitivity to changes to determine the baro rate are also in this same area.

      Temperature offset calibration is provided in a column next to the Temperature sensor.

      The interface implemented by AAG as a barometer is very inefficient and will have a noticable impact on the responsiveness of the PC that is running it. There will be a period of about 30 seconds each polling cycle dedicated to this device and the PC will be unresponsive during this time.

      Comment


        #78
        Ds1923, Ds1921, Ds2408

        Support for subject devices has been added. The DS1921 and DS1923 do not contain mission-related support, but will provide the current reading. No testing was done with the DS1923 so anyone with the device is welcome to give it a spin

        The DS2408 can be configured as a AAG Text or as a general purpose 8 bit I/O such as TAI8558 Multi-IO. It will default to a 3 discrete and 1 text device. If the text device is changed to a switch or relay then it will reconfigure to 4 switches and 4 relays. These 8 can then be reconfigured to any combination of 8 discretes supported by the interfaced hardware. To go from multi-io to text, then select one of the 8 discretes to be Text and it will reconfigure to 3 discretes and one text for the previous 8 discretes.

        Of special note is the UID sequencing has been changed to support the 8 channel device. If any messages are setup in your prior configuration that use the UID then they will likely need to be changed to use the new UID. In general it is better to use the address/subaddress to identify a device rather than the UID since the UID may be subject to change depending upon the number of deivces that are currently on the 1-wire net.

        Comment


          #79
          Ds1923 output

          Hi Michael,

          Here is the output for the DS1923

          17 22:05:23 | Port=COM1 Address=3C0000004EE2DD28 Family=DS18B20 Temperature=13,375 |
          17 22:05:23 | Port=COM1 Address=1000000002054D41 Family=DS1922 |
          So it seems to detect it as a DS1922, but does not display the temp.or Humidity (yet

          ps: didn't you receive a sample from rmc ?
          http://board.homeseer.com/showthread...ghlight=ds1923

          br,
          Christophe

          Comment


            #80
            No samples received.

            Look for xAP messages at the time the IO windows shows the DS1922. Of particular interest are the Homeseer.Event/Event.Log messages that would shed some light

            Comment


              #81
              Hi Michael,

              Here it is:
              xap-header
              {
              v=12
              hop=1
              uid=FF000510
              class=xAPBSC.info
              source=mcs.OneWire.THUNDERBIRD:xapmcs1Wire_.1000000002054D41 .Unknown
              }
              input.state.1
              {
              state=ON
              }
              xap-header
              {
              v=12
              hop=1
              uid=FF000510
              class=xAPBSC.event
              source=mcs.OneWire.THUNDERBIRD:xapmcs1Wire_.1000000002054D41 .Unknown
              }
              input.state.1
              {
              state=OFF
              displaytext=<table><td><img alt='Other' src='/images/sensors/blank3.gif' height='16' width='16'><img alt=' ' src='/images/sensors/blank3.gif'></td><td valign='middle' align='left'>0</td></table>
              text=0
              }
              Thanks again!

              Comment


                #82
                Made a change. Give V1.10.1 a try to recognize the DS1922.

                Comment


                  #83
                  Hi Michael,

                  Some changes indeed
                  ps: it's the ds1923 not the DS1922 I'm testing:
                  19 16:29:43 | Port=COM1 Address=1000000002054D41 Family=DS1922 Temperature=0 Humidity=0 Voltage= |

                  It seems the Xap Message Viewer (http://www.xapframework.net/modules....showpage&pid=9) has issues when detecting the DS1923. It will stop the discovery of devices when it hits it. Normally I have 4 devices on the 1-wire bus, and it only shows one, or after a restart, maybe 3 . but after the detection will not show the Xap messages ... Something strange here

                  Thx
                  migube

                  Comment


                    #84
                    It is more likely that xapmcs1wire stops sending rather than the viewer stopping discovery. There is an IO window that can be selected from the tray icon and it shows the communication through the 1-wire. Does it stop displaying information after the DS1923 is recognized?

                    The one output you show illustrates that the software recognized the DS1923 as having Humidity and Temperature capabilites. With values of 0, it appears that the method to access the device do not follow the pattern that works for the DS1921 temperature.

                    I took a look at the datasheet and did notice that there is a very finite lifetime for the devices which is a funciton of the sample rate. At 1 minute intervals the device will last about 1 year. I guess it is the nature of the iButton family where power is self-contained.

                    Comment


                      #85
                      Hi Michael,

                      Yes, the IO windows keeps rolling.

                      I didn't think of the battery life here. It's true that the devices includes a battery, so you can take them with you, let them record, and read the temp, afterwards. The less you record, the longer battery will last.

                      But here we are polling the device a lot, so it could indeed lower its battery
                      Unless ? Will those ibutton function with the 1-wire power once the battery's down ? (didn't read throug all the Datasheets yet...)
                      Already thanks for the trial !

                      br,
                      migube

                      Comment


                        #86
                        The xAP hubs also show traffic so it could just as easily be the hub or something else in your system that blocks IP traffic. If you live in the states and want to go without the DS1923 for awhile you can mail it to me I can see if I can make it work. Since I already tried with maxim for a sample without success I'm not going to try again that route.

                        Comment


                          #87
                          Hi Michael,
                          your plug-in for 1-Wire is very interesting but I would like to know if I can define priority to read i-Button.
                          Well, I have a lot of DS2405, and I want to change their states as quickly as possible but currently, the reading is cyclic, and as I have ten DS1920, the update of DS2405 is too long.
                          Is it possible to read the DS1920 only 10 minutes for example and to be more fast for DS2405 and DS1990 ?

                          Matthieu

                          Comment


                            #88
                            Hi Michael
                            I'm not located in the US, but one of those small european countries
                            I will think if there is an easy way to help you.
                            br,
                            migube

                            Comment


                              #89
                              I do the multirate sampling with mcsTemperature. I do not think it is much of a change to do it with xapmcs1wire. I'll look to see what is involved. No need to go out of your way for the DS1923. Someone a little closer may be able to loan one.

                              Comment


                                #90
                                I looked at the code and see that the switch polling rate is already implemented. The switch interval on the setup is in milliseconds. If I recall the fastest I was able to ever run it was around 300 milliseconds. This rate willl likely make the PC otherwise non-responsive.

                                I suspect it has not been used in a long time and much has been added, but it is worth a try to see if you get the results you want with the dual polling rates.

                                Comment

                                Working...
                                X