Hi,
I am using CC2540 USB BLE Dongle with PC Application implemented in .Net.
I am trying to add and register a new service and its characteristics in the BLE stack.
When I execute the GATT_AddService command for adding a new service (0x3532), Invalid Parameter is received stating the service has not registered.
PC Environment:
- CC2540 USB Dongle used (In this dongle flashed the image “HostTestReleaseCC2540Usb.hex” which is available as part of BLE Stack for CC254x-1.4.0)
- PC Application is built on Microsoft Visual Studio 2010 - C# .Net
Below is the command sequence executed and its response from the stack.
--------------------------------------------------------------------
[13] : <Tx> - 07:48:44.153
-Type : 0x01 (Command)
-OpCode : 0xFDFC (GATT_AddService)
-Data Length : 0x04 (4) byte(s)
UUID : 0x3532 (13618)
NumAttrs : 0x0003 (3)
Dump(Tx):
0000:01 FC FD 04 32 35 03 00 .....(..
--------------------------------------------------------------------
[14] : <Rx> - 07:48:44.206
-Type : 0x04 (Event)
-EventCode : 0x00FF (Event)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x02 (0) (InvalidParameter)
OpCode : 0xFDFC (GATT_AddService)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 02 FC FD 00 .........
--------------------------------------------------------------------
Kindly let me know whether apart from Primary and Secondary Services available in BLE Stack, we can able to add a new service (0x3532) and under this service I need to add my own characteristics.
Am I executing the proper GATT command to add a new service or any other step i need to follow to add a new service.
Thanks in advance.
Regards,
Ramesh Kumar