use DPSP host modfiy DSPS DeiveName

Learn MoreFAQsTutorials

4 posts / 0 new
Last post
alex.jian
Offline
Last seen:1 month 1 day ago
加入:2019-08-28 10:14
use DPSP host modfiy DSPS DeiveName

HI Dialog

i want to use DSPS host modfiy DSPS Device Name

我应该做些什么?

Modfiy GenericAccess UUID 0x1800

Device Name UUID 0x2A00

Device:
PM_Dialog
Offline
Last seen:42米in 30 sec ago
工作人员
加入:2018-02-08 11:03
Hi Alex,

Hi Alex,

Please check USER_DEVICE_NAME definition in the user_config.h file. The default device name is the "SPS_531_HOST" – you can change it!

Thanks, PM_Dialog

alex.jian
Offline
Last seen:1 month 1 day ago
加入:2019-08-28 10:14
HI Dailog

HI Dailog

thank for answer

but i want change "DeviceName Value(UUID:0x1800Device Name UUID 0x2A00 )" when host connect device

how can i use gattc write value to device??

for example

GenericAccess UUID 0x1800

Device Name UUID 0x2A00 Value:abc

change to below(Host write value to devicename for modfiy Devicename)

GenericAccess UUID 0x1800

Device Name UUID 0x2A00 Value:abc1234

PM_Dialog
Offline
Last seen:42米in 30 sec ago
工作人员
加入:2018-02-08 11:03
Hi Alex,

Hi Alex,

This is a characteristic ( ATT_CHAR_DEVICE_NAME = 0x2A00 ) and is mandatory item in the generic access service ( ATT_SVC_GENERIC_ACCESS = 0x1800 ). The GAP layer gets the USER_DEVICE_NAME from user_config.h. Why you need to do this?

Thanks, PM_Dialog