[Bluetooth] [wireshark] [Service] btsnoop_hci.log 해석[1] : 특정 장비 연결시 서비스 && 특성 읽는부분에 대한 패킷을 분석해 봤습니다. ▶ 호스트에서 Read By Group Type Request (0x10) 를 이용해 Primary Service(0x2800) 를 요청합니다. : Read By Group Request 포맷은 항목에 있습니다. ▶ Read By Group Type Response(0x11) 응답이 호스트로 들어옵니다. : 위에서 핸들을 ( 0x0001 ~ 0xffff) 로 주었으므로 0x1 부터 응답을 합니다. : 마지막 Group End Handle 에 0x001a 가 들어 왔네요. Attribute Data 포맷은 항목을 참고하세요. ▶ 호스트에서 Read By Group Type Request (0x10)를 다시 호출합니다. : st.. 카테고리 없음 2023. 10. 12. 17:02
[Android App] BLE GATT:: [4] characteristic read/write/ notify : 이번에는 Characteristic 에 대한 read/write/notify 하는 방법에 대해 알아 보겠습니다. 아시겠지만 블루투스 코드는 성능이 느리므로 UI 가 아닌 service class 에 메서드를 만들고 호출하게 구현했습니다. GATT callback에 대한 처리는 broadcast 로 메시지를 전송하고 Activity 에서 이를 받아서 처리했습니다. ▶ Characteristic read : Characteristic read는 BluetoothGatt 클래스의 readCharacteristic() 메서드를 이용합니다. 다음처럼 선언이 되어 있습니다. Characteristic 속성 값에 아래처럼 READ 가 존재하는 특성에 대해서 체킹후 호출해야 합니다. → Characteristic .. Android_app 2023. 6. 20. 11:00
[Bluetooth ] GATT Profile feature 그림 : Bluetooth Core Specification 내용중 GATT Feature 11개 관련 동작 예제 그림 첨부합니다. 1> GATT profile 안 11 가지 features 1-1> Server Configuration 1-2> Primary Service Discovery 1-3> Relationship Discovery 1-4> Characteristic Discovery 1-5> Characteristic Descriptor Discovery 1-6> Reading a Characteristic Value (4가지) ▶ Read Characteristic Value ▶ Read Using Characteristic UUID ▶ Read Long Characteristic Values ▶.. 카테고리 없음 2022. 6. 16. 14:48