diff --git a/app/src/main/java/com/medithings/vesiscan/ble/BleManager.kt b/app/src/main/java/com/medithings/vesiscan/ble/BleManager.kt index 64e767c..8068866 100644 --- a/app/src/main/java/com/medithings/vesiscan/ble/BleManager.kt +++ b/app/src/main/java/com/medithings/vesiscan/ble/BleManager.kt @@ -1512,12 +1512,16 @@ class BleManager private constructor(private val context: Context) { override fun run() { if (!isConnected.value) return when { - isMtbBusy -> logd { "battery poll skip: mtb stream in progress" } + // 건너뛴 사실을 **파일 로그**에 남긴다. logd 는 logcat 에만 가는데 + // 현장에서는 파일만 받아 보므로, 그러면 "왜 배터리가 안 갱신되나"를 + // 파일로 답할 수 없다. 최대 30초에 한 줄이라 부담이 없다. + isMtbBusy -> + debugLogger.info("BATT_POLL_SKIP mtb 응답 진행 중 — 다음 주기에") // 측정 중이다. 건너뛰고 다음 tick 에 다시 본다 — 끝나면 잡힌다. - !isTxQuiet -> logd { - "battery poll skip: TX active " + - "(${System.currentTimeMillis() - lastTxAtMs}ms ago)" - } + !isTxQuiet -> debugLogger.info( + "BATT_POLL_SKIP 측정 중 " + + "(직전 TX ${System.currentTimeMillis() - lastTxAtMs}ms 전) — 다음 주기에" + ) else -> sendBatteryQuery() } handler.postDelayed(this, BATTERY_POLL_INTERVAL_MS) diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index 5f2562b..c6cfa96 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -373,7 +373,7 @@ 연결이 끝나지 않았습니다. 기기를 다시 눌러 주세요. 연결이 끝까지 되지 않았습니다 — 기기가 응답했지만 준비를 마치지 못했습니다. 다시 연결합니다. 페어링을 삭제할 수 없습니다: 기기에 명령이 닿지 않습니다. 기기 버튼을 15초 길게 눌러 초기화한 뒤, 저장된 기기를 삭제하고 다시 페어링하세요. - 기기를 찾을 수 없습니다. 전원이 켜져 있는지 확인한 뒤 다시 눌러 주세요. + 기기 신호가 잡히지 않습니다. 방금 연결을 끊었다면 기기가 다시 신호를 보낼 때까지 10~20초 걸릴 수 있습니다 — 잠시 뒤 다시 눌러 주세요. 계속 안 되면 전원을 확인하세요. 새 기기 권한 허용 검색 중지 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 6e9273e..65468c5 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -373,7 +373,7 @@ Connection did not finish. Tap the device again. Connection was incomplete — the device answered but did not finish setup. Reconnecting. Cannot delete pairing: the device is not reachable. Hold the device button for 15 seconds to reset it, then delete the saved device and pair again. - Device not found. Make sure it is powered on, then tap it again. + No signal from the device. If you just disconnected, it can take 10-20 seconds to start advertising again — wait a moment and tap it again. If it keeps failing, check the power. New Devices Grant Permissions Stop Scan