OBEX

OBEX(OBject EXchange 또는 IrOBEX)는 장치 간 바이너리 오브젝트 교환을 용이케 하는 통신 프로토콜이다. IrDA에 의해 관리되고 있으나 블루투스 스페셜 인터레스트 그룹오픈 모바일 연합SyncML에도 채택되고 있다. OBEX가 최초로 응용된 사례들 중에는 팜 III가 있다. PDA와 수많은 이후 세대들은 OBEX를 사용하여 명함, 데이터, 심지어는 애플리케이션의 교환도 가능케 했다.

OBEX가 원래 적외선용으로 설계되었으나 현재는 블루투스에 채택되었으며 RS-232, USB, WAP, 그리고 Livescribe 스마트펜 등의 장치들에도 채택되고 있다.

구현

javax.obex

블루투스용 Java API의 선택적 패키지 javax.obex는 자바로 OBEX의 구현체를 제공한다.[1]

OpenObex

OpenObex는 OBEX의 C 언어 오픈 소스 구현체이다. IrDA, 블루투스, USB, TCP/IP를 통한 연결 기능을 제공하며 오브젝트를 만들고 수신 데이터를 관리한다. 클라이언트 애플리케이션의 예는 다음과 같다:

void callback_function(...) {
  /* process received data */
}

int main() {
  OBEX_Init(..., callback_function);
  OBEX_TransportConnect(...);

  object=OBEX_ObjectNew(...);
  OBEX_ObjectAddHeader(object, ...);
  OBEX_ObjectAddHeader(object, ...);
  OBEX_Request(..., object);
  while(...)
    OBEX_HandleInput(...)

  object=OBEX_ObjectNew(...);
  OBEX_ObjectAddHeader(object, ...);
  OBEX_Request(..., object);
  while(...)
    OBEX_HandleInput(...)

  /* ... */

  OBEX_TransportDisconnect(handle);
  OBEX_Cleanup(handle);
}

PyOBEX 및 nOBEX

PyOBEX는 파이썬으로 OBEX의 부분 지원을 제공한다.[2] nOBEX는 더 완전한 OBEX 지원을 제공하는 PyOBEX의 포크(fork)이며 블루투스 핸즈프리 프로파일을 지원한다.[3]

각주

외부 링크

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.