#!/bin/bash
sudo /opt/owfs/bin/owfs --i2c=ALL:ALL --allow_other /mnt/1wire/
while :
do
clear
printf '%s\n%s\n' ""
cat /mnt/1wire/28.6EBB94040000/temperature
printf '%s\n%s\n' " Saltwater Temperature"
cat /mnt/1wire/28.931295040000/temperature
printf '%s\n%s\n' " Freshwater Temperature"
sleep 5
done
This produced -sudo /opt/owfs/bin/owserver -p 3001 --i2c=/dev/i2c-1:ALL --debug
I then started the OWHTTPD in debug mode using this commandDEBUG MODE
libow version:
2.8p17
DEBUG: ow_daemon.c:(167) main thread id = 3070181904
CONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client couldn't be loaded
CONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't found
CALL: ow_parsename.c:(98) path=[]
DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 18
DEBUG: ow_ds2482.c:(516) ok
CONNECT: ow_ds2482.c:(428) i2c device at /dev/i2c-1 address 18 appears to be DS2482-x00
CONNECT: ow_ds2482.c:(680) DS2482-100 (Single channel)
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 19
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 19 cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1A
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1A cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1B
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1B cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1C
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1C cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1D
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1D cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1E
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1E cannot be reset. Not a DS2482.
CONNECT: ow_ds2482.c:(397) Found an i2c device at /dev/i2c-1 address 1F
CONNECT: ow_ds2482.c:(425) i2c device at /dev/i2c-1 address 1F cannot be reset. Not a DS2482.
DEBUG: ow_com_close.c:(41) Unimplemented!!!
DEBUG: ow_ds2482.c:(341) Cleaning excess allocated i2c structure
This produced -sudo /opt/owfs/bin/owhttpd -s 3001 -p 3002 --debug
After about 1 minuted the debug on OWHTTPD displays this error -DEBUG MODE
libow version:
2.8p17
DEBUG: ow_daemon.c:(167) main thread id = 3069497872
CONNECT: ow_avahi_link.c:(72) No Avahi support. Library libavahi-client couldn't be loaded
CONNECT: ow_dnssd.c:(82) Zeroconf/Bonjour is disabled since dnssd library isn't found
CALL: ow_parsename.c:(98) path=[]
DEBUG: owlib.c:(82) Globals temp limits 0C 100C (for simulated adapters)
DEBUG: ow_net_client.c:(84) IP address=[] port=[3001]
When I connect to it from my Linux laptop, I have the same problem as before e.g. I see everything apart from BUS.0 and the sensors (even though I can see them using OWFS) and the OWHTTPD displays -CONNECT: ow_net_client.c:(144) [Address family not supported by protocol] Socket problem
CONNECT: owlib.c:(115) Cannot open server at 3001 -- first attempt.
DEBUG: ow_net_client.c:(84) IP address=[] port=[3001]
DEBUG: owhttpd_handler.c:(334) URL parse file=/, request=, value=
CALL: owhttpd_handler.c:(68) WLcmd: GETfile: /request:value: version: HTTP/1.1
CALL: ow_parsename.c:(98) path=[/]
DEBUG: owhttpd_handler.c:(92) http directory request.
DEBUG: owhttpd_handler.c:(390) More (26) data:Host: 192.168.0.200:3002
DEBUG: owhttpd_handler.c:(390) More (24) data:Connection: keep-alive
DEBUG: owhttpd_handler.c:(390) More (73) data:Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
DEBUG: owhttpd_handler.c:(390) More (147) data:User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22
DEBUG: owhttpd_handler.c:(390) More (36) data:Accept-Encoding: gzip,deflate,sdch
DEBUG: owhttpd_handler.c:(390) More (45) data:Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
DEBUG: owhttpd_handler.c:(390) More (48) data:Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
DEBUG: owhttpd_handler.c:(390) More (2) data:
DEBUG: ow_dir.c:(65) path=/
CALL: ow_dir.c:(100) path=/
CALL: ow_parsename.c:(98) path=[/uncached]
DEBUG: ow_parsename.c:(62) /uncached
CALL: ow_parsename.c:(98) path=[/settings]
DEBUG: ow_parsename.c:(62) /settings
CALL: ow_parsename.c:(98) path=[/system]
DEBUG: ow_parsename.c:(62) /system
CALL: ow_parsename.c:(98) path=[/statistics]
DEBUG: ow_parsename.c:(62) /statistics
CALL: ow_parsename.c:(98) path=[/structure]
DEBUG: ow_parsename.c:(62) /structure
DEBUG: ow_dir.c:(195) ret=0
DEBUG: ow_parsename.c:(62) /
DEBUG: ow_net_server.c:(240) Normal exit.
CALL: owhttpd_handler.c:(60) PreParse line=GET /favicon.ico HTTP/1.1
DEBUG: owhttpd_handler.c:(334) URL parse file=/favicon.ico, request=, value=
CALL: owhttpd_handler.c:(68) WLcmd: GETfile: /favicon.icorequest:value:version: HTTP/1.1
DEBUG: owhttpd_handler.c:(80) http icon request.
DEBUG: owhttpd_handler.c:(390) More (26) data:Host: 192.168.0.200:3002
DEBUG: owhttpd_handler.c:(390) More (24) data:Connection: keep-alive
DEBUG: owhttpd_handler.c:(390) More (13) data:Accept: */*
DEBUG: owhttpd_handler.c:(390) More (147) data:User-Agent: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22
DEBUG: owhttpd_handler.c:(390) More (36) data:Accept-Encoding: gzip,deflate,sdch
DEBUG: owhttpd_handler.c:(390) More (45) data:Accept-Language: en-GB,en-US;q=0.8,en;q=0.6
DEBUG: owhttpd_handler.c:(390) More (48) data:Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
DEBUG: owhttpd_handler.c:(390) More (50) data:If-Modified-Since: Sat, 11 May 2013 18:36:39 GMT
DEBUG: owhttpd_handler.c:(390) More (2) data:
DEBUG: ow_net_server.c:(240) Normal exit.
I use ps -ef (but each to their own.;))Do a process listing for me
sudo -i
ps - el
pm me the result, i think you may have more than one instance running. When you are trying to start owserver owhttpd and owfs do you make sure its not already running ? I assume you still have your startup scripts in place.
Otherwise subscribe to the owfs forum and ask there.
pi@raspberrypi ~ $ sudo ps -el
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 2 80 0 - 536 poll_s ? 00:00:01 init
1 S 0 2 0 0 80 0 - 0 kthrea ? 00:00:00 kthreadd
1 S 0 3 2 0 80 0 - 0 run_ks ? 00:00:00 ksoftirqd/0
1 S 0 4 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:0
1 S 0 5 2 0 60 -20 - 0 worker ? 00:00:00 kworker/0:0H
1 S 0 6 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:0
1 S 0 7 2 0 60 -20 - 0 worker ? 00:00:00 kworker/u:0H
1 S 0 8 2 0 60 -20 - 0 rescue ? 00:00:00 khelper
5 S 0 9 2 0 80 0 - 0 devtmp ? 00:00:00 kdevtmpfs
1 S 0 10 2 0 60 -20 - 0 rescue ? 00:00:00 netns
1 S 0 11 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:1
1 S 0 12 2 0 80 0 - 0 bdi_fo ? 00:00:00 bdi-default
1 S 0 13 2 0 60 -20 - 0 rescue ? 00:00:00 kblockd
1 S 0 14 2 0 80 0 - 0 hub_th ? 00:00:00 khubd
1 S 0 15 2 0 60 -20 - 0 rescue ? 00:00:00 rpciod
1 S 0 16 2 0 80 0 - 0 watchd ? 00:00:00 khungtaskd
1 S 0 17 2 0 80 0 - 0 kswapd ? 00:00:00 kswapd0
1 S 0 18 2 0 80 0 - 0 fsnoti ? 00:00:00 fsnotify_mark
1 S 0 19 2 0 60 -20 - 0 rescue ? 00:00:00 nfsiod
1 S 0 20 2 0 60 -20 - 0 rescue ? 00:00:00 crypto
1 S 0 27 2 0 60 -20 - 0 rescue ? 00:00:00 kthrotld
1 S 0 28 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQ-0
1 S 0 29 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQr-0
1 S 0 30 2 0 60 -20 - 0 down_i ? 00:00:00 VCHIQs-0
1 S 0 31 2 0 60 -20 - 0 rescue ? 00:00:00 iscsi_eh
1 S 0 32 2 0 60 -20 - 0 rescue ? 00:00:00 dwc_otg
1 S 0 33 2 0 60 -20 - 0 rescue ? 00:00:00 DWC Notificati
1 S 0 34 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:1
1 S 0 35 2 0 60 -20 - 0 rescue ? 00:00:00 deferwq
1 S 0 36 2 1 80 0 - 0 mmc_qu ? 00:00:00 mmcqd/0
1 S 0 37 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:2
1 S 0 38 2 0 80 0 - 0 kjourn ? 00:00:00 jbd2/mmcblk0p2
1 S 0 39 2 0 60 -20 - 0 rescue ? 00:00:00 ext4-dio-unwri
5 S 0 154 1 0 80 0 - 720 epoll_ ? 00:00:00 udevd
1 S 0 234 2 0 60 -20 - 0 rescue ? 00:00:00 cfg80211
5 S 0 280 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
5 S 0 284 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
1 S 0 289 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 310 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 313 1 0 80 0 - 438 wait ? 00:00:00 net.agent
1 S 0 369 2 0 80 0 - 0 bdi_wr ? 00:00:00 flush-179:0
5 S 0 1506 1 0 80 0 - 1408 poll_s ? 00:00:00 wpa_supplicant
1 S 0 1553 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:2
1 S 0 1621 1 0 80 0 - 1223 poll_s ? 00:00:00 dhclient
5 S 0 1926 1 0 80 0 - 436 poll_s ? 00:00:00 ifplugd
5 S 0 1928 1 0 80 0 - 6992 poll_s ? 00:00:00 rsyslogd
1 S 0 2002 1 0 80 0 - 955 hrtime ? 00:00:00 cron
5 S 104 2038 1 0 80 0 - 794 epoll_ ? 00:00:00 dbus-daemon
5 S 102 2085 1 0 80 0 - 1377 poll_s ? 00:00:00 ntpd
5 S 0 2131 1 0 80 0 - 1552 poll_s ? 00:00:00 sshd
5 S 65534 2148 1 0 80 0 - 503 poll_s ? 00:00:00 thd
4 S 0 2167 1 0 80 0 - 935 n_tty_ tty1 00:00:00 getty
4 S 0 2168 1 0 80 0 - 935 n_tty_ tty2 00:00:00 getty
4 S 0 2169 1 0 80 0 - 935 n_tty_ tty3 00:00:00 getty
4 S 0 2170 1 0 80 0 - 935 n_tty_ tty4 00:00:00 getty
4 S 0 2171 1 0 80 0 - 935 n_tty_ tty5 00:00:00 getty
4 S 0 2172 1 0 80 0 - 935 n_tty_ tty6 00:00:00 getty
4 S 0 2173 1 0 80 0 - 515 n_tty_ ttyAMA0 00:00:00 getty
4 S 0 2189 2131 1 80 0 - 2450 poll_s ? 00:00:00 sshd
4 S 0 2242 1 0 80 0 - 6886 poll_s ? 00:00:00 console-kit-da
4 S 0 2314 1 0 80 0 - 5571 poll_s ? 00:00:00 polkitd
5 S 1000 2324 2189 0 80 0 - 2450 poll_s ? 00:00:00 sshd
0 S 1000 2325 2324 3 80 0 - 1357 wait pts/0 00:00:00 bash
0 S 0 2568 310 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 S 0 2571 313 0 80 0 - 421 hrtime ? 00:00:00 sleep
4 S 0 2572 2325 0 80 0 - 1279 poll_s pts/0 00:00:00 sudo
0 S 0 2575 289 0 80 0 - 421 hrtime ? 00:00:00 sleep
4 R 0 2576 2572 0 80 0 - 1033 - pts/0 00:00:00 ps
pi@raspberrypi ~ $
Once I run these, I can confirm they are running processes. -pi@raspberrypi ~ $ sudo /opt/owfs/bin/owserver -p 3001 --i2c=/dev/i2c-1:ALL
pi@raspberrypi ~ $ sudo /opt/owfs/bin/owhttpd -s 3001 -p 3002
pi@raspberrypi ~ $ sudo ps -el
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 1 80 0 - 536 poll_s ? 00:00:01 init
1 S 0 2 0 0 80 0 - 0 kthrea ? 00:00:00 kthreadd
1 S 0 3 2 0 80 0 - 0 run_ks ? 00:00:00 ksoftirqd/0
1 S 0 4 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:0
1 S 0 5 2 0 60 -20 - 0 worker ? 00:00:00 kworker/0:0H
1 S 0 6 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:0
1 S 0 7 2 0 60 -20 - 0 worker ? 00:00:00 kworker/u:0H
1 S 0 8 2 0 60 -20 - 0 rescue ? 00:00:00 khelper
5 S 0 9 2 0 80 0 - 0 devtmp ? 00:00:00 kdevtmpfs
1 S 0 10 2 0 60 -20 - 0 rescue ? 00:00:00 netns
1 S 0 11 2 0 80 0 - 0 worker ? 00:00:00 kworker/0:1
1 S 0 12 2 0 80 0 - 0 bdi_fo ? 00:00:00 bdi-default
1 S 0 13 2 0 60 -20 - 0 rescue ? 00:00:00 kblockd
1 S 0 14 2 0 80 0 - 0 hub_th ? 00:00:00 khubd
1 S 0 15 2 0 60 -20 - 0 rescue ? 00:00:00 rpciod
1 S 0 16 2 0 80 0 - 0 watchd ? 00:00:00 khungtaskd
1 S 0 17 2 0 80 0 - 0 kswapd ? 00:00:00 kswapd0
1 S 0 18 2 0 80 0 - 0 fsnoti ? 00:00:00 fsnotify_mark
1 S 0 19 2 0 60 -20 - 0 rescue ? 00:00:00 nfsiod
1 S 0 20 2 0 60 -20 - 0 rescue ? 00:00:00 crypto
1 S 0 27 2 0 60 -20 - 0 rescue ? 00:00:00 kthrotld
1 S 0 28 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQ-0
1 S 0 29 2 0 61 -19 - 0 down_i ? 00:00:00 VCHIQr-0
1 S 0 30 2 0 60 -20 - 0 down_i ? 00:00:00 VCHIQs-0
1 S 0 31 2 0 60 -20 - 0 rescue ? 00:00:00 iscsi_eh
1 S 0 32 2 0 60 -20 - 0 rescue ? 00:00:00 dwc_otg
1 S 0 33 2 0 60 -20 - 0 rescue ? 00:00:00 DWC Notificati
1 S 0 34 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:1
1 S 0 35 2 0 60 -20 - 0 rescue ? 00:00:00 deferwq
1 S 0 36 2 0 80 0 - 0 worker ? 00:00:00 kworker/u:2
1 S 0 37 2 0 80 0 - 0 mmc_qu ? 00:00:00 mmcqd/0
1 S 0 38 2 0 80 0 - 0 kjourn ? 00:00:00 jbd2/mmcblk0p2
1 S 0 39 2 0 60 -20 - 0 rescue ? 00:00:00 ext4-dio-unwri
5 S 0 154 1 0 80 0 - 720 epoll_ ? 00:00:00 udevd
1 S 0 248 2 0 60 -20 - 0 rescue ? 00:00:00 cfg80211
5 S 0 265 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
5 S 0 278 154 0 80 0 - 719 epoll_ ? 00:00:00 udevd
1 S 0 285 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 307 1 0 80 0 - 438 wait ? 00:00:00 ifplugd.agent
1 S 0 309 1 0 80 0 - 438 wait ? 00:00:00 net.agent
1 S 0 366 2 0 80 0 - 0 bdi_wr ? 00:00:00 flush-179:0
5 S 0 1503 1 0 80 0 - 1408 poll_s ? 00:00:00 wpa_supplicant
1 S 0 1614 1 0 80 0 - 1223 poll_s ? 00:00:00 dhclient
5 S 0 1914 1 0 80 0 - 436 poll_s ? 00:00:00 ifplugd
5 S 0 1918 1 0 80 0 - 6992 poll_s ? 00:00:00 rsyslogd
1 S 0 1998 1 0 80 0 - 955 hrtime ? 00:00:00 cron
5 S 104 2035 1 0 80 0 - 794 epoll_ ? 00:00:00 dbus-daemon
5 S 102 2081 1 0 80 0 - 1377 poll_s ? 00:00:00 ntpd
5 S 0 2124 1 0 80 0 - 1552 poll_s ? 00:00:00 sshd
5 S 65534 2143 1 0 80 0 - 503 poll_s ? 00:00:00 thd
4 S 0 2163 1 0 80 0 - 935 n_tty_ tty1 00:00:00 getty
4 S 0 2164 1 0 80 0 - 935 n_tty_ tty2 00:00:00 getty
4 S 0 2165 1 0 80 0 - 935 n_tty_ tty3 00:00:00 getty
4 S 0 2166 1 0 80 0 - 935 n_tty_ tty4 00:00:00 getty
4 S 0 2167 1 0 80 0 - 935 n_tty_ tty5 00:00:00 getty
4 S 0 2168 1 0 80 0 - 935 n_tty_ tty6 00:00:00 getty
4 S 0 2169 1 0 80 0 - 515 n_tty_ ttyAMA0 00:00:00 getty
4 S 0 2299 2124 0 80 0 - 2450 poll_s ? 00:00:00 sshd
4 S 0 2342 1 0 80 0 - 6886 poll_s ? 00:00:00 console-kit-da
4 S 0 2413 1 0 80 0 - 5835 poll_s ? 00:00:00 polkitd
5 S 1000 2419 2299 0 80 0 - 2450 poll_s ? 00:00:00 sshd
0 S 1000 2420 2419 2 80 0 - 1357 wait pts/0 00:00:00 bash
1 S 0 2585 1 0 80 0 - 807 poll_s ? 00:00:00 owserver
1 S 0 2702 1 0 80 0 - 809 inet_s ? 00:00:00 owhttpd
0 S 0 2818 307 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 S 0 2821 309 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 S 0 2824 285 0 80 0 - 421 hrtime ? 00:00:00 sleep
4 S 0 2825 2420 0 80 0 - 1279 poll_s pts/0 00:00:00 sudo
4 R 0 2826 2825 0 80 0 - 1033 - pts/0 00:00:00 ps
pi@raspberrypi ~ $