fix error sensor init...
This commit is contained in:
parent
ff022754a2
commit
1ccbf39e96
19 changed files with 15337 additions and 15253 deletions
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
Binary file not shown.
BIN
bin/TH05_v07.bin
BIN
bin/TH05_v07.bin
Binary file not shown.
BIN
bin/THB2_v07.bin
BIN
bin/THB2_v07.bin
Binary file not shown.
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
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -1,2 +1,2 @@
|
|||
python3 C:\Python310\Scripts\hexinfo.py .\bin\BTH01_v06.hex
|
||||
python3 C:\Python310\Scripts\hexinfo.py .\bin\BOOT_BTH01_v06.hex
|
||||
python3 C:\Python310\Scripts\hexinfo.py .\bin\BTH01_v07.hex
|
||||
python3 C:\Python310\Scripts\hexinfo.py .\bin\BOOT_BTH01_v07.hex
|
||||
|
|
@ -1,2 +1,2 @@
|
|||
python3 C:\Python310\Scripts\hexinfo.py .\bin\THB2_v06.hex
|
||||
python3 C:\Python310\Scripts\hexinfo.py .\bin\BOOT_THB2_v06.hex
|
||||
python3 C:\Python310\Scripts\hexinfo.py .\bin\THB2_v07.hex
|
||||
python3 C:\Python310\Scripts\hexinfo.py .\bin\BOOT_THB2_v07.hex
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
#define DEVICE_TH05 21
|
||||
|
||||
#ifndef DEVICE
|
||||
#define DEVICE DEVICE_TH05
|
||||
#define DEVICE DEVICE_THB2
|
||||
#endif
|
||||
|
||||
// supported services by the device (bits)
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
#define CHT8315_CFG_ATM 0x0001
|
||||
|
||||
#define CHT83xx_MID 0x5959
|
||||
#define CHT8315_VID 0x8315
|
||||
#define CHT8315_VID 0x1582
|
||||
|
||||
/* CHT8305 https://github.com/pvvx/pvvx.github.io/blob/master/BTH01/CHT8305.pdf */
|
||||
|
||||
|
|
@ -110,7 +110,7 @@ struct __attribute__((packed)) _cht8305_config_t{
|
|||
} cht8305_config_t;
|
||||
*/
|
||||
|
||||
#define CHT8305_VID 0x8305
|
||||
#define CHT8305_VID 0x0583
|
||||
|
||||
/*---------------------------------------
|
||||
Датчик влажности AHT25
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ __ATTR_SECTION_XIP__ void init_sensor(void) {
|
|||
if(thsensor_cfg.vid == CHT8305_VID) {
|
||||
ptabinit = (uint8_t *)&def_thcoef_cht8305;
|
||||
thsensor_cfg.read_sensor = read_sensor_cht83xx;
|
||||
} else if(thsensor_cfg.vid == CHT8315_VID) { // 0x8310/0x8315 ?
|
||||
} else if(thsensor_cfg.vid == CHT8315_VID) { // 0x8210/0x8215 ?
|
||||
/* #if USE_DEFAULT_SETS_SENSOR
|
||||
hal_gpio_write(GPIO_SPWR, 0);
|
||||
WaitMs(SENSOR_POWER_TIMEOUT_ms);
|
||||
|
|
@ -134,7 +134,7 @@ __ATTR_SECTION_XIP__ void init_sensor(void) {
|
|||
// Configure
|
||||
send_i2c_wreg(thsensor_cfg.i2c_addr, CHT8305_REG_CFG, CHT8305_CFG_MODE );
|
||||
#endif */
|
||||
if(adv_wrk.measure_interval_ms >= 5050) // > 5 sec
|
||||
if(adv_wrk.measure_interval_ms >= 5000) // > 5 sec
|
||||
send_i2c_wreg(CHT8315_I2C_ADDR0, CHT8315_REG_CRT, 0x0300); // Set conversion ratio 5 sec
|
||||
// else 1 sec
|
||||
thsensor_cfg.read_sensor = read_sensor_cht83xx;
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
python3 rdwr_phy62x2.py -p COM11 -e -r wh BOOT_BTH01_v06.hex
|
||||
python3 rdwr_phy62x2.py -p COM11 -e -r wh BOOT_BTH01_v07.hex
|
||||
|
|
@ -1 +1 @@
|
|||
python3 rdwr_phy62x2.py -p COM11 -e -r wh BOOT_THB2_v06.hex
|
||||
python3 rdwr_phy62x2.py -p COM11 -e -r wh BOOT_THB2_v07.hex
|
||||
Loading…
Add table
Add a link
Reference in a new issue