This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: Lost advertising when write hex data after read DEVINFO_MANUFACTURER_NAME

Part Number: CC2340R5

Hi,

I got a strange error, I need send a string through uart after advertising, but when I sprintf a Addr hex, I got the expect info through uart, but can't find the advertising info in Simplelink Connect.

I set the DEVINFO_MANUFACTURER_NAME as bellow

devAddr = GAP_GetDevAddress( TRUE );
status = DevInfo_setParameter( DEVINFO_MANUFACTURER_NAME, 6, devAddr );

Here's parts codes format uart output string. I can find advertising in Simplelink Connect with code A, can't find advertising with code B. Even I change devAddr[i] to const value 0x11, we can't find advertising.

How can I fix this error ?

code A

    DevInfo_getParameter(DEVINFO_MANUFACTURER_NAME, devAddr);
    DevInfo_getParameter(DEVINFO_FIRMWARE_REV, firmwareVer);
    usleep(5);
    sprintf(responseWithIds, "%s,VER:%s,Addr:\n", successResponse, firmwareVer);

code B

    DevInfo_getParameter(DEVINFO_MANUFACTURER_NAME, devAddr);
    DevInfo_getParameter(DEVINFO_FIRMWARE_REV, firmwareVer);
    usleep(5);
    sprintf(responseWithIds, "%s,ADDR:%02X%02X%02X%02X%02X%02X,VER:%s\n",
                             successResponse, devAddr[0], devAddr[1], devAddr[2], devAddr[3], devAddr[4], devAddr[5], firmwareVer);