Nu är tanken att få det att rulla på en Debian-server med OWFS... hittar nätet och har knåpat ihop ett hyggligt script som läser temperaturer och sparar i en MySQL-DB.
Men... under natten så "försvann" ett par givare. Vart lite osäker så jag bootade om hela maskineriet.
Vips var dom tillbaka men några minuter senare så försvann dom igen.... och sedan någon till... för att sedan komma tillbaka.
Just nu rullar det finfint men det känns "lite" skakigt.
Så här kör jag OWFS just nu:
Kod: Markera allt
/opt/owfs/bin/owfs --error_level 4 --error_print 0 --foreground --allow_other --max_connections 3 --nozero --timeout_usb 10 --USB=2:5 --pid_file /opt/owfs/bin/owfs.pid --readonly --mountpoint /mnt/1wire
När en mätare försvann hade jag lite högre error_level på och såg detta i loggen:
Kod: Markera allt
LOOKUP /10.AFD292010800
getattr /10.AFD292010800
CALL: ow_fstat.c:(22) path=/10.AFD292010800
CALL: ow_parsename.c:(98) path=[/10.AFD292010800]
DEBUG: ow_cache.c:(927) Looking for device 10 AF D2 92 01 08 00 65
DEBUG: ow_cache.c:(1083) Search in cache sn 10 AF D2 92 01 08 00 65 pointer=0xb77b5114 index=0 size=4
DEBUG: ow_cache.c:(1119) Value not found in cache
DETAIL: ow_presence.c:(81) Checking presence of /10.AFD292010800
DEBUG: ow_select.c:(66) Selecting a path (and device) path=/10.AFD292010800 SN=10 AF D2 92 01 08 00 65 last path=00 00 00 00 00 00 00 00
DEBUG: ow_select.c:(79) Continuing root branch
DEBUG: ow_tcp_read.c:(64) attempt 1 bytes Time: 5.000000 seconds
DEBUG: ow_select.c:(66) Selecting a path (and device) path=/10.AFD292010800 SN=10 AF D2 92 01 08 00 65 last path=00 00 00 00 00 00 00 00
DEBUG: ow_select.c:(79) Continuing root branch
DEBUG: ow_ds9490.c:(493) DS9490 RESET. changed 0, flex: 0
DEBUG: ow_ds9490.c:(544) DS9490_Reset: OK
DEBUG: ow_tcp_read.c:(114) read: 1 - 0 = 1
DEBUG: ow_tcp_read.c:(64) attempt 25 bytes Time: 5.000000 seconds
DEBUG: ow_transaction.c:(215) verify = 1
DEBUG: ow_presence.c:(288) Presence of 10 AF D2 92 01 08 00 65 NOT found on bus 2:5
DEBUG: ow_tcp_read.c:(114) read: 25 - 0 = 25
DEBUG: ow_transaction.c:(215) verify = 1
DEBUG: ow_presence.c:(288) Presence of 10 AF D2 92 01 08 00 65 NOT found on bus /dev/ttyUSB0
DEBUG: ow_parsename.c:(155) Set error to 27 <Path - bad path syntax>
DEBUG: ow_parsename.c:(62) /10.AFD292010800
DEBUG: ow_parsename.c:(62) /10.AFD292010800
unique: 62, error: -2 (No such file or directory), outsize: 16
unique: 63, opcode: LOOKUP (1), nodeid: 1, insize: 56
Kod: Markera allt
/opt/owfs/bin/owfs -u --error_level 5 --error_print 2 --foreground --allow_other -d /dev/ttyUSB0 /mnt/1wire
Versioner mm:
Kod: Markera allt
Bus 002 Device 005: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter
Bus 002 Device 004: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 002 Device 003: ID 0e0f:0002 VMware, Inc. Virtual USB Hub
Bus 002 Device 002: ID 0e0f:0003 VMware, Inc. Virtual Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
/opt/owfs/bin/owfs version:
2.8p20
libow version:
2.8p20
Linux debian 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
... någon som sett liknande fenomen?