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.

CC2530: Problem of Z-stack 3.0 BDB reporting on the zclSampleTemperatureSensor

Part Number: CC2530
Other Parts Discussed in Thread: Z-STACK

I'm testing the zclSampleTemperatureSensor in Z-stack 3.0.2.  This sample can join the network created by zigbee2mqtt. I could send the temperature to the sever correctly when it join/rejoin the network.

But I could NOT send the temperature when I press the key to change the temperature. I used the sniffer to monitor and I only got the data request per second. I added some test code as below.

if ( zclSampleTemperatureSensor_MeasuredValue < zclSampleTemperatureSensor_MaxMeasuredValue )
{
zclSampleTemperatureSensor_MeasuredValue = zclSampleTemperatureSensor_MeasuredValue + 100; // considering using whole number value
#ifdef BDB_REPORTING
status = bdb_RepChangedAttrValue(SAMPLETEMPERATURESENSOR_ENDPOINT, ZCL_CLUSTER_ID_MS_TEMPERATURE_MEASUREMENT, ATTRID_MS_TEMPERATURE_MEASURED_VALUE);
buff[0]='1';
buff[1]='S';
buff[2]=(status/100)+0x30;
buff[3]=((status%100)/10)+0x30;
buff[4]=(status%10)+0x30;
buff[5]=',';
status=zclSampleTemperatureSensor_MeasuredValue/100;
buff[6]=(status/100)+0x30;
buff[7]=((status%100)/10)+0x30;
buff[8]=(status%10)+0x30;
HalUARTWrite( HAL_UART_PORT_0, buff, 9);
#endif
}

I used the UART tool to monitor. I got the snap as below.  I think the BDB reporting was executed but nothing to send. I waited  20 min to make sure the report could be sent.

[14:06:59.254] UART0 output test1S000,021

[14:33:40.195] 1S000,022

[14:34:04.780] 1S000,023

[14:34:35.174] 1S000,024

[14:34:52.148] 1S000,025

[14:35:07.394] 1S000,026

Could someone help me to figure out this issue?  Thank you very much.