Hi,

I have an issue with owfs not being able to use owserver when reading
config from owfs.conf:


$ cat /etc/owfs.conf
server: device = /dev/i2c-1
server: port = localhost:3000

mountpoint = /mnt/1wire
allow_other
http: port = 8080

error_print = 1
error_level = 3




$ sudo /opt/owfs/bin/owserver -c /etc/owfs.conf --pid-file
/var/run/owfs/owserver.pid

Syslog:

May 14 08:00:34 rpi OWFS[4456]: DEFAULT: ow_daemon.c:(144) Entered
background mode, quitting.
May 14 08:00:34 rpi OWFS[4456]:    CALL: ow_parsename.c:(98) path=[]
May 14 08:00:34 rpi OWFS[4456]: CONNECT: ow_ds2482.c:(399) Found an i2c
device at /dev/i2c-1 address 18
May 14 08:00:34 rpi OWFS[4456]: CONNECT: ow_ds2482.c:(428) i2c device at
/dev/i2c-1 address 18 appears to be DS2482-x00
May 14 08:00:34 rpi OWFS[4456]: CONNECT: ow_ds2482.c:(692) DS2482-100
(Single channel)

$ sudo /opt/owfs/bin/owfs -c /etc/owfs.conf --pid-file
/var/run/owfs/owfs.pid

Syslog:

May 14 08:01:40 rpi OWFS[4461]: CONNECT: owfs.c:(96) fuse mount point:
/mnt/1wire
May 14 08:01:40 rpi OWFS[4461]:    CALL: ow_parsename.c:(98) path=[]
May 14 08:01:40 rpi OWFS[4461]: DEFAULT: owlib.c:(56) No valid 1-wire
buses found

$ netstat -an | grep 3000
tcp6       0      0 ::1:3000                :::*                    LISTEN

So, owserver reads owfs.conf and locates the busmaster and starts up on
port 3000. owfs is not able to find the busmaster



If I start things without owfs.conf it works fine:

$ sudo /opt/owfs/bin/owserver --i2c=/dev/i2c-1 -p localhost:3000
--pid-file /var/run/owfs/owserver.pid

$ netstat -an | grep 3000
tcp6       0      0 ::1:3000                :::*                    LISTEN

$ sudo /opt/owfs/bin/owfs -s 3000 /mnt/1wire --pid-file
/var/run/owfs/owfs.pid

$ sudo ls /mnt/1wire
bus.0  settings  statistics  structure  system  uncached



This is owfs 2.9 on a Raspberry Pi model A, using a DS2483 as a
busmaster. To make things even more weird the same setup works fine with
a DS2482-800 on a Raspberry Pi model B, so I'm starting to wonder if
this is an issue with either the DS2483 or RPI model A.

Any suggestions on how to debug this issue further?

- Jan



------------------------------------------------------------------------------
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.
http://p.sf.net/sfu/alienvault_d2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to