Hello,
In the new BLE stack v1.2 sample applications, the Device Name of Generic Access Service is Empty.
I tried the Keyfobdemo App and SimpleBLEPeripheral App, both device name is empty.
Something wrong?
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.
Hello,
In the new BLE stack v1.2 sample applications, the Device Name of Generic Access Service is Empty.
I tried the Keyfobdemo App and SimpleBLEPeripheral App, both device name is empty.
Something wrong?
I tested the BloodPressure and HeartRate from the new BLE stack v1.2, the device name in the GAP service are also empty!
I use the CC2540 MiniDK (Keyfob) and sample projects built with IAR Embedded Workbench for 8051 8.11 on Windows XP.
Does anyone have the similar problem?
By the way, BLE stack v1.1a does not have this problem.
I connect BTool to the CC2540 Keyfob and Read Using Charactersitic UUID: 00:2A, return status is Success, but result is empty.
following is detail logs:
------------------------------------------------------------------------------------------------------------------------
[27] : <Tx> - 09:24:37.531
-Type : 0x01 (Command)
-Opcode : 0xFDB4 (GATT_ReadUsingCharUUID)
-Data Length : 0x08 (8) byte(s)
ConnHandle : 0x0000 (0)
StartHandle : 0x0001 (1)
EndHandle : 0xFFFF (65535)
Type : 00:2A
Dump(Tx):
01 B4 FD 08 00 00 01 00 FF FF 00 2A
------------------------------------------------------------------------------------------------------------------------
[28] : <Rx> - 09:24:37.640
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (Success)
OpCode : 0xFDB4 (GATT_ReadUsingCharUUID)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 B4 FD 00
------------------------------------------------------------------------------------------------------------------------
[29] : <Rx> - 09:24:37.781
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x09 (9) bytes(s)
Event : 0x0509 (ATT_ReadByTypeRsp)
Status : 0x00 (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x03 (3)
Length : 0x02 (2)
Handle : 0x0003
Data :
Dump(Rx):
04 FF 09 09 05 00 00 00 03 02 03 00
------------------------------------------------------------------------------------------------------------------------
[30] : <Rx> - 09:24:38.062
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0509 (ATT_ReadByTypeRsp)
Status : 0x1A (The Procedure Is Completed)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
04 FF 06 09 05 1A 00 00 00
------------------------------------------------------------------------------------------------------------------------
I tried the precompiled HexFiles in the BLE Stack 1.2: CC2540_keyfob_SimpleBLEPeripheral.hex and CC2540MiniDkDemoSlave.hex
The device name in the GAP service are empty too.
It seems to be a bug of BLE Stack 1.2, will next release fix it?
Thanks for your attention.
Hello,
I see this also and will submit a bug. The quick fix is to reduce the length by 1. Those examples are using GAP_DEVICE_NAME_LEN and there is a check in GGS where length must be less that GAP_DEVICE_NAME_LEN.
// Set the GAP Attributes
GGS_SetParameter( GGS_DEVICE_NAME_ATT, GAP_DEVICE_NAME_LEN-1, attDeviceName );
Br,
-Greg