Other Parts Discussed in Thread: CC2541
Hi all
I am working with a CC2541 and the SimpleBLEPeripheral example project.
I have created an interface in Labview that works pretty well in order to scan and establish link with the device but when i write or read doesnt works
and i dont know if i need to do something apart.
I just send the same command that the Btool uses to do all the processes.
i do this in btool (writing 40 in the chracteristic value 1) and i get :
[28] : <Tx> - 01:10:51.428
-Type : 0x01 (Command)
-OpCode : 0xFD92 (GATT_WriteCharValue)
-Data Length : 0x05 (5) byte(s)
ConnHandle : 0x0000 (0)
Handle : 0x0025 (37)
Value : 40
Dump(Tx):
0000:01 92 FD 05 00 00 25 00 40 ......%.@
--------------------------------------------------------------------
[29] : <Rx> - 01:10:51.444
-Type : 0x04 (Event)
-EventCode : 0x00FF (Event)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD92 (GATT_WriteCharValue)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 92 FD 00 .........
--------------------------------------------------------------------
[30] : <Rx> - 01:10:51.455
-Type : 0x04 (Event)
-EventCode : 0x00FF (Event)
-Data Length : 0x06 (6) bytes(s)
Event : 0x0513 (1299) (ATT_WriteRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x00 (0)
Dump(Rx):
0000:04 FF 06 13 05 00 00 00 00
but when i send the same command : 01 92 FD 05 00 00 25 00 40
i get in LabView:
GaP_HCI_ExtensionComamandStatus : 04FF 067F 0600 92FD 00 <-- which is the same that the Btool send, so is correct
but in the ATT_WriteRsp I get: 04FF 0A01 0500 0000 04 <---- HERE is not the the same response that sends the BTool
The same happens at reading the charateristic, if I do it with Btool :
[31] : <Tx> - 01:18:23.510
-Type : 0x01 (Command)
-OpCode : 0xFD8A (GATT_ReadCharValue)
-Data Length : 0x04 (4) byte(s)
ConnHandle : 0x0000 (0)
Handle : 0x0025 (37)
Dump(Tx):
0000:01 8A FD 04 00 00 25 00 ......%.
--------------------------------------------------------------------
[32] : <Rx> - 01:18:23.527
-Type : 0x04 (Event)
-EventCode : 0x00FF (Event)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (1663) (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (0) (Success)
OpCode : 0xFD8A (GATT_ReadCharValue)
DataLength : 0x00 (0)
Dump(Rx):
0000:04 FF 06 7F 06 00 8A FD 00 .........
--------------------------------------------------------------------
[33] : <Rx> - 01:18:23.538
-Type : 0x04 (Event)
-EventCode : 0x00FF (Event)
-Data Length : 0x07 (7) bytes(s)
Event : 0x050B (1291) (ATT_ReadRsp)
Status : 0x00 (0) (Success)
ConnHandle : 0x0000 (0)
PduLen : 0x01 (1)
Value : 40
Dump(Rx):
0000:04 FF 07 0B 05 00 00 00 01 40
now if i send the same comand (01 8A FD 04 00 00 25 00) in my LabView interface get:
GAP_HCI_ExtentionCommandStatus : 04 FF 06 7F 06 00 8A FD 00 <-- the same that in Btool
ATT_ReadRsp: 0105 0000 0004 0A32 3501 <-- HERE , you can see that is not the same so is incorrect
and i need to be able to write and read from LabVie, if someone can help it would so great
thank you