Giter Site home page Giter Site logo

DS2431 support about onewirehub HOT 8 CLOSED

orgua avatar orgua commented on August 24, 2024
DS2431 support

from onewirehub.

Comments (8)

orgua avatar orgua commented on August 24, 2024

it would help if you could give some more information:

  • is the at328 running with 16 MHz?
  • which arduino-version do you use? the latest >1.6.10 is still untested by me but compiled code should be superior to prev. versions
  • do you have timing-issues when debug-output is disabled?
  • could you include a link to your current code? maybe i can find a clue. maybe do a pull request with a "do not merge"-mark.

from onewirehub.

j-langlois avatar j-langlois commented on August 24, 2024

thanks for the prompt response
I'm at 16Mhz on arduino 1.5 and yes the outputs are off. I might have isolated the issue yesterday. The problem seems to be related to the reset detection surrounding some arbitrary number of read operations the master can execute following the READ MEMORY 0xF0 command. By that, I mean that it could do 0xF0 on some address, read X bytes, reset the bus, 0xF0 on some other address, read Y bytes. My working trials did not include sequential arbitrary read operations separated by reset commands. I will be out for a few days but I will come back to you on this with some code.
Cheers

from onewirehub.

orgua avatar orgua commented on August 24, 2024

now i am wondering how you could compile this lib. it uses c++-features that are not supported by default in arduino <1.6.x. you have to enable them manually in a config-file. please try updating it.
by using 1.6.10 instead of 1.6.8 i got around 10% smaller codesize. this could mean that timing constrains are a bit more relaxed now.

the behaviour you have seen should be fixed in my last commits thou :-( ("hub is more robust to odd master-behaviour (lazy timings and subsequent resets)"). I've seen them too with the ds9490.

from onewirehub.

j-langlois avatar j-langlois commented on August 24, 2024

Thanks for the tip! Indeed I used 1.6.10 and got it to work flawlessly!

from onewirehub.

orgua avatar orgua commented on August 24, 2024

nice to hear! hope to see your pullrequest soon :-)
An included example would be much appreciated!
I would offer my help if you need help with the cleanup.
can i close this issue?

from onewirehub.

j-langlois avatar j-langlois commented on August 24, 2024

Sure you can close it! PR will be in in an hour or so
Cheers

from onewirehub.

orgua avatar orgua commented on August 24, 2024

i leave this open to remind me of testing it. you mentioned another OW-master. have you tested other sensors of this libs? what kind of system is it?

from onewirehub.

j-langlois avatar j-langlois commented on August 24, 2024

The master I was referring to is a PIC18. It is part of an industrial machine using the DS2431 as storage, so many R/W operations involved. Hence I do not have the opportunity to test more slaves with this master, unfortunately.

from onewirehub.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.