3.5. BLE 연결 과정

BLE 연결 과정은 그림과 같은 순서로 진행된다.

위 연결과정에 대한 설명은 다음과 같다.

  1. Advertising: Peripheral device에서 advertising 동작을 수행한다. 해당 device의 정보를 Central로 동작하는 근처 디바이스에 광고를 진행한다.

  2. Scanning: Central의 경우 BLE 무선연결을 위해 근처에 연결 가능한 디바이스가 있는지 스캔한다.

  3. Connecting: Central이 연결하고자 하는 Peripheral device로 연결 요청 신호를 전송한다. Peripheral이 연결 요청 신호를 수신하면, 두 디바이스간의 무선 연결이 시작된다.

  4. Request Service: Central이 연결된 Peripheral에게 Service를 요청한다.

  5. Receive Service Data: Peripheral이 Central에게 Service를 전달한다.

  6. Request Characteristic: Central이 연결된 Peripheral에게 Characteristic를 요청한다.

  7. Receive Characteristic Data: Peripheral이 Central에게 Characteristic를 전달한다.

  8. Request: Central이 read, write, notify, indicate 네 가지 동작 중 원하는 동작이 필요한 Characteristic을 Peripheral에게 요청한다.

Last updated