[Zigbee] FOTA, light_switch sample

Hello,

I am playing around the Zigbee samples provided by nRF Connect SDK v2.2.0.

I would like to know how to test FOTA functionality implemented in light_switch sample.

This is what I have done since today :

  1. Device 1: nrf52840dk with network_coordinator sample
  2. Device 2: nrf52840dk with light_bulb sample
  3. Device 3: nrf52840dk with light_switch sample
  4. Device 4: nrf52840 dongle configured as nRF Sniffer for 802.15.4
  5. Device 5: nrf52840dk configured as FOTA server.

All devices successfully created a Zigbee network and I am able to send commands by using On/Off or Level Control clusters.

What I am trying to do is to perform FOTA. After building light_switch sample I noticed that Zephyr generates the .zigbee package for FOTA in build directory, so the only thing I do to setup a FOTA server is running that command for nRF Util :

./nrfutil dfu zigbee -f 127F-0141-01020003-light_switch.zigbee -chan 16 -snr 683954443

I analyzed the frames in Wireshark and I spot that FOTA server sends a Beacon requests to join to network and after a while it successfully becomes a valid member of network. After that it sends the broadcast messages called "OTA Image Notify" to notify all OTA clusters that new image is available. The light_switch device calls the zigbee_fota_zcl_cb but unfortunately it jumps to the default case :

	default:
		LOG_INF("FOTA zcl cb RET_NOT_IMPLEMENTED");
		device_cb_param->status = RET_NOT_IMPLEMENTED;
		break;
	}

As a result Zigbee FOTA procedure is not even started.

What I would like to know is :

  1. Is everything ok with my setup ?
  2. Is that way of testing FOTA ok ? or maybe there is another way to do that ?
  3. Is light_bulb node needed in network for testing FOTA ?

Thanks in advance,

Pawel

  • Hi,

    I figured it out. I wrongly assumed that FOTA checks CRC rather than application version of new firmware before starting FOTA procedure.

    Changing
    CONFIG_MCUBOOT_IMAGE_VERSION="1.2.4"
    to version different than that one stored currently on device solves the problem.


    Additionally I would like to clarify things regarding wrong cluster id printing. It is simply because I made a mistake. I took the cluster ID from the struct which holds data for ZB_ZCL_WRITE action 
    zb_uint16_t cluster_id = device_cb_param->cb_param.set_attr_value_param.cluster_id;
    That is a wrong approach. If you would like to categorize actions in zcl_device_cb by clusters you have to use the frame header
    data which contains cluster_id like this: 

    zb_zcl_parsed_hdr_t cmd_info = {0};
    ZB_ZCL_COPY_PARSED_HEADER(bufid, &cmd_info);
    zb_uint16_t cluster_id = cmd_info.cluster_id;
  • Hi again,
    I was playing around with that sample performing multiple FOTA procedures and I noticed something which seems a little bit strange for me.

    In the light_switch sample I added a few lines for checking what type of the message I received.

    static void zcl_device_cb(zb_bufid_t bufid)
    {
    	zb_zcl_device_callback_param_t *device_cb_param =
    		ZB_BUF_GET_PARAM(bufid, zb_zcl_device_callback_param_t);
    
    	zb_uint16_t attr_id = device_cb_param->cb_param.set_attr_value_param.attr_id;
    	zb_uint16_t cluster_id = device_cb_param->cb_param.set_attr_value_param.cluster_id;
    	LOG_INF("received zcl command, cluster ID: %d, attr ID: %d, cb_id: %d", cluster_id, attr_id,
    		device_cb_param->device_cb_id);
    
    	if (device_cb_param->device_cb_id == ZB_ZCL_OTA_UPGRADE_VALUE_CB_ID) {
    		zigbee_fota_zcl_cb(bufid);
    	} else {
    		device_cb_param->status = RET_NOT_IMPLEMENTED;
    	}
    }

    During FOTA procedure I got following results :

    I: received zcl command, cluster ID: 2, attr ID: 147, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 140, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 70, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 70, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 248, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 147, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 3, cb_id: 28
    I: received zcl command, cluster ID: 2, attr ID: 70, cb_id: 28

    As you can see the attr id is changing constantly and the cluster ID is also incorrect.
    For my understanding the cluster ID value should be ZB_ZCL_CLUSTER_ID_OTA_UPGRADE which is 0x0019.
    I want to highlight that my nRF Sniffer for 802.15.4 shows that frame consists the Cluster ID which is correctly set to 0x0019.
    The same scenario is for other ZCL commands like Reset to Factory Defaults cmd supported by Basic Cluster.

    I will be grateful if you can dispel my doubts and explain if that behaviour is correct for ZBOSS stack.

  • Hi,

    I agree with you that I would've expected that the cluster ID printed should be 0x0019 and the same as what the nRF Sniffer for 802.15.4 displays.

    I suspect that what might be happening is that the cluster ID you get returned during the DFU procedure is not the same as what is observe in the sniffer, but I am not sure what might've caused this behaviour.

    Are you able to spot if you see the same cluster ID messages you listed above scattered in the sniffer trace where you also see 0x0019?

    Could you attach the sniffer trace you see as well as the log generated from performing a DFU and I'll have a closer look?

    Kind regards,
    Andreas

  • Hi,

    I made a small change in logger to print the attrID and cluster ID as hex value.

    /**@brief Callback function for handling ZCL commands.
     *
     * @param[in]   bufid   Reference to Zigbee stack buffer
     *                      used to pass received data.
     */
    static void zcl_device_cb(zb_bufid_t bufid)
    {
    	zb_zcl_device_callback_param_t *device_cb_param =
    		ZB_BUF_GET_PARAM(bufid, zb_zcl_device_callback_param_t);
    
    	LOG_INF("rec zcl command, clID: %04X, attrID: %04X",
    		device_cb_param->cb_param.set_attr_value_param.cluster_id,
    		device_cb_param->cb_param.set_attr_value_param.attr_id);
    
    	if (device_cb_param->device_cb_id == ZB_ZCL_OTA_UPGRADE_VALUE_CB_ID) {
    		zigbee_fota_zcl_cb(bufid);
    	} else {
    		device_cb_param->status = RET_NOT_IMPLEMENTED;
    	}
    }

    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 7102, attrID: 0B43
    D: Process firmware.
    D: Bytes left: 271199 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 7002, attrID: 1840
    D: Process firmware.
    D: Bytes left: 271135 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0402, attrID: 20F1
    D: Process firmware.
    D: Bytes left: 271071 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 2D02, attrID: 32B1
    D: Process firmware.
    D: Bytes left: 271007 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 4002, attrID: 5FF2
    D: Process firmware.
    D: Bytes left: 270943 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 1302, attrID: 4368
    D: Process firmware.
    D: Bytes left: 270879 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0802, attrID: FF40
    D: Process firmware.
    D: Bytes left: 270815 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0702, attrID: 5DB0
    D: Process firmware.
    D: Bytes left: 270751 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 7002, attrID: 0047
    D: Process firmware.
    D: Bytes left: 270687 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 2102, attrID: 3422
    D: Process firmware.
    D: Bytes left: 270623 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: C302, attrID: 08F8
    D: Process firmware.
    D: Bytes left: 270559 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: BF02, attrID: 6FF3
    D: Process firmware.
    D: Bytes left: 270495 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 4F02, attrID: 80F0
    D: Process firmware.
    D: Bytes left: 270431 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_enter_receive
    D: Function: zb_trans_enter_receive
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0302, attrID: 1269
    D: Process firmware.
    D: Bytes left: 270367 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0502, attrID: B446
    D: Process firmware.
    D: Bytes left: 270303 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0402, attrID: 9EE0
    D: Process firmware.
    D: Bytes left: 270239 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 2502, attrID: 42D0
    D: Process firmware.
    D: Bytes left: 270175 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    I: Bulb not found, try again
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: A802, attrID: 2873
    D: Process firmware.
    D: Bytes left: 270111 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0002, attrID: 4028
    D: Process firmware.
    D: Bytes left: 270047 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x03
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 5F02, attrID: 81FA
    D: Process firmware.
    D: Bytes left: 269983 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 4402, attrID: D175
    D: Process firmware.
    D: Bytes left: 269919 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0202, attrID: 9803
    D: Process firmware.
    D: Bytes left: 269855 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0002, attrID: 082B
    D: Process firmware.
    D: Bytes left: 269791 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 9B02, attrID: AE1A
    D: Process firmware.
    D: Bytes left: 269727 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 3A02, attrID: 69F0
    D: Process firmware.
    D: Bytes left: 269663 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 9802, attrID: 2047
    D: Process firmware.
    D: Bytes left: 269599 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 8A02, attrID: 108B
    D: Process firmware.
    D: Bytes left: 269535 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 8002, attrID: 30F8
    D: Process firmware.
    D: Bytes left: 269471 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 1302, attrID: 6FFA
    D: Process firmware.
    D: Bytes left: 269407 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0402, attrID: 0021
    D: Process firmware.
    D: Bytes left: 269343 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_enter_receive
    D: Function: zb_trans_enter_receive
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 6702, attrID: 0535
    D: Process firmware.
    D: Bytes left: 269279 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: A102, attrID: 0042
    D: Process firmware.
    D: Bytes left: 269215 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 9C02, attrID: 0535
    D: Process firmware.
    D: Bytes left: 269151 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 8D02, attrID: 08F8
    D: Process firmware.
    D: Bytes left: 269087 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: E002, attrID: 62D1
    D: Process firmware.
    D: Bytes left: 269023 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0002, attrID: 12E0
    D: Process firmware.
    D: Bytes left: 268959 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0002, attrID: AD00
    D: Process firmware.
    D: Bytes left: 268895 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0402, attrID: FB00
    D: Process firmware.
    D: Bytes left: 268831 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 4D02, attrID: 3422
    D: Process firmware.
    D: Bytes left: 268767 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0102, attrID: 1FF0
    D: Process firmware.
    D: Bytes left: 268703 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 6A02, attrID: 4221
    D: Process firmware.
    D: Bytes left: 268639 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 6502, attrID: 7CF8
    D: Process firmware.
    D: Bytes left: 268575 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: B302, attrID: 00F5
    D: Process firmware.
    D: Bytes left: 268511 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0B02, attrID: 3CF0
    D: Process firmware.
    D: Bytes left: 268447 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0B02, attrID: 72F0
    D: Process firmware.
    D: Bytes left: 268383 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    I: Bulb not found, try again
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: FF02, attrID: 3830
    D: Process firmware.
    D: Bytes left: 268319 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_enter_receive
    D: Function: zb_trans_enter_receive
    I: rec zcl command, clID: 3302, attrID: D2F0
    D: Process firmware.
    D: Bytes left: 268255 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 3502, attrID: F9F0
    D: Process firmware.
    D: Bytes left: 268191 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 3502, attrID: D7F0
    D: Process firmware.
    D: Bytes left: 268127 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 3302, attrID: 5DF0
    D: Process firmware.
    D: Bytes left: 268063 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0302, attrID: 35A8
    D: Process firmware.
    D: Bytes left: 267999 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x03
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0402, attrID: FDF5
    D: Process firmware.
    D: Bytes left: 267935 copy: 64
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: C302, attrID: C0F3
    D: Process firmware.
    D: Bytes left: 267871 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: C302, attrID: C0F3
    D: Process firmware.
    D: Bytes left: 267807 copy: 64
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 8D02, attrID: 09F8
    D: Process firmware.
    D: Bytes left: 267743 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0202, attrID: 2AA9
    D: Process firmware.
    D: Bytes left: 267679 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 4F02, attrID: FFF0
    D: Process firmware.
    D: Bytes left: 267615 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 5F02, attrID: 0154
    D: Process firmware.
    D: Bytes left: 267551 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 5302, attrID: 6FFE
    D: Process firmware.
    D: Bytes left: 267487 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 5002, attrID: 9430
    D: Process firmware.
    D: Bytes left: 267423 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: D702, attrID: 6FE7
    D: Process firmware.
    D: Bytes left: 267359 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0402, attrID: 0469
    D: Process firmware.
    D: Bytes left: 267295 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 1302, attrID: 4343
    D: Process firmware.
    D: Bytes left: 267231 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_enter_receive
    D: Function: zb_trans_enter_receive
    D: Function: zb_trans_enter_receive
    I: rec zcl command, clID: 7D02, attrID: 07F8
    D: Process firmware.
    D: Bytes left: 267167 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0102, attrID: 2034
    D: Process firmware.
    D: Bytes left: 267103 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 7B02, attrID: 0E78
    D: Process firmware.
    D: Bytes left: 267039 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0702, attrID: 12B5
    D: Process firmware.
    D: Bytes left: 266975 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: EE02, attrID: 03E7
    D: Process firmware.
    D: Bytes left: 266911 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 7B02, attrID: 91B1
    D: Process firmware.
    D: Bytes left: 266847 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 5302, attrID: 8078
    D: Process firmware.
    D: Bytes left: 266783 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: D402, attrID: A0F8
    D: Process firmware.
    D: Bytes left: 266719 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 1002, attrID: 7047
    D: Process firmware.
    D: Bytes left: 266655 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0602, attrID: 4FD1
    D: Process firmware.
    D: Bytes left: 266591 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: B002, attrID: 80FA
    D: Process firmware.
    D: Bytes left: 266527 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    I: Bulb not found, try again
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0702, attrID: 01D1
    D: Process firmware.
    D: Bytes left: 266463 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 0502, attrID: 3470
    D: Process firmware.
    D: Bytes left: 266399 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 1402, attrID: 80F0
    D: Process firmware.
    D: Bytes left: 266335 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    D: Received new Zigbee event: 0x02
    D: Function: zb_trans_get_next_packet
    I: rec zcl command, clID: 8102, attrID: 8546
    D: Process firmware.
    D: Bytes left: 266271 copy: 64
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Function: zb_trans_transmit, channel: 16
    D: Function: zb_trans_buffer_free
    D: Received new Zigbee event: 0x01
    D: Received


    ota_log_sniffer.pcapng

    I will be very glad if you can take a look on that.  The only change I made in light switch sample is the code pasted above and two configs in prj_fota.conf to enable logs from ZBOSS and FOTA.

    I look forward to hearing from you

  • Hello,

    Andreas is out of office for a while, so he asked if I could look after this ticket. 

    When you built your sample, did you enable the configurations to enable FOTA? How did you set up your build configuration?

    And is the issue that you do not see the FOTA packets in your zcl_device_cb()? But you do see the events in zigbee_fota_zcl_cb()? However, only the "default" switch case. In those cases, what is the ota_upgrade_value->upgrade_status?

    Best regards,

    Edvin

Related