51 (edytowany przez szajsiwo 2021-12-19 21:51:35)

Odp: 1-WIRE na DS2490

No ja wszystko rozumiem. ale ja mowie o digitemp_*****ds2490******

52

Odp: 1-WIRE na DS2490

A ja piszę po klingońsku? Jeszcze raz: ds2490 nie jest portem szeregowym, nie daje /dev/ttyUSB0 i digitemp_ds2490 dla niego nie potrzebuje wskazywać jakiegokolwiek portu szeregowego.

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

53 (edytowany przez szajsiwo 2021-12-19 22:00:32)

Odp: 1-WIRE na DS2490

zasugerowalem sie tym:

lukasz1120 napisał/a:

maam takie coś

root@OpenWrt:~# digitemp_DS2490 -i -a -s /dev/ttyUSB0
DigiTemp v3.5.0 Copyright 1996-2007 by Brian C. Lane
GNU Public License v2.0 - http://www.digitemp.com
USB ERROR: owAcquire called with invalid port string

i tym:

root@OpenWrt:~# digitemp_DS2490
Error! Not enough arguments.

DigiTemp v3.7.2 Copyright 1996-2018 by Brian C. Lane
GNU General Public License v2.0 - http://www.digitemp.com
Compiled for DS2490


Usage: digitemp [-s -i -I -U -l -r -v -t -a -d -n -o -c]
                -i                            Initialize .digitemprc file
                -I                            Initialize .digitemprc file w/sorted serial #s
                -w                            Walk the full device tree
                -s /dev/ttyS0                 Set serial port
                -l /var/log/temperature       Send output to logfile
                -c digitemp.conf              Configuration File
                -r 1000                       Read delay in mS
                -v                            Verbose output
                -t 0                          Read Sensor #
                -q                            No Copyright notice
                -a                            Read all Sensors
                -d 5                          Delay between samples (in sec.)
                -n 50                         Number of times to repeat
                                              0=loop forever
                -A                            Treat DS2438 as A/D converter
                -O"counter format string"      See description below
                -o 2                          Output format for logfile
                -o"output format string"      See description below
                -H"Humidity format string"    See description below

54

Odp: 1-WIRE na DS2490

Help do digitempa jest uniwersalny do wszystkich binarek jakie on daje.

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

55 (edytowany przez szajsiwo 2021-12-21 21:06:51)

Odp: 1-WIRE na DS2490

Problem lezal w wersji kernela. Od wersji 5.8 byl bug ktory dopiero usunieto w 5.12

https://bugzilla.redhat.com/show_bug.cgi?id=1873694

Raspbian Buster 2020-02-14

 212.309464] usb 1-1.3: new full-speed USB device number 3 using xhci_hcd
[  212.446553] usb 1-1.3: New USB device found, idVendor=04fa, idProduct=2490, bcdDevice= 0.02
[  212.446570] usb 1-1.3: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[  212.561485] Driver for 1-wire Dallas network protocol.
[  212.573946] usbcore: registered new interface driver DS9490R
[  212.591461] w1_master_driver w1_bus_master1: Attaching one wire slave 28.20d55b1e64ff crc 55
[  212.608482] w1_master_driver w1_bus_master1: Attaching one wire slave 81.000000305eca crc 85

pi@raspberrypi:/ $ uname -a
Linux raspberrypi 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux

pi@raspberrypi:/ $ cat /sys/bus/w1/devices/28-20d55b1e64ff/w1_slave
59 01 55 00 7f ff 0c 10 bc : crc=bc YES
59 01 55 00 7f ff 0c 10 bc t=21562

w OpenWrt 21.02.1 dzialalo bo ma kernel 5.4. Z nowszymi na 5.10 tez bedzie problem. To tak dla potomnych.