Is multiple DS9490R-s possible?

284 views
Skip to first unread message

Norb

unread,
Feb 14, 2012, 5:41:28 AM2/14/12
to DigiTemp
Hi,

My test network runs well on an Asus WL500gp router. I would like to
reduce cable length by making two networks, one for each floor of the
house. Can digitemp read from two DS9490R-s plugged into the same
router?

Thanks, Norb

Felix Paliuc

unread,
Feb 14, 2012, 9:37:58 AM2/14/12
to digi...@googlegroups.com
You could use a Hobby Boards 1 Wire Hub

Felix Paliuc

unread,
Feb 14, 2012, 9:46:53 AM2/14/12
to digi...@googlegroups.com
Also, you could use 2 DS9490R's too. They'll be addressed with (for example):

ttyUSB1
ttyUSB2

On Tue, Feb 14, 2012 at 11:41 AM, Norb <nso...@gmail.com> wrote:

Norbert Somlai

unread,
Feb 16, 2012, 3:01:19 AM2/16/12
to digi...@googlegroups.com
Thanks, but it seems that I will need only 2 networks, so a $27 DS9490R I can buy locally seems to be the better choice over the "$48 + case + shipping cost from US" HUB :)

Norbert Somlai

unread,
Feb 16, 2012, 3:28:41 AM2/16/12
to digi...@googlegroups.com
Digitemp may be able to handle this on its own judging from the "Found device #1" string, can somebody confirm that?

[admin@WL500 usb]$ digitemp_DS2490 -w
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Found DS2490 device #1 at 001/004


Unfortunately I couldn't figure the exact string out, Linux noob here. Tried to find where the usb devices hide, no luck so far. Might be the fact that there is no driver assigned to this device, digitemp drives it directly AFAIK.

[admin@WL500 usb]$ ls -l /dev/tty
crw-rw-rw- 1 admin root 5, 0 Jan  1  1970 /dev/tty

and dev/usb is empty:
[admin@WL500 usb]$ ls -la /dev/usb
total 0
drwxr-xr-x 1 admin root 0 Jan  1  1970 .
drwxr-xr-x 1 admin root 0 Jan  1  1970 ..

I have an USB hub plugged into the router.

lsusb output:
T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2
B:  Alloc= 22/900 us ( 2%), #Int=  2, #Iso=  0
D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0000 ProdID=0000 Rev= 0.00
S:  Product=USB OHCI Root Hub
S:  SerialNumber=b8003000
C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms
T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=12  MxCh= 2
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0424 ProdID=2502 Rev= 0.01
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  2mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=255ms
T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 4
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1a40 ProdID=0101 Rev= 1.11
S:  Product=USB 2.0 Hub
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=255ms
T:  Bus=01 Lev=03 Prnt=03 Port=00 Cnt=01 Dev#=  4 Spd=12  MxCh= 0
D:  Ver= 1.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs=  1
P:  Vendor=04fa ProdID=2490 Rev= 0.02
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  32 Ivl=10ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  16 Ivl=0ms
I:  If#= 0 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  32 Ivl=10ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
I:  If#= 0 Alt= 2 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  32 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  16 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  16 Ivl=0ms
I:  If#= 0 Alt= 3 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)
E:  Ad=81(I) Atr=03(Int.) MxPS=  32 Ivl=1ms
E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
T:  Bus=01 Lev=03 Prnt=03 Port=03 Cnt=02 Dev#=  5 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=1976 ProdID=6025 Rev= 1.00
S:  Manufacturer=CBM
S:  Product=USB Disk
S:  SerialNumber=000123456789
C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=01(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad=81(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

Felix Paliuc

unread,
Feb 16, 2012, 4:08:01 AM2/16/12
to digi...@googlegroups.com
I'm using digitemp with a string like this:

digitemp_DS9097U -c /etc/.digitemprc -a -o2

.digitemprc contains:

TTY /dev/ttyUSB3
READ_TIME 1000
LOG_TYPE 1
LOG_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F"
CNT_FORMAT "%b %d %H:%M:%S Sensor %s #%n %C"
HUM_FORMAT "%b %d %H:%M:%S Sensor %s C: %.2C F: %.2F H: %h%%"
SENSORS 4
ROM 0 0x28 0x3C 0x8A 0x03 0x03 0x00 0x00 0x94
ROM 1 0x28 0x46 0x96 0x03 0x03 0x00 0x00 0x9E
ROM 2 0x28 0x23 0xA8 0x03 0x03 0x00 0x00 0x90
ROM 3 0x28 0x33 0xA6 0x03 0x03 0x00 0x00 0x69

I think you could create another copy of the .digitemprc (this file gets automatically created with: digitemp_DS9097U -s /dev/ttyUSB3 -i ) file in a different folder and the first line would contain the path to the other temperature device (eg: ttyUSB4 ...)

Norbert Somlai

unread,
Feb 16, 2012, 4:16:59 AM2/16/12
to digi...@googlegroups.com
My .digitemprc simply contains TTY USB. The hack with two .digitemprc files is a good idea, but it also requires addressing the two plugs somehow, both files having TTY USB won't work. Don't know how to test this without buying a second plug.

I tried the string you are using (tried USB1 to USB4), no luck:

[admin@WL500 root]$ digitemp_DS2490 -w -s /dev/ttyUSB4

DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
Found DS2490 device #1 at 001/004
USB ERROR: owAcquire called with invalid port string

Felix Paliuc

unread,
Feb 16, 2012, 4:22:51 AM2/16/12
to digi...@googlegroups.com
When you'll connect the 2 temperature devices, they'll automatically be assigned a ttyUSB0, 1 ...

With dmesg you could see exactly the ttyUSB assigned to each one (maybe inserting them one at a time)

Felix Paliuc

unread,
Feb 16, 2012, 4:24:31 AM2/16/12
to digi...@googlegroups.com

My string doesn't work on your side as you don't have any device connected to USB4 ...

Platsch-O-MAT

unread,
Feb 16, 2012, 6:02:17 AM2/16/12
to DigiTemp
From my own experience I know, that digitemp supports those also:
http://www.ibuttonlink.com/linkusbi.aspx
and they are much cheaper!




On 16 Feb., 09:01, Norbert Somlai <nsom...@gmail.com> wrote:
> Thanks, but it seems that I will need only 2 networks, so a $27 DS9490R I
> can buy locally seems to be the better choice over the "$48 + case +
> shipping cost from US" HUB :)
>
>
>
>
>
>
>
> On Tue, Feb 14, 2012 at 3:37 PM, Felix Paliuc <fpal...@gmail.com> wrote:
> > You could use a Hobby Boards 1 Wire Hub
>

Felix Paliuc

unread,
Feb 16, 2012, 6:16:47 AM2/16/12
to digi...@googlegroups.com
I'm using, for months now, this: http://pcsensor.com/index.php?_a=viewProd&productId=33

It is way cheaper than other solutions.

Stefan Placzek

unread,
Feb 17, 2012, 10:18:37 AM2/17/12
to digi...@googlegroups.com

The problem with these adapters is, that the driver for the usb to uart chip is only provided for Windows and newer Linux distributions... therefore I can't use these adapters (I've bought 2 for my Homematic home automation system and I could not get them to do anything... They are now only for testing purposes on my Windows machine... )

Felix Paliuc

unread,
Feb 17, 2012, 2:03:08 PM2/17/12
to digi...@googlegroups.com
I'm using one with OpenWRT (kernel 2.6.37) and it works flawless. All I had to do was to install the FTDI driver.
Reply all
Reply to author
Forward
0 new messages