זרם הודעות
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
כדי לתמוך בתוספים של Fast Pair, נדרש ערוץ נוסף ליצירת חיבור קבוע עם הספקים. כשהספק מתחבר למכשיר חיפוש נתמך, המכשיר ינסה לחבר את מקור ההודעות.
הטמעה נתמכת
התכונה 'התאמה מהירה' תומכת בשני סוגים של הטמעות של שידורי הודעות:
RFCOMM
שימוש ב-UUID קבוע בתור נקודת הקצה
df21fe2c-2515-4fdb-8886-f12c4d67927c
L2CAP
משתמשים במאפיין PSMGATT כדי לקבל את הערך של PSM לחיבור L2CAP.
אחרי החיבור, אפשר להחליף הודעות בפורמט הבא:
אוקטט |
סוג הנתונים |
תיאור |
חובה? |
0 |
uint8 |
קבוצת הודעות |
חובה |
1 |
uint8 |
קוד הודעה |
חובה |
2 עד 3 |
uint16 |
אורך נתונים נוסף |
חובה |
4 - n |
|
נתונים נוספים |
אופציונלי |
אורך הנתונים הנוספים ושדות הנתונים הנוספים צריכים להיות בפורמט big endian.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת 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."]]