Skip to content

Commit

Permalink
Update version
Browse files Browse the repository at this point in the history
  • Loading branch information
fairecasoimeme committed Sep 30, 2022
1 parent 3e6e379 commit ec2859f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ZLinky/Build/mcux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -582,9 +582,9 @@ ifeq ($(OTA_ENCRYPTED),0)
$(JET_BASE)/JET.exe -m otamerge --embed_hdr -c outputffffffffffffffff.bin -o $(APP_OUT_DIR)/$(TARGET_FULL)_V1.bin -v $(JET_VERSION) -n 1 -u $(MANUFACTURER_CODE) -t $(OTA_DEVICE_ID) -j $(OTA_STRING) --sector_size=512

# Modify Embedded Header to reflect version 2
$(JET_BASE)/JET.exe -m otamerge --embed_hdr -c $(APP_OUT_DIR)/$(TARGET_FULL)_V1.bin -o $(APP_OUT_DIR)/$(TARGET_FULL)_V2.bin -v $(JET_VERSION) -n 8 -u $(MANUFACTURER_CODE) -t $(OTA_DEVICE_ID) -j $(OTA_STRING) --sector_size=512
$(JET_BASE)/JET.exe -m otamerge --embed_hdr -c $(APP_OUT_DIR)/$(TARGET_FULL)_V1.bin -o $(APP_OUT_DIR)/$(TARGET_FULL)_V2.bin -v $(JET_VERSION) -n 9 -u $(MANUFACTURER_CODE) -t $(OTA_DEVICE_ID) -j $(OTA_STRING) --sector_size=512
# Wrap the Image with OTA header with version 2
$(JET_BASE)/JET.exe -m otamerge --ota -c $(APP_OUT_DIR)/$(TARGET_FULL)_V2.bin -o $(APP_OUT_DIR)/$(TARGET_FULL)_V8.ota -p 1 -v $(JET_VERSION) -n 8 -u $(MANUFACTURER_CODE) -t $(OTA_DEVICE_ID) -j $(OTA_STRING) --sector_size=512
$(JET_BASE)/JET.exe -m otamerge --ota -c $(APP_OUT_DIR)/$(TARGET_FULL)_V2.bin -o $(APP_OUT_DIR)/$(TARGET_FULL)_V9.ota -p 1 -v $(JET_VERSION) -n 9 -u $(MANUFACTURER_CODE) -t $(OTA_DEVICE_ID) -j $(OTA_STRING) --sector_size=512

# Modify Embedded Header to reflect version 3
#$(JET_BASE)/JET.exe -m otamerge --embed_hdr -c $(APP_OUT_DIR)/$(TARGET_FULL)_V1.bin -o $(APP_OUT_DIR)/$(TARGET_FULL)_V3.bin -v $(JET_VERSION) -n 3 -u $(MANUFACTURER_CODE) -t $(OTA_DEVICE_ID) -j $(OTA_STRING) --sector_size=512
Expand Down
8 changes: 4 additions & 4 deletions ZLinky/Source/app_zcl_task.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,13 +686,13 @@ PRIVATE void APP_vZCL_DeviceSpecific_Init(void)
{
memcpy(sBaseDevice.sBasicServerCluster.au8ManufacturerName, "LiXee", CLD_BAS_MANUF_NAME_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8ModelIdentifier, "ZLinky_TIC", CLD_BAS_MODEL_ID_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8DateCode, "20220923", CLD_BAS_DATE_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8SWBuildID, "4000-0008", CLD_BAS_SW_BUILD_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8DateCode, "20220930", CLD_BAS_DATE_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8SWBuildID, "4000-0009", CLD_BAS_SW_BUILD_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8ProductURL, "LiXee.fr", CLD_BAS_URL_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8ProductCode, "0008", CLD_BAS_PCODE_SIZE);
memcpy(sBaseDevice.sBasicServerCluster.au8ProductCode, "0009", CLD_BAS_PCODE_SIZE);
memcpy(sBaseDevice.sLinkyServerCluster.au8LinkyOptarif, "BASE",4);

sBaseDevice.sBasicServerCluster.u8ApplicationVersion=0x08;
sBaseDevice.sBasicServerCluster.u8ApplicationVersion=0x09;
sBaseDevice.sSimpleMeteringServerCluster.eMeteringDeviceType = E_CLD_SM_MDT_ELECTRIC;
}

Expand Down

0 comments on commit ec2859f

Please sign in to comment.