Hi,
I am working on a small BLE project where the aim is following:
1st part: Use CC2540USB Dongle as BLE Central connecting to CC2541 Sensortag and read tempereture data.
2nd part: The USB Dongle should then output data on an OLED Display using 4 I/O pins for SPI.
I actually have both parts working seperately...
1st part is working like a charm on CC2540EM mounted on SmartRF05 board, but when I run the exact same program on the USB dongle, I get an error immediately after connection is established to the Sensortag.
2nd part also works, so I get an error message from the GAP server printed on OLED display:
"Disconnected Reason: 63" - I cant find this error code 0x3F in the API Guide ...
The connection is established and I see "Connectected" on the display half a second (or less) before it happens.
Any ideas?
****************************************** UPDATE 3/7 2014**************************************************************
The problem is adhering ...
We have reviewed the API guide (from BLE stack 1.3) without finding the error code in the case of: 0x3F.
We have found 3-4 posts on the TI forum dealing with this GAP_LINK_TERMINATED_EVENT code, and we have the following information:
It is confirmed that there is nothing about the error code 0x3F in the API guide ...
The error code is defined in ll.h (link layer): # define LL_STATUS_ERROR_CONN_TIMING_FAILURE 0x3F / / MAC Connection Failed
The problem in every post seems be a sleep method that is messing up some timed events in the link layer ...
We have a sleep function in our display driver init function, but the mystery is that we get the error no matter whether we use the display driver or not.
Bottomline it happens with a simpleBLECentral modified to make service Discoveries on the SensorTag, running on the USB Dongle.