Hi,

Finally figured out where the problem was and got it working on the
Mica2 (in Avrora). There was one problem in TinyOS and one in Avrora.
The T2 patch is inlined below for CC1000SendReceiveP.nc

The change is in txFlush(). The case when f.ack = FALSE requires to
set the ack field in the message metadata so that if other's check it,
they think the ack was received. This little change makes things work
without explicit Acks.


*** tinyos-2.x-new/tos/chips/cc1000/CC1000SendReceiveP.nc
2006-12-12 10:23:05.000000000 -0800
--- tinyos-2.x/tos/chips/cc1000/CC1000SendReceiveP.nc   2008-08-27
23:36:50.000000000 -0700
***************
*** 330,335 ****
--- 330,336 ----
        enterTxWaitForAckState();
        else
        {
+         getMetadata(txBufPtr)->ack = 1;
          call HplCC1000Spi.rxMode();
          call CC1000Control.rxMode();
          enterTxDoneState();


Regards,

Zainul.

On Wed, Aug 27, 2008 at 1:41 PM, Omprakash Gnawali <[EMAIL PROTECTED]> wrote:
> Were you able to get CTP to work on mica2's? Was that with or without LPL?
>
> - om_p
>
> On Wed, Aug 27, 2008 at 1:36 PM, Zainul M Charbiwala <[EMAIL PROTECTED]> 
> wrote:
>> Hi everyone,
>>
>> Just wanted to post my findings on the packet behavior I was observing 
>> earlier.
>>
>>  0  0:00:22.368266  ---->
>> 74.74.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AB.BA.83  6.666 ms
>>  1  0:00:22.368697  <====
>> 74.74.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AB.BA.83  6.666 ms
>>
>> This packet exchange is in fact link layer acknowledgment, which is
>> enabled by default in the CC1000 stack. It begins in the
>> packetReceived() function in tos/chips/cc1000/CC1000SendReceiveP.nc.
>>
>> Since it was causing me some trouble, I had to shut it off by setting
>> f.ack=FALSE in Init.init() in the same file.
>>
>> Thanks for your help,
>>
>> Zainul.
>>
>>
>> On Mon, Aug 25, 2008 at 8:55 AM, Zainul M Charbiwala <[EMAIL PROTECTED]> 
>> wrote:
>>> Thanks, I'll investigate with TestNetwork further and keep the group posted.
>>>
>>> Regards,
>>>
>>> Zainul.
>>>
>>> On Mon, Aug 25, 2008 at 8:28 AM, Omprakash Gnawali <[EMAIL PROTECTED]> 
>>> wrote:
>>>> On Sun, Aug 24, 2008 at 1:39 PM, Zainul M Charbiwala <[EMAIL PROTECTED]> 
>>>> wrote:
>>>> ...
>>>>
>>>>> 3. What is this exchange ? Is this a link layer acknowledgment ?
>>>>>
>>>>>   0  0:00:22.368266  ---->
>>>>> 74.74.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AB.BA.83  6.666 ms
>>>>>   1  0:00:22.368697  <====
>>>>> 74.74.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AA.AB.BA.83  6.666 ms
>>>>>
>>>>> I'd really appreciate if anyone could point me to the component/module
>>>>> that generates this message. Is this part of CTP or part of the CC1000
>>>>> stack ?
>>>>>
>>>>
>>>> CTP has been tested on mica2dots which also has CC1000 radio. CTP only
>>>> generates two types of pkts. So this must come from somewhere else.
>>>> You can try running TestNetwork application which can give you more
>>>> debugging information. If you run TestNetwork, each mote will send
>>>> debug message on the UART.
>>>>
>>>> - om_p
>>>>
>>>
>>
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to