BLE sample code issue with custom services

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

BLE sample code issue with custom services

528 次查看
Chan_17
Contributor III

we are trying KW45 wireless example EATT freertos example and we are trying to modify data in the functiuon ServiceAMeasurementTimerCallback() but we are getting issue  with whatever data we are writing to database which is not reflecting in  central device, we are getting initialized data in gatt_db.h . screenshots are attached .  we are just getting initialized value (gatt_db.h) but its not updating with the data we are writing to database. 
as per screenshot we are trying to write data of array  but in central we are getting 0x41 i,e A data and rest 9 bytes are 0.image.pngimage (1).png

0 项奖励
回复
4 回复数

493 次查看
sofiaurueta
NXP Employee
NXP Employee

Hello,

Hope you are doing well.

 

Can you help letting me know what SDK and MCUXpresso IDE versions you are using?

Also, could you be more specific in what modifications you implemented in the code?

 

I would recommend checking this community post: KW38 Custom Profile - NXP Community, as well as Chapter 7 “Creating a GATT Database” of the Bluetooth Low Energy Application Developer’s Guide.

There you can find a brief description of the services and the declarations needed.

 

Best Regards,

Ana Sofia.

0 项奖励
回复

473 次查看
Chan_17
Contributor III

Please check Versions below 
SDK : KW45b41zevk
MCUXpresso : 24.12 

modifications we did :
in ServiceBMeasurementTimerCallback()  
bleUuid_t uuid = Uuid16(gBleSig_Report_d);  changed to bleUuid_t uuid = Uuid16(0xB002);  because we are  checking for char_service_B2 
static uint16_t char_value = 0U;  changed to  static uint16_t char_value = 12U;

and even we tried with same  UUID : bleUuid_t uuid = Uuid16(gBleSig_Report_d);   and just changed   changed to  static uint16_t char_value = 12U;
same issue just we are getting data which is initialized

0 项奖励
回复

425 次查看
sofiaurueta
NXP Employee
NXP Employee

Hello,

 

In order to create the demo you need to define or develop a service that has to be the same as in the GATT Client, this is declared in the gatt_uuid128.h. If the new service is not the same, they will never be able to communicate each other.

 

All the macros used to fill the GATT database are properly described in the BLEADG (included in the NXP Connectivity Software documentation) under chapter 7 “Creating a GATT Database”.

 

Could you let me know if you implemented these services and modifications in both client and server sides?

 

You can follow the steps to this community post: KW38 Custom Profile

 

Best Regards,

Ana Sofia.

0 项奖励
回复

405 次查看
Chan_17
Contributor III

Hi,

we tried to do changes in peripheral by updating  new service and also tried to use old custom service to send bulk data.
example: Eatt_peripheral freertos we specifically used this since its sending multiple packets. we are searching for example in which we can send bulk data and multiple packets.
1. we tried sending different 2 bytes  of data from eatt_peripheral  and we are checking in NRF connect but we are not getting any changed data.

2. so we tried with 2 KW45 boards one for central and another peripheral . in this if we change data which is writing to database is reflecting  in central but when we try for bulk data or array of data even after doing changes in below section :

1.we changed size of data required 10 bytes, using 0xB002 service B2

Chandini_17_1-1749617579890.png

.Chandini_17_2-1749617986938.png

2.

Chandini_17_1-1749618200978.png

 

these modifications we did. please check and assist we are not able to receive this in central

 

 

 

 

0 项奖励
回复