I trying to get ATT_PrepareWriteReq to work with BTool and I get the following results which appear to indicate that the command made it to the dongle OK but not to the server since the command never completed with a Prepare Write Response (as indicated on page 515 of version 4.1 [vol 3] of the Bluetooth Spec (Attribute Protocol). I am assuming (correctly????) that the HCI_LE_EXT_Event) came from the dongle and not the LE server, any ideas out there?
------------------------------------------------------------------------------------------------------------------------
[46] : <Tx> - 09:23:52.085
-Type : 0x01 (Command)
-Opcode : 0xFD16 (ATT_PrepareWriteReq)
-Data Length : 0x10 (16) byte(s)
ConnHandle : 0x0000 (0)
Handle : 0x0001 (1)
Offset : 0x0000 (0)
Value : 00:02:00:00:00:00:00:00:00:00
Dump(Tx):
01 16 FD 10 00 00 01 00 00 00 00 02 00 00 00 00
00 00 00 00
------------------------------------------------------------------------------------------------------------------------
[47] : <Rx> - 09:23:52.101
-Type : 0x04 (Event)
-EventCode : 0xFF (HCI_LE_ExtEvent)
-Data Length : 0x06 (6) bytes(s)
Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
Status : 0x00 (Success)
OpCode : 0xFD16 (ATT_PrepareWriteReq)
DataLength : 0x00 (0)
Dump(Rx):
04 FF 06 7F 06 00 16 FD 00
--------------