จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
การเขียนคีย์บัญชีย้อนหลัง
หากผู้ขอทำการจับคู่ด้วยวิธีดั้งเดิม (เช่น ผ่าน
การตั้งค่าบลูทูธ) แทนที่จะผ่านจุดแรกเข้าของการจับคู่ด่วน จะ
ไม่มีการเขียนคีย์บัญชีลงในผู้ให้บริการ ในกรณีนี้ ผู้ใช้จะไม่สามารถดูหรือใช้ฟีเจอร์การจับคู่ด่วนใดๆ ได้ แม้ว่าจะมีอุปกรณ์ที่รองรับการจับคู่ด่วนก็ตาม หากต้องการให้ผู้ใช้ได้รับประโยชน์จากฟีเจอร์การจับคู่ด่วน ผู้ให้บริการ
ต้องอนุญาตให้ Seeker เขียนคีย์บัญชีโดยไม่แจ้งให้ทราบทันทีหลังจากจับคู่
เสร็จ
- หากผู้ให้บริการเชื่อมต่อโดยไม่ต้องผ่านขั้นตอนการจับคู่ด่วน ให้อนุญาตให้เขียนคีย์บัญชีใหม่ผ่านวิธีการจับคู่ตามคีย์เป็นเวลาไม่เกิน 1 นาที ยอมรับการเขียนคีย์บัญชีเพียงรายการเดียวในช่วงเวลานี้
- หลังจากสร้างแชแนล RFCOMM แล้ว ผู้ให้บริการควรส่ง Model
ID และที่อยู่ BLE ไปยังผู้ขอผ่านสตรีมข้อความ
ผู้ขอจะสร้างการเชื่อมต่อ GATT และเริ่มขั้นตอนการจับคู่ตามคีย์
- หากได้รับ Raw Request ที่ตั้งค่าบิต 3 ของ Flags ไว้ ผู้ให้บริการ
ควรตรวจสอบว่าที่อยู่ BR/EDR ของอุปกรณ์ที่จับคู่แล้วตรงกับที่อยู่
ที่รวมอยู่ในคำขอ หากไม่รู้จัก ให้ปฏิเสธคำขอ
- เนื่องจากอุปกรณ์จับคู่กันอยู่แล้ว ระบบจึงจะข้ามการจับคู่ BR/EDR และการยืนยันรหัสผ่าน (ขั้นตอนที่ 8-17 ในกระบวนการ) และ Seeker จะเขียนคีย์บัญชีลงใน Provider โดยตรงหลังจากสร้างความลับที่แชร์แล้ว
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-13 UTC
[null,null,["อัปเดตล่าสุด 2025-08-13 UTC"],[[["\u003cp\u003eIf a Fast Pair device is paired traditionally (e.g., via Bluetooth settings), it won't have Fast Pair features until an account key is written.\u003c/p\u003e\n"],["\u003cp\u003eProviders should allow Seekers to write an account key for up to a minute after traditional pairing using Key-based Pairing.\u003c/p\u003e\n"],["\u003cp\u003eThis process involves the Provider sending its Model ID and BLE address, the Seeker establishing a GATT connection, and initiating Key-based Pairing.\u003c/p\u003e\n"],["\u003cp\u003eFor security, the Provider verifies the bonded device's address before accepting the account key write request.\u003c/p\u003e\n"],["\u003cp\u003eSince devices are already bonded, the process skips some steps and the Seeker directly writes the account key after a shared secret is established.\u003c/p\u003e\n"]]],[],null,["Retroactively Writing Account Key\n---------------------------------\n\nIf a Seeker performs a pairing through the traditional way (for example, through\nBluetooth settings) instead of through the Fast Pair entrypoint, there will be\nno account key written into the Provider. In this case, the user will not be\nable to see or use any of the Fast Pair features, despite owning a Fast Pair\ndevice. To let users be able to get the benefits of Fast Pair, the Provider\nshall allow the Seeker silently writing account key right after pairing has\noccurred.\n\n1. If the Provider is bonded without going through the Fast Pair flow, allow a new account key to be written through the Key-based Pairing method for up to one minute. Only accept one account key to be written during this time.\n2. After the RFCOMM channel is established, the Provider should send the Model ID and BLE address to the Seeker via [Message Stream](/nearby/fast-pair/specifications/extensions/messagestream#MessageStream \"Message Stream\"), the Seeker will build GATT connection and start [Key-based Pairing procedure](/nearby/fast-pair/specifications/service/gatt#procedure \"GATT Procedure\").\n3. If an [Raw Request](/nearby/fast-pair/specifications/characteristics#table1.2.1 \"Table 1.2.1 Raw Request\") with Flags bit 3 set is received, the Provider should verify the bonded device's BR/EDR address is the same as what is included in the request. If not, reject the request.\n4. Because the devices are already bonded, BR/EDR bonding and Passkey verification (steps 8 - 17 in the [procedure](/nearby/fast-pair/specifications/service/gatt#procedure \"GATT Procedure\")) will be skipped and the Seeker will directly write an [account key](/nearby/fast-pair/specifications/characteristics#AccountKey \"Account Key\") to the Provider after a shared secret is established."]]