This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

*/

BLE Attribute Protocol

속성(Attribute)

 Attribute(ATT, 속성) 프로토콜은 BLE 프로토콜 스택 중의 하나다. BLE 서버 데이터베이스에서 데이터를 표현하는 방법과 해당 데이터를 읽거나 쓸 수 있는 방법을 정의한다.

속성은 4개의 구성으로 정의한다.

  • attribute type : UUID - 128 bit 숫자(혹은 16 이나 32bit를 사용하기도 함)
  • attribute handle : 특정 속성을 참조하기 위한 0이 아닌 숫자
  • attribute permissions : read and/or write 정의
  • attribute value
상기 속성은 ATT에서 정의한 방법을 사용하여 읽거나 쓸 수 있다. 예를 들어 클라이언트가 서버로 요청을 보내면 서버는 클라이언트로 응답을 보내고, 서버에서 클라이언트로 보내는 알림(notification)은 클라이언트에서 응답하지 않는다.


속성 메소드(Attribute method)

 ATT 프로토콜은 속성을 읽거나 쓸 수 있는 방법도 정의한다. 지원되는 방법은 6가지이며 결과적으로 6개의 PDU(프로토콜 데이터 단위)를 정의한다. 6가지 방법과 해당 PDU 유형은 다음과 같다.

  • Commands: 클라이언트에서 서버로 전달. response 호출하지 않음
  • Requests: 클라이언트에서 서버로 전달. response 호출
  • Responses: 서버가 request 를 받았을때 클라이언트로 전달
  • Notifications: 서버에서 클라이언트로 전달. 클라이언트의 요청과 무관하게 전송.
  • Indications: 서버에서 클라이언트로 전달하고 클라이언트는 response 호출. 클라이언트의 요청과 무관하게 전송.
  • Confirmations: 클라이언트에서 indication에 대한 response로 서버로 acknowledgment를 전달 .

BLE State

 BLE는 아래 5개의 State를 가진다.

  • Standby
  • Advertising
  • Scanning
  • Initiating
  • Connected


BT core 4.1 이후 Synchronization state 가 추가되었다.