Skip to content

Commit

Permalink
Transition to version 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
pvvx committed Dec 13, 2023
1 parent 6a99983 commit 63fd8a2
Show file tree
Hide file tree
Showing 29 changed files with 11 additions and 6 deletions.
Binary file removed ATC_v45.bin
Binary file not shown.
Binary file modified ATC_v46.bin
Binary file not shown.
Binary file removed BTH_v45.bin
Binary file not shown.
Binary file modified BTH_v46.bin
Binary file not shown.
Binary file removed CGDK2_v45.bin
Binary file not shown.
Binary file modified CGDK2_v46.bin
Binary file not shown.
Binary file removed CGG1M_v45.bin
Binary file not shown.
Binary file modified CGG1M_v46.bin
Binary file not shown.
Binary file removed CGG1_v45.bin
Binary file not shown.
Binary file modified CGG1_v46.bin
Binary file not shown.
Binary file removed MHO_C122_v45.bin
Binary file not shown.
Binary file modified MHO_C122_v46.bin
Binary file not shown.
Binary file removed MHO_C401N_v45.bin
Binary file not shown.
Binary file modified MHO_C401N_v46.bin
Binary file not shown.
Binary file removed MHO_C401_v45.bin
Binary file not shown.
Binary file modified MHO_C401_v46.bin
Binary file not shown.
5 changes: 2 additions & 3 deletions firmware.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{"version": 69, "betaver": 70, "zbjson": "https://raw.githubusercontent.com/pvvx/ZigbeeTLc/master/firmware.json",
"custom":["ATC_v45.bin", "MHO_C401_v45.bin", "CGG1_v45.bin", "ATC_v45.bin", "ATC_v45.bin", "ATC_v45.bin", "CGDK2_v45.bin", "CGG1M_v45.bin","MHO_C401N_v45.bin","BTH_v45.bin","ATC_v45.bin","MHO_C122_v45.bin","?","?","?","?","?","https://raw.githubusercontent.com/pvvx/BLE_THSensor/master/source/TS0201/TS0201_v45.bin"],
"betafw":["ATC_v46.bin", "MHO_C401_v46.bin", "CGG1_v46.bin", "ATC_v46.bin", "ATC_v46.bin", "ATC_v46.bin", "CGDK2_v46.bin", "CGG1M_v46.bin","MHO_C401N_v46.bin","BTH_v46.bin","ATC_v46.bin","MHO_C122_v46.bin","?","?","?","?"],
{"version": 70, "betaver": 71, "zbjson": "https://raw.githubusercontent.com/pvvx/ZigbeeTLc/master/firmware.json",
"custom":["ATC_v46.bin", "MHO_C401_v46.bin", "CGG1_v46.bin", "ATC_v46.bin", "ATC_v46.bin", "ATC_v46.bin", "CGDK2_v46.bin", "CGG1M_v46.bin","MHO_C401N_v46.bin","BTH_v46.bin","ATC_v46.bin","MHO_C122_v46.bin","?","?","?","?","?","https://raw.githubusercontent.com/pvvx/BLE_THSensor/master/source/TS0201/TS0201_v45.bin"],
"original":["Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130.bin","Original_OTA_Xiaomi_MHO_C401_v1.0.0_0010.bin","Original_OTA_CGG1_v1.0.1_0093.bin","Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130.bin","Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130.bin","Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130.bin", "Original_OTA_CGDK2_v1.1.1_0217.bin", "Original_OTA_CGG1M_v2.2.1.bin","Original_OTA_Xiaomi_MHO_C401_v1.0.0_0016.bin","Original_OTA_Xiaomi_MJWSD05MMC_v2.0.0_0026.bin","Original_OTA_Xiaomi_LYWSD03MMC_v1.0.0_0130.bin","Original_OTA_MHO_C122_tuya.bin","?","?","?","?"]}


4 changes: 2 additions & 2 deletions src/app_att.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ static const u8 my_ManCharVal[5] = {
};
static const u8 my_FirmStr[] = {"github.com/pvvx"};
#if USE_FLASH_SERIAL_UID
RAM uint8_t my_SerialStr[21]; // "556202-C86013-0123456"
RAM uint8_t my_SerialStr[20]; // "556202-C86013-123456"
#endif
#if DEVICE_TYPE == DEVICE_MJWSD05MMC
static const u8 my_ModelStr[] = {"MJWSD05MMC"};
Expand Down Expand Up @@ -489,7 +489,7 @@ void my_att_init(void) {
*p++ = '-';
// Read flash UID
flash_read_uid(buf);
memcpy(p, buf, 7);
memcpy(p, buf, 6);
//ser_uid_txt(p, &buf[4], 7);
#endif
#if BLE_SECURITY_ENABLE
Expand Down
5 changes: 5 additions & 0 deletions src/ext_ota.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ void ota_result_cb(int result) {
}
}

/*
* Input:
* ota_addr (0x40000)
* ota_size in kB
*/
uint8_t check_ext_ota(uint32_t ota_addr, uint32_t ota_size) {
if(ota_is_working == OTA_EXTENDED)
return EXT_OTA_BUSY;
Expand Down
3 changes: 2 additions & 1 deletion src/sensors.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ _attribute_ram_code_ __attribute__((optimize("-Os"))) int read_sensor_cb(void) {
}
}
} while (i--);
soft_reset_sensor();
check_sensor();
// Sleep command of the sensor = sensor_go_sleep();
sensor_go_sleep();
return 0;
}
Expand Down
Binary file modified zigbee_ota/1141-0201-99993001-MHO_C401_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-0202-99993001-CGG1M_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-0202-99993001-CGG1_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-0203-99993001-ATC_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-0206-99993001-CGDK2_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-0208-99993001-MHO_C401N_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-0209-99993001-BTH_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-020a-99993001-ATC_v46.zigbee
Binary file not shown.
Binary file modified zigbee_ota/1141-020b-99993001-MHO_C122_v46.zigbee
Binary file not shown.

0 comments on commit 63fd8a2

Please sign in to comment.