Re: [Owfs-developers] Error trap works great on NSLU2 with owfs

2007-08-25 Thread Christian Magnusson
Beta-packages of freetype, ghostscript, gsfonts, imagemagick for openwrt (whiterussian RC5 or 0.9) are available at: http://owfs.sourceforge.net/openwrt/packages/ Note that they are BIG and installed at path /opt which you probably want to

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Gregg Levine
On 8/25/07, Paul Alfille <[EMAIL PROTECTED]> wrote: > Hello Vladamir, > > Let me understand your setup better: > 1. You have 2 serial ports, each with 5V operation. > 2. You have a DS2480B adapter -- it's unclear whether you've wired it > yourself or are using the DS9097U externally. > 3. Your seri

Re: [Owfs-developers] Error trap works great on NSLU2 with owfs

2007-08-25 Thread Christian Magnusson
Beta-packages of freetype, ghostscript, gsfonts, imagemagick for openwrt (whiterussian RC5 or 0.9) are available at: http://owfs.sourceforge.net/openwrt/packages/ Note that they are BIG and installed at path /opt which you probably want to redirect to a USB memory-stick like: # mkdir /mnt/

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Christian Magnusson
> > midge# owfs --error_level 9 -d /dev/ttyS1 > DEFAULT: Not a "character" device /dev/ttyS1 > DEBUG: owfs: ow_exit(0) > midge# > > midge# ls -la ttyS* > crw---1 root root 4, 64 Jan 1 1970 ttyS > crw-r--r--1 root root 4, 64 Jan 1 2000 ttyS0 > crw-r--r--

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Paul Alfille
Hello Vladamir, Let me understand your setup better: 1. You have 2 serial ports, each with 5V operation. 2. You have a DS2480B adapter -- it's unclear whether you've wired it yourself or are using the DS9097U externally. 3. Your serial port works with other tests (was it a client with hypertermina

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Paul Alfille
Actually, you are giving an excellent illustration of the obscure code in that part. I was going through and had the same thought process -- am trying to clean it up a bit. Paul On 8/25/07, Christian Magnusson <[EMAIL PROTECTED]> wrote: > > > > I guess I'm too tired… I noticed in->Adapter was set

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Christian Magnusson
I guess I'm too tired. I noticed in->Adapter was set in DS2480_reset() pn->in->Adapter = (buf & RB_CHIPID_MASK) >> 2; and I guess you can ignore my two last posts. dohhh. /Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Christian Magnusson Sent

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Christian Magnusson
I mean, the switch-statement in DS2480_detect(), will always return -ENODEV since in->Adapter will never be adapter_DS9097U or adapter_DS9097U2 . switch (in->Adapter) { case adapter_DS9097U2: case adapter_DS9097U: in->ad

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Christian Magnusson
I found another bug I think. The passive adapter adapter_DS9097U is NEVER set or used. Seems to be a bug in ow_opt.c or owlib.c where it first tries DS2480_detect() and then DS9097_detect() without changing in->Adapter. [EMAIL PROTECTED] owfs]# grep adapter_DS9097 module/owlib/src/c/*.c module

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Paul Alfille
On 8/25/07, Christian Magnusson <[EMAIL PROTECTED]> wrote: > > > > In /usr/include/linux/stat.h I have these defines…. > > #define S_IFCHR 002 > > #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) > > > > The macro is called S_ISCHR(), so I don't think there are anything wrong > in the sourc

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Christian Magnusson
In /usr/include/linux/stat.h I have these defines.. #define S_IFCHR 002 #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) The macro is called S_ISCHR(), so I don't think there are anything wrong in the source.. Or? /Christian From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

Re: [Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Paul Alfille
On 8/25/07, Vladimir Loula ml. <[EMAIL PROTECTED]> wrote: > > Hi, > i have problem with OWFS in router edimax BR6104KP. I install midge from > http://www.sunspot.co.uk/Projects/SWEEX/latest_distro.html . Next i > install OWFS. When i run this : > > owfs --erorr_level 9 -d /dev/ttyS1 > > return this

[Owfs-developers] Problem with BR6104KP and OWFS

2007-08-25 Thread Vladimir Loula ml.
Hi, i have problem with OWFS in router edimax BR6104KP. I install midge from http://www.sunspot.co.uk/Projects/SWEEX/latest_distro.html . Next i install OWFS. When i run this : owfs --erorr_level 9 -d /dev/ttyS1 return this : midge# owfs --error_level 9 -d /dev/ttyS1 DEFAULT: Not a "character"