From e4ed1b7588189275b07614206a78a76d80515905 Mon Sep 17 00:00:00 2001 From: jhchun Date: Wed, 15 Apr 2026 17:50:53 +0900 Subject: [PATCH] =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8=EC=9A=A9=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ble_app_bladder_patch/command/parser.c | 9 --------- .../measurement/battery/battery_saadc.c | 1 - .../measurement/imu/app_raw/app_raw.c | 1 - .../measurement/temperature/tmp235_q1.c | 1 - 4 files changed, 12 deletions(-) diff --git a/project/ble_peripheral/ble_app_bladder_patch/command/parser.c b/project/ble_peripheral/ble_app_bladder_patch/command/parser.c index a5a38a0..971e1e1 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/command/parser.c +++ b/project/ble_peripheral/ble_app_bladder_patch/command/parser.c @@ -1014,28 +1014,23 @@ static void all_sensors(void) info4 = true; /* 센서값을 전역 변수에 저장 (BLE 전송 안 함) */ /* 1. 배터리 전압 측정 → info_batt에 저장 */ - DBG_PRINTF("1"); battery_saadc_done = false; battery_level_meas(); for (timeout_cnt = 0; !battery_saadc_done && timeout_cnt < 100; timeout_cnt++) { dr_sd_delay_ms(1); /* 콜백 오면 즉시 탈출, 최대 100ms */ } - DBG_PRINTF("3"); /* 2. IMU 6축 단발 읽기 → info_imu[6]에 저장 */ hw_i2c_init_once(); imu_read_direct(); - DBG_PRINTF("4"); /* 3. 온도 측정 → info_temp에 저장 (TMP235는 Piezo TX/RX 전원 필요) */ if (!dr_piezo_is_power_on()) { dr_piezo_power_on(); } - DBG_PRINTF("5"); - DBG_PRINTF("6"); tmp235_saadc_done = false; tmp235_voltage_level_meas(); @@ -1043,7 +1038,6 @@ static void all_sensors(void) { dr_sd_delay_ms(1); /* 콜백 오면 즉시 탈출, 최대 100ms, 타임아웃 시 이전 값 또는 쓰레기값.. */ } - DBG_PRINTF("8"); info4 = false; @@ -1064,7 +1058,6 @@ static void all_sensors(void) buf[19] = (uint8_t)(info_temp & 0xFF); dr_binary_tx_safe(buf, 10); /* 20바이트 = 10워드 */ - DBG_PRINTF("9"); /* 배터리, IMU, 온도 확인용 로그 */ //if (g_plat.log) g_plat.log("-------------------------------------------------------------------------------------\r\n[Battery] %u\r\n[IMU] %d,%d,%d,%d,%d,%d\r\n[Temperature] %u\r\n\r\n", info_batt, (int16_t)info_imu[0], (int16_t)info_imu[1], (int16_t)info_imu[2], @@ -1088,7 +1081,6 @@ static int Cmd_mbb(const ParsedCmd *cmd) dr_adc_err_t err; all_sensors(); /* 배터리, IMU, 온도 센서 먼저 측정 */ - DBG_PRINTF("10"); if (maa_async_is_busy()) { @@ -1123,7 +1115,6 @@ static int Cmd_mbb(const ParsedCmd *cmd) dr_piezo_power_off(); return 1; } - DBG_PRINTF("11\n"); return 1; } diff --git a/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c b/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c index 0559529..5f1dbe6 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c +++ b/project/ble_peripheral/ble_app_bladder_patch/measurement/battery/battery_saadc.c @@ -143,7 +143,6 @@ void battery_event_handler( nrf_drv_saadc_evt_t const * p_event ) nrf_drv_saadc_uninit(); /* 콜백 완료 알림 (all_sensors 대기 해제용) */ - if (info4) DBG_PRINTF("2"); battery_saadc_done = true; /* ADC값 → mV 변환 (매크로: ADC x 600/1023 x 6) */ diff --git a/project/ble_peripheral/ble_app_bladder_patch/measurement/imu/app_raw/app_raw.c b/project/ble_peripheral/ble_app_bladder_patch/measurement/imu/app_raw/app_raw.c index 458cfc5..3e3ce57 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/measurement/imu/app_raw/app_raw.c +++ b/project/ble_peripheral/ble_app_bladder_patch/measurement/imu/app_raw/app_raw.c @@ -569,7 +569,6 @@ int imu_read_direct(void) /* 일반 모드: "rsp:" 태그로 BLE 즉시 전송 */ format_data(imu_bin_buffer, "rsp:", ssp_data, 12); dr_binary_tx_safe(imu_bin_buffer, 8); - DBG_PRINTF("0"); } /* IMU 슬립 모드: PWR_MGMT0 = 0x00 → 가속도/자이로 모두 OFF (전력 절감) */ diff --git a/project/ble_peripheral/ble_app_bladder_patch/measurement/temperature/tmp235_q1.c b/project/ble_peripheral/ble_app_bladder_patch/measurement/temperature/tmp235_q1.c index a9126f0..c4f85b1 100644 --- a/project/ble_peripheral/ble_app_bladder_patch/measurement/temperature/tmp235_q1.c +++ b/project/ble_peripheral/ble_app_bladder_patch/measurement/temperature/tmp235_q1.c @@ -164,7 +164,6 @@ void tmp235_voltage_handler(nrf_drv_saadc_evt_t const * p_event) /* TMP325 Vout // data_tx_handler(ble_tx_buffer); } - DBG_PRINTF("7"); tmp235_saadc_done = true; }