Sven Geggus | 1 Jun 2007 21:02

owtcl Version Number?

Hi there,

is there a particular reason, why the tcl Interface still has a
Version Number of 0.1?

I would like to see the real Version here to enable my script to
check for the Version Number of owfs.

As 2.6p5 is not possible as a tcl Version Number I would Vote for 2.6

Regards

Sven

--

-- 
How to prevent Java from forking? Use a spoon.
(Found on http://slashdot.org)

/me is giggls <at> ircnet, http://sven.gegg.us/ on the Web

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Sven Geggus | 1 Jun 2007 22:22

owtcl broken in 2.6p5!

While owserver, owhttpd and owfs are working fine owtcl seems to be
broken :(

::OW::put works fine but ::OW::get seems to be broken!

When try to use the following code in owfs 2.6p5:
--cut--
#!/usr/bin/tclsh    
package require ow  
::OW::init localhost:55555
::OW::get /uncached/10.B963D4000800/type
--cut--

I get:

::OW::get returns "Operation not permitted"

Here is the debug output of owserver:

DEBUG: ServerProcessAccept = 3084512176 CLOSING
DEBUG: ServerProcessAccept 55555[3084512176] try lock 0
DEBUG: ServerProcessAccept 55555[3084512176] locked 0
DEBUG: FromClient payload=31 size=0 type=6 tempscale=105 offset=0
 CALL: owserver: parse path=/uncached/10.B963D4000800/type
DEBUG: FS_OWQ_create of /uncached/10.B963D4000800/type
 CALL: PARSENAME path=[/uncached/10.B963D4000800/type]
DEBUG: Cache_Get_Device 10 B9 63 D4 00 08 00 4C
DEBUG: Get from cache sn 10 B9 63 D4 00 08 00 4C pointer=(nil) index=-1 size=4
DEBUG: value not found in cache
 DETAIL: Checking presence of /uncached/10.B963D4000800/type
(Continue reading)

Serg Oskin | 1 Jun 2007 22:22
Picon

Re: owtcl Version Number?

Version owtcl != version owfs (owlib)

$ tclsh
% package require ow
0.1
% ::OW::version
owtcl:  0.1
libow:  2.6p5
%

Serg

Sven Geggus wrote:
> Hi there,
> 
> is there a particular reason, why the tcl Interface still has a
> Version Number of 0.1?
> 
> I would like to see the real Version here to enable my script to
> check for the Version Number of owfs.
> 
> As 2.6p5 is not possible as a tcl Version Number I would Vote for 2.6
> 
> Regards
> 
> Sven
> 

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
(Continue reading)

Sven Geggus | 1 Jun 2007 22:30

Re: owtcl Version Number?

Serg Oskin <oskin <at> macomnet.ru> wrote:

> $ tclsh
> % package require ow
> 0.1
> % ::OW::version
> owtcl:  0.1
> libow:  2.6p5
> %

Ah OK!

Sven

--

-- 
"We don't know the OS that God uses, but the Vatican uses Linux"
                               (Sister Judith Zoebelein, Vatican Webmaster)

/me is giggls <at> ircnet, http://sven.gegg.us/ on the Web

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Jan Kandziora | 2 Jun 2007 09:41
Picon
Picon

Re: owtcl broken in 2.6p5!

Am Freitag, 1. Juni 2007 22:22 schrieb Sven Geggus:
> While owserver, owhttpd and owfs are working fine owtcl seems to be
> broken :(
>
> ::OW::put works fine but ::OW::get seems to be broken!
>
> When try to use the following code in owfs 2.6p5:
> --cut--
> #!/usr/bin/tclsh
> package require ow
>
> ::OW::init localhost:55555
> ::OW::get /uncached/10.B963D4000800/type
>
> --cut--
>
> I get:
> ::OW::get returns "Operation not permitted"
>
Try inserting "::OW::get uncached" inbetween. Does it work now?

Kind regards

	Jan
--

-- 
Neue Erfindungsbäume für Civilisation:
    Internet
      | |
Cola--+ +--Tiefkühlpizza

(Continue reading)

Sven Geggus | 2 Jun 2007 10:43

Re: owtcl broken in 2.6p5!

Jan Kandziora <jjj <at> gmx.de> wrote:

> Try inserting "::OW::get uncached" inbetween. Does it work now?

Same Problem :(

Sven

--

-- 
This golden age of communication Means everyone talks at the same time
(Lyrics of "New Model Army" song "225")

/me is giggls <at> ircnet, http://sven.gegg.us/ on the Web

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Sven Geggus | 2 Jun 2007 14:02

(C) API question

Hi there,

my last posting I assumed this to be a bug of owtcl, but its not!

Presumably I have just got some misunderstanding of the API.

Anyway, this did work with some older Version of owfs!

So, whats wrong with this piece of code:

--cut--
int main() {
  char *s;
  size_t n;

  if(OW_init("localhost:55555") !=0) exit(1);;

  OW_get("/10.B963D4000800/type",&s,&n);
  printf("%d\n",n);
  if (n >0) printf("%s\n",s);

  OW_finish();
  exit(EXIT_SUCCESS);
}
--cut--

BTW, it works just fine, when I replace "/10.B963D4000800/type" by
"/10.B963D4000800" only.

Sven
(Continue reading)

Paul Alfille | 2 Jun 2007 14:45
Picon

Re: (C) API question

Sounds like a bug in owcapi -- I'll check.

Paul Alfille

On 6/2/07, Sven Geggus <sven <at> geggus.net> wrote:
Hi there,

my last posting I assumed this to be a bug of owtcl, but its not!

Presumably I have just got some misunderstanding of the API.

Anyway, this did work with some older Version of owfs!

So, whats wrong with this piece of code:

--cut--
int main() {
  char *s;
  size_t n;

  if(OW_init("localhost:55555") !=0) exit(1);;

  OW_get("/10.B963D4000800/type",&s,&n);
  printf("%d\n",n);
  if (n >0) printf("%s\n",s);

  OW_finish();
  exit(EXIT_SUCCESS);
}
--cut--

BTW, it works just fine, when I replace "/10.B963D4000800/type" by
"/10.B963D4000800" only.

Sven

--
/* Fuck me gently with a chainsaw... */
(David S. Miller in /usr/src/linux/arch/sparc/kernel/ptrace.c)

/me is giggls <at> ircnet, http://sven.gegg.us/ on the Web

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Owfs-developers mailing list
Owfs-developers <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers
Sven Geggus | 2 Jun 2007 22:36

Re: (C) API question

Paul Alfille <paul.alfille <at> gmail.com> wrote:

> Sounds like a bug in owcapi -- I'll check.

downgrading to 2.5p10 did fix this for me, if this helps.

My C-code as well as my TCL-code is working fine using this Version.

Sven

--

-- 
"If you continue running Windows, your system may become unstable."
(Windows 95 BSOD)

/me is giggls <at> ircnet, http://sven.gegg.us/ on the Web

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
Carsten Günther | 3 Jun 2007 09:38

DS2423 - Data Error on lates releases

Hi everyone,

first post here - thanks for this great package.

id just like to feedback, that the readout of data on DS2423/Counters is 
somewhat broken. I got errors (iirc) like Bad character (as mentioned 
before in this list) or so for readout on the counters.

however, i tried the release pl1 on the current branch which works as 
expected. i did not look into the code, just wanna let you know. maybe 
someone can have a look into it.

just FYI.

best regadrs
carsten

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

Gmane