Dialog Semiconductor customer support - diss serial number https://support.dialog-semiconductor.com/resource-keywords/diss-serial-number en 添加序列号迪斯概要文件 https://support.dialog-semiconductor.com/adding-serial-number-diss-profile < div class = " field field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above">
Forums: 

The app_diss_task.c function diss_create_db_cfm_handler() that comes with the SDK does not include code to set the serial number. So I figured I would add it because we need it. So, I added some boiler plate code along with the other snippets that look a lot like this one.

But my client code doesn't see a serial number, nor does it show up on BlueLoupe (although I don't know if it ignores the serial number). I should add that my message does get dispatched to the task and the DISS_SET_CHAR_VAL_REQ message does get executed without error.

There is clearly something I'm missing... perhaps some help from the gallery?

thanks,
marco


// Set the serial number in the DB. APP_DIS_SERIAL_NUMBER = "149-235"
{
len = strlen(APP_DIS_SERIAL_NUMBER);
struct diss_set_char_val_req *req_id = KE_MSG_ALLOC_DYN(DISS_SET_CHAR_VAL_REQ, TASK_DISS, TASK_APP, diss_set_char_val_req, len);
// Fill in the parameter structure
req_id->char_code = DIS_SERIAL_NB_STR_CHAR;
req_id->val_len = len;
memcpy(&req_id->val[0], APP_DIS_SERIAL_NUMBER, len);
// Send the message
ke_msg_send(req_id);
}

Device: 
Fri, 26 Jun 2015 21:35:30 +0000 marcodg 1758 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/adding-serial-number-diss-profile#comments