This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

sCB doesn't work in AP(ez430-RF2500)



Hi,

I'm trying to receive a message from the ED in the AP with changing APP_PAYLOAD in mrfi.h to 42 because I want to send 42 bytes message all at once eventually to reduce transmitting power .

I confirmed that ED can transmit 9 bytes message at once and AP can receive them and send them to SerialPort by TXString.

Now, ED can transmit 18 bytes, and AP can receive them once, but can't receive next 18 bytes message though ED continues transmit 18 bytes(I have checked it by LED).

Then I have checked source code and assume sCB doesn't work. Here is the code.

static uint8_t sCB(linkID_t lid)
{

if (lid)

{
sPeerFrameSem++;
sBlinky = 0;
}
else
{
sJoinSem++;
}

return 0;

}

 SMPL_Receive is in  the "if (sPeerFrameSem)" loop, so when sCB doesn't work AP cannot receive any message.

I don't find why sCB doesn't work though it work once....

I will be very grateful if someone helps me.

HARUKI