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.
Tool/software: Code Composer Studio
Hi,
i am working on a project and in my project the CC2640R2F is performing Advertising and scanning Both. I am using a custom Ble Service to receive Data from App(Android or IOS) to CC2640R2F. Whenever i am connecting the device with BLE Scanner in android i am getting all the services and all the characteristics and i am also able to send and receive the data without any problem and this is also working in my custom android app. But whenever i am connecting the CC2640R2F device with Ble scanner in IOS app, the device get connected but i am not getting any any services and any characteristics in the app. The same situation is with our developed custom ios app also. Why is this happening if i am getting all the things on android then this should also work on ios app.
Screenshot of Ble scanner Android app
IOS app ble scanner
check if bluetooth Powered On then scanForPeripherals
if peripheral found then connect to device
after device connected search for services (if services found then it will break the timer() else search for service again )
In iOS version above 10.x.x ATT MTU method is not defined in the coreBluetoothLibrary but in Android there is a method to update ATT MTU.
ATT MTU method used to update the connection Parameter. As it is not defined in the iOS so the problem can be solved by the device side only.
Another thing when i make the HEAPMGR_SIZE=0, which uses auto heap size and
HCI_EXT_SetMaxDataLenCmd( APP_TX_PDU_SIZE, 328, APP_RX_PDU_SIZE, 328); // in iniatialization
and
case HCI_GAP_EVENT_EVENT:
{
...................................
.................................
CLR_FEATURE_FLAG( featSet[0], LL_FEATURE_DATA_PACKET_LENGTH_EXTENSION);//LL_FEATURE_CONN_PARAMS_REQ );
// Update controller with modified features
HCI_EXT_SetLocalSupportedFeaturesCmd( featSet );
Now the ios app can connect and disconnect with the device around 8-9 times and after that device is discoverable in ios app and it can connect but no services appears on the ios app.
I saw the heap_size also and it was coming out around 4736.
I was not getting any result so i started everything from base and first add ble scanning and advertising in my project, then GPS, IMU and OLED.
i noticed one thing when i was debugging, initially when only ble code(No IMU, GPS and oled code added) is added in project then it was working fine but when i add the GPS, IMU and oled code step by step then the code size is increasing accordingly and connection-disconnection number is decreasing as code size is increasing.
So as code size is increasing ram and heap uses also increasing but but when i saw the heap size it was coming out 4736 and ram uses was around 72%.
I tried increasing MTU size also but it had no effect.
Sir right now i do not have any problem with android, the problem is with ios only, and after debugging now the device connection disconnection number is around 8-9 after this when i try to connect the device with app no services appear on the app.
I have posted the similar question on the stack overflow and apple forum also but no exact answer found. try to look on the matter.
Thank you
Sir i am using a CC2640r2f custom board, now i am programming this board using CC2650 launchpad debugger. processors.wiki.ti.com/.../BLE_sniffer_guide and www.ti.com/.../swru187g.pdf i found in both the link that i need to have a usb dongele for capturing the packet sniffer. but i do not have that dongle, is it possible to get sniffer without usb dongle
Pradeep,
Yes, you've found the devices I'm referencing. I recommend that you do your own research as to which one you want, since they support a wide range of features. CC2540EMK is more limited than the FrontLine and Ellisys sniffers due to it's age.
Thank you sir for your suggestion but i can not afford frontline or ellisys sniffer as these are too costly so i am going with cc2540emk-usb dongle. But i am in little doubt does cc2540emk-usb dongle support BLE-4.2 as everywhere it is mentioned that it support BLE 4.0. And is it possible to make CC2640R2f launchpad as a ble sniffer
sorry for the late response sir initially the MAX_PDU_SIZE was 69 and then i reduced it to 27 so right now MAX_PDU_SIZE is 27 and it can be upto 255 so i do not think this would an issue