Hardware Reference
In-Depth Information
Table 11-2. w1_bus_masterX Files
File
Type
Read Content
driver
Symlink
power
Directory
subsystem
Symlink
uevent
File
DRIVER=w1_master_driver
w1_master_add
File
Write device ID xx-xxxxxxxxxxxx
to add slave
w1_master_attempts
File
88
w1_master_max_slave_count
File
10
_master_name
File
w1_bus_master1
w1_master_pointer
File
0xd7032148
w1_master_pullup
File
1
w1_master_remove
File
Write device ID xx-xxxxxxxxxxxx to
remove slave
w1_master_search
File
-1
w1_master_slave_count
File
0
w1_master_slaves
File
Not found
w1_master_timeout
File
10
Bus Master
The bus master driver scans for new slave devices every 10 seconds (according to
w1_master_timeout ). File w1_master_attempts indicates how many scans have been
performed to date. File w1_master_slave_count shows how many slaves have been
detected out of a maximum of w1_master_max_slave_count . Reading w1_master_slaves
provides a list of slaves found or not found.
The following is an example output session produced while two DS18B20
temperature sensors were connected to the bus:
$ cd /sys/bus/w1/devices/w1_bus_master1
$ cat w1_master_slaves
28−00000478d75e
28−0000047931b5
$
 
 
Search WWH ::




Custom Search