KW45 bluetooth phripheral write about gGattCharPropWriteWithoutRsp_c reconfiguration

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KW45 bluetooth phripheral write about gGattCharPropWriteWithoutRsp_c reconfiguration

1,740 Views
Taiyi
Contributor I

hello!

        At present, I am using the KW45 routine to debug Bluetooth as a slave, and the mobile phone is connected to Bluetooth to write data to the slave. I created a feature value data UUID: 0xFFFD, the phone sent the data, write lost

       Defeat. Please see the attachment for details. I don't know how to configure it. I can write data to the slave machine.

      I appreciate everyone helping me find out why.

best wishes

 

0 Kudos
Reply
2 Replies

1,712 Views
EduardoZamora
NXP TechSupport
NXP TechSupport

Hello @Taiyi

Hope you are doing well.

You can take a look at the Bluetooth Low Energy Application Developer's Guide (inside KW45 SDK folder > docs > wireless > Bluetooth). This document explains how to integrate the NXP BLE Host Stack in an application, GATT Layer APIs required for discovering services and characteristics and transferring data between devices, usage of the GATT database APIs that allows the application to manipulate data stored in the GATT Server database, a method to statically build a GATT database and how to build a custom profile.

Also, you can use the article of KW38 Custom Profile as a reference. This article explains how to add the Humidity profile, and how to modify the code to get the Humidity Sensor and Collector working using the Temperature Sensor and Temperature Collector examples (from the SDK) as a base.

Regards,
Eduardo.

0 Kudos
Reply

1,735 Views
Taiyi
Contributor I

 

     PRIMARY_SERVICE(service_dk, gBleSig_CCC_DK_UUID_d)
CHARACTERISTIC_UUID128(char_vehicle_psm, uuid_char_vehicle_psm, (gGattCharPropRead_c|gGattCharPropWrite_c|gGattCharPropWriteWithoutRsp_c) )
VALUE_UUID128(value_vehicle_psm, uuid_char_vehicle_psm, (gPermissionFlagReadable_c|gPermissionFlagWritable_c), 2, MSB2(gDK_DefaultVehiclePsm_c), LSB2(gDK_DefaultVehiclePsm_c))
CCCD(cccd_vehicle_psm)
CHARACTERISTIC(char_tx_power_level, gBleSig_TxPower_d, (gGattCharPropRead_c) )
VALUE(value_tx_power_level, gBleSig_TxPower_d, (gPermissionFlagReadable_c), 1, 0x01)
CHARACTERISTIC_UUID128(char_antenna_id, uuid_char_antenna_id, (gGattCharPropRead_c) )
VALUE_UUID128(value_antenna_id, uuid_char_antenna_id, (gPermissionFlagReadable_c), 2, 0x02, 0x03)
CHARACTERISTIC(char_dkm_id, gBleSig_dkmrx_d, (gGattCharPropWriteWithoutRsp_c | gGattCharPropNotify_c) )
VALUE(value_dkm_id, gBleSig_dkmrx_d, (gPermissionFlagWritable_c), 2, 0x00, 0x10)

These are some configurations of gatt db.h

 

 

 

0 Kudos
Reply