KW45 bluetooth phripheral write about gGattCharPropWriteWithoutRsp_c reconfiguration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

KW45 bluetooth phripheral write about gGattCharPropWriteWithoutRsp_c reconfiguration

1,733 次查看
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 项奖励
回复
2 回复数

1,705 次查看
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 项奖励
回复

1,728 次查看
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 项奖励
回复