
The is a test of a 1-Wire network.
The test hardware
1 iButtonLink 1-Wire USB Interface
6 iButtonLink T-Sense temperature sensors
1 Hobby Board 4 channel hub.
The test software
DigiTemp v3.6.0
Xubuntu 13.04
AXIRIS.eu - (owhbh4) 1-Wire Software v1.3.1
This first test is with all of the sensors plugged into the 4 channel hub. The 4 channel hub channels are off by default.
1. -i Initialize .digitemprc file, search the bus for all supported
devices.
$ digitemp -s /dev/ttyUSB0 -i -c ./digitemp.conf
DigiTemp v3.6.0 Copyright 1996-2007 by Brian C. Lane
Turning off all DS2409 Couplers
...
Searching the 1-Wire LAN
289CE51D040000E1 : DS18B20 Temperature Sensor
28E2211E040000DF : DS18B20 Temperature Sensor
ROM #0 : 289CE51D040000E1
ROM #1 : 28E2211E040000DF
Wrote ./digitemp.conf
$
2. -w Walk the full device tree and display the serial number and type
of all devices detected on the bus.
$ digitemp -s /dev/ttyUSB0 -w -c ./digitemp.conf
DigiTemp v3.6.0 Copyright 1996-2007 by Brian C. Lane
Turning off all DS2409 Couplers
...
Devices on the Main LAN
289CE51D040000E1 : DS18B20 Temperature Sensor
28E2211E040000DF : DS18B20 Temperature Sensor
EF2E672015000017 : Unknown Family Code
$
Note: The 4 channel hub (EF2E672015000017) is detected during the walk.
3. -a Read all sensors.
-q Quiet output, no copyright banner.
$ digitemp -s /dev/ttyUSB0 -a -q -c ./digitemp.conf
Sep 19 18:01:43 Sensor 0 C: 20.44 F: 68.79
Sep 19 18:01:44 Sensor 1 C: 20.44 F: 68.79
$
Note: We read the 2 sensors passed through and unaffected by the
4 channel hub. The 2 sensors are connected serially with the
green wire and are not shown in the photograph.
This second test is the same as the first test but with all
4 channels turned on.
4. With the owhbh4 program we set all 4 channels of the
4 channel hub on.
$ ./owhbh4 -serial /dev/ttyUSB0 ds9097u -id EF-00001520672E-17 -pr -setcfg m -setch on 1 2 3 4
$
5. Again we initialize the digitemp config file.
$ digitemp -s /dev/ttyUSB0 -i -c ./digitemp.conf
DigiTemp v3.6.0 Copyright 1996-2007 by Brian C. Lane
Turning off all DS2409 Couplers
.......
Searching the 1-Wire LAN
289CE51D040000E1 : DS18B20 Temperature Sensor
287C8FCC03000090 : DS18B20 Temperature Sensor
28E2211E040000DF : DS18B20 Temperature Sensor
284551CC03000017 : DS18B20 Temperature Sensor
286D8ACC0300002E : DS18B20 Temperature Sensor
289DE6CC0300006C : DS18B20 Temperature Sensor
ROM #0 : 289CE51D040000E1
ROM #1 : 287C8FCC03000090
ROM #2 : 28E2211E040000DF
ROM #3 : 284551CC03000017
ROM #4 : 286D8ACC0300002E
ROM #5 : 289DE6CC0300006C
Wrote ./digitemp.conf
$
Note: This time we find all 6 sensors.
6. Again we walk our net.
$ digitemp -s /dev/ttyUSB0 -w -c ./digitemp.confDigiTemp v3.6.0 Copyright 1996-2007 by Brian C. Lane
Turning off all DS2409 Couplers
.......
Devices on the Main LAN
289CE51D040000E1 : DS18B20 Temperature Sensor
287C8FCC03000090 : DS18B20 Temperature Sensor
28E2211E040000DF : DS18B20 Temperature Sensor
284551CC03000017 : DS18B20 Temperature Sensor
286D8ACC0300002E : DS18B20 Temperature Sensor
289DE6CC0300006C : DS18B20 Temperature Sensor
EF2E672015000017 : Unknown Family Code
$
Note: We find all 6 sensors and the 4 channel hub.
7. Read all our sensors.
$ digitemp -s /dev/ttyUSB0 -a -q -c ./digitemp.conf
Sep 19 18:03:07 Sensor 0 C: 20.44 F: 68.79
Sep 19 18:03:08 Sensor 1 C: 25.25 F: 77.45
Sep 19 18:03:09 Sensor 2 C: 20.38 F: 68.68
Sep 19 18:03:10 Sensor 3 C: 24.75 F: 76.55
Sep 19 18:03:11 Sensor 4 C: 24.00 F: 75.20
Sep 19 18:03:12 Sensor 5 C: 24.69 F: 76.44
$
Note: All sensors were read.
8. Turn all 4 channels off.
$ ./owhbh4 -serial /dev/ttyUSB0 ds9097u -id EF-00001520672E-17 -pr -setcfg m -setch off 1 2 3 4
$
Note: With owhbh4 we must specify which channels we want turned
on or off.
Reference Links
=============
Hardware
-------------
Hobby Board - 4 channel hub
iButtonLink - LinkUSB
iButtonLink - T-Sense
Software
-------------
Digitemp - Temperature Sensors for Linux
Xubuntu - Linux os
AXIRIS.eu - owhbh4
Linux amd64 (x86 64-bit)
ows-1.3.1-linux-amd64.tar.gz (263 KB, 2013-09-11)