Announcement

Collapse
No announcement yet.

DS2408 relay with V6.1.6 not working correctly

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

    DS2408 relay with V6.1.6 not working correctly

    Hello Michael,

    I installed homeseer v2.4.0.1 and updated to v.2.4.0.6 with mcstemp 6.0.9 updated to v6.1.6 =>ok
    Now I have a problem with the ds2408 relay outputs (8x).
    The outputs y0,y1 are not working at all.
    The outputs y2..y7 (with REV Pol = 0)are ok.
    The outputs y2..y7 (with REV Pol =1)are not inverted and inline with the icon. homeseer-log give the correct info.
    Can you check this with the version 5.17 that worked good.
    Also no DB filed values are filled in for the outputs!
    I started homeseer several times to check this =>same result.

    Regards piever

    #2
    I previously did a source code compare so next step is to use the general debug checkbox and collect some data as you try to control an output that is not working as expected. Include a description of what you are trying to do with the debug output so I will be able to correlate.

    Comment


      #3
      Hello Michael,

      Here are the actions:
      (I use the ds2408 open collector connected to leds)
      (connected only 1x ds18B20 and 1x ds2408)
      (set all 8 outputs to off in onewireviewer, leds are off)

      1. start homeseer,(REV POL=0),all status icons are ON from the ds2408
      2. try to set outputs to OFF =>y2..y7 go to OFF (6x leds are ON now)
      (y0,y1 are not changing (stay 2x ON)
      3. try to set outputs to ON =>y2..y7 go to ON (6x leds are OFF now)
      (y0,y1 are not changing (stay 2x ON)

      10. set all 8 outputs to REV POL=1
      11. all status icons are now OFF!
      12. try to set outputs to ON =>y0..y7 stay OFF (8x leds stay OFF)
      13. try to set outputs to OFF =>y2..y7 go to ON (6x leds go to ON)
      (y0,y1 are not changing (stay 2x OFF)

      As in version 5.17 button ON sets the output ON (or off when rev pol is set) and button OFF sets the output to OFF.

      See the logfile form more info
      Still no DB fields entries in the sensor info tab

      Have a nice day/night for 2009/2010 and a happy 2010.

      Regards piever
      Last edited by piever; January 4, 2010, 11:18 AM.

      Comment


        #4
        V6.1.7 has a correction for setting the relays. I believe this will take care of the proper setting of the relay, but I did not investigate the specifics of why REVPOL was giving different results.

        I do not know what you are trying to tell me about the DB fields. Are you indicating that the text box does not appear on the sensor page or that the data is not being recorded? If you continue to have a problem then post your mcsTemperature.ini so I will have a DS2408 setup to work with.

        Comment


          #5
          Hello Michael,

          I tested the V6.17 and the outputs of the ds2408 are not working at all.
          Hereby the files.

          I only use a ds18B20 and the ds2408.

          I also try to install and setup xapmcs1wire on a other computer with the trail version. I cannot get it to work. Do I first have to install mcstemp?
          Is there a small install doc?

          Regards Piever
          Last edited by piever; January 4, 2010, 11:18 AM.

          Comment


            #6
            V6.1.8 takes care of the error messages in the log about creating the discrete tables. It also changes the logic to set the DS2408 relay. There are two appraoches that have been taken with various versions. One is to set only the channel of the DS2408 that is being controlled and the other is to set all channels to match the HS state of all channels when the DS2408 is written. V6.1.8 implements the first of these two.

            The .NET version of xapmcs1wire is the easiest to work with as it does not require older MSJVM and 1-wire drivers. It is installed by downloading the current version of the maxim-ic (dallas semiconductor) and installing the posted zip file into a new folder. The integration with Homeseer is described in a xAP setup thread at http://board.homeseer.com/showthread.php?t=113939. A more general xAp setup of Homeseer is contained in the xapmcsWebControl manual that can be downloaded at http://<br /> http://board.homeseer...d.php?t=138892

            Comment


              #7
              Hello Michael,

              I tested the version 6.18 and the outputs of the ds2408 does not change.
              The leds stay off and I never see them go on.
              When I shutdown homeseer and I started OneWireViewer then I can set the outputs to on or off without changing the hardware.
              I see 2 messages in the homeseer.log line 211 and 110 in the GetDS2408!

              See also the files.

              Regards Piever.
              Attached Files

              Comment


                #8
                The debug log shows no attempts to control any of the mcsTemperature outputs from Homeseer. In prior logs I was able to see the SETIO command from HS to start the command to mcsTemperature. The debug log also was for a time period different than the HS log.

                In the HS log it showed where it failed to store update in the database. It looks as if the table was not defined with the Discrete column. This was fixed in this version and I was able to use you new .ini file and it created all the table fields properly for me. If you attempted to create the same table names with a prior version then they may be incomplete. If you have Access you can delete them so they can be recreated with a Save from the Sensor page or you can select new names for these and create them again.

                I did not see the problem with the 110 and 211 lines in the HS log. I added a little more debug log around them and reuploaded to the same version so if it happens again there may be more info shown about the issue.

                For the debug I would like R3 and R10 to be turned ON and OFF. That will be sufficient to trace the logic.

                Comment


                  #9
                  Hello Michael,

                  Still no actions on the outputs of the ds2408.
                  I removed all entries and let mcstemp recreated these again
                  =>same result.
                  Hereby the files.

                  regards Piever.
                  Attached Files

                  Comment


                    #10
                    Your latest debug indicates that there were no sensors responding in a polling interval. The Prior debug showed a normal polling cycle

                    Code:
                    1/3/2010 7:47:44 PM 71264.63 | mcsTemperature Debug | Poll DS9097 Start, bStillPolling=False
                    1/3/2010 7:47:44 PM 71264.69 | mcsTemperature Debug | DS9x9x Port USB1 Device = DS18B20 D8000001402FC728
                    1/3/2010 7:47:45 PM 71265.58 | mcsTemperature Debug | Calibrate 20.5 with bias 0
                    1/3/2010 7:47:45 PM 71265.63 | mcsTemperature Debug | DS9x9x Port USB1 Device = DS1990A 440000002C2B2681
                    1/3/2010 7:47:45 PM 71265.67 | mcsTemperature Debug | DS9x9x Port USB1 Device = DS2408 1C00000005EFDA29
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y, Bit=0, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y1, Bit=1, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y2, Bit=2, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y3, Bit=3, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y4, Bit=4, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y5, Bit=5, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y6, Bit=6, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 Sensor=1C00000005EFDA29Y7, Bit=7, Value=1
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | GetDS2408 1C00000005EFDA29=FF
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | ReadDS2408 Channel=0, FullValue=255, DC=R3, SensorIndex=2
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=2, LastValue=False, NewValue=False, HSDC R3=3
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | ReadDS2408 Channel=1, FullValue=255, DC=R4, SensorIndex=3
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=3, LastValue=False, NewValue=False, HSDC R4=3
                    1/3/2010 7:47:45 PM 71265.75 | mcsTemperature Debug | ReadDS2408 Channel=2, FullValue=255, DC=R5, SensorIndex=4
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=4, LastValue=False, NewValue=False, HSDC R5=3
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | ReadDS2408 Channel=3, FullValue=255, DC=R6, SensorIndex=5
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=5, LastValue=False, NewValue=False, HSDC R6=3
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | ReadDS2408 Channel=4, FullValue=255, DC=R7, SensorIndex=6
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=6, LastValue=False, NewValue=False, HSDC R7=3
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | ReadDS2408 Channel=5, FullValue=255, DC=R8, SensorIndex=7
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=7, LastValue=False, NewValue=False, HSDC R8=3
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | ReadDS2408 Channel=6, FullValue=255, DC=R9, SensorIndex=8
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=8, LastValue=False, NewValue=False, HSDC R9=3
                    1/3/2010 7:47:45 PM 71265.77 | mcsTemperature Debug | ReadDS2408 Channel=7, FullValue=255, DC=R10, SensorIndex=9
                    1/3/2010 7:47:45 PM 71265.78 | mcsTemperature Debug | UpdateDiscreteStatus SensorIndex=9, LastValue=False, NewValue=False, HSDC R10=3
                    1/3/2010 7:47:45 PM 71265.78 | mcsTemperature Debug | Poll DS9097 Complete
                    The latest one
                    Code:
                    1/4/2010 10:48:04 AM 38884.05 | mcsTemperature Debug | Poll DS9097 Start, bStillPolling=False
                    1/4/2010 10:48:04 AM 38884.06 | mcsTemperature Debug | SetAdapterPort=USB1
                    1/4/2010 10:48:04 AM 38884.06 | mcsTemperature Debug | Poll DS9097 Complete
                    If no devices are present then no attempt will be made to control them. The software does check for use of the adapter and if not availalbe it will skip the polling. Could it be that the 1-wire viewer had claimed the 9490U for its use?

                    Comment


                      #11
                      Hello Michael,

                      I installed homeseer again as trial on another windows xp,mcstemp =>ok
                      Updated both =>ok
                      Only ds18B20 and ds2408 connected.
                      Read of ds18b20 =>ok
                      Still no output change from the ds2408!
                      (Poll complete now)
                      If I tested the ds2408 the OnewireViewer,its works ok
                      See files.

                      regards Piever
                      Attached Files

                      Comment


                        #12
                        I see 2 issues. One is that an error branch is taken, but no error description provided. This description only went to the IO window. More importantly I believe I found the reason the error branch was taken. I posted update V6.1.10.

                        Comment


                          #13
                          Hello Michael,

                          I tested the version 6110.
                          The outputs of the ds2408 are working now. Thats nice.
                          There are still 2 things:
                          1. continiuous reading of the devices =>see homeseer.txt
                          2. REV POL of the relays of the ds2408 does not work.

                          Regards piever
                          Attached Files

                          Comment


                            #14
                            Hopefully we are done with V6.1.11.

                            Comment


                              #15
                              Hello Michael,

                              I tested the version v6111 and its works. Also the REV POL for the relays.
                              Great. I will do some more testing the next days.

                              The next step in to get xapmcs1wire with homeseer to work becaurse,

                              1. I loosing devices from the 1-wire-bus.
                              (cat-5, star topology,longer cable's)
                              2. support of the 6 channel hub from hobby-board
                              (cat-5, goto linair(daisy-chain)topology)
                              3. support of the PD function of the thermostat

                              I have already ver. 3.0.0.12 installed and this works after installing MSVM-software.
                              I still have to find out how this plugin into homeseer.

                              Thanks for your good support.
                              Also good for other users that using the ds2408

                              Regards Piever Netherland
                              Attached Files

                              Comment

                              Working...
                              X