CC2650 BLE 만들기 #2 - Notify 해보기
#BLE 기본 설정에 대한 이해가 필하다.
: 기본적으로 대상이 되는 장비는 기본적으로 Advertsing 모드로 동작하고 스마트폰은 Scan 모드로 동작한다.
: 스마트폰은 Scan 모드를 통해서 접속할 장비를 검색을 할 수 있다.
: 접속하고 나면 두 장비는 Central 과 Peripheral 각각 하게 된다.
: 스마트폰이 Central 역할, 장비가 Peripheral 역할을 하게된다.
#Read 기능
: 스마트폰에서 장치의 상태 정보를 확인 할 수 있다.
#Write 기능
: 디바이스 정보를 수정 할 수 있다.
#Notify가 가능하다.
: 디바이스에서 변경되는 정보를 자동으로 업데이트 받을 수 있다.
#CC2650을 BLE 스텍을 이용한 테스트 방법
: Ti 사이트에서 BLE 스텍을 다운로드 받는다.
: 예제에서 다음 부분을 수정하면 내가 원하는 BLE 장비를 만들 수 있다.
#디바이스 서비스 등록하기
* XX_AddService - Initializes the Simple Key service by registering
* GATT attributes with the GATT server.
#디바이스 파라미터 프로파일 업데이트
/*
* XX_SetParameter - Set a Simple Key Profile parameter.
*
* param - Profile parameter ID
* len - length of data to right
* pValue - pointer to data to write. This is dependent on
* the parameter ID and WILL be cast to the appropriate
* data type (example: data type of uint16 will be cast to
* uint16 pointer).
*/
#디바이스 정보 가져오기
/*
* XX_GetParameter - Get a Simple Key Profile parameter.
*
* param - Profile parameter ID
* pValue - pointer to data to write. This is dependent on
* the parameter ID and WILL be cast to the appropriate
* data type (example: data type of uint16 will be cast to
* uint16 pointer).
*/
: 기본적으로 대상이 되는 장비는 기본적으로 Advertsing 모드로 동작하고 스마트폰은 Scan 모드로 동작한다.
: 스마트폰은 Scan 모드를 통해서 접속할 장비를 검색을 할 수 있다.
: 접속하고 나면 두 장비는 Central 과 Peripheral 각각 하게 된다.
: 스마트폰이 Central 역할, 장비가 Peripheral 역할을 하게된다.
#Read 기능
: 스마트폰에서 장치의 상태 정보를 확인 할 수 있다.
#Write 기능
: 디바이스 정보를 수정 할 수 있다.
#Notify가 가능하다.
: 디바이스에서 변경되는 정보를 자동으로 업데이트 받을 수 있다.
#CC2650을 BLE 스텍을 이용한 테스트 방법
: Ti 사이트에서 BLE 스텍을 다운로드 받는다.
: 예제에서 다음 부분을 수정하면 내가 원하는 BLE 장비를 만들 수 있다.
#디바이스 서비스 등록하기
* XX_AddService - Initializes the Simple Key service by registering
* GATT attributes with the GATT server.
#디바이스 파라미터 프로파일 업데이트
/*
* XX_SetParameter - Set a Simple Key Profile parameter.
*
* param - Profile parameter ID
* len - length of data to right
* pValue - pointer to data to write. This is dependent on
* the parameter ID and WILL be cast to the appropriate
* data type (example: data type of uint16 will be cast to
* uint16 pointer).
*/
#디바이스 정보 가져오기
/*
* XX_GetParameter - Get a Simple Key Profile parameter.
*
* param - Profile parameter ID
* pValue - pointer to data to write. This is dependent on
* the parameter ID and WILL be cast to the appropriate
* data type (example: data type of uint16 will be cast to
* uint16 pointer).
*/
댓글
댓글 쓰기