v1.9
This commit is contained in:
parent
bab7273250
commit
15bbcdacc6
57 changed files with 21402 additions and 42731 deletions
21
README-ru.md
21
README-ru.md
|
|
@ -32,19 +32,19 @@ _Далее, с помощью соединения BLE в [PHY62x2BTHome.html](
|
|||
|
||||
| Устройство | Файл Boot | Файл OTA | Маркировка на печатной плате |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| [THB1](https://pvvx.github.io/THB1) | BOOT_THB1_v18.hex | THB1_v18.bin | нет |
|
||||
| [THB2](https://pvvx.github.io/THB2) | BOOT_THB2_v18.hex | THB2_v18.bin | нет |
|
||||
| [THB3](https://pvvx.github.io/THB3) | BOOT_THB2_v18.hex | THB2_v18.bin | нет |
|
||||
| [BTH01](https://pvvx.github.io/BTH01) | BOOT_BTH01_v18.hex | BTH01_v18.bin | нет |
|
||||
| [TH05_V1.4](https://pvvx.github.io/TH-05) | BOOT_TH05_v18.hex | TH05_v18.bin | TH05_V1.4, TH05_V1.5, TH05_V1.6 с чипом BL55028 |
|
||||
| [TH05_V1.3](https://pvvx.github.io/TH05-v1.3) | BOOT_TH05D_v18.hex | TH05D_v18.bin | RSH-TH05-V1.3 с чипом BL55072 |
|
||||
| [TH05F](https://pvvx.github.io/TH05F) | BOOT_TH05F_v18.hex | TH05F_v18.bin | TH05Y_V1.1, TH05Y_V1.2 с чипом QD01 2332 NT |
|
||||
| [THB1](https://pvvx.github.io/THB1) | BOOT_THB1_v19.hex | THB1_v19.bin | нет |
|
||||
| [THB2](https://pvvx.github.io/THB2) | BOOT_THB2_v19.hex | THB2_v19.bin | нет |
|
||||
| [THB3](https://pvvx.github.io/THB3) | BOOT_THB2_v19.hex | THB2_v19.bin | нет |
|
||||
| [BTH01](https://pvvx.github.io/BTH01) | BOOT_BTH01_v19.hex | BTH01_v19.bin | нет |
|
||||
| [TH05_V1.4](https://pvvx.github.io/TH-05) | BOOT_TH05_v19.hex | TH05_v19.bin | TH05_V1.4, TH05_V1.5, TH05_V1.6 с чипом BL55028 |
|
||||
| [TH05_V1.3](https://pvvx.github.io/TH05-v1.3) | BOOT_TH05D_v19.hex | TH05D_v19.bin | RSH-TH05-V1.3 с чипом BL55072 |
|
||||
| [TH05F](https://pvvx.github.io/TH05F) | BOOT_TH05F_v19.hex | TH05F_v19.bin | TH05Y_V1.1, TH05Y_V1.2 с чипом QD01 2332 NT |
|
||||
|
||||
Основные файлы прошивок, BOOT_xxx_vxx.hex для программирования через USB-COM адаптер и xxx_vxx.bin для OTA, находятся в директории [bin](https://github.com/pvvx/THB2/tree/master/bin).
|
||||
|
||||
Файлы для обновления `FW Boot` по OTA находятся в директории [update_boot](https://github.com/pvvx/THB2/tree/master/update_boot). Процесс обновления `FW Boot` через OTA не является безопасным. Перед этим действием проверьте уровень батареи. Если `FW Boot` работает нормально, тогда не требуется обновлять его на новую версию. О необходимости замены `FW Boot` на новую версию будет объявляется дополнительно.
|
||||
Файлы для обновления `FW Boot` по OTA находятся в директории [update_boot](https://github.com/pvvx/THB2/tree/master/update_boot). Процесс обновления `FW Boot` через OTA не является безопасным. Перед этим действием проверьте уровень батареи.
|
||||
|
||||
Актуальная версия `FW Boot` - **v1.7** для устройств с датчиком CHT8305. Для остальных вариантов обновлений `FW Boot` не требуется с версии **v1.4**.
|
||||
Актуальная версия `FW Boot` - **v1.9** для всех устройств (содержит исправления).
|
||||
|
||||
## Основные характеристики
|
||||
|
||||
|
|
@ -74,7 +74,8 @@ _Далее, с помощью соединения BLE в [PHY62x2BTHome.html](
|
|||
| 1.5 | Добавлен вариант шифрования BLE рекламы с помощью BindKey. |
|
||||
| 1.6 | Добавлено усреднение расчета напряжения батареи, дублирование состояния контакта open/close и счетчика через 12..20 сек (кратно интервалу рекламы) после срабатывания и далее каждые 30 минут. |
|
||||
| 1.7 | Исправление ошибки (> 42 C) для сенсора CHT8305 |
|
||||
| 1.8b | Добавлено отображение температуры в градусах Фаренгейта |
|
||||
| 1.8 | Добавлено отображение температуры в градусах Фаренгейта |
|
||||
| 1.9 | Исправлена ошибка восстановления измененного имени устройства после сброса питания |
|
||||
|
||||
## Прошивка
|
||||
|
||||
|
|
|
|||
21
README.md
21
README.md
|
|
@ -33,19 +33,19 @@ The [Boot](#fw-boot-and-ota) firmware has minimal functions. `FW Boot` is only u
|
|||
|
||||
| Device | Boot file | OTA file | Printed circuit board labelling |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| [THB1](https://pvvx.github.io/THB1) | BOOT_THB1_v18.hex | THB1_v18.bin | no |
|
||||
| [THB2](https://pvvx.github.io/THB2) | BOOT_THB2_v18.hex | THB2_v18.bin | no |
|
||||
| [THB3](https://pvvx.github.io/THB3) | BOOT_THB2_v18.hex | THB2_v18.bin | no |
|
||||
| [BTH01](https://pvvx.github.io/BTH01) | BOOT_BTH01_v18.hex | BTH01_v18.bin | no |
|
||||
| [TH05_V1.4](https://pvvx.github.io/TH-05) | BOOT_TH05_v18.hex | TH05_v18.bin | TH05_V1.4, TH05_V1.5, TH05_V1.6 (chip: BL55028) |
|
||||
| [TH05_V1.3](https://pvvx.github.io/TH05-v1.3) | BOOT_TH05D_v18.hex | TH05D_v18.bin | RSH-TH05-V1.3 (chip: BL55072) |
|
||||
| [TH05F](https://pvvx.github.io/TH05F) | BOOT_TH05F_v18.hex | TH05F_v18.bin | TH05Y_V1.1, TH05Y_V1.2 (chip: QD01 2332 NT) |
|
||||
| [THB1](https://pvvx.github.io/THB1) | BOOT_THB1_v19.hex | THB1_v19.bin | no |
|
||||
| [THB2](https://pvvx.github.io/THB2) | BOOT_THB2_v19.hex | THB2_v19.bin | no |
|
||||
| [THB3](https://pvvx.github.io/THB3) | BOOT_THB2_v19.hex | THB2_v19.bin | no |
|
||||
| [BTH01](https://pvvx.github.io/BTH01) | BOOT_BTH01_v19.hex | BTH01_v19.bin | no |
|
||||
| [TH05_V1.4](https://pvvx.github.io/TH-05) | BOOT_TH05_v19.hex | TH05_v19.bin | TH05_V1.4, TH05_V1.5, TH05_V1.6 (chip: BL55028) |
|
||||
| [TH05_V1.3](https://pvvx.github.io/TH05-v1.3) | BOOT_TH05D_v19.hex | TH05D_v19.bin | RSH-TH05-V1.3 (chip: BL55072) |
|
||||
| [TH05F](https://pvvx.github.io/TH05F) | BOOT_TH05F_v19.hex | TH05F_v19.bin | TH05Y_V1.1, TH05Y_V1.2 (chip: QD01 2332 NT) |
|
||||
|
||||
The main firmware files, BOOT_XXX_vXX.hex (for programming via USB-COM adapter) and XXX_vXX.bin (for OTA), are located in the [bin](bin) directory.
|
||||
|
||||
Files for updating boot via OTA are located in the [update_boot](update_boot) directory. **The process of updating boot via OTA is not safe. Please check the battery level before doing this. If boot is working fine, there is no need to update to the new version. The need to replace boot with a new version will be announced later.**
|
||||
Files for updating boot via OTA are located in the [update_boot](update_boot) directory. **
|
||||
|
||||
> The current `FW Boot' version is **v1.7** for devices with CHT8305 sensor. For other variants, `FW boot' is not required from version **v1.4**.
|
||||
> The current `FW Boot' version is **v1.9** for all devices (errors fixed).
|
||||
|
||||
## Main features
|
||||
|
||||
|
|
@ -76,7 +76,8 @@ Files for updating boot via OTA are located in the [update_boot](update_boot) di
|
|||
| 1.5 | <ul><li>Added option to encrypt BLE ads with BindKey.</li></ul> |
|
||||
| 1.6 | <ul><li>Added averaging of battery voltage calculation</li><li>Added duplication of open/close contact</li><li>Added counter status 12..20 sec (multiple of ad interval) after triggering and then every 30 min. |
|
||||
| 1.7 | <ul><li>Fixed en error (> 42 C) for sensor CHT8305</li></ul> |
|
||||
| 1.8beta | <ul><li>Added display of temperature in degrees Fahrenheit</li></ul> |
|
||||
| 1.8 | <ul><li>Added display of temperature in degrees Fahrenheit</li></ul> |
|
||||
| 1.9 | <ul><li>Fixed the bug of restoring the changed device name after power reset</li></ul> |
|
||||
|
||||
## Firmware
|
||||
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3003
bin/BOOT_BTH01_v19.hex
Normal file
3003
bin/BOOT_BTH01_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3076
bin/BOOT_TH05D_v19.hex
Normal file
3076
bin/BOOT_TH05D_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3073
bin/BOOT_TH05F_v19.hex
Normal file
3073
bin/BOOT_TH05F_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3071
bin/BOOT_TH05_v19.hex
Normal file
3071
bin/BOOT_TH05_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3068
bin/BOOT_THB1_v19.hex
Normal file
3068
bin/BOOT_THB1_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3000
bin/BOOT_THB2_v19.hex
Normal file
3000
bin/BOOT_THB2_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
3068
bin/BOOT_THB3_v19.hex
Normal file
3068
bin/BOOT_THB3_v19.hex
Normal file
File diff suppressed because it is too large
Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
bin/TH05_v17.bin
BIN
bin/TH05_v17.bin
Binary file not shown.
Binary file not shown.
BIN
bin/THB1_v17.bin
BIN
bin/THB1_v17.bin
Binary file not shown.
Binary file not shown.
BIN
bin/THB2_v17.bin
BIN
bin/THB2_v17.bin
Binary file not shown.
Binary file not shown.
BIN
bin/THB3_v17.bin
BIN
bin/THB3_v17.bin
Binary file not shown.
Binary file not shown.
|
|
@ -1,5 +1,5 @@
|
|||
@set PATH=D:\MCU\GNU_Tools_ARM_Embedded\13.2.rel1\bin;%PATH%
|
||||
@set SWVER=_v18
|
||||
@set SWVER=_v19
|
||||
@del /Q "build\THB2%SWVER%.hex"
|
||||
@del /Q "build\THB2%SWVER%.bin"
|
||||
@mkdir .\bin
|
||||
|
|
|
|||
|
|
@ -286,8 +286,8 @@ int cmd_parser(uint8_t * obuf, uint8_t * ibuf, uint32_t len) {
|
|||
len--;
|
||||
memcpy(&gapRole_ScanRspData[2], &ibuf[1], len);
|
||||
flash_write_cfg(&gapRole_ScanRspData[2], EEP_ID_DVN, len);
|
||||
set_dev_name();
|
||||
}
|
||||
set_dev_name();
|
||||
}
|
||||
olen = gapRole_ScanRspData[0];
|
||||
memcpy(&obuf[1], &gapRole_ScanRspData[2], olen - 1);
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
// #include "bus_dev.h"
|
||||
|
||||
#ifndef APP_VERSION
|
||||
#define APP_VERSION 0x18 // BCD
|
||||
#define APP_VERSION 0x19 // BCD
|
||||
#endif
|
||||
|
||||
/* rf_phy_ana_cfg
|
||||
|
|
|
|||
|
|
@ -139,7 +139,8 @@ void set_dev_name(void)
|
|||
p[len + 2] = 0;
|
||||
} else
|
||||
set_def_name();
|
||||
HCI_LE_SetScanRspDataCmd(p[0] + 1, p);
|
||||
gapRole_ScanRspDataLen = p[0] + 1;
|
||||
HCI_LE_SetScanRspDataCmd(gapRole_ScanRspDataLen, p);
|
||||
GGS_SetParameter( GGS_DEVICE_NAME_ATT, p[0] - 1, (void *)&p[2] ); // GAP_DEVICE_NAME_LEN, attDeviceName );
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -499,7 +499,7 @@ div#divChart {
|
|||
DATA: { en: 'Data' },
|
||||
COMMAND: { en: 'Command' },
|
||||
SEND: { en: 'Send' },
|
||||
DEVICENAME: { en: 'Device name' },
|
||||
DEVICENAME: { en: 'Device name', ru: 'Имя устройства' },
|
||||
CLEAN_LOG: { en: 'Purge log file' },
|
||||
BASIC_INST: { en: 'Basic configuration' },
|
||||
FROMTO_FROM: { en: 'from', ru: 'из' },
|
||||
|
|
@ -586,7 +586,7 @@ div#divChart {
|
|||
SENDING_NEW_MAC: { en: 'Sending new MAC address', ru: 'Передача нового MAC' },
|
||||
INVALID_MAC_LENGTH: { en: 'MAX length must be 6 bytes (hex)', ru: 'Строка MAC должна быть 6 байт в HEX виде' },
|
||||
DEPRECATED_FIRMWARE: { en: 'Firware versions below 1.1 are not supported', ru: 'Версия прошивки с номером менее 1.1 не поддерживается' },
|
||||
CORRECT_DEVICENAME_LENGTH: { en: 'Devicename length is OK', ru: 'Имя устройства должно быть от 1 до 19 символов, включая кодирование UTF-8' },
|
||||
CORRECT_DEVICENAME_LENGTH: { en: 'Save DeviceName...', ru: 'Сохранение имени устройства...' },
|
||||
INVALID_DEVICENAME_LENGTH: { en: 'Devicename length must be 1 to 19 bytes (UTF-8 characters consume 2 bytes)', ru: 'Имя устройства должно быть от 1 до 19 символов, включая кодирование UTF-8' },
|
||||
INVALID_BINDKEY_LENGTH: { en: 'Bindkey must be 16 bytes, hex encoded (=32 characters)', ru: 'BindKey должен соднержать 16 байт в HEX виде (32 символа)' },
|
||||
UPLOAD_FIRMWARE: { en: 'Download firmware file', ru: 'Загрузка firmware файла' },
|
||||
|
|
|
|||
37
fw.json
37
fw.json
|
|
@ -1,28 +1,19 @@
|
|||
{"custom":[
|
||||
"bin/THB2_v17.bin",
|
||||
"bin/BTH01_v17.bin",
|
||||
"bin/TH05_v17.bin",
|
||||
"bin/THB2_v19.bin",
|
||||
"bin/BTH01_v19.bin",
|
||||
"bin/TH05_v19.bin",
|
||||
"?",
|
||||
"bin/THB1_v17.bin",
|
||||
"bin/TH05D_v17.bin",
|
||||
"bin/TH05F_v17.bin",
|
||||
"bin/THB3_v17.bin"],
|
||||
"betafw":[
|
||||
"bin/THB2_v18.bin",
|
||||
"bin/BTH01_v18.bin",
|
||||
"bin/TH05_v18.bin",
|
||||
"?",
|
||||
"bin/THB1_v18.bin",
|
||||
"bin/TH05D_v18.bin",
|
||||
"bin/TH05F_v18.bin",
|
||||
"bin/THB3_v18.bin"],
|
||||
"bin/THB1_v19.bin",
|
||||
"bin/TH05D_v19.bin",
|
||||
"bin/TH05F_v19.bin",
|
||||
"bin/THB3_v19.bin"],
|
||||
"updateboot":[
|
||||
"update_boot/BOOT_THB2_v18.bin",
|
||||
"update_boot/BOOT_BTH01_v18.bin",
|
||||
"update_boot/BOOT_TH05_v18.bin",
|
||||
"update_boot/BOOT_THB2_v19.bin",
|
||||
"update_boot/BOOT_BTH01_v19.bin",
|
||||
"update_boot/BOOT_TH05_v19.bin",
|
||||
"?",
|
||||
"update_boot/BOOT_THB1_v18.bin",
|
||||
"update_boot/BOOT_TH05D_v18.bin",
|
||||
"update_boot/BOOT_TH05F_v18.bin",
|
||||
"update_boot/BOOT_THB3_v18.bin"]
|
||||
"update_boot/BOOT_THB1_v19.bin",
|
||||
"update_boot/BOOT_TH05D_v19.bin",
|
||||
"update_boot/BOOT_TH05F_v19.bin",
|
||||
"update_boot/BOOT_THB3_v19.bin"]
|
||||
}
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue