Forums - QCA4020 Zigbee OTA Start transfer error

6 posts / 0 new
Last post
QCA4020 Zigbee OTA Start transfer error
akshay.b
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

 

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Thu, 2020-07-30 15:46

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

  • Up0
  • Down0
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Tue, 2020-08-04 07:25

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)

ZigBee> initialize
 
ZigBee: ZigBee stack initialized.
ZigBee:    Extended Address: 00F48DFFFFFF035E
 
ZigBee>  setextaddress 0x1234
 
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
 
 
(CLIENT)
ZigBee> initialize
 
ZigBee: ZigBee stack initialized.
ZigBee:    Extended Address: 00F48DFFFFFF039D
 
ZigBee> setextaddress 0x4321
 
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:        -150202
ZigBee:   NwkAddress:    0x0000
ZigBee:   ExtendedPanId: 0000000000000000
ZigBee:   Channel:       0
 
ZigBee> join 1 1 0 17
 
ZigBee: qapi_ZB_Join() success.
 
ZigBee>
ZigBee: Join confirm:
ZigBee:   Status:        -150202
ZigBee:   NwkAddress:    0x0000
ZigBee:   ExtendedPanId: 0000000000000000
ZigBee:   Channel:       0
 
 
We are using qca4020 silex board which are connecting in a network on a TI zigbee server. But if we make one board as server and other as client it is showing error -150202 while joining network. we know error "-150202" refers to "QAPI_ZB_ERR_NWK_NO_NETWORKS".
 
Beacon are sent as seen on sniffer when we enter join command. 
 
After sending form and permitjoin command on server side, we are immediately sending join command on client side.
 
We are facing this issue from long time. Would appretiate if we can get exact solution.
 
Regards,
Akshaay
  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Tue, 2020-08-04 12:57

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

  • Up0
  • Down0
akshay.b
Join Date: 2 Aug 19
Posts: 62
Posted: Thu, 2020-08-06 12:03

We are using latest SDK 3.2

Can you share link from where can i download newest SDK.

 

Regards,

Akshaay

  • Up0
  • Down0
c_rpedad
Profile picture
Join Date: 18 Jun 18
Location: San Jose
Posts: 317
Posted: Thu, 2020-08-06 15:30

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.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.