w1-master-gpio Omega2
-
Re: 1-Wire Temperature Sensor - DS18B20 - on Omega2
Hallo! I've got problem with OpenWrt on Omega2 Onion and reading one wire ID.
- So many issues about connecting temp sensor ds1820 for example, but problem that i can't resolve is:
timeout for read ibutton (ds2401 for example) is 10 seconds/ but want 1 or 2 seconds for normal time period to read. i can't transmit options then insmod w1 module and time is 5-10 seconds for reading ID dallas is tooo long/ please, is anybody knows how to make this faster?
is_key=$(cat /sys/devices/w1_bus_master1/w1_master_slave_count)
if [ "$is_key" -eq "1" ]
then
key=$(cat /sys/devices/w1_bus_master1/w1_master_slaves)
echo $key
fii did in raspberry pi add lsmod with parameter timeout=1.
Please help ^_^- i keep connected key ibutton (ds1990 or 2401) and in period 10 sec omega2 begins get number. So then 100 seconds i can't do nothing because id number is in /sys/devices/w1_bus_master1/w1_master_slaves
and no methods to remove it. can i remove any ibutton after reading?
this article ignore all problems of timeout and removing. For example rmmod don't remove module if id number is in folder w1-master.
thanks all for any help!
- So many issues about connecting temp sensor ds1820 for example, but problem that i can't resolve is: