The Fire Test Event doesen’t work coz the method always return null.

So I’m trying to put in order the method with the right classes.

If you open the source code in CommandMsgs.java I’ll see that the fireEvent
method is all commented without the return null.

So you’ve to uncomment:

-fireEvent method

-setEventName method

and then generate with the mig the EventMessage.java class, to do this
modify the MakeInclude adding:

$(MIG) $(INCLUDES) -java-classname=$(PACKAGE).EventMsg
$(TOS)/../apps/TinyDBApp/TinyDBApp.nc EventMsg -o $@

and adding EventMsg.java in the target:

all: message util sf sim QueryResultMsg.java QueryMsg.java UartMsg.java
CommandMsg.java EventMsg.java StatusMsg.java MultiHopMsg.java
NetworkMsg.java aparser $(JAVA) $(CLASSES)

clean:
        rm -f QueryMsg.java QueryResultMsg.java UartMsg.java CommandMsg.java
StatusMsg.java MultiHopMsg.java NetworkMsg.java
...
...

Also add the include, in the INCLUDES variable:
$(TOS)/lib/Events

Now the problem is that if you click the Fire Test Event, my tossim node
simulation side has a segmentaion Fault.

Anybody knows the problem?











> I have mica2 motes from Crossbow. I am trying to run simple queries on
> tinydb with the tinyos1.1 version.
>
> The queries don't seem to propogate to the motes from the base.
>
> Also, 'Reset motes' and 'Sounder On' are working from the GUI. But, the
> 'Fire Test Event' throws a java.lang.NullPointerException.
>
> Any ideas would be helpful.
>
>
>
> Thanks,
>
> Sunil
>
>
>
>
>
> _______________________________________________
> Tinyos-help mailing list
> Tinyos-help@Millennium.Berkeley.EDU
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help


-- 
Roberto Pietrangeli
---------------------------------------------
EDALab - Networked Embedded Systems
C.S. Dept - University of Verona - IT
---------------------------------------------
email: [EMAIL PROTECTED]
tel. : +39 045 802 70 62
fax : +39 045 802 70 68
web: www.edalab.net

_______________________________________________
Tinyos-help mailing list
Tinyos-help@Millennium.Berkeley.EDU
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to