본문으로 바로가기

[Bluetooth] [wireshark] btsnoop_hci.log 해석[2]

category 미분류 항목 2023. 10. 13. 10:46

: CCCD 에 대한 log 분석

 Generic Attribute 서비스에  CCCD 가 있는 경우 어떻게 분석되는지 알아봤습니다

 

▶   nRF Connect 앱에서 보이는 Generic Attrribute 서비스

      :   핸들 범위는 (0xc ~ 0xf) 입니다.

 

 

 

▶ 호스트에서 Read By Type Request (0x08)를  요청

     : 핸들 0xc ~ 0xf 사이의 Characteristic 요청

▶  Read By Type Response (0x09) 가 들어 옴

     :  Service Changed (0x2a05)  Characteristic 이 들어옴. ( handle :0x000d , charac value handle : 0x000e)

 

▶ 호스트에서 Read By Type Request (0x08)를  요청 (핸들범위: 0xe ~ 0xf)

 

▶  Error Response (0x01) 가 들어오고  내용은 "Attribute Not Found" 입니다.

 

▶ 핸들 값 0xf 에 대한 Find Information Request(0x04) 요청

 

Find Inforamtion Response (0x05)  들어옴

     : 핸들 0x000f 는  Client Characteristic Configuration(0x2902) 라고 알려줍니다.

 

 

패킷 포맷은 아래 기타 항목 참고하세요.

 

 

 

<기타>

▶ Bluetooth Core_v5.3.pdf  참조 내용

   → Find Information Request 포맷

 

 → Find Information Response 포맷

    >>     Find Information Response 의 Format 필드 

 

 

 

그럼 오늘도 수고하세요.

반응형