1

Temat: digitemp a DS2940 i DS18B20

Hej,

mam układ DS2940
i czujnik DS18B20

pod windowsem uruchomiłem to i mierzy mi temprature smile
problem pojawia sie naruterze

po podpieciu interfejsu w logu pojawia sie:

May 17 19:13:28 OpenWrt user.info kernel: usb 1-1.1: new full speed USB device using ar71xx-ehci and address 10
May 17 19:13:28 OpenWrt user.info kernel: usb 1-1.1: configuration #1 chosen from 1 choice
May 17 19:13:28 OpenWrt user.notice usb-modeswitch: 1-1.1:1.0: Manufacturer=? Product=? Serial=?


jednak odpalenie :

digitemp_DS9097 -i -s /dev/ttyS0 -a

zwraca tylko tyle:

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

Searching the 1-Wire LAN

co moge robic zle?

2

Odp: digitemp a DS2940 i DS18B20

Jeżeli on jest USB to napewno nie jest to /dev/ttyS0 tylko /dev/ttyUSB0. Jak sterowniki zainstalowałeś.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: digitemp a DS2940 i DS18B20

Cezary napisał/a:

Jeżeli on jest USB to napewno nie jest to /dev/ttyS0 tylko /dev/ttyUSB0. Jak sterowniki zainstalowałeś.

a z USB0 nie korzysta czasem modem?

sterownik zainstalowalem po prostu tak:

opkg install -d usb digitemp

na zewnatrznym SD i podlinkowalem w /usr/bin

4

Odp: digitemp a DS2940 i DS18B20

Podłączyłeś DS2409 na usb? To potzrebujesz sterownik. I jego  port to jeden z /dev/ttyUSB

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: digitemp a DS2940 i DS18B20

ok zainstalowalem digitemp-usb i dziala, prawie nie czyta mi wszystkich czujnikow naraz ale gdy pytam o konkretny to go odczytuje hmm komus tak sie zdarzylo? da sie to jakos poprawić? :>

root@OpenWrt:~$ digitemp_DS2490 -i
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/006
Turning off all DS2409 Couplers
.
Searching the 1-Wire LAN
2896B5E702000000 : DS18B20 Temperature Sensor
28F98FE7020000DE : DS18B20 Temperature Sensor
ROM #0 : 2896B5E702000000
ROM #1 : 28F98FE7020000DE
Wrote .digitemprc
root@OpenWrt:~$ digitemp_DS2490 -i -a
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/006
Turning off all DS2409 Couplers
.
Searching the 1-Wire LAN
2896B5E702000000 : DS18B20 Temperature Sensor
28F98FE7020000DE : DS18B20 Temperature Sensor
ROM #0 : 2896B5E702000000
ROM #1 : 28F98FE7020000DE
Wrote .digitemprc
May 17 21:37:23 Sensor 0 C: 22.00 F: 71.60
root@OpenWrt:~$ digitemp_DS2490 -t 0
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/006
May 17 21:37:35 Sensor 0 C: 22.00 F: 71.60
root@OpenWrt:~$ digitemp_DS2490 -t 1
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/006
May 17 21:37:37 Sensor 1 C: 22.38 F: 72.28