मैसेज स्ट्रीम
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
फ़ास्ट पेयर एक्सटेंशन के साथ काम करने के लिए, फ़ास्ट पेयर को सेवा देने वाली कंपनियों के साथ लगातार संपर्क बनाए रखने के लिए एक और चैनल की ज़रूरत होती है. जब प्रोवाइडर, इस सुविधा के साथ काम करने वाले किसी सीकर से कनेक्ट होता है, तो सीकर मैसेज स्ट्रीम को कनेक्ट करने की कोशिश करेगा.
लागू करने का तरीका
फ़ास्ट पेयर की सुविधा, मैसेज स्ट्रीम को दो तरह से लागू करने की सुविधा देती है:
RFCOMM
एंडपॉइंट के तौर पर, तय किए गए UUID का इस्तेमाल करना
df21fe2c-2515-4fdb-8886-f12c4d67927c
एल2सीएपी
L2CAP कनेक्शन की पीएसएम वैल्यू पाने के लिए, GATT PSM Characteristic का इस्तेमाल करें.
कनेक्ट होने के बाद, इस फ़ॉर्मैट में मैसेज भेजे और पाए जा सकते हैं:
Octet |
डेटा टाइप |
ब्यौरा |
क्या यह ज़रूरी है? |
0 |
uint8 |
मैसेज ग्रुप |
ज़रूरी है |
1 |
uint8 |
मैसेज कोड |
ज़रूरी है |
2 - 3 |
uint16 |
डेटा की अतिरिक्त लंबाई |
ज़रूरी है |
4 - n |
|
अतिरिक्त डेटा |
वैकल्पिक |
अतिरिक्त डेटा की लंबाई और अतिरिक्त डेटा फ़ील्ड, बिग इंडियन फ़ॉर्मैट में होने चाहिए.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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."]]