2017年12月18日 星期一

Silicon lab OTA test on virtual gateway

On this article we  will try to use zigbee OTA on silicon lab reference design virtual gateway and BRD4151A.

We need to prepare two BRD4151A board.
one we load ncp FW and one we load Z3Occupancy sample code.
About the virtual gateway we can refer this document to build it.

UG129: zigbee® Gateway Reference Design User's Guide (RD-0001-0201, RD-0002-0201)

Here is my step:
1.Following UG129 to download "Oracle VM" and install the Virtual gateway.
2.I met a MQTT version error when i try to input “$ sudo apt-get install silabs-zigbee-gateway”
   you can use following command to install MQTT before you use the
 “$ sudo apt-get install silabs-     zigbee-gateway” command.

   $ sudo apt-add-repository ppa:mosquitto-dev/mosquitto-ppa
   $ sudo apt-get update
   $ sudo apt-get install mosquitto


3.Create a Z3Occupancy Sample on ZNET5.10.0 and you can find the OTA version on following plugin.
Generate and compile on version 46.(save the s37 name to "Z3OccupancySensorSoc_V46.s37")
Change the version bigger than 46 (ex:52)and generate ,compile again.

The OTA server will use following three value to verify the OTA image.
The detail description please refer this document.
AN728-OTAClientServerSetup

Manufacturer ID
Image Type ID
OTA version

4.put the version 52 Z3OccupancySensorSoc.ota file to the following folder.
5.Uplaod ncp FW on another BRD4151A

6.upload Z3OccupancySensorSoc.ebl V46 on BRD4151A.

7.Open the Firefox on VM and add Z3OccupancySensorSoc to VM ,you will see following picture

8.You can find there will show OTA file version as below:
9.If you clock the load item ,ZC will send a "ZCL image notify" command to ZED and will start OTA.
If start OTA ,we will see the update bar as below:
10.After finish,we can find the version change to V52



沒有留言:

張貼留言