On Mon, Dec 20, 2010 at 9:46 PM, brucek <bru...@valinet.com> wrote: > Is it possible to create a virtual 1wire device. I have a wrt54g running > OpenWRT with a HA7S adaptor, and I would like to control it’s LEDs over > owserver so I can give it a visual heartbeat that shows when it’s 1wire > network is being accessed. > > Currently I can do something like: > echo 1 > /proc/diag/led/ses_white; > echo 0 > /proc/diag/led/ses_orange > sleep 2; > echo 0 > /proc/diag/led/ses_white; > echo 1 > /proc/diag/led/ses_orange; > > Is there some way to link them to the PIO’s of a virtual device. > Then the owserver on my slug can “ping” my wrt54g by accessing the device. >
The "virtual" device is an interesting idea. Some issues with security (we don't currently let the 1-wire system effect other hardware or run other programs). I'd envision this as a special "owjob" that looks like owserver, but responds only to a directory with properties linked to arbitrary programs. The programs and property names could be user-configurable. Perhaps a better name than owjob can be suggested. So you run owjob -p 3333 "LED wo integer /proc/diag/led/ses_switch" owserver -s 3333 -u And in addition to the full content of the USB bus, there is a directory "job" with entry LED that is write-only integer. > Next question: running 2.8p4 on a nslu2 running debian, and 2.7p21 on a > wrt54g running OpenWrt backfire. Both devices need to share 1wire devices. > Do I care? Probably should be fine. The program might be confused in the few cases where the slave property definitions have changed. The owserver protocol is completely backwards compatible. Paul Alfille ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers