Re: [Tinyos-help] CCA Check in application layer.

2008-07-17 Thread David Moss
Clear channel assessments are performed automatically by the CC2420 radio stack before any and every transmission, unless you explicitly disable it. In the CC2420 radio, a CSMA strategy is implemented where initial and congestion backoffs are set for random lengths of time to prevent transmissions

Re: [Tinyos-help] CCA Check in application layer.

2008-07-17 Thread Philip Levis
On Jul 17, 2008, at 10:25 AM, Hui Kang wrote: > Dear All: > In my tinyos-2.x application, I would like to check the channel before > sending a packet. By copying the following code from > CC2420TransmitP.nc, > I found the congest is always set as TRUE even I have only one mote > turn > on. Co

Re: [Tinyos-help] CCA Check in application layer.

2008-07-17 Thread David Moss
If you want to check the channel *before* sending a packet, you can sample the CCA pin directly. This GeneralIO is provided by HplCC2420PinsC. The code you're looking at here actually sends a packet, if the channel is immediately found to be clear. If you're not doing so already, you must also a

[Tinyos-help] CCA Check in application layer.

2008-07-17 Thread Hui Kang
Dear All: In my tinyos-2.x application, I would like to check the channel before sending a packet. By copying the following code from CC2420TransmitP.nc, I found the congest is always set as TRUE even I have only one mote turn on. Could anyone help to solve this problem or any other smarter way