Other Parts Discussed in Thread: CC1352P
I have the same problem When i try to connect to BLE Scanner the device connect to smartphone (I can see it in log terminal) and right now disconnect from phone
my phone is Asus ZC554kl Andriod is 8.1.0
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.
I have the same problem When i try to connect to BLE Scanner the device connect to smartphone (I can see it in log terminal) and right now disconnect from phone
my phone is Asus ZC554kl Andriod is 8.1.0
I want to up this post. Now i try to connect the Project_Zero to BLE_Scanner and get next log
#000001 [ 0.090 ] INFO: (led_service.c:221) Registered service, 5 attributes, status 0x00 #000002 [ 0.091 ] INFO: (button_service.c:260) Registered service, 7 attributes #000003 [ 0.091 ] INFO: (data_service.c:239) Registered service, 6 attributes #000004 [ 0.092 ] INFO: (project_zero.c:693) Registered OAD Service #000005 [ 0.092 ] INFO: (project_zero.c:2919) Left button not held under boot, not reverting to factory. #000006 [ 0.092 ] INFO: (project_zero.c:2921) Right+Left button not held under boot, not erasing external flash. #000007 [ 0.092 ] INFO: (project_zero.c:711) OAD Image v0001 #000008 [ 0.092 ] INFO: (led_service.c:237) Registered callbacks to application. Struct @20002940 #000009 [ 0.092 ] INFO: (button_service.c:278) Registered callbacks to application. Struct @20002930 #000010 [ 0.092 ] INFO: (data_service.c:257) Registered callbacks to application. Struct @20002938 #000011 [ 0.092 ] INFO: (led_service.c:272) SetParameter : LED0 len: 1 #000012 [ 0.092 ] INFO: (led_service.c:280) SetParameter : LED1 len: 1 #000013 [ 0.092 ] INFO: (button_service.c:319) SetParameter : BUTTON0 len: 1 #000014 [ 0.092 ] INFO: (button_service.c:352) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000015 [ 0.092 ] INFO: (button_service.c:330) SetParameter : BUTTON1 len: 1 #000016 [ 0.092 ] INFO: (button_service.c:352) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000017 [ 0.092 ] INFO: (data_service.c:295) SetParameter : String len: 40 #000018 [ 0.092 ] INFO: (data_service.c:306) SetParameter : Stream len: 20 #000019 [ 0.092 ] INFO: (data_service.c:328) Trying to send noti/ind: connHandle ffff, Noti/ind disabled #000020 [ 0.101 ] INFO: (project_zero.c:1194) GAP is started. Our address: F0:F8:F2:D6:51:5D #000021 [ 0.102 ] INFO: (project_zero.c:1212) Name in advertData array: ProjectZero #000022 [ 0.107 ] INFO: (project_zero.c:1415) Adv Set 0 Enabled #000023 [ 22.317 ] INFO: (project_zero.c:1420) Adv Set 0 Disabled #000024 [ 22.317 ] INFO: (project_zero.c:1440) Adv Set 0 disabled after conn 0 #000025 [ 22.318 ] INFO: (project_zero.c:1249) Link establish event, status 0x00. Num Conns: 1 #000026 [ 22.318 ] INFO: (project_zero.c:1262) Connected. Peer address: 45:4C:17:E3:CD:10 #000027 [ 22.364 ] INFO: (project_zero.c:1415) Adv Set 0 Enabled #000028 [ 22.997 ] INFO: (project_zero.c:1707) Updated params for 45:4C:17:E3:CD:10, interval: 7.50 ms, latency: 0, timeout: 5000 ms #000029 [ 23.153 ] INFO: (project_zero.c:1290) Device Disconnected! #000030 [ 23.154 ] INFO: (project_zero.c:1291) Num Conns: 0 #000031 [ 27.581 ] INFO: (project_zero.c:1420) Adv Set 0 Disabled #000032 [ 27.581 ] INFO: (project_zero.c:1440) Adv Set 0 disabled after conn 0 #000033 [ 27.581 ] INFO: (project_zero.c:1249) Link establish event, status 0x00. Num Conns: 1 #000034 [ 27.581 ] INFO: (project_zero.c:1262) Connected. Peer address: 45:4C:17:E3:CD:10 #000035 [ 27.629 ] INFO: (project_zero.c:1415) Adv Set 0 Enabled #000036 [ 28.359 ] INFO: (project_zero.c:1707) Updated params for 45:4C:17:E3:CD:10, interval: 7.50 ms, latency: 0, timeout: 5000 ms #000037 [ 28.516 ] INFO: (project_zero.c:1290) Device Disconnected! #000038 [ 28.516 ] INFO: (project_zero.c:1291) Num Conns: 0
Why can be it? Wrong length in the
static uint8_t advertData[] = { 0x02, // length of this data GAP_ADTYPE_FLAGS, DEFAULT_DISCOVERABLE_MODE | GAP_ADTYPE_FLAGS_BREDR_NOT_SUPPORTED, // complete name 12, // length of this data GAP_ADTYPE_LOCAL_NAME_COMPLETE, 'P', 'r', 'o', 'j', 'e', 'c', 't', 'Z', 'e', 'r', 'o', }; // Scan Response Data static uint8_t scanRspData[] = { // service UUID, to notify central devices what services are included // in this peripheral (ATT_UUID_SIZE + 0x01), // length of this data, LED service UUID + header GAP_ADTYPE_128BIT_MORE, // some of the UUID's, but not all LED_SERVICE_SERV_UUID_BASE128(LED_SERVICE_SERV_UUID), };
EDITED: To the Simple Peripheral from the this SDK join to BLE Scanner fine
Sorry, it's my bad that there is no prebuilt ProjectZero hex for CC1352P. I remember I don't have any issue to build and connect ProjectZero for CC1352P to my iPhone. Anyway, I can test this again with Andorid App when I can access to my LAUNCHXL-CC1352P-2.
Now I study and compare two project (Zero and Simple Peripheral(is work normally on my board and phone ) )
Very carefully i study and compare the SimplePeripheral_processGapMessage(gapEventHdr_t *pMsg) and ProjectZero_processGapMessage(gapEventHdr_t *pMsg). I think this function are responsible for processing and exchange message this Central Device(Phone) And I found that the calls GapAdv_loadByHandle, GapAdv_enable is different. In the Simple Periphera it is call of function, in the Zero it is define which call function...
May be is it??
I think it imortant. I think it can be this -
Ed (TI): ** Update May 2018: TI has fielded inquires about peripheral devices not detected after upgrading to Android 8. Previously, these devices were detected with the same handset running Android 7 (or earlier). The issue has been traced to improperly formatted data within the peripheral's ADV or scan response (SCAN_RSP) PDU. Specifically, if the length byte in the ADV or scan response does not match the actual payload of the proceeding AD data type (e.g., Manufacture Specific Data), Android 8 will not present the peripheral device to the application. Please ensure that your advertData[] and scanRspData[] arrays properly set the "// length of this data" for the given AD data type.
And I wrote early the realise of same function in the Zero and Simple Pheripherial is different..
It is so strange..
I compile the "clear" project. Without same change. You have same SDK??
At evening I send you my hex. Can You test it?
I have only one idea - the slightly differernt library in this project.. I wrote where i found the difference.
But i have so little experiance of BLE and can not undestund this difference. ;)
this my hex. rename please!ble5_project_zero_cc13x2p2lp_app_syscfg_FlashROM_Debug.txt
in the log i can see connect to and disconnect to phone
That's why you should use sniffer to check what exactly happens over the air.