Hello,
I'm attaching a patch for the problem described in previous emails. Do you
think it could be taken into the next release of OWFS?
Index: owfs-3.0p2/module/owlib/src/c/ow_2430.c
===================================================================
--- owfs-3.0p2.orig/module/owlib/src/c/ow_2430.c 2015-01-11
02:31:32.000000000 +0100
+++ owfs-3.0p2/module/owlib/src/c/ow_2430.c 2015-05-21 17:27:30.120739540
+0200
@@ -96,6 +96,7 @@
/* DS2430A memory */
static ZERO_OR_ERROR FS_r_application(struct one_wire_query *owq)
{
+ OWQ_length(owq) = OWQ_size(owq) ;
return GB_to_Z_OR_E(OW_r_app((BYTE *) OWQ_buffer(owq), OWQ_size(owq),
(size_t) OWQ_offset(owq), PN(owq))) ;
}
Best regards,
Martin
From: Rapavy Martin
Sent: Tuesday, May 19, 2015 4:01 PM
To: OWFS (One-wire file system) discussion and help
Subject: RE: [Owfs-developers] DS2430A: application register in the uncached
branch
I'm attaching log files, if anybody else is interested:
1. Reading from the uncached branch of the folder structure (which causes
the issue described in the email below)
* app_strace_uncached.log
* owfs_3.0p2_uncached_DS2430A_application_register_empty.log
2. Reading from the normal/cached branch of the folder structure (which
works OK)
* app_strace.log
* owfs_3.0p2_DS2430A_application_register.log
Best regards,
Martin
From: Rapavy Martin
Sent: Tuesday, April 21, 2015 9:53 AM
To: OWFS (One-wire file system) discussion and help
Subject: [Owfs-developers] DS2430A: application register in the uncached branch
Hello,
I discovered an issue with the DS2430A (family code == 0x14) when reading an
'application' file from 'uncached' branch of the OWFS filesystem. When reading
from 'non-uncached', the file contains contents of device application register.
However when reading from 'uncached' branch, the application file becomes
immidiatelly empty and even further reads from 'non-uncached' branch return
empty file until the restart of owfs. Here's what I did:
# hexdump /var/1wire/14.A642F4030000/application
0000000 0013 282a 799c 033d
0000008
# hexdump /var/1wire/uncached/14.A642F4030000/application
# hexdump /var/1wire/14.A642F4030000/application
# /etc/init.d/owfs restart
Restarting OWFS: owfs.
root@EvalBoard:~# hexdump /var/1wire/14.A642F4030000/application
0000000 0013 282a 799c 033d
0000008
I'm using version 3.0p2.
Best regads,
Martin
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers