Are standard library delayed switches (Ton, Toff, Tonoff) non-blocking? 1wire reliability
-
I have a need to have some delayed relays in my project. Can I rely on the delay not interfering with cyclic execution of the rest of the program?
Also, I would like to know what the best way of resetting the 1wire bus is in case some device pulls it down. Currently I've got the Vcc line wired through a normally closed relay contact with the option of interrupting it in case a commerror shows up for some time. Currently my idea is to have a delay after the comerror gets raised, then trigger the relay to cut power to the ow bus, then turn off and turn on the ow bus, then reconnect the Vcc line. Is this a good way of avoiding 1wire related issues?
-
Hello @clueless ,
yes the delay switches are non-blocking for the rest of your program.
If you have Neuron or Axon that is already prepared in the HW and available in Mervis as a OW_off variable. If you set it to true, the whole bus is shut down.
If you have UniPi 1 then this is a good start but note that 1wire devices are powered by the data so this reset must not be enough.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login