Hi Paul,
Many thanks for the help you are offering, it is greatly appreciated as
this is driving me mad!
I have just booted my pi and these are the processes running -
pi@raspberrypi ~ $ ps -el
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 0 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 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 80 0 - 0 mmc_qu ? 00:00:00 mmcqd/0
1 S 0 36 2 0 60 -20 - 0 rescue ? 00:00:00 deferwq
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 255 2 0 60 -20 - 0 rescue ? 00:00:00 cfg80211
5 S 0 281 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 pipe_w ? 00:00:01
ifplugd.agent
1 S 0 310 1 0 80 0 - 438 wait ? 00:00:01
ifplugd.agent
1 S 0 315 1 0 80 0 - 438 wait ? 00:00:01 net.agent
5 S 0 1506 1 0 80 0 - 1408 poll_s ? 00:00:00
wpa_supplicant
1 S 0 1596 2 0 80 0 - 0 worker ? 00:00:00
kworker/0:2
1 S 0 1597 1 0 80 0 - 1223 poll_s ? 00:00:00 dhclient
4 S 0 1839 1 0 80 0 - 438 pipe_w ? 00:00:00 rc
4 S 0 1848 1839 0 80 0 - 503 poll_s ? 00:00:03 startpar
5 S 0 1898 1 0 80 0 - 436 poll_s ? 00:00:00 ifplugd
5 S 0 1903 1 0 80 0 - 7248 poll_s ? 00:00:00 rsyslogd
1 S 0 1981 1 0 80 0 - 955 hrtime ? 00:00:00 cron
5 S 104 2026 1 0 80 0 - 794 epoll_ ? 00:00:00
dbus-daemon
5 S 102 2061 1 0 80 0 - 1377 poll_s ? 00:00:00 ntpd
5 S 65534 2107 1 0 80 0 - 503 poll_s ? 00:00:00 thd
4 S 0 2109 1848 0 80 0 - 685 wait ? 00:00:00 wlan.sh
5 S 0 2115 1 0 80 0 - 1552 poll_s ? 00:00:00 sshd
4 S 0 2504 2115 0 80 0 - 2450 poll_s ? 00:00:00 sshd
4 S 0 2550 1 0 80 0 - 6884 poll_s ? 00:00:00
console-kit-da
4 S 0 2621 1 0 80 0 - 5571 poll_s ? 00:00:00 polkitd
5 S 1000 2627 2504 0 80 0 - 2450 poll_s ? 00:00:00 sshd
0 S 1000 2628 2627 0 80 0 - 1357 wait pts/0 00:00:00 bash
1 S 0 5909 2 0 80 0 - 0 worker ? 00:00:00
kworker/0:1
0 S 0 7574 2109 0 80 0 - 421 hrtime ? 00:00:00 sleep
0 R 1000 7956 2628 0 80 0 - 1033 - pts/0 00:00:00 ps
pi@raspberrypi ~ $
I then run this command -
sudo /opt/owfs/bin/owserver -p 3001 --i2c=/dev/i2c-1:ALL --debug
and get this -
DEBUG MODE
libow version:
2.9p0
DEBUG: ow_daemon.c:(166) main thread id = 3069776400
CONNECT: ow_avahi_link.c:(68) 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:(81) Globals temp limits 0C 100C (for simulated adapters)
CONNECT: ow_ds2482.c:(399) 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
DEBUG: ow_ds2482.c:(785) Channel select set error
CONNECT: ow_ds2482.c:(692) DS2482-100 (Single channel)
DEBUG: ow_ds2482.c:(676) Cannot set to port configuration -- not a DS2483
CONNECT: ow_ds2482.c:(399) 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:(399) 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:(399) 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:(399) 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:(399) 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:(399) 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:(399) 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:(42) Unimplemented!!!
DEBUG: ow_ds2482.c:(343) Cleaning excess allocated i2c structure
I then run this command -
sudo /opt/owfs/bin/owhttpd -s 3001 -p 3002 --debug
and get this -
DEBUG MODE
libow version:
2.9p0
DEBUG: ow_daemon.c:(166) main thread id = 3069846032
CONNECT: ow_avahi_link.c:(68) 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:(81) Globals temp limits 0C 100C (for simulated adapters)
DEBUG: ow_net_client.c:(85) IP address=[] port=[3001]
CONNECT: ow_net_client.c:(147) [Address family not supported by protocol]
Socket problem
CONNECT: owlib.c:(112) Cannot open server at 3001 -- first attempt.
DEBUG: ow_net_client.c:(85) IP address=[] port=[3001]
CONNECT: ow_net_client.c:(147) [Address family not supported by protocol]
Socket problem
CONNECT: owlib.c:(117) Cannot open server at 3001 -- second (and final)
attempt.
DEFAULT: owlib.c:(56) No valid 1-wire buses found
DEBUG: ow_exit.c:(18) Exit code = 1
CALL: ow_lib_close.c:(21) Starting Library cleanup
CALL: ow_lib_stop.c:(27) Clear Cache
DEBUG: ow_cache.c:(300) Flipping cache tree (purging timed-out data)
DEBUG: ow_cache.c:(318) flip cache. tdestroy() will be called.
DEBUG: ow_cache.c:(300) Flipping cache tree (purging timed-out data)
DEBUG: ow_cache.c:(318) flip cache. tdestroy() will be called.
CALL: ow_lib_stop.c:(29) Closing input devices
CALL: ow_lib_stop.c:(31) Closing outout devices
DEBUG: ow_connect_out.c:(56) Freeing outbound (null) #0
CALL: ow_lib_close.c:(34) Finished Library cleanup
DEBUG: ow_lib_close.c:(42) Libraries closed
If it is any help, I have a model A pi and I am running the latest Raspian
spin updated and have tried owfs 2.9p0 and 2.8p17. I am running
temperature sensors on the pi using a 1-wire Pi (
http://www.abelectronics.co.uk/products/3/Raspberry-Pi/27/1-Wire-Pi). I
can see the sensors on the ow file system using this command -
sudo /opt/owfs/bin/owfs --i2c=ALL:ALL --allow_other /mnt/1wire/
With owfs version 2.9p0, I cannot get to the owhttp wepage but with 2.8p17,
I can get to page and see the following but it is not seeing the sensors
(note the missing BUS.0 directory). As mentioned the owfs file system sees
the sensors so I know everything is working from a hardware perspective.
Any ideas where I can now look?
On 13 May 2013 16:00, Paul Alfille <[email protected]> wrote:
> Are you running owfs and owhttpd at the same time? They both can't connect
> directly to the DS2482 -- you need owserver to coordinate access.
>
>
> On Mon, May 13, 2013 at 7:59 AM, foster
> <[email protected]>wrote:
>
>> Thx. Now I understand.
>> Actually I don't need config file if I run owhttpd with parameters. So now
>> it's clear, only problem what I have is to start owhttpd. I have
>> DS-2482-100, I'm using this command:
>> sudo /opt/owfs/bin/owhttpd -p 2121 -d /dev/i2c-1 --debug
>>
>> DEBUG MODE
>> libow version:
>> 2.9p0
>> DEBUG: ow_daemon.c:(166) main thread id = 3069968912
>> DEBUG: ow_avahi_link.c:(71) Avahi support: libavahi-client loaded
>> successfully
>> DEBUG: ow_avahi_link.c:(73) Avahi library function found:
>> avahi_client_errno
>> DEBUG: ow_avahi_link.c:(74) Avahi library function found:
>> avahi_client_free
>> DEBUG: ow_avahi_link.c:(75) Avahi library function found:
>> avahi_client_new
>> DEBUG: ow_avahi_link.c:(76) Avahi library function found:
>> avahi_client_get_domain_name
>> DEBUG: ow_avahi_link.c:(77) Avahi library function found:
>> avahi_entry_group_add_service
>> DEBUG: ow_avahi_link.c:(78) Avahi library function found:
>> avahi_entry_group_commit
>> DEBUG: ow_avahi_link.c:(79) Avahi library function found:
>> avahi_entry_group_is_empty
>> DEBUG: ow_avahi_link.c:(80) Avahi library function found:
>> avahi_entry_group_new
>> DEBUG: ow_avahi_link.c:(81) Avahi library function found:
>> avahi_entry_group_reset
>> DEBUG: ow_avahi_link.c:(83) Avahi library function found:
>> avahi_service_resolver_free
>> DEBUG: ow_avahi_link.c:(84) Avahi library function found:
>> avahi_service_resolver_new
>> DEBUG: ow_avahi_link.c:(85) Avahi library function found:
>> avahi_service_browser_free
>> DEBUG: ow_avahi_link.c:(86) Avahi library function found:
>> avahi_service_browser_new
>> DEBUG: ow_avahi_link.c:(98) Avahi support: libavahi-common loaded
>> successfully.
>> DEBUG: ow_avahi_link.c:(100) Avahi library function found:
>> avahi_simple_poll_free
>> DEBUG: ow_avahi_link.c:(101) Avahi library function found:
>> avahi_simple_poll_get
>> DEBUG: ow_avahi_link.c:(102) Avahi library function found:
>> avahi_simple_poll_loop
>> DEBUG: ow_avahi_link.c:(103) Avahi library function found:
>> avahi_simple_poll_new
>> DEBUG: ow_avahi_link.c:(104) Avahi library function found:
>> avahi_simple_poll_quit
>> DEBUG: ow_avahi_link.c:(105) Avahi library function found:
>> avahi_strerror
>> CALL: ow_parsename.c:(98) path=[]
>> DEBUG: owlib.c:(81) Globals temp limits 0C 100C (for simulated adapters)
>> CONNECT: ow_ds2482.c:(399) 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
>> DEBUG: ow_ds2482.c:(785) Channel select set error
>> CONNECT: ow_ds2482.c:(692) DS2482-100 (Single channel)
>> DEBUG: ow_ds2482.c:(676) Cannot set to port configuration -- not a
>> DS2483
>>
>> And no owhttpd start - ps afx | grep ow, result is that only owfs is
>> running.
>> Thx.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://owfs-developers.1086194.n5.nabble.com/owhttpd-in-2-9p0-tp9556p9567.html
>> Sent from the OWFS Developers mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------------
>> Learn Graph Databases - Download FREE O'Reilly Book
>> "Graph Databases" is the definitive new guide to graph databases and
>> their applications. This 200-page book is written by three acclaimed
>> leaders in the field. The early access version is available now.
>> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
>> _______________________________________________
>> Owfs-developers mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>>
>
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and
> their applications. This 200-page book is written by three acclaimed
> leaders in the field. The early access version is available now.
> Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
--
Kind Regards
Mark Taber
Linux<http://www.youtube.com/watch?feature=player_embedded&v=yVpbFMhOAwEhttp://www.youtube.com/watch?feature=player_embedded&v=yVpbFMhOAwE>
------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers