[Owfs-developers] Re: User access to the 1-wire bus
Today I finally got a couple of USB 1-wire dongles so naturally this evening I'm installing the latest owfs. :-) I followed Peter Kropf's advice for the hot plug script: #!/bin/bash # # setup a usb 1-wire controller to allow access from users in # the owfs group. GROUP=owfs if [ "$ACTION" = "add" ] && [ -f "$DEVICE" ] then # check if $GROUP really exists if getent group $GROUP > /dev/null; then chmod 660 "$DEVICE" chown root.$GROUP "$DEVICE" fi # remove the kernel driver so that we can control it from user # land if /sbin/lsmod | grep ds9490r > /dev/null 2>&1; then /sbin/rmmod ds9490r fi fi and indeed the /proc entry has group owfs after that. But I don't understand why you want the rmmod? It seems to work just as well if I comment out those lines and leave the module loaded. This also does not change the permission of the mounted fuse filesystem. How do I do that? I would like to have group rw permission for /mnt/ow0 but right now only root can do anything, even though the permissions look like this: drwxr-xr-x 3 root root 1 Jul 12 22:35 /mnt/ow0 I have a little experience with scripts for hot-plugging network-like interfaces, for example when I plug in my Zaurus to the USB cradle, the network interface usb0 is created by the usblan module and then /etc/init.d/net.usb0 is called to configure it; but net.usb0 is a generic network config script which gets the configuration info from /etc/conf.d/net. So I imagine we can do something similar for owfs - there can be an /etc/init.d/ow.usb0 which takes care of mounting /mnt/ow0 and starting owhttpd etc., with a conf file elsewhere to disable some of the services if necessary. Is anybody working on a Gentoo ebuild yet? --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
Re: [Owfs-developers] Adding another means of accessing devices (ie not serial, USB, etc)...
G'Day, > And the search algorithm: > http://www.maxim-ix.com/appnots.cfm/appnote_number/187 Thanks to this document, I was able to eventually sort out the problem. There were lots of small differences here and there between the way the serial device works, and the way the OMAP bus works; these were the cause of much of the trouble. I also had to make my driver more intelligent, as it needs to work differently when an Search ROM command has been issued compared to normal. There also seemed to be aspects of the DS9097 driver that differed from the algorithm somewhat, but that was probably because of the way the adaptor works. I now have the basics working, but have not been able to test all the functions yet. There are also a few functions I am still not sure of the use of, and as such they may need to be rewritten a little. All-in-all, it is almost complete: I would just like to say what I have so far, so as to verify that I am doing what is expected. OMAP_detect: almost identical to the serial device, it does a little setting up, then resets the bus. OMAP_setroutines: simply assigns the functions that would be called by external routines; no overdrive functions provided. OMAP_write: one I am not sure of. It splits the write buffer up into bits, and calls OMAP_send_and_get(). Do they really have to be sent as individual bits, or can I just leave them as bytes and send it all together? OMAP_read: effectively the same as OMAP_write(), only reading. Again, should I really be expecting bits, or can I assume byte returns? OMAP_reset: sends a reset pulse, and verifies there are devices present. OMAP_next_both: the Search ROM routine. Sends a Search ROM command, reads two bits, writes a bit, and continues until either an error or it is complete. Checks the serial at the end. OMAP_level: does not seem to do much of anything; more or less copied from the serial adaptor. OMAP_PowerByte: sounds fancy, but I cannot work out the purpose of it. Calls OMAP_send_data(), switches level, waits, then calls OMAP_level(). OMAP_ProgramPulse: does not do anything right now; neither the DS9097 nor DS9490 seem to support it. OMAP_sendback_data: seems to be OMAP_write() and OMAP_read() combined; as with the other two, is it really necessary to do this in bits, or can I assume bytes? OMAP_select: seems to be a Match ROM command; currently taken almost directly from the DS9097. If if is Match ROM, I may need to make a few, small, changes. I guess pn->sn is the serial number, and pn->dev has something to do with devices, but am not positive. OMAP_send_data(): fairly similar to BUS_send_data(). It calls OMAP_sendback_data, and checks that it received back the same data it sent. I am guessing there is some kind of device that requires this. OMAP_readin_data(): replacement for BUS_readin_data(), it is basically a front to OMAP_sendback_data, but does a memset() in the first argument rather than a variable; not sure of the purpose yet. OMAP_send_and_get(): replaces BUS_send_and_get(), and seems to work fine. If there's anything to send, it does; if there's anything to read, it does. If there is anything there I am wrong about, of if anyone can answer any of the questions, I would really appreciate it. -- Matthew --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
[Owfs-developers] Solaris updates
I have checked in the changes now... I have tried it a couple of times on both Solaris and Linux x86 and I don't think I have broken anything at least. Please check it and tell me if it doesn't compile for you. /Christian On Tue, 2005-07-12 at 15:23, Paul Alfille wrote: > Nice work. > > Wish we could find someone to test a Mac OS X system. > > Paul > > On Tuesday 12 July 2005 09:18 am, Christian Magnusson wrote: > > I succeeded to compile owhttpd and owserver for Solaris 7 now. It seems > > to work, but I haven't tried to use any adapter yet... just running > > to the serial port which is detected as a bad adapter. > > > > Have added some compatibility source-files to owlib, and you can have > > a look at it and tell me if you have any ideas of changes to make it > > cleaner. Will check in all changes as soon as I can here. > > > > /Christian > > > > On Tue, 2005-07-12 at 09:57, Christian Magnusson wrote: > > > On Mon, 2005-07-11 at 19:24 +0200, Krzysztof wrote: > > > > Christian Magnusson wrote: > > > > > There were no dependencies to libpthread when compiling libow.so, > > > > > so OW.so loaded libow.so and didn't understand to use libpthread.so > > > > > too. > > > > > > > > > > I have updated some of the makefiles and configure.ac to fix the > > > > > problem (I hope). I guess this fix only was needed for older libc. > > > > > > > > YES! Now it works like a charm :-) > > > > thank you! > > > > > > I just tried to compile owhttpd for Solaris 7, and I just wanted to > > > tell you that I'm updating configure.ac again to get correct compilation > > > flags... especially for pthread. The changes will be somewhat better and > > > will work for more platforms in a while. > > > > > > /Christian > > > > > > > > > > > > > > > --- > > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > > latest in dual core and dual graphics technology at this free one hour > > > event hosted by HP, AMD, and NVIDIA. To register visit > > > http://www.hp.com/go/dualwebinar > > > ___ > > > Owfs-developers mailing list > > > Owfs-developers@lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > > --- > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest > > in dual core and dual graphics technology at this free one hour event > > hosted by HP, AMD, and NVIDIA. To register visit > > http://www.hp.com/go/dualwebinar > > ___ > > Owfs-developers mailing list > > Owfs-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > --- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > ___ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
Re: [Owfs-developers] What is wrong with my owperl ?
Nice work. Wish we could find someone to test a Mac OS X system. Paul On Tuesday 12 July 2005 09:18 am, Christian Magnusson wrote: > I succeeded to compile owhttpd and owserver for Solaris 7 now. It seems > to work, but I haven't tried to use any adapter yet... just running > to the serial port which is detected as a bad adapter. > > Have added some compatibility source-files to owlib, and you can have > a look at it and tell me if you have any ideas of changes to make it > cleaner. Will check in all changes as soon as I can here. > > /Christian > > On Tue, 2005-07-12 at 09:57, Christian Magnusson wrote: > > On Mon, 2005-07-11 at 19:24 +0200, Krzysztof wrote: > > > Christian Magnusson wrote: > > > > There were no dependencies to libpthread when compiling libow.so, > > > > so OW.so loaded libow.so and didn't understand to use libpthread.so > > > > too. > > > > > > > > I have updated some of the makefiles and configure.ac to fix the > > > > problem (I hope). I guess this fix only was needed for older libc. > > > > > > YES! Now it works like a charm :-) > > > thank you! > > > > I just tried to compile owhttpd for Solaris 7, and I just wanted to > > tell you that I'm updating configure.ac again to get correct compilation > > flags... especially for pthread. The changes will be somewhat better and > > will work for more platforms in a while. > > > > /Christian > > > > > > > > > > --- > > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > > happening July 14 at 8am PDT/11am EDT. We invite you to explore the > > latest in dual core and dual graphics technology at this free one hour > > event hosted by HP, AMD, and NVIDIA. To register visit > > http://www.hp.com/go/dualwebinar > > ___ > > Owfs-developers mailing list > > Owfs-developers@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > --- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar > happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest > in dual core and dual graphics technology at this free one hour event > hosted by HP, AMD, and NVIDIA. To register visit > http://www.hp.com/go/dualwebinar > ___ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
Re: [Owfs-developers] What is wrong with my owperl ?
I succeeded to compile owhttpd and owserver for Solaris 7 now. It seems to work, but I haven't tried to use any adapter yet... just running to the serial port which is detected as a bad adapter. Have added some compatibility source-files to owlib, and you can have a look at it and tell me if you have any ideas of changes to make it cleaner. Will check in all changes as soon as I can here. /Christian On Tue, 2005-07-12 at 09:57, Christian Magnusson wrote: > > On Mon, 2005-07-11 at 19:24 +0200, Krzysztof wrote: > > Christian Magnusson wrote: > > > There were no dependencies to libpthread when compiling libow.so, > > > so OW.so loaded libow.so and didn't understand to use libpthread.so > > > too. > > > > > > I have updated some of the makefiles and configure.ac to fix the > > > problem (I hope). I guess this fix only was needed for older libc. > > > > YES! Now it works like a charm :-) > > thank you! > > > > > I just tried to compile owhttpd for Solaris 7, and I just wanted to > tell you that I'm updating configure.ac again to get correct compilation > flags... especially for pthread. The changes will be somewhat better and > will work for more platforms in a while. > > /Christian > > > > > --- > This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening > July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual > core and dual graphics technology at this free one hour event hosted by HP, > AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar > ___ > Owfs-developers mailing list > Owfs-developers@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/owfs-developers --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers
Re: [Owfs-developers] What is wrong with my owperl ?
On Mon, 2005-07-11 at 19:24 +0200, Krzysztof wrote: > Christian Magnusson wrote: > > There were no dependencies to libpthread when compiling libow.so, > > so OW.so loaded libow.so and didn't understand to use libpthread.so > > too. > > > > I have updated some of the makefiles and configure.ac to fix the > > problem (I hope). I guess this fix only was needed for older libc. > > YES! Now it works like a charm :-) > thank you! > I just tried to compile owhttpd for Solaris 7, and I just wanted to tell you that I'm updating configure.ac again to get correct compilation flags... especially for pthread. The changes will be somewhat better and will work for more platforms in a while. /Christian --- This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual core and dual graphics technology at this free one hour event hosted by HP, AMD, and NVIDIA. To register visit http://www.hp.com/go/dualwebinar ___ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers