i'm trying manage 1 wire sensors c programs using 1 wire api (libow-dev).
1 wire network ok , can read temperature of each sensor directly in directory /sys/devices/w1_bus_master1.
i'm using raspberry pi, under raspbian jessie, owfs 2.9p8.
i'm tryig use c example program owcapiexampl.c.
when run "./owcapiexample /sys/bus/w1/devices" mesage :
directory error (2) reading /sys/bus/w1/devices (no such file or directory)
run owcapiexample root.
ls command on /sys/bus/w1/devices directory gives result :
10-000802d6d87f 10-000802d70162 10-000802da7d61 10-000802db3f58 28-000001ad8495 28-0000038b27d7 w1_bus_master1
when run "./owcapiexample --w1"
result :
directory / has members bus.0/,uncached/,settings/,system/,statistics/,structure/ (57 bytes).
program doesn't find devices.
progrmas works because when launched --fake (simulated devices), results ok.
arguments program ?
seems me directory path.
is necessary give argument --w1 ?
i've searched around different forums, without solving problem.
has experienced similar things , there me ?
1 wire network ok , can read temperature of each sensor directly in directory /sys/devices/w1_bus_master1.
i'm using raspberry pi, under raspbian jessie, owfs 2.9p8.
i'm tryig use c example program owcapiexampl.c.
when run "./owcapiexample /sys/bus/w1/devices" mesage :
directory error (2) reading /sys/bus/w1/devices (no such file or directory)
run owcapiexample root.
ls command on /sys/bus/w1/devices directory gives result :
10-000802d6d87f 10-000802d70162 10-000802da7d61 10-000802db3f58 28-000001ad8495 28-0000038b27d7 w1_bus_master1
when run "./owcapiexample --w1"
result :
directory / has members bus.0/,uncached/,settings/,system/,statistics/,structure/ (57 bytes).
program doesn't find devices.
progrmas works because when launched --fake (simulated devices), results ok.
arguments program ?
seems me directory path.
is necessary give argument --w1 ?
i've searched around different forums, without solving problem.
has experienced similar things , there me ?
raspberrypi
Comments
Post a Comment