Hello,
I am working on OTA using Zigbee to transfer image from one QCA4020 board to other when connected in one network, i am using QCLI_demo example code for this test.
Referring the document from QCA4020 programmer guide i am successfully able to generate the ota.bin file.
1. Stuck here now what to do further the document says ota.bin and all files which are listed at fw_upgrade.xml must be copied to firmware upgrade server for firmware upgrade. Where is this firmware upgrade server folder and how to proceed further?
2. What commands will be used to send the image from one QCA4020 board to other? if i can get brief idea.
Thank you,
Regards,
Akshay24
After generation of binary image, copy generated "ota_image.bin" to "target\bin\ota\ota_image.bin".
Then flash the zigbee server using "flash.bat ota" in QCLI_demo and the client using "flash.bat".
The "ota" parameter to flash.bat specifies to include the binary as filesystem.
Zigbee Console Commands:
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 for Join confirm//
zigbee ota discoverserver 0 1
zigbee ota starttransfer 1
//Reboot device after successful transfer //
FwUp trail 0 //to accept the OTA image
Kindly note if your default flash size is small, assuming your demo application image is large then you may experience ota failure due to limited memory.
Hello,
Here i am getting error while joining the network, the network is formed properly with status =0.
After entering permit join command at server side, When i join the networking at client side, i am getting status = -150202.
Please suggest me the possible solution also below i am pasting the command and response at client and server side.
On server side to form network i am getting below response:
The error "-150202" refers to "QAPI_ZB_ERR_NWK_NO_NETWORKS", you can refer to "Qapi_zb.h" for more detailed information on zigbee errors.
In case of No network errors, kindly run "permitjoin 255" on server and "join 1 1" on client side to make sure the server initiated network and client is able to join successfully.
Hello,
I also tried to run "permitjoin 255" on server side and then run the "join 1 1" on client side still it is giving the same error.
I hope that the permit join should run for 255 seconds, but cant see anything displaying permit join on sniffer for the channel.
When i run "join 1 1 " command it shows beacon request but no response for the beacon from server side on sniffer.
What can be the issue and please suggest a solution.
Thank you
Zigbee initialize
zigbee setextaddress 0x1234
zigbee zcl createendpoint 1 5
zigbee form 1
zigbee permitjoin 255
Zigbee initialize
zigbee setextaddress 0x4321
zigbee zcl createendpoint 1 6
zigbee join 1 1
Hello raja_pedada,
Below is the reply for both qca4020, what i can conclude is when we enter permitjoin 255, there is nothing displayed on sniffer. so when we do join 1 1 it throws network error.
QCA4020_1:
I have tried using mutiple CDB20 devices using the same software SDK and was able to successfully form and join the network:
/*****Co-Ordinator**********/
ZigBee> Initialize
ZigBee: ZigBee stack initialized.
ZigBee: Extended Address: 0000141200F0FD8C
Hello,
I am using silex QCA4020 board and the issue is on these boards connection, it is simple and straight forward process connecction between two device but not able to connect, is there any other setting.
Also i am able to join this qca4020 board in the network with TI controller as coordinator. But forming network between two two silex board is showing error.
Thank you,
Akshaay