Other Parts Discussed in Thread: CC2652R, CC2538
Tool/software: WEBENCH® Design Tools
When i am trying to increase the number more than 24 there is a error comes when we build the code.
Now how can I increase the number of devices.
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.
What can i do to increase the number of device that communicates to the coordinator??
Currently we are working on home automation application using CC2530 & raspberrypi,
In our application we also have build our own automation app.
And when any body tap on any lights device icon from mobile app than following process done:
0xDF(sync command) :1C:7F:C7:12:00:4B:12:00 (module ID): 0x01(on/off command): 01(switch number 1-5): 01(relay status 01 - on,00-off)
Than coordinator get short address by passing MAC add into APSME_LookupNwkAddr api and send data OTA to that short-address device.
So when I do communication on short address I can not communicates around more than approx 19 devices as NWK_MAX_DEVICE_LIST 20 in nwk_globals.h
I think if i do communicate using MAC address than I can communicates to more number of devices??? Am i right??
static void DEEPMacToNet(uint8 *TXbuff, uint16 TXlength)
{ if(APSME_LookupNwkAddr(&TXbuff[1],&temp_NwkAddr)==TRUE) { TXbuff[0]=0xDF; TXbuff[1]=temp_NwkAddr>>8; TXbuff[2]=temp_NwkAddr;
for(char i=3; i<TXlength-6;i++) { TXbuff[i]=TXbuff[i+6]; } GenericApp_DstAddr.addrMode = (afAddrMode_t)Addr16Bit; GenericApp_DstAddr.endPoint = GENERICAPP_ENDPOINT; GenericApp_DstAddr.addr.shortAddr = temp_NwkAddr;
if ( AF_DataRequest(&GenericApp_DstAddr, &GenericApp_epDesc,GENERICAPP_CLUSTERID,(TXlength-6),TXbuff, &GenericApp_TransID,(AF_DISCV_ROUTE/* | AF_ACK_REQUEST*/),AF_DEFAULT_RADIUS)==afStatus_SUCCESS ) { LED = ~LED; milliSecondDelay(10); } } }
my all switch modules are as zigbee router.
and gateway is coordinator+raspberry pi