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.
Hello.
In our project we're using the Network Processor. We are using RCN_NLME_DISCOVERY_REQ to list available devices, however this is limited to only 10 results before ending in an error.
I've found in rcn_nwk.h this define:
#define RCN_CAP_NODE_DESC_TABLE_SIZE 10 // determines maximum number of discovered events
However I can't see this being used anywhere in the source. Will increasing this actually increase the maximum number of results?
Thanks,
Red.
Hi Tom,
That's a shame.
Yes, after 10 results I receive RTI_ERROR_DISCOVERY_ERROR code (0xB7).
Is it possible to get a library version with a greater maximum; our product will be used in a test environment with a lot of STBs.
Thanks,
Red
Hi RedRat,
The number of you devices you can discover is not necessarily the same as the number of devices you can be paired with simultaneously. The latter is a limited to 10, and defined by RCN_CAP_NODE_DESC_TABLE_SIZE.
However, you can configure how many devices to discover via:
uint8 buf[1] = {DPP_MAX_REPORTED_NODE_DESC};
RCN_NlmeSetReq( RCN_NIB_NWK_MAX_REPORTED_NODE_DESCRIPTORS, 0, buf);
Note that this code is taken from line 2601 in rti.c in RemoTI-1.4.0, which defines it to 255. It does however apply to any RemoTI-1.3.1 as well, however there it is set to 1 by default.
You can also set it from your application with:
uint8 buf[1] = {<your value>};
RTI_WriteItemEx(RTI_PROFILE_RTI, 0x6C, 1, buf);