Skip to main content
Francesco Sarasini
Associate II
February 1, 2018
Question

aci_gatt_write_char_value return 0x01

  • February 1, 2018
  • 2 replies
  • 1029 views
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

    This topic has been closed for replies.

    2 replies

    Winfred LU
    ST Employee
    February 7, 2018
    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
    February 12, 2018
    Posted on February 12, 2018 at 18:56

    Hi Winfred,

    aci_gatt_write_char_value() return tBleStatus = 

    0x01

    Thanks

    Winfred LU
    ST Employee
    February 13, 2018
    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