Hi there,

I am working on situation where there are two sensor nodes (sender and
receiver). when a receiver receive a particular msg from sender, it should
transmit it for particular time (say 2 mins) and should not release the
medium before finishing its task. Now problem arises that receiver
successfully receives packet but i shows message that it has send the
packet but actually it is not doing so. As i turn off the actual sender,
receiver also goes to off state (LPL-after checking no energy).

I have loaded transmit TXFIFO buffer with the received packet,

void loadTXFIFO() { cc2420_header_t* header = call
CC2420PacketBody.getHeader(&(m_msg->packet)); uint8_t tx_power = (call
CC2420PacketBody.getMetadata(&(m_msg->packet)))->tx_power; if ( !tx_power )
{ tx_power = CC2420_DEF_RFPOWER; } call CSN.clr(); if ( m_tx_power !=
tx_power ) { call TXCTRL.write( ( 2 << CC2420_TXCTRL_TXMIXBUF_CUR ) | ( 3
<< CC2420_TXCTRL_PA_CURRENT ) | ( 1 << CC2420_TXCTRL_RESERVED ) | (
(tx_power & 0x1F) << CC2420_TXCTRL_PA_LEVEL ) ); } m_tx_power =
tx_power;call TXFIFO.write((uint8_t*)header, header->length-1);



}

 I am sending packet by using strobes as described by CC2420TransmitP.nc
call CSN.clr(); status = m_cca ? call STXONCCA.strobe() : call
STXON.strobe(); if ( !( status & CC2420_STATUS_TX_ACTIVE ) ) { status =
call SNOP.strobe(); if ( status & CC2420_STATUS_TX_ACTIVE ) { congestion =
FALSE; } } call CSN.set();


The change i did is ,

1- CSN bit is cleared,
2- transmit packet for specified time period
3- CSN bit set to high
4- release resource.

Now if i am not wrong, it should capture the medium and transmit packet and
shouldn't release before the timer expires but it is not doing so. Even i
have tried to capture medium (to transmit last received packet) without CCA
(only call STXON.strobe())

Can anyone guide me with any idea?

Looking forward for any sort of tips.

Thanks.
AJ
_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to