: 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 필드
그럼 오늘도 수고하세요.
![](https://t1.daumcdn.net/keditor/emoticon/face/large/021.png)
반응형
'미분류 항목' 카테고리의 다른 글
[NCS] [matter] SmartThings 앱에서 light-bulb 제어하기 (0) | 2023.10.20 |
---|---|
[NCS][VS Code] SDK 변경 및 light_bulb 프로젝트 만들기 (0) | 2023.10.19 |
[NCS] nRF52 장치 VS Code 에서 flash 에러 해결하기 (0) | 2023.06.12 |
[NCS-V2.4.0] peripheral_hids_keyboard 분석-1 (0) | 2023.06.07 |
[NCS] New Application Create/Build/Flash/Debug (0) | 2023.05.25 |