Dear Dialog,
I have a question about DSPS_v_5.150.2.
I want to change a USER_ADVERTISE_DATA value in DSPS_v_5.150.2 with sps_driver project.
But when I changed this definition like below, then the DPSP app with iOS can't find a fixed sps device.
请让我知道我可以查nge this definition.
1. (Before) user_config.h
#define USER_ADVERTISE_DATA "\x11\x07\xb7\x5c\x49\xd2\x04\xa3\x40\x71\xa0\xb5\x35\x85\x3e\xb0\x83\x07"
2. (After) user_config.h
#define USER_ADVERTISE_DATA "\x1A\xFF\x75\x00\x02\x15\x58\x5C\xDE\x93\x1B\x01\x42\xCC\x9A\x13\x25\x00\x9B\xED\xC6\x5E\x53\x48\x00\x6D\xC5"
Best regards,
Hogyun Kim.
Device:
Hi hogyunkim,
Thats because your device isn't advertising, seems that there is a bug in the DSPS regarding the population of the default advertising message, due to this issue the available space in the advertising message isn't populated properly and no matter how long the advertising data are, the name of the device always appends to the advertising string instead of the scanning data, you can solve this by changing the in app_easy_gap_undirected_advertise_start_create_msg() function the adv_avail_space variable into a int16_t type.
int16_t adv_avail_space = APP_ADV_DATA_MAX_SIZE - adv_cmd->info.host.adv_data_len - 2;
Thanks MT_dialog
Dear Dialog,
Thanks for your support.
I understand your comment.
Best regards,
Dear Dialog:
I want to know what's the mean of this string -"\x11\x07\xb7\x5c\x49\xd2\x04\xa3\x40\x71\xa0\xb5\x35\x85\x3e\xb0\x83\x07.and what does this used for?
thanks
Hi RandyYu,
The 0x11 is the length of the following bytes, the 0x07 is the tag that denotes that the following UUID is a complete list of 128 bit service UUID and the rest of the bytes are the UUID of the 128 byte service. If you check where the UUID's of the DSPS service and characteristics are declared (in the sps_server), you will notice that the UUID of the service is identical to the UUID that is placed in the advertising string.
Thanks MT_dialog
Dear Dialog,
I have another question about DSPS_v_5.150.2.
I want to change a USER_ADVERTISE_SCAN_RESPONSE_DATA value in DSPS_v_5.150.2 with sps_driver project.
But when I changed this definition like below, then there is a ASSERT_ERROR in app_easy_gap_adv_read_from_NVDS function.
Also I have an error message '..\..\..\..\..\sdk_580\sdk\platform\core_modules\nvds\src\nvds.c(57): error: #144: a value of type "char [46]" cannot be used to initialize an entity of type "uint8_t [32]"'!!
请让我知道我可以查nge the USER_ADVERTISE_SCAN_RESPONSE_DATA value.
1. (Before) user_config.h
#define USER_ADVERTISE_SCAN_RESPONSE_DATA ""
2. (After) user_config.h
#define USER_ADVERTISE_SCAN_RESPONSE_DATA "\09\09\53\53\53\53\53\53\53\53\13\16\0A\18\09\C5\FF\5C\6A\00\AA\00\34\12\BC\9A\78\56\34\12"
Best regards,
Hogyun Kim.
i Hogyun, I'll have the local team contact you . BR JE_Dialog
Hi Hogyun,
To change the scan response data, the data should be set as below :
#define USER_ADVERTISE_SCAN_RESPONSE_DATA "\x09\x09\x53\x53\x53\x53\x53\x53\x53\x53\x13\x16\x0A\x18\x09\xC5\xFF\x5C\x6A\x00\xAA\x00\x34\x12\xBC\x9A\x78\x56\x34\x12"
And if you want to set the device name into the scan response data, you need to remove the user device name from advertising data as below:
#define USER_DEVICE_NAME “” //- commented out "DIALOG-SPS"
I have sent you an email for this question.
If you have any question, please don't hesitate to contact me anytime.
Best Regards
Alvin.