DS2406 reset problem
Posted: Fri Jan 23, 2015 8:22 pm
heya,
im using 1-wire trough i2c master.
also using owfs to control ds2406 via latch alarm (111)
problem is ds2406 default alarm is 331, and i keep getting reset there.
i managed to see, there is a line problem, when i use other stuff on this house the 1-wire line gets alot interference, i have managed to fix them all trough soft and external components(including the gpio interference problems all fixed).
but this ds2406 problem im desperate, i tried today many different caps and none of them seem to work i have mixed line using cat5 cable, length is more than 20meters at moment.
all works fine, but when i turn off fluorescent tube then it resets all ds2406 into alarm state 331 and then all goes crazy becouse that wrong setting. I repeat when i TURN OFF, this only happen when turn off them.
so question is, is there any component i should try near those switches? if yes whithone and how ?
Other way might be possible, if the alarm state can be setup to default 111 instead 311 (i dont know if this hardware or owfs soft thing, i have compiled from source so i might check out code)
Third way is just do a script what keeps echoing setting 111 > alarm, but that is not good...
Fourth option is just code them differently to poll every 0.1sec PIO instead latch from alarm but that is 1wire bandwidth waste + cpu intensive.
i hope someone understand what i try to explain:)
im using 1-wire trough i2c master.
also using owfs to control ds2406 via latch alarm (111)
problem is ds2406 default alarm is 331, and i keep getting reset there.
i managed to see, there is a line problem, when i use other stuff on this house the 1-wire line gets alot interference, i have managed to fix them all trough soft and external components(including the gpio interference problems all fixed).
but this ds2406 problem im desperate, i tried today many different caps and none of them seem to work i have mixed line using cat5 cable, length is more than 20meters at moment.
all works fine, but when i turn off fluorescent tube then it resets all ds2406 into alarm state 331 and then all goes crazy becouse that wrong setting. I repeat when i TURN OFF, this only happen when turn off them.
so question is, is there any component i should try near those switches? if yes whithone and how ?
Other way might be possible, if the alarm state can be setup to default 111 instead 311 (i dont know if this hardware or owfs soft thing, i have compiled from source so i might check out code)
Third way is just do a script what keeps echoing setting 111 > alarm, but that is not good...
Fourth option is just code them differently to poll every 0.1sec PIO instead latch from alarm but that is 1wire bandwidth waste + cpu intensive.
i hope someone understand what i try to explain:)