[Tinyos-help] ConfigStorageC help
Dimas Abreu Dutra
d1ma5 at yahoo.com
Tue Jan 23 08:00:55 PST 2007
David,
I did the tests and they worked out OK. The green led turned on. While debugging to find out what was going on my application, I discovered that if I changed the size of the volume I was using to store the configuration on the following happend:
256B - The application crashed during the erasure of the log Storage Volume I was using. The program does not respond
512B - I can write to the config storage with success but after the commit it does not return true on the valid() command.
4096B or more - I get a true return on the valid() command even if it is not valid but cannot get success on the commit() command
I think that maybe these results are because I am using a LogStorage and ConfigStorage interfaces on the same program. Does that make any sense? I will do some tests later and try to trace the error source.
~Dimas~
David Gay <dgay42 at gmail.com> escreveu: On 1/15/07, Dimas Abreu Dutra wrote:
>
> Hello,
>
> I'm having a problem with the ConfigStorageC module in a mica2 mote using
> T2. I create the volumes, do the writes and get success in every error_t
> returned, do a successful commit but don't get a true in "call
> ConfigStorage.valid()" the next time I restart the mote.
>
> Does anybody have a clue about what that may be? I tried the
> ConfigStorage.getSize() command but that returned 250 bytes and I only use
> 8.
Does the ConfigStorage test app work for you? It's in
apps/tests/storage/Config. You probably want to try the following:
make mica2 install.15 # do a basic test
# wait for the green led on the mica2 (red means test failed)
make mica2 reinstall.115 # reboot and check you can read the previous results
# wait for the green led on the mica2 (red means test failed)
(see the README.txt for more details)
David Gay
__________________________________________________
Fale com seus amigos de graça com o novo Yahoo! Messenger
http://br.messenger.yahoo.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070123/0dcf6dd0/attachment-0001.html
More information about the Tinyos-help
mailing list