Peter Kropf | 1 Dec 2006 02:14
Picon
Gravatar

Re: is Peter Kropf still active?

On 11/30/06, Peter Kropf <pkropf <at> gmail.com> wrote:
> On 11/26/06, Jerry Scharf <scharf <at> lagunawayconsulting.com> wrote:

[--snip--]

> > Second, I extended the program to set the error codes, thinking this
> > might have something to do with the runaway code. I inserted
> > ow.error_level(ow.error_level.fatal)
> > ow.error_print(ow.error_print.stderr)
> > after ow.init.
> >
> > pdb says:
> >  > /home/scharf/house/dbcontrols/python/owtest.py(3)?()
> > -> import ow
> > (Pdb) n
> >  > /home/scharf/house/dbcontrols/python/owtest.py(5)?()
> > -> ow.init('127.0.0.1:2840')
> > (Pdb) n
> >  > /home/scharf/house/dbcontrols/python/owtest.py(7)?()
> > -> ow.error_level(ow.error_level.fatal)
> > (Pdb) n
> > AttributeError: "'module' object has no attribute 'cvar'"
> >  > /home/scharf/house/dbcontrols/python/owtest.py(7)?()
> > -> ow.error_level(ow.error_level.fatal)
> >
> > I located cvar in the __init__ code, but am not familiar with this level
> > of python...
>
> I haven't seen this before. Let me dig into the code a bit and get back to you.

(Continue reading)

Paul Alfille | 1 Dec 2006 03:55
Picon

Re: USB Device Access

Beautifully written. Now at http://www.owfs.org/index.php?page=udev

Do you think a script that does these steps would be useful?

Paul Alfille

On 11/30/06, Peter Kropf <pkropf <at> gmail.com> wrote:
When you push this out to the web site, consider adding links from the
hotplug and udev references on the permissions page...

- Peter


On 11/30/06, Peter Kropf <pkropf <at> gmail.com > wrote:
> Attached is a new and improved description for setting up permissions via udev.
>
> I had a problem on Fedora Core 6 where OW was using the
> /dev/bus/usb/... file instead of the /proc/bus/usb/... file. I'm not
> sure why. I suspect that it has something to do with libusb. Can
> anyone provide some insight? And please try the instructions on
> different Linux distributions so we can work through any issues.
>
> - Peter
>
>
> On 11/30/06, Peter Kropf <pkropf <at> gmail.com> wrote:
> > Hold off on posting this. I'm having some troubles on a fedora core 6
> > system following the directions...
> >
> > - Peter
> >
> >
> > On 11/30/06, Peter Kropf <pkropf <at> gmail.com> wrote:
> > > No problem. Attached is an outline for the same process using udev.
> > >
> > > - Peter
> > >
> > >
> > > On 11/30/06, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> > > > See: http://www.owfs.org/index.php?page=hotplug
> > > >
> > > >  Can I suggest a separate page for udev -- it would be less overwhelming.
> > > >
> > > >  Paul Alfille
> > > >
> > > >
> > > > On 11/30/06, Peter Kropf <pkropf <at> gmail.com> wrote:
> > > > > Hold off a bit on putting it on the web site. I'm updating it with
> > > > > instructions on also using udev. Hopefully this'll cover more users...
> > > > >
> > > > > - Peter
> > > > >
> > > > >
> > > > > On 11/30/06, Paul Alfille < paul.alfille <at> gmail.com> wrote:
> > > > > > Very nicely summarized.
> > > > > >
> > > > > >  I'll add it to the web wite. Is hotplug for 2.6 kernels as well as 2.4?
> > > > > >
> > > > > >  Paul Alfille
> > > > > >
> > > > > > On 11/30/06, Jan Kandziora < jjj <at> gmx.de> wrote:
> > > > > > > Am Donnerstag, 30. November 2006 20:03 schrieb Peter Kropf:
> > > > > > > > I've written up a preliminary guide to extending the hotplug
> > > > subsystem
> > > > > > > > to automatically change the file owner and permissions on 1-Wire
> > > > > > > > controller.
> > > > > > > >
> > > > > > > >
> > > > > > > > Comments? Thought?
> > > > > > > >
> > > > > > > Shouldn't / Couldn't the same thing be achieved by adding some udev
> > > > rules?
> > > > > > >
> > > > > > > Kind regards
> > > > > > >
> > > > > > >         Jan
> > > > > > > --
> > > > > > > "...Deep Hack Mode -- that mysterious and frightening state of
> > > > > > > consciousness where mortal users fear to tread.
> > > > > > >                 -- Matt Welsh
> > > > > > >
> > > > > > >
> > > > > >
> > > > -------------------------------------------------------------------------
> > > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > > Join SourceForge.net's Techsay panel and you'll get the chance to
> > > > share
> > > > > > your
> > > > > > > opinions on IT & business topics through brief surveys - and earn cash
> > > > > > >
> > > > > >
> > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > > > _______________________________________________
> > > > > > > Owfs-developers mailing list
> > > > > > > Owfs-developers <at> lists.sourceforge.net
> > > > > > >
> > > > > >
> > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > -------------------------------------------------------------------------
> > > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > > Join SourceForge.net's Techsay panel and you'll get the chance to share
> > > > your
> > > > > > opinions on IT & business topics through brief surveys - and earn cash
> > > > > >
> > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > >
> > > > > > _______________________________________________
> > > > > > Owfs-developers mailing list
> > > > > > Owfs-developers <at> lists.sourceforge.net
> > > > > >
> > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > -------------------------------------------------------------------------
> > > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > > Join SourceForge.net 's Techsay panel and you'll get the chance to share
> > > > your
> > > > > opinions on IT & business topics through brief surveys - and earn cash
> > > > >
> > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > > > _______________________________________________
> > > > > Owfs-developers mailing list
> > > > > Owfs-developers <at> lists.sourceforge.net
> > > > >
> > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > > > >
> > > >
> > > >
> > > > -------------------------------------------------------------------------
> > > > Take Surveys. Earn Cash. Influence the Future of IT
> > > > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > > > opinions on IT & business topics through brief surveys - and earn cash
> > > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > > >
> > > > _______________________________________________
> > > > Owfs-developers mailing list
> > > > Owfs-developers <at> lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> > > >
> > > >
> > > >
> > >
> > >
> > >
> >
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Roberto Spadim | 1 Dec 2006 05:26
Picon

Re: USB Device Access

what about put in windows installer the drivers to be installed and 
every think else? what about an "fast" install for unix?

Paul Alfille escreveu:
> Beautifully written. Now at http://www.owfs.org/index.php?page=udev
>
> Do you think a script that does these steps would be useful?
>
> Paul Alfille
>
> On 11/30/06, *Peter Kropf* <pkropf <at> gmail.com 
> <mailto:pkropf <at> gmail.com>> wrote:
>
>     When you push this out to the web site, consider adding links from the
>     hotplug and udev references on the permissions page...
>
>     - Peter
>
>
>     On 11/30/06, Peter Kropf <pkropf <at> gmail.com
>     <mailto:pkropf <at> gmail.com>> wrote:
>     > Attached is a new and improved description for setting up
>     permissions via udev.
>     >
>     > I had a problem on Fedora Core 6 where OW was using the
>     > /dev/bus/usb/... file instead of the /proc/bus/usb/... file. I'm
>     not
>     > sure why. I suspect that it has something to do with libusb. Can
>     > anyone provide some insight? And please try the instructions on
>     > different Linux distributions so we can work through any issues.
>     >
>     > - Peter
>     >
>     >
>     > On 11/30/06, Peter Kropf <pkropf <at> gmail.com
>     <mailto:pkropf <at> gmail.com>> wrote:
>     > > Hold off on posting this. I'm having some troubles on a fedora
>     core 6
>     > > system following the directions...
>     > >
>     > > - Peter
>     > >
>     > >
>     > > On 11/30/06, Peter Kropf <pkropf <at> gmail.com
>     <mailto:pkropf <at> gmail.com>> wrote:
>     > > > No problem. Attached is an outline for the same process
>     using udev.
>     > > >
>     > > > - Peter
>     > > >
>     > > >
>     > > > On 11/30/06, Paul Alfille <paul.alfille <at> gmail.com
>     <mailto:paul.alfille <at> gmail.com>> wrote:
>     > > > > See: http://www.owfs.org/index.php?page=hotplug
>     > > > >
>     > > > >  Can I suggest a separate page for udev -- it would be
>     less overwhelming.
>     > > > >
>     > > > >  Paul Alfille
>     > > > >
>     > > > >
>     > > > > On 11/30/06, Peter Kropf <pkropf <at> gmail.com
>     <mailto:pkropf <at> gmail.com>> wrote:
>     > > > > > Hold off a bit on putting it on the web site. I'm
>     updating it with
>     > > > > > instructions on also using udev. Hopefully this'll cover
>     more users...
>     > > > > >
>     > > > > > - Peter
>     > > > > >
>     > > > > >
>     > > > > > On 11/30/06, Paul Alfille < paul.alfille <at> gmail.com
>     <mailto:paul.alfille <at> gmail.com>> wrote:
>     > > > > > > Very nicely summarized.
>     > > > > > >
>     > > > > > >  I'll add it to the web wite. Is hotplug for 2.6
>     kernels as well as 2.4?
>     > > > > > >
>     > > > > > >  Paul Alfille
>     > > > > > >
>     > > > > > > On 11/30/06, Jan Kandziora < jjj <at> gmx.de
>     <mailto:jjj <at> gmx.de>> wrote:
>     > > > > > > > Am Donnerstag, 30. November 2006 20:03 schrieb Peter
>     Kropf:
>     > > > > > > > > I've written up a preliminary guide to extending
>     the hotplug
>     > > > > subsystem
>     > > > > > > > > to automatically change the file owner and
>     permissions on 1-Wire
>     > > > > > > > > controller.
>     > > > > > > > >
>     > > > > > > > >
>     > > > > > > > > Comments? Thought?
>     > > > > > > > >
>     > > > > > > > Shouldn't / Couldn't the same thing be achieved by
>     adding some udev
>     > > > > rules?
>     > > > > > > >
>     > > > > > > > Kind regards
>     > > > > > > >
>     > > > > > > >         Jan
>     > > > > > > > --
>     > > > > > > > "...Deep Hack Mode -- that mysterious and
>     frightening state of
>     > > > > > > > consciousness where mortal users fear to tread.
>     > > > > > > >                 -- Matt Welsh
>     > > > > > > >
>     > > > > > > >
>     > > > > > >
>     > > > >
>     -------------------------------------------------------------------------
>     > > > > > > > Take Surveys. Earn Cash. Influence the Future of IT
>     > > > > > > > Join SourceForge.net's Techsay panel and you'll get
>     the chance to
>     > > > > share
>     > > > > > > your
>     > > > > > > > opinions on IT & business topics through brief
>     surveys - and earn cash
>     > > > > > > >
>     > > > > > >
>     > > > >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     > > > > > > > _______________________________________________
>     > > > > > > > Owfs-developers mailing list
>     > > > > > > > Owfs-developers <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     > > > > > > >
>     > > > > > >
>     > > > >
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>     <https://lists.sourceforge.net/lists/listinfo/owfs-developers>
>     > > > > > > >
>     > > > > > >
>     > > > > > >
>     > > > > > >
>     > > > >
>     -------------------------------------------------------------------------
>
>     > > > > > > Take Surveys. Earn Cash. Influence the Future of IT
>     > > > > > > Join SourceForge.net's Techsay panel and you'll get
>     the chance to share
>     > > > > your
>     > > > > > > opinions on IT & business topics through brief surveys
>     - and earn cash
>     > > > > > >
>     > > > >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     > > > > > >
>     > > > > > > _______________________________________________
>     > > > > > > Owfs-developers mailing list
>     > > > > > > Owfs-developers <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     > > > > > >
>     > > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
>     > > > > > >
>     > > > > > >
>     > > > > > >
>     > > > > >
>     > > > > >
>     > > > >
>     -------------------------------------------------------------------------
>     > > > > > Take Surveys. Earn Cash. Influence the Future of IT
>     > > > > > Join SourceForge.net 's Techsay panel and you'll get the
>     chance to share
>     > > > > your
>     > > > > > opinions on IT & business topics through brief surveys -
>     and earn cash
>     > > > > >
>     > > > >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     > > > > > _______________________________________________
>     > > > > > Owfs-developers mailing list
>     > > > > > Owfs-developers <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     > > > > >
>     > > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
>     > > > > >
>     > > > >
>     > > > >
>     > > > >
>     -------------------------------------------------------------------------
>
>     > > > > Take Surveys. Earn Cash. Influence the Future of IT
>     > > > > Join SourceForge.net's Techsay panel and you'll get the
>     chance to share your
>     > > > > opinions on IT & business topics through brief surveys -
>     and earn cash
>     > > > >
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     > > > >
>     > > > > _______________________________________________
>     > > > > Owfs-developers mailing list
>     > > > > Owfs-developers <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     > > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers
>     > > > >
>     > > > >
>     > > > >
>     > > >
>     > > >
>     > > >
>     > >
>     >
>     >
>     >
>
>     -------------------------------------------------------------------------
>     Take Surveys. Earn Cash. Influence the Future of IT
>     Join SourceForge.net's Techsay panel and you'll get the chance to
>     share your
>     opinions on IT & business topics through brief surveys - and earn cash
>     http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>     <http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV>
>     _______________________________________________
>     Owfs-developers mailing list
>     Owfs-developers <at> lists.sourceforge.net
>     <mailto:Owfs-developers <at> lists.sourceforge.net>
>     https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
> ------------------------------------------------------------------------
> Esta mensagem foi verificada pelo E-mail Protegido Terra 
> <http://mail.terra.com.br/>.
> Scan engine: McAfee VirusScan / Atualizado em 30/11/2006 / Versão: 
> 4.4.00/4908
> Proteja o seu e-mail Terra: http://mail.terra.com.br/
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Matt | 1 Dec 2006 10:09
Picon
Picon

Re: Problems

I tried Debian Etch (v4 rc1)
The latest owfs build worked fine.

-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net
[mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of Matt
Sent: Sunday, 26 November 2006 12:56 AM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Problems

I'm using 3.1R3+patches (2.6.8 kernel), which has since been rolled into
3.1r4
http://cdimage.debian.org/debian-cd/3.1_r4/i386/iso-cd/debian-31r4-i386-neti
nst.iso

Debain v4 (etch) is expected to be released in a couple of months I hear.

I don’t have fuse installed, to the folder you refer to doesn’t exist,
however if I use owhttpd I can see there the following errors.

BUS_reconnects	3
BUS_reset_errors	125
BUS_tcsetattr_errors	3
BUS_write_errors	125
CRC8_tries	8
DS2480_sendback_cmd_errors	125
DS2480_sendout_cmd_errors	125

If I get some time next week, I'll try out the etch rc1, I think that uses
the 2.6.17 kernel.

Matt

-----Original Message-----
From: owfs-developers-bounces <at> lists.sourceforge.net
[mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of
Christian Magnusson
Sent: Saturday, 25 November 2006 8:13 PM
To: owfs-developers <at> lists.sourceforge.net
Subject: Re: [Owfs-developers] Problems

Look at the errors counter in /tmp/1wire/bus.0/statistics/errors/*
After owserver fails to read.

My guess is that your kernel denies the access to the serial port or
something, and then tries to kill the process.

Where can I download your debian sarge version? It would be interesting to
try it in vmware and see if it's possible to get the same error.

There is a new debian version at:
http://cdimage.debian.org/cdimage/etch_di_rc1/i386/iso-cd/
but I guess it's not this you have...

Is it version 3.1 you have?
http://cdimage.debian.org/cdimage/archive/3.1_r0/

/Christian

> -----Ursprungligt meddelande-----
> Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs- 
> developers-bounces <at> lists.sourceforge.net] För Matt
> Skickat: den 25 november 2006 04:26
> Till: owfs-developers <at> lists.sourceforge.net
> Ämne: Re: [Owfs-developers] Problems
> 
> Thanks Christian
> 
> Sorry for the delay, cvs doesn't happen from work, so had to wait.
> 
> It didn’t work though, owserver stays resident, but the second owdir 
> doesn't show any devices.
> I'll snag the syslog and post it later.
> 
> 
> 
> -----Original Message-----
> From: owfs-developers-bounces <at> lists.sourceforge.net
> [mailto:owfs-developers-bounces <at> lists.sourceforge.net] On Behalf Of 
> Christian Magnusson
> Sent: Friday, 24 November 2006 7:24 AM
> To: owfs-developers <at> lists.sourceforge.net
> Subject: Re: [Owfs-developers] Problems
> 
> 
> Hi again Matt,
> 
> I have made some more change/cleanup in both the signal-handling and 
> threads in ow_net now. Check out the latest cvs in a few minutes or 
> hours when the anonymous cvs is updated.
> 
> The SIGHUP signal you got was generated by the kernel! (no user 
> application and general exception from libc). I'm not sure why, but 
> could it be something like selinux which cause this?
> 
> Can you test something like this... and then look at the 
> error-counters (if owserver still works)
> 
> owserver -d /dev/ttyS0 --error_level=9 -p 3000 owdir -p 3000 
> /uncached/ (does owserver still die?) owdir -p 3000 /uncached/
> 
> 
> owfs -s 3000 /tmp/1wire
> grep -v " 0" /tmp/1wire/bus.0/statistics/errors/*
> 
> /Christian
> 
> 
> 
> On Mon, 2006-11-20 at 13:59 +0100, Christian Magnusson wrote:
> > Your system obviously send a SIGHUP to your owserver process for some
> > reason? It's catched in the main-process and ignores it right now.
> >
> > > Nov 16 12:32:53 localhost OWFS[19068]: Signal handler for 1, errno 0,
> code
> > > 128, pid 0
> >
> > The strange thing is that info->si_pid = 0... I'm not sure why it's like
> > this, but I'll make some more experiments and see if I can block the
> SIGHUP
> > signal in some other ways. It might still be some thread which doesn't
> > handle SIGHUP and dies at that point.
> >
> > FS_read_postpostparse/FS_r_given_bus seem to return -22 (EINVAL) during
> the
> > failed read, and Paul might have some idea when this occurs.
> >
> > /Christian
> >
> >
> > > -----Ursprungligt meddelande-----
> > > Från: owfs-developers-bounces <at> lists.sourceforge.net [mailto:owfs-
> > > developers-bounces <at> lists.sourceforge.net] För Matt
> > > Skickat: den 20 november 2006 12:06
> > > Till: owfs-developers <at> lists.sourceforge.net
> > > Ämne: Re: [Owfs-developers] Problems
> > >
> > > Sorry, I thought I had posted my results.
> > > No, the latest owserver didn't work, I get one result, then no
> results.
> > > The owserver process keep running, doesn't quit like with the previous
> > > build. (<13102006).
> > >
> > > Below is the results for a successful read, then a failed read.
> > >
> >
> >
> >
> >
> > ------------------------------------------------------------------------
> -
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Owfs-developers mailing list
> > Owfs-developers <at> lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> 
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Paul Alfille | 2 Dec 2006 04:20
Picon

Re: USB Device Access

Ok, at least for Suse:
src/scripts/usb/suse_setup.sh which is:


On 11/30/06, Roberto Spadim <roberto <at> spadim.com.br > wrote:
what about put in windows installer the drivers to be installed and
every think else? what about an "fast" install for unix?



### ------------------
### -- Constants -----
### ------------------
OWFS_GROUP=ow
#
#
###  -----------------
###  -- Group --------
###  -----------------
groupadd $OWFS_GROUP
#
###  -----------------
###  -- Links --------
###  -----------------
# Put all the ninaries in /usr/bin
#  make them part of the "ow" group
#  and let only their owner and group read or execute them
OWFS_bin="owfs owhttpd owftpd owserver owread owwrite owpresent owdir"
for x in $OWFS_bin
  do
  ln -sfv /opt/owfs/bin/$x /usr/bin/$x
done
#
###  -----------------
###  -- Rules --------
###  -----------------
cat >/etc/udev/rules.d/46_ds2490.rules << RULES
BUS=="usb", SYSFS=="04fa", SYSFS=="2490", GROUP="users", MODE="0774", PROGRAM="/bin/sh -c 'K=%k; K=\$\$; printf bus/usb/%%03i/%%03i \$\$ \$\$'", NAME="%c", RUN="/etc/udev/ds2490 '%c'"
RULES
#
###  -----------------
###  -- Shell --------
###  -----------------
cat >/etc/udev/ds2490 << SHELL
#! /bin/sh -x
    /sbin/rmmod ds9490r
    MATCH="no"
    if [ "\$1" != "" ]; then
        if [ -f /proc/\$1 ]; then
            chgrp $OWFS_GROUP /proc/\$1 && \
            chmod g+rw /proc/\$1 && \
            logger ow udev: group set to $OWFS_GROUP and permission g+rw on /proc/\$1
            MATCH="yes"
        fi

        if [ -e /dev/\$1 ]; then
            chgrp $OWFS_GROUP /dev/\$1 && \
            chmod g+rw /dev/\$1 && \
            logger ow udev: group set to $OWFS_GROUP and permission g+rw on /dev/\$1
            MATCH="yes"
        fi
    fi

    if [ "\$MATCH" = "no" ]; then
        echo ow udev: no device file found for "\$1"
        logger ow udev: no device file found for "\$1"
    fi
SHELL

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Roberto Spadim | 2 Dec 2006 04:34
Picon

Re: USB Device Access

fine :)

Paul Alfille escreveu:
> Ok, at least for Suse:
> src/scripts/usb/suse_setup.sh which is:
>
>
> On 11/30/06, *Roberto Spadim* <roberto <at> spadim.com.br 
> <mailto:roberto <at> spadim.com.br>> wrote:
>
>     what about put in windows installer the drivers to be installed and
>     every think else? what about an "fast" install for unix?
>
>
>
> ### ------------------
> ### -- Constants -----
> ### ------------------
> OWFS_GROUP=ow
> #
> #
> ###  -----------------
> ###  -- Group --------
> ###  -----------------
> groupadd $OWFS_GROUP
> #
> ###  -----------------
> ###  -- Links --------
> ###  -----------------
> # Put all the ninaries in /usr/bin
> #  make them part of the "ow" group
> #  and let only their owner and group read or execute them
> OWFS_bin="owfs owhttpd owftpd owserver owread owwrite owpresent owdir"
> for x in $OWFS_bin
>   do
>   ln -sfv /opt/owfs/bin/$x /usr/bin/$x
> done
> #
> ###  -----------------
> ###  -- Rules --------
> ###  -----------------
> cat >/etc/udev/rules.d/46_ds2490.rules << RULES
> BUS=="usb", SYSFS=="04fa", SYSFS=="2490", GROUP="users", MODE="0774", 
> PROGRAM="/bin/sh -c 'K=%k; K=\$\$; printf bus/usb/%%03i/%%03i \$\$ 
> \$\$'", NAME="%c", RUN="/etc/udev/ds2490 '%c'"
> RULES
> #
> ###  -----------------
> ###  -- Shell --------
> ###  -----------------
> cat >/etc/udev/ds2490 << SHELL
> #! /bin/sh -x
>     /sbin/rmmod ds9490r
>     MATCH="no"
>     if [ "\$1" != "" ]; then
>         if [ -f /proc/\$1 ]; then
>             chgrp $OWFS_GROUP /proc/\$1 && \
>             chmod g+rw /proc/\$1 && \
>             logger ow udev: group set to $OWFS_GROUP and permission 
> g+rw on /proc/\$1
>             MATCH="yes"
>         fi
>
>         if [ -e /dev/\$1 ]; then
>             chgrp $OWFS_GROUP /dev/\$1 && \
>             chmod g+rw /dev/\$1 && \
>             logger ow udev: group set to $OWFS_GROUP and permission 
> g+rw on /dev/\$1
>             MATCH="yes"
>         fi
>     fi
>
>     if [ "\$MATCH" = "no" ]; then
>         echo ow udev: no device file found for "\$1"
>         logger ow udev: no device file found for "\$1"
>     fi
> SHELL
>
> ------------------------------------------------------------------------
> Esta mensagem foi verificada pelo E-mail Protegido Terra 
> <http://mail.terra.com.br/>.
> Scan engine: McAfee VirusScan / Atualizado em 01/12/2006 / Versão: 
> 4.4.00/4909
> Proteja o seu e-mail Terra: http://mail.terra.com.br/
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ------------------------------------------------------------------------
>
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>   

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
junkmail@srjava.cjb.net | 2 Dec 2006 19:05

Re: DS2408 LCD - can't get it to work

Any chance to look into the 1-wire LCD functions yet?

-Scott


Paul Alfille wrote:
Hasn't been tested, yet. I have the board but haven't wired it up.

The liveCD is too old to have support for the DS2408 versions.

I think the current order of fixes is
1. Simultaneous
2. directory speed
3. owperl and DS2408 writes
4. LCD

So probably a week or so.

Paul Alfille

On 11/19/06, junkmail <at> srjava.cjb.net <junkmail <at> srjava.cjb.net> wrote:
I seem to be having similar troubles too.  I'm using a hobby-boards driver on a 4x40 LC4857FG-SNYLV  (which is essentially two 2x40 LCD's put onto 1 board and I'm only using one of them ) It just gives me a write error.  Can anyone tell me exactly what that means?  Is it indicative of a wiring problem or a software bug?  [See bottom for OWServer's output]

1) I power on the LCD and all chars are dark boxes ( uninitialized state)
I've then tried both
2a) Writing TEST to LCD_H/message
2b) I've also tried just clearing the screen

in both cases
3) No text shows on LCD.  The top row of chars go blank and bottom row stays same as uninitialized (full dark boxes).

I think my wiring is correct from what I can tell.  Any thoughts?  I'm using the windows build 2.5p6b owserver binary.  If I can get it working, I'm going to try the liveCD and see if I get similar results/issue.
-Scott

Here's the two debug outputs for reference.

/**************************************/
/**** OWHTTPD output   ******/
/**** Call: TEST > message *****/
/**************************************/

   CALL: PreParse line=GET /29.6EA701000000/LCD_H?message=TEST HTTP/1.1

  DEBUG: URL parse file=/29.6EA701000000/LCD_H, request=message, value=TEST
   CALL: WLcmd: GET     file: /29.6EA701000000/LCD_H    request: message        value: TEST     version: HTTP/1.1
   CALL: PARSENAME path=[/29.6EA701000000/LCD_H]
  DEBUG: Get from cache sn 29 6E A7 01 00 00 00 1E in=0x0 index=-1 size=1628461844
  DEBUG: Found in cache
   CALL: PARSENAME path=[/29.6EA701000000/LCD_H/message]
  DEBUG: Get from cache sn 29 6E A7 01 00 00 00 1E in=0x0 index=-1 size=1628461844
  DEBUG: Found in cache
 DETAIL: CHANGEDATA path=/29.6EA701000000/LCD_H/message value=TEST
   CALL: SERVER(0)WRITE path=/29.6EA701000000/LCD_H/message
  DEBUG: ParsedName_destroy /29.6EA701000000/LCD_H/message
   CALL: DIRECTORY path=/29.6EA701000000/LCD_H
   CALL: PARSENAME path=[/29.6EA701000000/LCD_H/clear]


------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Owfs-developers mailing list Owfs-developers <at> lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
chris | 2 Dec 2006 19:38
Picon
Gravatar

Could not open USB adapter.

I'm installing owfs on Mandriva free 2007 and upon trying to start owfs 
/opt/owfs/bin/owfs -u /mnt/owfs

gives:

[root <at> msi bin]# ./owfs -u /mnt/owfs
Could not open the USB adapter. Is there a problem with permissions?
[root <at> msi bin]# ls /mnt/owfs
bus.0/  settings/  statistics/  structure/  system/  uncached/

Which permissions of what should I examine to hopefully resolve this?
I have usbview and the usb interface is viewable but no other usb tools are 
installed to my knowledge.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
Paul Alfille | 2 Dec 2006 20:38
Picon

Re: Could not open USB adapter.

There has been recent spate of interest ion this topic. See http://www.owfs.org/index.php?page=217 for a great writeup by Peter Kropf. The problem is that hardware access by non-root users is a security risk, and so not allowed without explicit permission. Permission is easy for serial ports, which usually have a static device, but dynamically allocated devices, like the USB ports, require a little fancier setup.

I've written a script that automates this -- perhaps it will work on Mandriva.

See http://owfs.cvs.sourceforge.net/*checkout*/owfs/owfs/src/scripts/usb/suse_setup.sh?revision=1.1&content-type=text%2Fplain

basically it allows users in group "ow" (configurable) to access the USB device.

If the script works on Mandriva, please report back.

Paul Alfille

On 12/2/06, chris <chris.lyon <at> spritenote.co.uk > wrote:
I'm installing owfs on Mandriva free 2007 and upon trying to start owfs
/opt/owfs/bin/owfs -u /mnt/owfs

gives:

[root <at> msi bin]# ./owfs -u /mnt/owfs
Could not open the USB adapter. Is there a problem with permissions?
[root <at> msi bin]# ls /mnt/owfs
bus.0/  settings/  statistics/  structure/  system/  uncached/

Which permissions of what should I examine to hopefully resolve this?
I have usbview and the usb interface is viewable but no other usb tools are
installed to my knowledge.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Peter Kropf | 2 Dec 2006 21:04
Picon
Gravatar

Re: Could not open USB adapter.

Also take a look at http://www.owfs.org/index.php?page=permissions and
http://www.owfs.org/index.php?page=hotplug. If you have something
other than hotplug or udev installed, let me know and we'll figure out
how to get things working for you.

- Peter

On 12/2/06, Paul Alfille <paul.alfille <at> gmail.com> wrote:
> There has been recent spate of interest ion this topic. See
> http://www.owfs.org/index.php?page=217 for a great writeup
> by Peter Kropf. The problem is that hardware access by non-root users is a
> security risk, and so not allowed without explicit permission. Permission is
> easy for serial ports, which usually have a static device, but dynamically
> allocated devices, like the USB ports, require a little fancier setup.
>
> I've written a script that automates this -- perhaps it will work on
> Mandriva.
>
> See
> http://owfs.cvs.sourceforge.net/*checkout*/owfs/owfs/src/scripts/usb/suse_setup.sh?revision=1.1&content-type=text%2Fplain
>
> basically it allows users in group "ow" (configurable) to access the USB
> device.
>
> If the script works on Mandriva, please report back.
>
> Paul Alfille
>
>
> On 12/2/06, chris <chris.lyon <at> spritenote.co.uk > wrote:
> > I'm installing owfs on Mandriva free 2007 and upon trying to start owfs
> > /opt/owfs/bin/owfs -u /mnt/owfs
> >
> > gives:
> >
> > [root <at> msi bin]# ./owfs -u /mnt/owfs
> > Could not open the USB adapter. Is there a problem with permissions?
> > [root <at> msi bin]# ls /mnt/owfs
> > bus.0/  settings/  statistics/  structure/  system/
> uncached/
> >
> > Which permissions of what should I examine to hopefully resolve this?
> > I have usbview and the usb interface is viewable but no other usb tools
> are
> > installed to my knowledge.
> >
> >
> -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Owfs-developers mailing list
> > Owfs-developers <at> lists.sourceforge.net
> >
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

Gmane