QCA4020 Zigbee OTA Start transfer error
Join Date: 2 Aug 19
Posts: 62
Posted: Sat, 2020-07-25 09:16
Hello,
While working with Zigbee OTA we are receiving an issue while sending starttransfer command using QCLI_demo project.
Below is the output for command on client side:
ZigBee> initialize
ZigBee: ZigBee stack initialized.
ZigBee: Extended Address: 00F48DFFFFFF035E
ZigBee> setextaddress 0x4321
ZigBee: qapi_ZB_Set_Extended_Address() success.
ZigBee> zcl
ZigBee\ZCL> createendpoint 2 22
ZigBee\ZCL: qapi_ZB_CL_Register_Callback() success.
ZigBee\ZCL: Endpoint 2 Initialized as OTA Upgrade Client.
ZigBee> join 1 1
ZigBee: qapi_ZB_Join() success.
ZigBee>
ZigBee: Join confirm:
ZigBee: Status: 0
ZigBee: NwkAddress: 0xEA86
ZigBee: ExtendedPanId: 193F598A00124B00
ZigBee: Channel: 17
ZigBee> ota
ZigBee\OTA> discoverserver 0 2
ZigBee\OTA: qapi_ZB_CL_OTA_Client_Discover() success.
ZigBee\OTA> starttransfer 2
ZigBee\OTA: qapi_ZB_CL_OTA_Image_Block_Start_Transfer returned -150152 (Unknown)
1. Why are we getting -150152 error? what does this error means?
2. The command sequence we are using is correct for zigbee OTA transfer?
We are using TI CC2530 as zigbee server with Beaglebone.
On sending Image notify command (0x00) for OTA upgrade cluster(0x0019), we are receiving a callback on QCA4020 side as below.
ZigBee\OTA: OTA client image notify callback received.
ZigBee\OTA: PayloadType: 3.
ZigBee\OTA: Jitter: 100.
ZigBee\OTA: MfgCode: 48830.
ZigBee\OTA: ImageType: 9528.
ZigBee\OTA: FileVersion: 0.
Please help to solve this issue.
Regards,
Akshaay
Error -150152 refers to QAPI_ZB_ERR_ZCL_NO_IMAGE_AVAILABLE, KIndly refer to @file qapi_zb_cl.h for detailed error codes.
Yes, The instructions you are using are valid. Below are the commands we tried to verify Zigbee OTA between two CDB20 devies:
(server)
zigbee initialize
zigbee setextaddress 0x1234
zigbee zcl createendpoint 1 9
zigbee form 1
zigbee permitjoin 255
(client)
zigbee initialize
zigbee setextaddress 0x4321
zigbee zcl createendpoint 1 11
zigbee join 1 1
[ Wait to Join]
zigbee ota discoverserver 0 1
zigbee ota StartTransfer 1
/* Accept Trial Image and Reboot the device*/
FwUp trial 0
Hi,
We are facing issue while configuring a device as zigbee coordinator (server).
We are sending commands for server and client in following sequence:
(SERVER)
Kindly Confirm if you are using latest SDK for testing the Zigbee Connection.
SERVER:
ZigBee: ZigBee stack initialized.
ZigBee: Extended Address: 000004A399F0FD8C
ZigBee> SetExtAddress 1234
ZigBee: qapi_ZB_Set_Extended_Address() success.
ZigBee> zcl createendpoint 1 9
ZigBee\ZCL: qapi_ZB_CL_Register_Callback() success.
ZigBee\ZCL: Endpoint 1 Initialized as Custom Server.
ZigBee> form 1 0 17
ZigBee: qapi_ZB_Form() success.
ZigBee>
ZigBee: Form confirm:
ZigBee: Status: 0
ZigBee: Channel: 17
ZigBee> permitjoin 255
ZigBee: qapi_ZB_Permit_Join() success.
ZigBee>
ZigBee\ZDP: Device Annce:
ZigBee\ZDP: ExtendedAddress: 0000000000000043
ZigBee\ZDP: NetworkAddress: 0x9373
ZigBee\ZDP: Capability: 0x8E
CLIENT:
ZigBee: ZigBee stack initialized.
ZigBee: Extended Address: 0000000000000000
ZigBee> SetExtAddress 43
ZigBee: qapi_ZB_Set_Extended_Address() success.
ZigBee> zcl createendpoint 1 11
ZigBee\ZCL: qapi_ZB_CL_Register_Callback() success.
ZigBee\ZCL: Endpoint 1 Initialized as General Server.
ZigBee> join 1 1
ZigBee: qapi_ZB_Join() success.
ZigBee>
ZigBee: Join confirm:
ZigBee: Status: 0
ZigBee: NwkAddress: 0x9373
ZigBee: ExtendedPanId: 0000000000001234
ZigBee: Channel: 17
We are using latest SDK 3.2
Can you share link from where can i download newest SDK.
Regards,
Akshaay
I have verified using CS3.2 where Zigbee connection is working fine.
Can you try QCA4020 as Server and TI device as Client and confirm if you are still facing connection issue ?
However, also kindly contact Silex and ask if they can share latest NVM file for the QCA4020 device and mention 15.4 radio TX power issue when trying to connect with Server.