Hi all,
i have already written a post about it (thanks Michael for your answers)

i have made two example wizards using oscilloscope and oscilloscopeRF (so they 
may be correct :) )

oscilloscopeRF uses GenericComm, oscilloscope uses UARTComm, instead;
if i execute the application oscilloscope everything is right, but if i execute 
the application with oscilloscopeRf the output is like this:



2: RFM: Mote 2 got bit 0
2: Popping event for mote 2 with time 0:0:3.30683225.
2: Setting TOS_LOCAL_ADDRESS to 2
2: RADIO: Channel Mon event handled for mote 2 at 0:0:3.30683225 with interval o
f 200.
2: RFM: Mote 2 got bit 0
2: Popping event for mote 2 with time 0:0:3.30688225.
2: Setting TOS_LOCAL_ADDRESS to 2
2: RADIO: Channel Mon event handled for mote 2 at 0:0:3.30688225 with interval o
f 200.
2: RFM: Mote 2 got bit 0
2: Popping event for mote 2 with time 0:0:3.30693225.
2: Setting TOS_LOCAL_ADDRESS to 2
2: RADIO: Channel Mon event handled for mote 2 at 0:0:3.30693225 with interval o
f 200.
2: RFM: Mote 2 got bit 0
2: Popping event for mote 2 with time 0:0:3.30698225.
2: Setting TOS_LOCAL_ADDRESS to 2
2: RADIO: Channel Mon event handled for mote 2 at 0:0:3.30698225 with interval o
f 200.


etc etc.

If i put (in oscilloscopeRF.nc) UARTComm as Comm instead of GenericComm as Comm 
everything works again....
may it be my pc does'nt work????i think examples are correct :)

another question:

i have written a little script in tython, that may catch SendMsg.sendDone

----------------------------------------------------------------------------------------------------------
from simcore import *
from net.tinyos.sim.event import UARTMsgSentEvent

sim.resume()

def printR(event): 
   print event


interp.addEventHandler(printR,UARTMsgSentEvent)

------------------------------------------------------------------------------------------------------------

i think it doesn't interact with TOSSIM, because using oscilloscope (so with 
the line UARTComm as Comm),when event SendMsg.sendDone is thrown the TOSSIM 
program prints the correct debug message, but in tython console it doesn't 
print the event...what may it be?it looks strange...

thanks
Antonio

       
---------------------------------

---------------------------------
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to