LED灯修正
This commit is contained in:
parent
c9a78c7244
commit
f5db5fb7b1
@ -30,7 +30,7 @@ app_dev_config_t dev_config;
|
||||
static int charge_state = 0;
|
||||
static u8 temperature_detect_count = 0;
|
||||
static u16 temperature_cycle_timer = 0;
|
||||
extern volatile u8 hall_wakeup_flag;
|
||||
|
||||
void temperature_blink_led()
|
||||
{
|
||||
if (led_state)
|
||||
@ -153,6 +153,7 @@ void temperature_poweron_led_timeout(){
|
||||
}
|
||||
static void blink_led_callback(void *priv) {
|
||||
temperature_work_led(1);
|
||||
printf("blink_led_callback\n");
|
||||
sys_s_hi_timerout_add(NULL, temperature_poweron_led_timeout, 50); // 亮0.05 秒
|
||||
}
|
||||
void ble_led_timeout() {
|
||||
@ -552,30 +553,6 @@ void temperature_set_soft_poweroff(void)
|
||||
power_set_soft_poweroff();
|
||||
#endif
|
||||
}
|
||||
int hall_isr_check()
|
||||
{
|
||||
u8 current_state = gpio_read(IO_PORTA_00);
|
||||
printf("hall_isr_callback:%d charge_state:%d \n", current_state, charge_state);
|
||||
|
||||
if (!current_state && !charge_state) {
|
||||
u8 sleep_reason = 0x01;
|
||||
syscfg_write(HELL_WAKEUP, &sleep_reason, 1);
|
||||
temperature_set_soft_poweroff();
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
void hell_wakeup_callback(){
|
||||
u8 sleep_reason = 0xFF;
|
||||
syscfg_read(HELL_WAKEUP, &sleep_reason, 1);
|
||||
printf("sleep_reason:%02x \n", sleep_reason);
|
||||
if (sleep_reason == 0x01) {
|
||||
temperature_work_led(1);
|
||||
sys_s_hi_timerout_add(NULL, temperature_poweron_led_timeout, 2000);
|
||||
sleep_reason = 0xFF;
|
||||
syscfg_write(HELL_WAKEUP, &sleep_reason, 1);
|
||||
}
|
||||
}
|
||||
void temperature_detect_timer_del(){
|
||||
if (temperature_cycle_timer) {
|
||||
sys_timer_del(temperature_cycle_timer);
|
||||
@ -603,7 +580,6 @@ void temperature_cycle_step(void *priv)
|
||||
if(!temperature_cycle_timer){
|
||||
temperature_cycle_timer = sys_timer_add(NULL, temperature_cycle_step, dev_config.detect_interval);
|
||||
}
|
||||
hall_isr_check();
|
||||
return ;
|
||||
}
|
||||
|
||||
@ -619,10 +595,6 @@ void temperature_cycle_step(void *priv)
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if(hall_isr_check()){
|
||||
return;
|
||||
}
|
||||
|
||||
// 关机,5秒后RTC自动唤醒
|
||||
temperature_detect_timer_del();
|
||||
@ -643,7 +615,6 @@ void temperature_charge_lowpower(u8 on){
|
||||
}
|
||||
|
||||
void temperature_work_led(u8 on){
|
||||
|
||||
if(on){
|
||||
gpio_set_hd0(BLE_TEMPERATURE_WORK_LED, 1);
|
||||
gpio_direction_output(BLE_TEMPERATURE_WORK_LED, 1);
|
||||
@ -682,6 +653,7 @@ void temperature_charge_state(int state){
|
||||
printf("init_complete:%d",init_complete);
|
||||
|
||||
if (!init_complete && state == BLE_TEMPERATURE_CHARGE_KEEP_CHARGING ) { //防止开机误判充电状态,并提前亮灯
|
||||
printf("oh shit, entry BLE_TEMPERATURE_CHARGE_KEEP_CHARGING");
|
||||
init_complete = 1;
|
||||
//sys_timer_del(timer_temperature_detect);
|
||||
temperature_work_led(1);
|
||||
@ -698,7 +670,7 @@ void temperature_charge_state(int state){
|
||||
}
|
||||
printf("BLE_TEMPERATURE_CHARGE_STATE_CHARGING\n");
|
||||
charge_inited = 1;
|
||||
//temperature_chargeing();
|
||||
temperature_chargeing();
|
||||
break;
|
||||
//拔出电压(0.6左右)< ldoin < vbat
|
||||
case BLE_TEMPERATURE_CHARGE_KEEP_CHARGING :
|
||||
@ -708,7 +680,7 @@ void temperature_charge_state(int state){
|
||||
}
|
||||
printf("BLE_TEMPERATURE_CHARGE_KEEP_CHARGING\n");
|
||||
charge_inited = 1;
|
||||
//temperature_chargeing();
|
||||
temperature_chargeing();
|
||||
break;
|
||||
//充电完成
|
||||
case BLE_TEMPERATURE_CHARGE_STATE_FULL :
|
||||
@ -812,9 +784,8 @@ void temperature_init(void)
|
||||
|
||||
// 添加以上代码,看打印值,如果为15跟63,那就要用烧录器先烧录一遍。
|
||||
TRS55D_Init();
|
||||
|
||||
|
||||
temperature_config_init();
|
||||
hell_wakeup_callback();
|
||||
|
||||
//sys_timer_add 方式添加定时任务 任务里边可以使用udelay delay_ms 等延时 sys_s_hi_timer_add 则延时无效
|
||||
tuya_ble_queue_init(&temp_queue, buffer, MAX_SIZE, sizeof(u16));
|
||||
@ -837,8 +808,8 @@ void temperature_init(void)
|
||||
gpio_direction_output(IO_PORTB_04, 1);
|
||||
|
||||
gpio_set_direction(IO_PORTB_06,0);
|
||||
gpio_direction_output(IO_PORTB_06, 1);
|
||||
|
||||
//gpio_direction_output(IO_PORTB_06, 1);
|
||||
gpio_set_pull_up(IO_PORTB_06,1);
|
||||
// NTC VDD
|
||||
//gpio_set_direction(IO_PORTB_05,0);
|
||||
//gpio_direction_output(IO_PORTB_05, 1);
|
||||
@ -875,10 +846,9 @@ void temperature_deinit(void)
|
||||
// gpio_set_direction(IO_PORTB_06,0);
|
||||
//gpio_direction_output(IO_PORTB_06, 0);
|
||||
|
||||
// gpio_set_direction(IO_PORTA_00,0);
|
||||
// gpio_direction_output(IO_PORTA_00, 0);
|
||||
gpio_set_direction(IO_PORTA_00,0);
|
||||
gpio_direction_output(IO_PORTA_00, 0);
|
||||
|
||||
gpio_set_pull_up(IO_PORTA_00,0);
|
||||
gpio_set_pull_up(IO_PORTB_04,0);
|
||||
gpio_set_pull_up(IO_PORTB_06,0);
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -2,54 +2,24 @@
|
||||
<CodeBlocks_layout_file>
|
||||
<FileVersion major="1" minor="0" />
|
||||
<ActiveTarget name="Release" />
|
||||
<File name="board_config.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="518" topLine="13" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\modules\bt\app_comm_edr.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1154" topLine="18" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\app_main.c" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="3753" topLine="118" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\..\include_lib\system\timer.h" open="1" top="0" tabpos="10" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1916" topLine="61" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\examples\trans_data\ble_trans.h" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="553" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\include\app_config.h" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="10242" topLine="189" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\app_main.c" open="1" top="0" tabpos="2" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="3753" topLine="118" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\app_temperature.c" open="1" top="1" tabpos="1" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="14390" topLine="437" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\common\device\usb\host\aoa.c" open="1" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="593" topLine="9" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\..\cpu\bd19\charge.c" open="1" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="8796" topLine="308" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\common\device\usb\device\user_setup.c" open="1" top="0" tabpos="11" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="6496" topLine="231" />
|
||||
<Cursor1 position="26899" topLine="804" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\..\cpu\bd19\adc_api.c" open="1" top="0" tabpos="4" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
@ -57,9 +27,14 @@
|
||||
<Cursor1 position="11677" topLine="439" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="board_ac6323a_demo_cfg.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="..\..\examples\trans_data\ble_trans.h" open="1" top="0" tabpos="6" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="12074" topLine="209" />
|
||||
<Cursor1 position="553" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="board_config.h" open="0" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="518" topLine="13" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\examples\trans_data\ble_trans.c" open="1" top="0" tabpos="7" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
@ -67,9 +42,14 @@
|
||||
<Cursor1 position="26810" topLine="719" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\modules\power\app_charge.c" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<File name="..\..\..\..\cpu\bd19\charge.c" open="1" top="0" tabpos="9" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1522" topLine="53" />
|
||||
<Cursor1 position="8796" topLine="431" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\..\include_lib\system\generic\printf.h" open="1" top="0" tabpos="13" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="753" topLine="0" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\common\third_party_profile\jieli\gatt_common\le_gatt_server.c" open="1" top="0" tabpos="8" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
@ -77,4 +57,29 @@
|
||||
<Cursor1 position="27428" topLine="677" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\modules\power\app_charge.c" open="1" top="0" tabpos="5" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1522" topLine="53" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\common\device\usb\host\aoa.c" open="1" top="0" tabpos="12" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="593" topLine="18" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="board_ac6323a_demo_cfg.h" open="1" top="0" tabpos="3" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="12074" topLine="193" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\modules\bt\app_comm_edr.c" open="0" top="0" tabpos="0" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="1154" topLine="18" />
|
||||
</Cursor>
|
||||
</File>
|
||||
<File name="..\..\..\common\device\usb\device\user_setup.c" open="1" top="0" tabpos="11" split="0" active="1" splitpos="0" zoom_1="0" zoom_2="0">
|
||||
<Cursor>
|
||||
<Cursor1 position="6496" topLine="231" />
|
||||
</Cursor>
|
||||
</File>
|
||||
</CodeBlocks_layout_file>
|
||||
|
@ -418,8 +418,7 @@ static void close_gpio(void)
|
||||
/************************** PWR config ****************************/
|
||||
struct port_wakeup port0 = {
|
||||
.pullup_down_enable = ENABLE, //配置I/O 内部上下拉是否使能
|
||||
.edge = RISING_EDGE, //唤醒方式选择,可选:上升沿\下降沿
|
||||
.iomap = IO_PORTA_00, // 唤醒口选择
|
||||
.edge = RISING_EDGE, //唤醒方式选择,可选:上升沿\下降沿 // 唤醒口选择
|
||||
.filter = PORT_FLT_2ms, // 滤波时间
|
||||
.both_edge = 0,
|
||||
|
||||
|
@ -92,7 +92,7 @@
|
||||
//*********************************************************************************//
|
||||
// iokey 配置 //
|
||||
//*********************************************************************************//
|
||||
#define TCFG_IOKEY_ENABLE 1 //是否使能IO按键
|
||||
#define TCFG_IOKEY_ENABLE 0 //是否使能IO按键
|
||||
|
||||
#define TCFG_IOKEY_POWER_CONNECT_WAY ONE_PORT_TO_LOW //按键一端接低电平一端接IO
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#define BLE_TEMPERATURE_DEVICE_NST1002 1002
|
||||
#define BLE_TEMPERATURE_DEVICE_NTC 0
|
||||
|
||||
#define BLE_TEMPERATURE_WORK_LED IO_PORTA_07
|
||||
#define BLE_TEMPERATURE_WORK_LED IO_PORTB_06
|
||||
|
||||
#define BLE_TEMPERATURE_CHARGE_STATE_CHARGING 1
|
||||
#define BLE_TEMPERATURE_CHARGE_STATE_FULL 2
|
||||
@ -29,7 +29,6 @@
|
||||
//VM用户自定义配置项[1 ~ 49]
|
||||
#define BLE_TEMPERATURE_VM_DEVICE_CONFIG 2
|
||||
#define ADJ_TEMP_CONFIG 4
|
||||
#define HELL_WAKEUP 5
|
||||
|
||||
#define DEVICE_SLEEP_TIMEOUT 10 //设备休眠时间
|
||||
#define DEVICE_WORK_TIMEOUT 15000 //设备工作时间
|
||||
@ -39,7 +38,7 @@
|
||||
#define BLE_TEMPERATURE_LIMIT_MAX 4500
|
||||
|
||||
#define BLE_ADJUST_TEMP_37 3700 //37.0C
|
||||
#define MAX_SIZE 30
|
||||
#define MAX_SIZE 10
|
||||
#define TIMES_OF_TEMPERATURE 5 //每次开机测温次数
|
||||
|
||||
typedef struct
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -635,20 +635,6 @@ obj/Release/apps/common/device/gSensor/fmy/SC7A20_E.o
|
||||
obj/Release/apps/common/device/gSensor/fmy/SC7A20_TR.o
|
||||
obj/Release/apps/common/device/key/adkey.o
|
||||
obj/Release/apps/common/device/key/iokey.o
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,io_get_key_value,pl
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,iokey_filter_hook,pl
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,iokey_init,pl
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,gpio_read,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,gpio_set_pull_down,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,gpio_set_pull_up,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,gpio_direction_output,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,gpio_direction_input,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,gpio_set_die,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,printf,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,cpu_assert_debug,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,p33_soft_reset,l
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,iokey_scan_para,pl
|
||||
-r=obj/Release/apps/common/device/key/iokey.o,config_asser,l
|
||||
obj/Release/apps/common/device/key/irkey.o
|
||||
obj/Release/apps/common/device/key/key_driver.o
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,key_event_remap,pl
|
||||
@ -657,13 +643,6 @@ obj/Release/apps/common/device/key/key_driver.o
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,clear_key_poweron_flag,pl
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,key_active_set,pl
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,key_driver_init,pl
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,iokey_init,l
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,usr_timer_add,l
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,timer_get_ms,l
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,sys_event_notify,l
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,iokey_data,l
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,iokey_scan_para,l
|
||||
-r=obj/Release/apps/common/device/key/key_driver.o,key_lp_target,pl
|
||||
obj/Release/apps/common/device/key/touch_key.o
|
||||
obj/Release/apps/common/device/norflash/norflash.o
|
||||
obj/Release/apps/common/device/usb/device/cdc.o
|
||||
@ -2361,10 +2340,6 @@ obj/Release/apps/spp_and_le/app_temperature.o
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,btstack_ble_exit,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,sys_timeout_add,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,power_set_soft_poweroff,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,hall_isr_check,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,gpio_read,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,hell_wakeup_callback,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,syscfg_read,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,temperature_detect_timer_del,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,temperature_cycle_step,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,rtc_alarm_set_timer,l
|
||||
@ -2378,6 +2353,7 @@ obj/Release/apps/spp_and_le/app_temperature.o
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,le_controller_set_mac,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,ble_comm_set_config_name,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,temperature_config_init,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,syscfg_read,l
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,alarm_isr_user_cbfun,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,temperature_init,pl
|
||||
-r=obj/Release/apps/spp_and_le/app_temperature.o,get_vbat_trim,l
|
||||
@ -3523,7 +3499,6 @@ obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,power_wakeup_init,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,aport_edge_wkup_set_callback,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,port_edge_wkup_set_callback,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,key_driver_init,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,charge_api_init,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,alarm_init,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,mask_softflag_config,l
|
||||
@ -3542,8 +3517,6 @@ obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,ldoin_wakeup_isr,l
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,power_param,pl
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,charge_data,pl
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,iokey_list,pl
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,iokey_data,pl
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,def_sys_time,pl
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,def_alarm,pl
|
||||
-r=obj/Release/apps/spp_and_le/board/bd19/board_ac6323a_demo.o,rtc_data,pl
|
||||
@ -3727,32 +3700,6 @@ obj/Release/apps/spp_and_le/board/bd19/board_ac632n_demo.o
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.139242.gpio.c,gpio_longpress_pin0_reset_config,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.139242.gpio.c,gpio_longpress_pin1_reset_config,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.139242.gpio.c,gpio_shortpress_reset_config,pl
|
||||
../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,delay_2ms,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_get_sec,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_get_ms,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_2ms_handler,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,OSGetTime,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,printf,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,cpu_assert_debug,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_init,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,request_irq,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,log_print,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,clk_get,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_sleep_init,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,low_power_sys_get,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_stop,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_run,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,p33_soft_reset,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,usr_timer_schedule,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,delay_cnt,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,jiffies,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,jiffies_unit,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,config_asser,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_power_ops,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,log_tag_const_i_TMR,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,clock_timer,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,tmr,pl
|
||||
../../../../cpu/bd19/liba/cpu.a.llvm.202074.usb.c
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.202074.usb.c,usb_get_jiffies,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.202074.usb.c,usb_dev_con0,pl
|
||||
@ -4437,6 +4384,32 @@ obj/Release/apps/spp_and_le/board/bd19/board_ac632n_demo.o
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.965618.descriptor.c,cpu_assert_debug,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.965618.descriptor.c,p33_soft_reset,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.965618.descriptor.c,config_asser,l
|
||||
../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,delay_2ms,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_get_sec,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_get_ms,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_2ms_handler,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,OSGetTime,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,printf,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,cpu_assert_debug,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_init,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,request_irq,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,log_print,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,clk_get,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_sleep_init,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,low_power_sys_get,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_stop,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer1_run,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,p33_soft_reset,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,usr_timer_schedule,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,delay_cnt,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,jiffies,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,jiffies_unit,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,config_asser,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,timer_power_ops,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,log_tag_const_i_TMR,l
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,clock_timer,pl
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.186934.timer.c,tmr,pl
|
||||
../../../../cpu/bd19/liba/cpu.a.llvm.308454.encryption.c
|
||||
-r=../../../../cpu/bd19/liba/cpu.a.llvm.308454.encryption.c,doe,pl
|
||||
../../../../cpu/bd19/liba/cpu.a.llvm.584122.lp_timer_hw.c
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -1,27 +1,27 @@
|
||||
iT12 腋温计通讯协议
|
||||
|
||||
1.搜索蓝牙iT12_XXXX 并连接设备 ( 使用时建议申请ble 通讯的MTU 为254 否则会数据分包;)
|
||||
|
||||
2.iT12的通讯Service UUID为 0xAE30的
|
||||
3.监听UUID为 0xAE02 的Characteristic 可以实时监听回传数据
|
||||
4.指令通过UUID为 0xAE01 的Characteristic发送
|
||||
|
||||
5.指令CMD
|
||||
5.1 获取温度 :AT+TEMP=?
|
||||
回复:AT+TEMP=255,265,365,1 (255表示环境温度, 265表示物体温度 , 365表示体温),最后一位 1表示当前温度处于稳定状态测量完成,0表示当前正在测量中温度不稳定
|
||||
|
||||
5.2 获取电池电量百分百 :AT+BATP=?
|
||||
回复:AT+BATP=88 (88表示电量为88%)
|
||||
|
||||
5.3 获取电池电压 :AT+BATT=?
|
||||
回复:AT+BATT=333 (333 表示3.33V)
|
||||
|
||||
5.4 获取固件版本 :AT+VER=?
|
||||
回复:AT+VER=1.0.1 (版本号 1.0.1)
|
||||
|
||||
5.5 37°C温度校准 :AT+ADJ37=?
|
||||
回复: AT+ADJ37=OK
|
||||
|
||||
5.6 温度校准重置 :AT+RESET=?
|
||||
回复: AT+RESET=OK
|
||||
iT22 腋温计通讯协议
|
||||
|
||||
1.搜索蓝牙iT22_XXXX 并连接设备 ( 使用时建议申请ble 通讯的MTU 为254 否则会数据分包;)
|
||||
|
||||
2.iT22的通讯Service UUID为 0xAE30的
|
||||
3.监听UUID为 0xAE02 的Characteristic 可以实时监听回传数据
|
||||
4.指令通过UUID为 0xAE01 的Characteristic发送
|
||||
|
||||
5.指令CMD
|
||||
5.1 获取温度 :AT+TEMP=?
|
||||
回复:AT+TEMP=255,265,365,1 (255表示环境温度, 265表示物体温度 , 365表示体温),最后一位 1表示当前温度处于稳定状态测量完成,0表示当前正在测量中温度不稳定
|
||||
|
||||
5.2 获取电池电量百分百 :AT+BATP=?
|
||||
回复:AT+BATP=88 (88表示电量为88%)
|
||||
|
||||
5.3 获取电池电压 :AT+BATT=?
|
||||
回复:AT+BATT=333 (333 表示3.33V)
|
||||
|
||||
5.4 获取固件版本 :AT+VER=?
|
||||
回复:AT+VER=1.0.1 (版本号 1.0.1)
|
||||
|
||||
5.5 37°C温度校准 :AT+ADJ37=?
|
||||
回复: AT+ADJ37=OK
|
||||
|
||||
5.6 温度校准重置 :AT+RESET=?
|
||||
回复: AT+RESET=OK
|
||||
|
BIN
fw-AC63_BT_SDK/(耳温计)401010-30mAh-250422_003_5_1.xls
Normal file
BIN
fw-AC63_BT_SDK/(耳温计)401010-30mAh-250422_003_5_1.xls
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user