Dear Saul, Sorry, it implements the RadioConfig interface, not the RadioControl. Look at the CVS here:
http://tinyos.cvs.sourceforge.net/viewvc/tinyos/tinyos-2.x/tos/chips/rf230/ Best, Miklos On Wed, Feb 4, 2009 at 2:54 PM, Saul Garcia <[email protected]> wrote: > Hi again, > > I've upgraded the files on the RF230 directory from the cvs sourceforge > repository, and I found that you have done improvements in several files, so > that I have upgraded all of them. However, I can't see the interface > RadioControl provided in the RF230ActiveMessageC. I can only see > RadioConfig, is it that one that you refer? In that case I can't still see > the command for the setChannel, I mean there's no specific command for > channel setting. > However, I have been looking trough the directory and I found the > RF230LayerC that provides RadioState and there in the RF230LayerP I found > the RadioState.setChannel, do you think it is that the interface that I > should use? > > 2009/1/28 Miklos Maroti <[email protected]> >> >> Hi Saul, >> >> I have just added the interface RadioControl to the RF230 stack >> through which you can change the channel dynamically. It is provided >> by RF230ActiveMessageC. >> >> Best, >> Miklos >> >> On Wed, Jan 28, 2009 at 4:50 PM, Saul Garcia <[email protected]> wrote: >> > Hi Miklos, >> > >> > I've been reading about and I decided to keep going with the RssiDemo >> > since >> > I think it's the one that adapts better to my final purpose. But I'm >> > stuck >> > on the channel switching. Trying to understand TinyOS, as you see I am >> > newbie at all, I found that probably my solution is on the >> > /tos/chips/rf230/RF230LayerP.nc there with the tasklet_async command >> > error_t >> > RadioState.setChannel(uint8_t c), I can set the Channel at run time, >> > right? >> > >> > So I have to wire this module to my final application so that I can >> > change >> > the channel on the radio layer. Is there any other considering that I >> > have >> > to take into account, such as turning off and on again the radio >> > services >> > once I change the channel? >> > >> > Thanks >> > >> > 2008/12/17 Miklos Maroti <[email protected]> >> >> >> >> Hi Saul, >> >> >> >> On Wed, Dec 17, 2008 at 12:04 PM, Saul Garcia <[email protected]> >> >> wrote: >> >> > Hello, >> >> > >> >> > I am a Spanish student, currently in Brussels doing my Master Thesis. >> >> > By >> >> > now >> >> > if I have been learning about the TinyOS programming and now I am on >> >> > disposition to write/modify an existing application that fits to my >> >> > thesis. >> >> > The point is that I am looking for an scanning application that scans >> >> > all >> >> > the 802.15.4 IEEE channels. I have started working with the >> >> > /apps/tutorials/RssiDemo, app that prints out the RSSI values send it >> >> > by >> >> > other device. I would like to modify my baseStation in order to >> >> > switch >> >> > channel every time that the Tout fires. But I found this a little bit >> >> > tricky >> >> > as long as I couldn't find the command that sets the new Channel. >> >> > However, I >> >> > found your app (the RF230Sniffer) I have tried to work with it but no >> >> > luck, >> >> > it doesn't seem to be working. >> >> >> >> It does work. You need to program it and connect it directly to your >> >> PC. On the PC you need to run the net.tinyos.util.DiagMsg application. >> >> >> >> > Regarding to the code, I understand how you do the "changeChannel", >> >> > but >> >> > is >> >> > there any other module that let's me do it directly? Do I have to >> >> > implement >> >> > your inline command? >> >> >> >> There is no easy way to dynamically change the channel. You would need >> >> to change the MessageBufferLayerP.nc. You need to power down the radio >> >> stack, change the channeland power it up. >> >> >> >> > By the way, could you please tell me briefly what exactly is supposed >> >> > to >> >> > do >> >> > the RF230Sniffer? >> >> >> >> The RF230Sniffer records all messages on the given channel and dumps >> >> it to the PC. The DiagMsg java application prints out all this >> >> information. The RF230Sniffer actually uses the lib/DiagMsg component, >> >> which is called from RF230LayerP when it is in diag mode. >> >> >> >> Best, >> >> Miklos >> > >> > >> > >> > -- >> > Saul Garcia Huertes >> > > > > > -- > Saul Garcia Huertes > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
