successful digitemp / Hobby Board 4 channel hub test

397 views
Skip to first unread message

klo...@gmail.com

unread,
Sep 19, 2013, 11:03:46 PM9/19/13
to digi...@googlegroups.com



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
GNU General Public License v2.0 - http://www.digitemp.com
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
GNU General Public License v2.0 - http://www.digitemp.com
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
GNU General Public License v2.0 - http://www.digitemp.com
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
GNU General Public License v2.0 - http://www.digitemp.com
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)

klo...@gmail.com

unread,
Sep 27, 2013, 7:48:04 PM9/27/13
to digi...@googlegroups.com
Update:

I forgot to mention how I found the "-id EF-00001520672E-17" for  owhbh4.


$ ./owhbh4 -serial /dev/ttyUSB0 ds9097u -id EF-00001520672E-17 -pr -setcfg m -setch on 1 2 3 4
 
This will discover the hubs and displays result in tree format
$ ./owsenum -serial /dev/ttyUSB0 ds9097u -hub -dst

Enumeration time:   3043 ms
Devices enumerated: 1

01: DS9097U (path /dev/ttyUSB0)
  01: DS2480
    01: EF-00001520672E-17  Hobby Boards 4-Channel Hub

$

Jason Sipula

unread,
Mar 8, 2014, 7:02:40 PM3/8/14
to digi...@googlegroups.com
I'm trying this out... but so far haven't gotten far. 

I get:

]# ./digitemp -w
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Turning off all DS2409 Couplers
.
Devices on the Main LAN
EFDE68201500000A : Unknown Family Code


And:

]# ./owsenum -serial /dev/ttyS0 ds9097u -hub -dst

Enumeration time:   1052 ms
Devices enumerated: 0

01: DS9097U (path /dev/ttyS0)
  01: DS2480


So, it seems ows can't see the hub? I'm using a serial-2-ethernet adapter picked up from iconnect back in the day. It's running on /dev/ttyS0

I know digitemp is working since it's a system that's been in production for several years now. Recently I picked up this hub, and tried to expand and re-organize the 1-wire network... but I can't get the hub to work. (i really really wish they'd just ship the hub with the darn ports on... )

Brian C. Lane

unread,
Mar 9, 2014, 9:31:53 PM3/9/14
to digi...@googlegroups.com
On Sat, Mar 08, 2014 at 04:02:40PM -0800, Jason Sipula wrote:
> I'm trying this out... but so far haven't gotten far.
>
> I get:
>
> ]# ./digitemp -w
> DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
> GNU Public License v2.0 - http://www.digitemp.com
> Turning off all DS2409 Couplers
> .
> Devices on the Main LAN
> EFDE68201500000A : Unknown Family Code

digitemp doesn't support the Hobby Boards hub.

--
http://www.brianlane.com
Reply all
Reply to author
Forward
0 new messages