[Tinyos-help] BlackBook File System, BFileWrite interface
Mayur Maheshwari
mayur.maheshwari at gmail.com
Thu Apr 19 13:50:17 PDT 2007
Hi David
I had a chance to test the BBFS on my telosb mote running TOS2 and I ran a
small app to use BFileWrite and BFileRead interfaces and they worked as
expected.
However, while bulding up an advanced application I required to know the
name of the file whenever I opened one (with BFileWrite or BFileRead) and I
found that the comments and the actual implementation are inconsistent.
For eg. in the interface BFileWrite
http://tinyos.cvs.sourceforge.net/tinyos/tinyos-2.x-contrib/rincon/tos/lib/blackbook/interfaces/BFileWrite.nc?view=markup
starting
line 94:
/ * Signaled when a file has been opened, with the errors
* @param fileName - the name of the opened write file
* @param len - The total reserved length of the file
* @param error - SUCCSES if the file was opened successfully
*/
event void opened(uint32_t len, error_t error);
The parameter fileName is absent from the event implementation. For
cross-checking I saw the BFileWriteP.nc in \opt\tinyos-
2.x-contrib\rincon\tos\lib\blackbook\core and found that the fileName is not
present in the actual implementation too. The same situation is present with
the events like appended, saved, closed.
Is it possible to include the fileName parameter when these events signal.
This would enable us to handle multiple opened files.egards
Regards
--
Mayur Maheshwari(mayur.maheshwari at ieee.org)
"Karmanye Vadhikaraste Ma Phaleshu Kadachana,
Ma Karma Phala Hetur Bhurmatey Sangostva Akarmani"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070420/655660f6/attachment.html
More information about the Tinyos-help
mailing list