I have just hit the error again, even with writing 0 to /control at startup, so that does not fix it. Any other ideas for this?
On 11/04/13 23:56, Mick Sulley wrote: > I have a 6 channel Hobbyboards hub (based upon 3 - DS2409 chips). All > my devices are connected to channels, nothing on the main line other > than the hub itself. > > The python code that I am developing occasionally fails when it starts. > I have been starting and stopping the code frequently. When the code > started it normally sees the hub and the 3 DS2409's, plus the usual > /settings /statistics, etc, but sometimes, maybe one in six starts, it > also sees the devices on one of the channels as being on the main line. > My code then fails as those devices cannot be read from that position as > they are not really there. I cannot see these phantom devices in any > directory listing but the code logs what it reads and I see them in the > logs, so I suspect it is a fleeting problem. > > My theory is that when I stop the code, either crash or ctrl C at > keyboard, the hub could be in any condition, and if it just happens to > be actively connected to one of the channels then maybe the devices on > that channel still show when I restart, but I see them on the main > branch. Does that make any sense? Is it a feasible possibility? > > To try to fix or get around this I first tried writing 1 to the > /discharge register on each DS2409, that didn't seem to make any > difference so I then tried writing 0 to the /control register on each > DS2409. It hasn't failed since I did that, but as it is not a > consistent problem anyway I cannot be sure that this has fixed it. > > Anyone confirm this or have any other comments? > > Thanks > Mick > > ------------------------------------------------------------------------------ > Precog is a next-generation analytics platform capable of advanced > analytics on semi-structured data. The platform includes APIs for building > apps and a phenomenal toolset for data science. Developers can use > our toolset for easy data analysis& visualization. Get a free account! > http://www2.precog.com/precogplatform/slashdotnewsletter > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers ------------------------------------------------------------------------------ Precog is a next-generation analytics platform capable of advanced analytics on semi-structured data. The platform includes APIs for building apps and a phenomenal toolset for data science. Developers can use our toolset for easy data analysis & visualization. Get a free account! http://www2.precog.com/precogplatform/slashdotnewsletter _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
