cancel
Showing results for 
Search instead for 
Did you mean: 

aci_gatt_write_char_value return 0x01

Francesco Sarasini
Associate II
Posted on February 01, 2018 at 15:35

Hi,

I have a bluenrg-1 as a central and a smartphone as a peripheral. Central can connect and discovery correctly.

When I try to write a pheriperal's value, aci_gatt_write_char_value() return 0x01.

aci_att_prepare_write_resp_event is never called

aci_att_exec_write_resp_event is never called

but the peripheral is receiving the data!

What is the error code 0x01 ?

Thanks

3 REPLIES 3
Winfred LU
ST Employee
Posted on February 07, 2018 at 04:47

Hi Francesco,

Did you mean seeing a HCI_COMMAND_STATUS_EVENT with Status 0x01 ?

That will be strange because 0x01 is UNKNOWN HCI COMMAND, which means BlueNRG-1 does not

understand the ACI Command OpCode.

Best Regards,

Winfred

Francesco Sarasini
Associate II
Posted on February 12, 2018 at 18:56

Hi Winfred,

aci_gatt_write_char_value() return tBleStatus = 

0x01

Thanks

Posted on February 13, 2018 at 02:56

Hi Francesco,

Yes. tBleStatus 0x01 would be ERR_UNKNOWN_HCI_COMMAND.

Reference: <DK path>/Library/Bluetooth_LE/inc/ble_status.h

Which DK are you currently using?

Is it possible to post some codes and we try to replicate the issue to check?

Best Regards,

Winfred