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