On 10/14/2010 11:20 AM, Gregg Levine wrote:
Hello!
Actually you're heading the right direction completly. Why not post
someplace your build steps. Such as how you created that run of
"OpenWrt trunk r23070", and then the methods to compile it. Finally
how you installed onto your router. Also was the router properly
reinitialized after the whole steps.
Well... I thought all this could be "too-much unrelated/bloating" but if
you wish so...
In short:
- I did a fresh svn checkout of OpenWrt (svn co
svn://svn.openwrt.org/trunk) few weeks ago - the revision atht he time
was 23070
- the whole openwrt is compiled using binutils 2.19.1 and gcc 4.3.3
(with CodeSourcery enhancements)
- after the build phase completed the generated flash image was written
to the router by tftp (from CFE)
- the router as such is working just fine with the built OpenWrt,
network, web, wireless... all is working OK
- after attaching the "one-wire hardware" (actually just a DS18S20
hooked to a free gpio pin (gpio 7, tp1 on the board) and a pull-up
resistor of 3K3 ohms. The DS18S20 is directly powered (not using
parasitic power)
- I installed the one-wire related kernel modules (and owfs) software
(as I listed in the original mail)
- for all tests the platform was "freshly" rebooted
Also did you test the One-Wire hardware elsewhere first? Then on the
router, and finally back again. List what happened when you tried to
use the One-Wire hardware to sense room temperature via your Linux
system.
As I mentioned in my email, I can use/read the W1-slave (the ds18s20)
using the kernel supplied drivers - the w1-slave-thermal driver.
The w1 subsystem (gpio master, communication, ds18s20 slave) is working
correctly.
I can read the temperature from the sensor by reading the
/sys/bus/w1/devices/10-<id>/w1_slave virtual file (provided by the
w1-slave-thermal driver)
So, to respond to your question, I did not (just yet) tested the
"w1-hardware" elsewhere as the "hardware" is actually working!
And, using the one-wire HW from the openwrt system loaded on the
wgt634u, *works* if using the kernel w1 slave driver for thermal sensors.
doing a *cat /sys/bus/w1/devices/10-00080198f8e6/w1_slave* I get:
31 00 4b 46 ff ff 08 10 95 : crc=95 YES
31 00 4b 46 ff ff 08 10 95 t=24250
which is the temperature the sensor reads (24,25° C)
Also list what distribution you used for that.
As mentioned, the distribution used is OpenWrt with kernel 2.6.34.5,
owfs 2.8p2, gcc+cs 4.3.3
As far as I can tell there is some sort of "problem" with the netlink
communication between the owfs library and the kernel w1 driver
Kind regardsm
M.Culibrk
And no you did not bother us.
-----
Gregg C Levine [email protected]
"This signature fought the Time Wars, time and again."
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers