Files
VesiscanClinicalAndroid/app
dw.jang 33b072c336 debug(posture): logcat 로 IMU 흐름 가시화 — ImuDbg 태그 도입
증상: PiezoMonitoring 진입해도 자세 ?_ 만 표시, logcat 에 rsp/POSTURE
      로그 안 보임.

원인: debugLogger.tx/rx 는 내부 Entry 리스트에만 적재하고 android.util.Log
      호출 안 함 → adb logcat | grep 에 안 보임.

수정: 핵심 IMU 흐름에 android.util.Log.d("ImuDbg", ...) 추가.

  PiezoMonitoringView.LaunchedEffect:
    - 시작 시 isConnected/isDemoMode 값 로그
    - sendImuQuery 매 호출 "→ sendImuQuery (msp)"
    - 연결 안 되어 있으면 "skip (not connected)"
    - imuCollector.onComplete 결과 (자세 + pitch/acc/gyro)
    - imuCollector.onLog 도 ImuDbg 로 forward (parseRsp 로그 보임)

  BleManager:
    - rsp: 응답 시 hex dump 도 ImuDbg 로 (debugLogger 와 별개)
    - rxs: (cmd_not_supported) 응답 시 ImuDbg 로 warn

  rxs: 중복 핸들러 정리 (기존 1개 → 새 1개로 통합)

테스트: "adb logcat | grep ImuDbg" 한 줄로 전체 흐름 확인 가능.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-23 14:30:50 +09:00
..