메시지 스트림
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
빠른 페어링 확장 프로그램을 지원하려면 빠른 페어링에서 제공업체와 지속적으로 연결하기 위한 추가 채널이 필요합니다. 제공자가 지원되는 시커에 연결되면 시커는 메시지 스트림을 연결하려고 시도합니다.
지원되는 구현
빠른 페어링은 다음과 같은 두 가지 종류의 메시지 스트림 구현을 지원합니다.
RFCOMM
고정 UUID를 엔드포인트 df21fe2c-2515-4fdb-8886-f12c4d67927c
로 사용
L2CAP
GATT PSM 특성을 사용하여 L2CAP 연결의 PSM 값을 가져옵니다.
연결되면 다음 형식으로 메시지를 교환할 수 있습니다.
옥텟 |
데이터 유형 |
설명 |
필수 여부 |
0 |
uint8 |
메시지 그룹 |
필수 |
1 |
uint8 |
메시지 코드 |
필수 |
2~3명 |
uint16 |
추가 데이터 길이 |
필수 |
4 - n |
|
추가 데이터 |
선택사항 |
추가 데이터 길이와 추가 데이터 필드는 빅엔디언이어야 합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-08-13(UTC)
[null,null,["최종 업데이트: 2025-08-13(UTC)"],[[["\u003cp\u003eFast Pair utilizes a persistent connection with Providers via an additional channel to enable Fast Pair extensions.\u003c/p\u003e\n"],["\u003cp\u003eTwo message stream implementations are supported: RFCOMM using a fixed UUID and L2CAP using GATT PSM Characteristic for connection.\u003c/p\u003e\n"],["\u003cp\u003eExchanged messages adhere to a specific format containing message group, message code, additional data length, and optional additional data.\u003c/p\u003e\n"],["\u003cp\u003eData length and additional data fields within messages are represented in big endian format.\u003c/p\u003e\n"]]],[],null,["# Message Stream\n\nFast Pair requires an additional channel for a persistent connection with the\nProviders to support Fast Pair extensions. When the Provider connects to a\nsupported Seeker, the Seeker will attempt to connect the message stream.\n\nSupported Implementation\n------------------------\n\nFast Pair supports two kinds of message stream implementations:\n\n### RFCOMM\n\nUse fixed UUID as the endpoint\n`df21fe2c-2515-4fdb-8886-f12c4d67927c`\n\n### L2CAP\n\nUse GATT [PSM Characteristic](/nearby/fast-pair/specifications/bledevice#message_stream_PSM \"message stream_PSM\") to obtain the PSM value for L2CAP connection.\n\nMessage Format\n--------------\n\nOnce connected, messages can be exchanged in the following format:\n\n| Octet | Data Type | Description | Mandatory? |\n|-------|-----------|------------------------|------------|\n| 0 | uint8 | Message group | Mandatory |\n| 1 | uint8 | Message code | Mandatory |\n| 2 - 3 | uint16 | Additional data length | Mandatory |\n| 4 - n | | Additional data | Optional |\n\nThe additional data length and additional data fields should be big endian."]]