Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Timo Furrer
@timofurrer
they are all populated by the kernel modules
mikespolk
@mikespolk
OK, understand. As I mentioned, I was thinking to doublecheck once more, by installeing the (Python2 only) owfs library, and seeing if its py demo app would enumerate sensors OK.
Timo Furrer
@timofurrer
yeah, you can certainly try
no tutorial and scripts I've found show the behavior you are seeing
mikespolk
@mikespolk
Does not last for long. Do you have chance to wait for it?
Timo Furrer
@timofurrer
they all have the 28- prefix and have a slave file in it to read the temperature from
Yeah, I might be afk for a while
but I'll be back ;)
mikespolk
@mikespolk
:)
Timo Furrer
@timofurrer
have you already set that up on the Pi you have right now?
Like on the same installation?
mikespolk
@mikespolk
yes… installed the owfs library and made modifications, but...
can't find python2 ide on my rpi now.
This is the rpi installation I created two days ago
image.png
sorry, quite a newbie with Linux. How to run the owfs demo py app?
mikespolk
@mikespolk
Still doing the owfs install, following the I2C sections install guide now: https://www.abelectronics.co.uk/kb/article/1/i2c--smbus-and-raspbian-linux
mikespolk
@mikespolk
Done, rebooting the rpi now...
mikespolk
@mikespolk
Ran the demoapp and it shows the sensors now:
image.png
mikespolk
@mikespolk
So, the sensors should basically exist and be enumerable OK.
To still doublecheck, I tried the w1thermsensor demoapp, and it fails to find the sensors, just like earlier:
image.png
Any ideas for next?
Timo Furrer
@timofurrer
Can you try to ask for the type with owfs ?
the type of the sensor?
You could also try to re-install your pi - taking the latest linux
and ONLY install w1thermsensor, but not the owfs library
mikespolk
@mikespolk
Yes, I will answer soon..
So, the types of my sensors, found with the owfs object "type" property; The other lists as DS18B20, and the other as DS18S20 (though has DS1820 printed in its TO-92 case.
mikespolk
@mikespolk
For the pi reinstall, I think that I just did that, by downloading two days ago the NOOBS/Raspbian images, and absolutely without the ow library
But for the bsimmo's post (You need to talk to the HAT with i2c...This module doesn't do that.)
What does this mean in my case?
Hope it does not however mean that I can't get your module to work, since I am having the 1-Wire adapter card?
mikespolk
@mikespolk
For me, that adapter is essential, to avoid any electrical spikes from long sensor cabling, directly to rpi's GPIO bus.
Going to sleep now for today.
I really appreciate your help and answers, thank you so far!
erolfr
@erolfr
hey, firstly nice work.
pi@raspberrypi:~ $ sudo time w1thermsensor all
Got temperatures of 5 sensors:
Sensor 1 (0516b577ffff) measured temperature: 24.56 celsius
Sensor 2 (0416c1d597ff) measured temperature: 27.5 celsius
Sensor 3 (0416c20a7bff) measured temperature: 30.5 celsius
Sensor 4 (0416c21372ff) measured temperature: 26.0 celsius
Sensor 5 (0416c25b2aff) measured temperature: 25.5 celsius
1.12user 0.14system 0:05.56elapsed 22%CPU (0avgtext+0avgdata 15420maxresident)k
0inputs+0outputs (0major+2390minor)pagefaults 0swaps
Timo Furrer
@timofurrer

hey, firstly nice work.

You are welcome :tada:

erolfr
@erolfr
is this a normal time? Or I do something wrong
Timo Furrer
@timofurrer
Can you check how long it takes to read the sensor file directly?
erolfr
@erolfr
its an raspi 3b+
Timo Furrer
@timofurrer
Do you know where the sensor files are?
Can you measure how long it takes to do sudo on your raspi?
time sudo echo "Hello"
erolfr
@erolfr

time cat /sys/bus/w1/devices/28-0416c21372ff
cat: /sys/bus/w1/devices/28-0416c21372ff: Ist ein Verzeichnis

real 0m0,008s
user 0m0,001s
sys 0m0,007s

pi@raspberrypi:~ $ time sudo echo "Hello"
Hello

real 0m0,131s
user 0m0,023s
sys 0m0,017s

Timo Furrer
@timofurrer
Can you read the w1_slave file from the directory?
Where it said "Is ein Verzeichnis" ?