Announcement

Collapse
No announcement yet.

Problem with an AAG TAI8558

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

    Problem with an AAG TAI8558

    Michael,

    Several months ago I moved my HS setup to a new computer. Because of other pressing matters I wasn't able to take the time to set up mcsTemperature or my (small) 1-wire network. Now I'm back at it and I have a problem.

    It all works fine until I plug in my AAG TAI8558 1-Wire Multiple I/O board. You had graciously added the drivers for this board about a year ago.

    I get the error messages
    Code:
    12/10/2006 12:04:08 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
    12/10/2006 12:04:24 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
    12/10/2006 12:04:33 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
    12/10/2006 12:04:36 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
    12/10/2006 12:04:39 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
    12/10/2006 12:04:43 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception
    Turning on debug mode I get
    Code:
    12/10/2006 12:07:18 PM mcsTemperature Debug setIO `4 from 0 to 19 
    12/10/2006 12:07:18 PM mcsTemperature Debug DS9x9x Port USB2 Device = DS1990A A800000024111981 
    12/10/2006 12:07:18 PM mcsTemperature Debug DS9x9x Port USB2 Device = DS2408 3500000000A84229 
    12/10/2006 12:07:18 PM mcsTemperature SetupDS2408 on line 90 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
     
    12/10/2006 12:09:34 PM mcsTemperature Debug setIO `5 from 0 to 19 
    12/10/2006 12:09:34 PM mcsTemperature Debug DS9x9x Port USB2 Device = DS1990A A800000024111981 
    12/10/2006 12:09:34 PM mcsTemperature Debug DS9x9x Port USB2 Device = DS2408 3500000000A84229 
    12/10/2006 12:09:35 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception
    I am using the latest version (5.2.9) of mcsTemperature with a 5 second sample rate. I dont know which version I was using on my old computer when it was all working. This is through a ds9490R if that means anything.

    The OneWireViewer doesn't seem to have any problems. It's using a 1 second sample rate.

    Any ideas or pointers on where to look would be appreciated.

    Thanks,
    Ken

    #2
    I was expecting ON/OFF when the relay was actioned, but it looks as if HS is now sending 1/0. I do not know why the read error is showing up, but likely related to changes made to support the Hobby-boards LCD. I changed the approach and you can try it at V5.2.10.

    Comment


      #3
      Michael,
      Thanks for your quick work. You are an exceptional programmer.

      The results:
      - Deleted all existing mcsTemperature devices
      - Renamed mcsTemperature.ini and mcsTemperature.mdb
      - replaced hspi_mcsTemperature.exe
      - restarted HS
      - set up mcsTemperature to use DS9x9x
      - mcsTemperature found and then set up the 1-wire devices.

      It then started throwing the following errors
      Code:
      12/10/2006 8:15:24 PM mcsTemperature Creating database table for Sensor A800000024111981S in C:\Program Files\HomeSeer 2\mcsTemperature.mdb 
      12/10/2006 8:15:24 PM mcsTemperature SetupDS2408 on line 100 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
      12/10/2006 8:15:32 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
      12/10/2006 8:15:33 PM mcsTemperature GetDS2408 on line 230 com.dalsemi.onewire.adapter.OneWireIOException: Error during putByte(), echo was incorrect 
      12/10/2006 8:15:37 PM mcsTemperature SetupDS2408 Device 3500000000A84229 not present to Setup for Output Latches 
      12/10/2006 8:15:40 PM mcsTemperature SetupDS2408 Device 3500000000A84229 not present to Setup for Output Latches 
      12/10/2006 8:15:41 PM mcsTemperature SetupDS2408 on line 180 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
      12/10/2006 8:15:46 PM mcsTemperature SetupDS2408 Device 3500000000A84229 not present to Setup for Output Latches 
      12/10/2006 8:15:49 PM mcsTemperature SetupDS2408 Device 3500000000A84229 not present to Read Register 
      12/10/2006 8:15:51 PM mcsTemperature SetupDS2408 expecting 84 and not received 
      12/10/2006 8:15:51 PM mcsTemperature SetupDS2408 on line 250 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
      12/10/2006 8:15:54 PM mcsTemperature SetupDS2408 on line 100 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
      12/10/2006 8:15:54 PM mcsTemperature GetDS2408 on line 240 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
      12/10/2006 8:16:04 PM Info Checking email, found 0 new messages 
      12/10/2006 8:16:04 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception
      - Shut down and restarted HS.
      - The errors stopped.
      - All of the 1-wire devices were on the status page but all were type virtual.
      - Went to the mcsTemperature Sensors page. They were all typed correctly there.
      - I did a save on the Sensors page, went back to the status page and all of the types were right.
      - mcsTemperature is reading the sensors and is updating the table.

      The only problem I see now is that the devices of type relay don't have an on/off button so I can't control them. They had on/off buttons in the last version.

      [edited] Nevermind - I renamed the sensors - saved them and the on/off buttons magically appeared.

      I went through the above steps twice and the entire sequence is reproducible.

      Thanks again,
      Ken
      Last edited by kclark; December 10, 2006, 09:57 PM.

      Comment


        #4
        As I understand it is now working for you, however you had to do a few saves to get everything in order?

        Comment


          #5
          Everything looked like it was working, but it falls appart when I try to control the aag. I get these:

          Code:
          12/10/2006 10:22:52 PM Info Device: HVAC Relay1 (`5) ON 
          12/10/2006 10:22:52 PM mcsTemperature SetupDS2408 on line 100 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
          12/10/2006 10:22:52 PM mcsTemperature send_8-bits write error expecting 170 and received 255 
          12/10/2006 10:23:04 PM Info Device: HVAC Relay1 (`5) OFF 
          12/10/2006 10:23:04 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
          12/10/2006 10:23:04 PM mcsTemperature Set_CMC on line 30 com.dalsemi.onewire.adapter.OneWireIOException: Error during putByte(), echo was incorrect 
          12/10/2006 10:23:04 PM mcsTemperature send_8-bits write error expecting 170 and received 134 
          12/10/2006 10:23:13 PM Info Device: HVAC Relay2 (`6) ON 
          12/10/2006 10:23:13 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
          12/10/2006 10:23:13 PM mcsTemperature send_8-bits write error expecting 170 and received 255 
          12/10/2006 10:23:15 PM Info Device: HVAC Relay2 (`6) OFF 
          12/10/2006 10:23:15 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
          12/10/2006 10:23:15 PM mcsTemperature Set_CMC on line 30 com.dalsemi.onewire.adapter.OneWireIOException: Error during putByte(), echo was incorrect 
          12/10/2006 10:23:15 PM mcsTemperature send_8-bits write error expecting 170 and received 134
          Also as I refresh the status page, the status of the switches is bouncing around and isn't being accurately reported. The other sensors on the 1-wire seem to be fine. It's just the aag.

          Thanks for all your help. Time for a toddy and a bit of sleep.

          Ken

          Comment


            #6
            Post your ini file. It looks as if the DS2408 is setup to be an AAG LCD and 3 discretes rather than 8 discretes

            Comment


              #7
              Here 'tis.
              Attached Files

              Comment


                #8
                There may be a few trys at this. See what the attached does.
                Last edited by Michael McSharry; December 12, 2006, 02:00 PM.

                Comment


                  #9
                  Okay, here's what I did and what happened.

                  Closed HS.
                  Replaced mcsTemperature.exe with new one.
                  Started HS.
                  Refreshing Status page and device status is bouncing around as before.
                  Turning relays on/off changed the reported state of the switches (not the relays).
                  Deleted all mcsTemperature devices from HS.
                  Shut down HS.
                  Deleted mcsTemperature.ini and mcsTemperature.mdb.
                  Started homeseer.
                  Changed some display related setup and enabled the DS9x9x.
                  It detected the sensors, created the devices and database fields.
                  Then started throwing errors:
                  Code:
                  12/11/2006 6:49:58 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
                  12/11/2006 6:50:00 PM mcsTemperature SetupDS2408 on line 100 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
                  12/11/2006 6:50:01 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
                  12/11/2006 6:50:01 PM mcsTemperature GetDS2408 on line 280 com.dalsemi.onewire.adapter.OneWireIOException: Error during putByte(), echo was incorrect 
                  12/11/2006 6:50:05 PM mcsTemperature SetupDS2408 on line 200 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
                  12/11/2006 6:50:06 PM mcsTemperature SetupDS2408 on line 190 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
                  12/11/2006 6:50:06 PM mcsTemperature GetDS2408 on line 280 com.dalsemi.onewire.adapter.OneWireIOException: Error during putByte(), echo was incorrect
                  On HS device status page all device types showed as virtual.
                  Went to mcsTemperature sensors page.
                  All sensors were typed correctly.
                  Pressed Save Setup Changes
                  Went back to hs Status page - all sensors were typed correctly.
                  mcsTemperature stopped throwing errors.


                  No on/off buttons for the Relays
                  Shut down HS and restarted
                  Got these messages during startup
                  Code:
                  12/11/2006 6:57:17 PM mcsTemperature SetupDS2408 on line 110 com.dalsemi.onewire.OneWireException: 1-Wire Adapter communication exception 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229S discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229S1 discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229S2 discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229S3 discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229Y4 discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229Y5 discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Discrete Data sample tbl3500000000A84229Y6 discarded because database schema is being adjusted 
                  12/11/2006 6:57:17 PM mcsTemperature Last temperature sample recorded at 12/11/2006 6:55:59 PM
                  Went to HS status page. Still no buttons for relays.
                  Renamed sensors.
                  No Buttons - unlike last build
                  Shut down and restarted HS.
                  No Buttons
                  All AAG Switches and Relays show off - not the correct status.
                  Non AAG sensors seem to be working properly

                  Thanks again,
                  Ken

                  Comment


                    #10
                    There should be no need to delete devices. If this does not work then enable debug and control a relay.
                    Attached Files

                    Comment


                      #11
                      Originally posted by Michael McSharry
                      There should be no need to delete devices. If this does not work then enable debug and control a relay.
                      I shut down, replaced the .exe and restarted.
                      No errors, but everything was the same as before (no on/off buttons for the relays).
                      Shut down, deleted the .mdb and .ini and restarted.
                      Set mcsTemperature to use the DS9x9x. Polled for the DS9x9x.
                      All devices repopulated as type virtual.
                      Went to sensor page and did a save.
                      All devices got correct type.
                      Still no on/off buttons for relays.

                      So I guess the immediate problem is getting the buttons to appear so I can control a relay.

                      One other little thing. I can't get the default client screen size to stick from the web page control. It sticks from the GUI, but doesn't have any affect on the display.

                      If there is anything else I should do to test, please let me know.

                      Thanks,
                      Ken

                      Comment


                        #12
                        Michael,

                        Just a quick FYI.

                        In case you do any more on this in the next couple of days, I'm heading to Vegas with the spousal unit for some fast R&R. Time to refill the HA budget account. Be back Monday.

                        If you don't make any progress, maybe then I should send you the AAG unit so you don't have to try to debug through me.

                        Either way - TTFN.

                        And thanks again for all your work on this excelent plugin!
                        Ken

                        Comment


                          #13
                          Back from Vegas with a clearer head and empty pockets.

                          I found my main problem. During my earlier setup attempts I had not pressed the "Create plugin house codes and devices". I thought that was optional and I wanted to pick the house code instead of letting HomeSeer assign it. Sorry for not catching this sooner.

                          No more errors in the log, however I am still tracking down a few problems.

                          My main problem - The AAG has four relays and four switches. When I change a relay, the displayed status of one of the switches changes and the relay status changes not.

                          The following are some other OT things I have noticed. None are show stoppers but I thought you might like to know about 'em.

                          On the Web interface Forecast page, the WeatherPLUG boxes are always checked. Unchecking doesn't stick. I looked in the .ini and it's set correctly there. It's just not reflected on the page. GUI is OK.

                          Setting the default Client Screen Size from the web page doesn't stick. It always reverts to 600 even though the Client0="Default,X" .ini setting changes appropriately. The GUI reflects the change but it has no effect. The client windows are always displayed at the dimensions set in the first line of the Screen and Chart Dimensions table.

                          Changes made to the ACCID field on the Forecast web page don't update the .ini file. In fact if you do a Save Changes from the Forecast web page, the ACCID is blanked on the web page and in the .ini file. GUI works the way it should.

                          The GUI and web pages don't have the same choices for device type. For example I can only see "sunlight" from the web page. I can't find it in the GUI.

                          Pressing the Select button on the Weather page takes me to the trend page. I'm not sure what's supposed to happen here. I probably have to set something up that I missed.

                          Using IE 6.

                          Thanks again for your great support!

                          Ken

                          Comment


                            #14
                            Thank you for the feedback. I belive I have them all resolved in V5.2.16

                            Comment


                              #15
                              I am happy to report that, pending more testing, the AAG is working! I tried just replacing the .exe but it insisted on re-adding all the 1-wire devices at higher device codes. So I had to delete the .ini and .mdb and start fresh.

                              But ...

                              On the Forecast page, the WeatherPLUG boxes are still permachecked. Though the ACCID field is acting normal again.

                              Setting the Screen and Chart Dimensions from the web page, then going to the graph works. But if you then go back to the Display page and do a Save Changes, all the Screen Size settings (not just default) revert back to 600.

                              Still no "sunlight" type available in the GUI. It's still there on the web page. [edit] Actualy it went away on the web page too. It was between the "Baro Trend" and "Switch" type in the drop down, but now htere is a hole there.

                              Pressing the Select button on the Weather page still takes me to the trend page. What should it do?

                              Thanks again,
                              Ken
                              Last edited by kclark; December 22, 2006, 03:26 PM.

                              Comment

                              Working...
                              X