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.

CC2650EM-7ID-RD: SimpleBLECentral - Shows not all devices!

Part Number: CC2650EM-7ID-RD
Other Parts Discussed in Thread: CC2650, BLE-STACK

Hello,

I'm running the SimpleBLECentral example project on my CC2650 with Smartrf06. It's working fine, except for discovering and connecting. When I press the "UP" button, the discovery scan is started. Then It shows by "LEFT" click the results. I've set up two peripherals, one on another SmartRF06 and the other on my Smartphone. But the central only shows some random devices, not my peripherals. Also there are two ore more devices with address 00:00:00:00:00:00. When I try to connect to a random device with "valid" address, It starts connecting but this process never ends. OR it says failed, reason: 49(0x31) (0xCA on UART) but in error code list I can't find this error:

/*** Generic Status Return Values ***/

#define SUCCESS 0x00

#define FAILURE 0x01

#define INVALIDPARAMETER 0x02

#define INVALID_TASK 0x03

#define MSG_BUFFER_NOT_AVAIL 0x04

#define INVALID_MSG_POINTER 0x05

#define INVALID_EVENT_ID 0x06

#define INVALID_INTERRUPT_ID 0x07

#define NO_TIMER_AVAIL 0x08

#define NV_ITEM_UNINIT 0x09

#define NV_OPER_FAILED 0x0A

#define INVALID_MEM_SIZE 0x0B

#define NV_BAD_ITEM_LEN 0x0C

My setup:

#define DEFAULT_DISCOVERY_MODE DEVDISC_MODE_ALL

#define DEFAULT_DISCOVERY_ACTIVE_SCAN TRUE

#define DEFAULT_LINK_WHITE_LIST FALSE

#define DEFAULT_PASSCODE 0000

#define DEFAULT_PAIRING_MODE GAPBOND_PAIRING_MODE_INITIATE

#define DEFAULT_DEV_DISC_BY_SVC_UUID FALSE

 

Thanks in advance

 

 

 

 

  • Hi Luis,

    What version of the TI BLE-Stack SDK are you using? Did you make any modifications to the Simple Central project?

    By default the Simple Central project only discovers peripherals that have the Simple Profile service. To change this, you can change the #define DEFAULT_DEV_DISC_BY_SVC_UUID to false in simple_central.c


    I see in your defines above, you have already set DEFAULT_DEV_DISC_BY_SVC_UUID to false so I have a couple more questions:

    1. Can you try loading the default Simple Peripheral (if it's not already) on your other SmartRF06 board to see if you can connect to it?

    2. Do you have any issues discovering your peripheral device if you use your smartphone as the central device?