Hi All.

I have built an application that uses the Matchbox component. I wanted to try it on TOSSIM to make sure it works the way I wants it first. But I've been having a lot of trouble in getting it to work.

I have looked at the Matchbox document, the files in apps/TestMatchbox, looked through the TinyDB implementation (DBBuffer, which has Matchbox), and searched through all the tinyos-help postings, but haven't found anything. I have exhausted all of my resources.

Issues:
1) Compiling to the pc binary generates tons of warning about 'shadowed declaration'. What is that and how does that change the way the program works?
2) When I call "FileWrite.open("testFile1", FS_FCREATE | FS_FTRUNCATE)", it returns SUCCESS. But the opened() event is never signaled. And when I try to append or close with FileWrite.close(), it returns a FAIL. How come the opened/closed events are not being called?
3) Is the basic sequence of operations just open, append, and close? Is there anything else that I need to call? Or wait for the events to be signaled?



I have wired my components as follows: Main.StdControl -> Matchbox; Matchbox.ready -> CP_AODVM.matchboxReady; CP_AODVM.FileWrite -> Matchbox.FileWrite[unique("FileWrite")]; Matchbox.Debug -> NoDebug;


And I have declared all the events (opened, closed, appended, synced) to return SUCCESS for the time bring.


Please, if anyone could provide any help, I would greatly appreciate it. Thanks!!


I-Hsuan

_______________________________________________
Tinyos-users mailing list
[EMAIL PROTECTED]
http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users

Reply via email to