Hi Roberto, Sorry, for not replying earlier. It is hard to read the PHY_RSSi register when the radio is also working. The sampling rate cannot be very even. I would suggest you to do the reading from a task. Look the the MessageBufferLayer to see how you can disable the running of tasklets from within a task. So you have to do:
1) disable tasklets with the Tasklet interface 2) get the SPI with immediate request (most likely you will get it) 3) read the register and record the time, record it in a buffer 4) reenable tasklets, and repost this same task Hope you can make it work. Best, Miklos On Mon, Sep 5, 2011 at 5:47 PM, robfermar <[email protected]> wrote: > Dear Miklos, > > To begin with I would like to apologize if write directly to your email is a > problem. Secondly I would like to make some questions. > > I am working with some nodes iris under tinyos. I have seen that you have > worked with these kinds of things, so maybe you can help me a little. > > I would like to read the register 0x06 (PHY_RSSI) constantly. I have tried > all the test and tutorial demos about this thing, and all that I get is to > read this register when some node are sending a message to the one I have > connected to my pc. > > I was wondering if there is any option to read a register every x usec, > because I am using the function readregister that is written in > RF230LayerP.nc but I cannot get anything. The idea until now is really easy, > read this register and show the reading in a pc screen. > > Thank you very much in advance, > > > > Roberto. > > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
