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.

Simpliciti Semaphores

Other Parts Discussed in Thread: SIMPLICITI, CC2500

All,

I am using simpliciti on an MSP430FG468 and CC2500 board.  I am using the latest versions of all software (CCS).  I am trying to get the AP as Data Hub as portion to work, I have changed nothing and it is not working. 

The behavior that I am seeing is that the AP's LEDS remain constant and the ED's lights toggle on an off about once a second. This indicates to me that the ED is not joining the network.

In debugging, we found that in the Data hub portion was not entering

 

 

if (sJoinSem && (sNumCurrentPeers < NUM_CONNECTIONS))
{
/* listen for a new connection */
while (1)
{
if (SMPL_SUCCESS == SMPL_LinkListen(&sLID[sNumCurrentPeers]))
{
break;
}
/* Implement fail-to-link policy here. otherwise, listen again. */
}

 

this because the semaphore is never altering off 0.  Should it be altering on its own? or dI need to set this?

 

Thanks

 

 

  • Hi Paul,

    This semaphore is set in the ISR context when a message arrives. If you look in the main_AP_Async_Listen.c there is a callback function:
    static uint8_t sCB(linkID_t lid) where this semaphore is set. This callback is called whenever the AP receives a valid packet.

    Regards,
    Kjetil

  • Hi Kjetil
    I meet same queation, when the ED reset, the AP GDO0 INT is occured, this means AP get a packet, but the sJoinSem++ cannot be reached, this means the callback function cannot be trigged, do I miss some configuration or make some mistakes, Help me