Other Parts Discussed in Thread: Z-STACK
Tool/software: Linux
I am using the Z-stack Linux gateway with Z-stack 3.0.1, and I need some help understanding the process for an end device OTA update, I'm running a test to see if I can upgrade the firmware of a lightbulb. I found some useful information in the Z-StackLinuxGatewayUserGuide.pdf in section '6.3.3.7 OTA Upgrade'. I followed the instructions and edited the “sample_app_ota.cfg" file on my system in /opt/intwine/ha-gateway/servers/ The original file contents I had were:
/zigbeegateway/misc/ota_sample_images/5678-1234-0000BBBB.zigbee 1 00:12:4B:00:02:3B:29:D9
I edited that file to read the path to the firmware I want to use in the update and the IEEE address of the device on my network.
/opt/intwine/ha-gateway/misc/ota_sample_images/DimmableLight_JN5168_PWMTCP_60W_A19_2700K_OTA_v12.ota 1 00:15:8D:00:00:CE:0F:3F
The I went into the sample app and pressed "O", I captured some output from the OTA server:
[15:02:06.666,972] [OTASRVR/LSTN] PKTTYPE: [ OTASRVR<<SMPLAPP] OtaUpdateEnableReq
[15:02:06.667,210] [OTASRVR/LSTN] PKTBODY: cmdID = OTA_UPDATE_ENABLE_REQ
[15:02:06.667,283] [OTASRVR/LSTN] PKTBODY: mode = DOWNLOAD_ENABLE
[15:02:06.668,806] [OTASRVR/LSTN] PKTTYPE: [ OTASRVR>>SMPLAPP] OtaUpdateEnableCnf
[15:02:06.676,042] [OTASRVR/LSTN] PKTBODY: cmdID = OTA_UPDATE_ENABLE_CNF
[15:02:06.677,508] [OTASRVR/LSTN] PKTBODY: status = 0
[15:02:06.680,643] [OTASRVR/LSTN] PKTTYPE: [ OTASRVR<<SMPLAPP] OtaUpdateImageRegisterationReq
[15:02:06.680,991] [OTASRVR/LSTN] PKTBODY: cmdID = OTA_UPDATE_IMAGE_REGISTERATION_REQ
[15:02:06.681,150] [OTASRVR/LSTN] PKTBODY: imagePath: <UNKNOWN_TYPE 14>
[15:02:06.681,278] [OTASRVR/LSTN] PKTBODY: registerUnregister = 1
[15:02:06.681,393] [OTASRVR/LSTN] PKTBODY: executeTiming = IMMEDIATE
[15:02:06.681,511] [OTASRVR/LSTN] PKTBODY: updateSupportedDeviceList = 1
[15:02:06.681,626] [OTASRVR/LSTN] PKTBODY: notification = UNICAST_NOT
[15:02:06.681,808] [OTASRVR/LSTN] PKTTYPE: [ OTASRVR>>SMPLAPP] OtaZigbeeGenericCnf
[15:02:06.681,943] [OTASRVR/LSTN] PKTBODY: cmdId = ZIGBEE_GENERIC_CNF
[15:02:06.682,153] [OTASRVR/LSTN] PKTBODY: status = FAILURE
I could use some help interpreting the error message here. What does it mean that the imagePath is an <UNKNOWN_TYPE 14>? Is the '.ota' update file I'm using not a supported file type for this OTA operation? Or is the sample app simply unable to find my file on the system? Or is it something completely different?
Thanks for your help in this,
-James Mather