Tool/software: TI-RTOS
Hey guys,
I am using the sensor collector example in the SLM ETSI mode with non-beacon mode enabled.
In my last setup, I had 15 different sensor nodes connecting with the collector. They had been connected to the collector before, hence the collector knew them. However, I noticed using a sniffer and wireshark, that the collector eventually assigned the same short addresses to different sensor nodes.
And here my code snipped of assocInd(); where I made a change:
if(assocRsp.status == ApiMac_assocStatus_success) { /* add to association table */ maintainAssocTable(&devInfo, &pData->capabilityInformation, 1, 0, (false)); #ifdef POWER_MEAS if(POWER_TEST_PROFILE == POLL_DATA) { generateIndirectRampMsg(); } #endif } } else { /* Device already exists use the old short address */ assocRsp.status = ApiMac_assocStatus_success; /* callback for device joining */ //_____________MY CHANGE START_________________ #ifdef STATUS_MSG System_printf("Status: device already exists\r\n"); #endif if(pCllcCallbacksCopy && pCllcCallbacksCopy->pDeviceJoiningCb) { maintainAssocTable(&devInfo, &pData->capabilityInformation, 1, 0, true); /* callback for device joining */ assocRsp.status = pCllcCallbacksCopy->pDeviceJoiningCb(&devInfo, &pData->capabilityInformation); } //_____________MY CHANGE END_________________ }
I cannot trigger this behavior, however I am not sure what implications this situation can cause somewhere during runtime.
Any idea why the collector is doing this?
Kind regards
Slev1n