If I'm reading your script correctly, you are essentially starting:

owfs -u
owserver -u -p 3001
owhttpd -s 3001

If so, the first program to grab the USB port (probably owfs) will block the
second (owserver).

Instead:
owserver -u -p 3001
owfs -s 3001
owhttpd -s 3001

So owserver is the only program to directly connect to the USB bus master.

Paul

On Mon, Sep 20, 2010 at 2:27 PM, Ghislain FOURNIER <
[email protected]> wrote:

> I cut vsens link,
>
> i change usb port and i try i , it's ok, i can read VAD
>
> now i start owfs (owfs -u --allow_other /mnt/1wire ), i can read mount
> point.
> and when i start owserver an owhttpd, their is non device in mount point.
>
>
> see my script :
>
> #!/bin/sh
> #
> # Control owfs as a Service
> #
> # Source function library.
> #. /etc/rc.d/init.d/functions
>
> prog=owfs
> prog_fs=owfs
> prog_serv=owserver
> prog_http=owhttpd
> prog_gest=owgest
>
> PATH=/bin:/usr/bin:/sbin:/usr/sbin
>
> DAEMON_FS=/usr/bin/$prog_fs
> PIDFILE_FS=/var/run/$prog_fs.pid
>
> DAEMON_SERV=/usr/bin/$prog_serv
> PIDFILE_SERV=/var/run/$prog_serv.pid
>
> DAEMON_HTTP=/usr/bin/$prog_http
> PIDFILE_HTTP=/var/run/$prog_http.pid
>
> CONF=/etc/fuse.conf
> OWFS_MODULE="fuse"
>
> SCRIPT=/home/ow/script
>
> # Arguments to $prog_fs
> #
> MOUNT_POINT="/mnt/1wire/"
> ARGS="--allow_other -C --write -u "
>
> # mount point exist ?
> #
> if [ ! -d ${MOUNT_POINT} ]
> then
>     mkdir -p "${MOUNT_POINT}"
> fi
>
>
> test -x $DAEMON_FS || exit 0
>
> case "$1" in
> start)
>
> echo -n "Starting $prog_fs"
> #start-stop-daemon --start --quiet --pidfile $PIDFILE_FS --exec $DAEMON_FS
> -- $ARGS $MOUNT_POINT
> if [ -d ${MOUNT_POINT} ]
>   then
>    modprobe "${OWFS_MODULE}"
>    "${DAEMON_FS}" -u --allow_other "${MOUNT_POINT}"
>   fi
> echo "."
> wait 10
>
> echo -n "Starting $prog_serv"
> $DAEMON_SERV $ARGS -p 3001
> echo "."
> wait 10
>
> echo -n "Starting $prog_http"
> $DAEMON_HTTP $ARGS -s localhost:3001 -p 8086
> echo "."
> wait 10
>
> ;;
> stop)
>
> echo -n "Stopping $prog_http"
> killall $DAEMON_HTTP
> echo -n "Stopping $prog_serv"
> killall $DAEMON_SERV
> echo -n "Stopping $prog_fs"
> umount $MOUNT_POINT
> echo "."
> ;;
> restart)
> sh $0 stop
> sh $0 start
> ;;
> *)
> echo "Usage: /etc/init.d/$prog {start|stop|restart}"
> exit 1
> ;;
> esac
>
> exit 0
> # end of $prog.init
> =================================================
>
> tanks
>
> > Message du 19/09/10 20:52
> > De : "Paul Alfille"
> > A : "OWFS (One-wire file system) discussion and help"
> > Copie à :
> > Objet : Re: [Owfs-developers] Read VAD on DS2438
> >
> > Ok I tried a real device, a HIH3600-based humidity sensor:
>
>
> >
>
> p...@paul-desktop:~$ DS2438=`/opt/owfs/bin/owdir | grep "/26"` ;
> VOLTS=`/opt/owfs/bin/owdir $DS2438 | grep -i "/V"` ; for v in $VOLTS ; do
> echo "$v = `/opt/owfs/bin/owread $v`" ; done
>
> /26.3D3A15000000/VAD =         2.26
>
> /26.3D3A15000000/VDD =         4.62
>
> /26.3D3A15000000/vis =            0
>
>
> >
>
> So the VAD value is not pinned at 0. My guess is that Marcus Priesch's
> observation about your circuit should be investigated. Can you report back
> your findings?
>
>
> >
>
> Paul Alfille
>
> >
>
> On Fri, Sep 17, 2010 at 8:11 PM, Paul Alfille <[email protected]>wrote:
> >
>
> VAD measuring mode (vs Vdd) is done automatically when VAD is requested.
> I'm able to read humidity values, which required VAD, but I'll test further
>
>
> >
> >
>
> On Fri, Sep 17, 2010 at 3:25 PM, Marcus Priesch <[email protected]>wrote:
> >
>
> Hi,
> >
> > just a qiuck look over the datasheet and your schematics:
> >
> > i am not sure if you need to put Vsens- to ground ?
> >
> > and you have to put the device into VAD measuring mode ... however i am
> > not sure how to do this via owfs ...
> >
> > maybe this helps ...
> >
> > gegards,
> > marcus.
> >
> > Am Mittwoch, den 15.09.2010, 11:09 +0200 schrieb Ghislain FOURNIER:
> >
>
> > Hi,
> > >
> > > I can't read VAD on DS2438, with owfs.
> > >
> > > my schematic :
> http://www.fournier-family.com/images/sch_electronique.gif
> > >
> > > VAD en VSS value is always 0
> > >
> > > can y help me ?
> > >
> > > best regard.
> > >
> > > Ghislain.
> > >
> > >
> > >
> > >
> ------------------------------------------------------------------------------
> > > Start uncovering the many advantages of virtual appliances
> > > and start using them to simplify application deployment and
> > > accelerate your shift to cloud computing.
> > > http://p.sf.net/sfu/novell-sfdev2dev
> > > _______________________________________________
> > > Owfs-developers mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Start uncovering the many advantages of virtual appliances
> > and start using them to simplify application deployment and
> > accelerate your shift to cloud computing.
> > http://p.sf.net/sfu/novell-sfdev2dev
> > _______________________________________________
> > Owfs-developers mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
>
>
> >
>
>
> >
> >
> > [ (pas de nom de fichier) (0.3 Ko) ]
> > [ (pas de nom de fichier) (0.2 Ko) ]
>
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to