จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ชื่อที่ปรับเปลี่ยนในแบบของคุณ
ผู้ขอสามารถเขียนชื่อที่ปรับเปลี่ยนในแบบของคุณให้กับผู้ให้บริการได้ในระหว่างการจับคู่ครั้งแรก
และเมื่อผู้ใช้แก้ไขชื่อในฝั่งผู้ขอ ผู้ให้บริการต้อง
จัดสรรพื้นที่อย่างน้อย 64 ไบต์เพื่อจัดเก็บชื่อที่ปรับเปลี่ยนในแบบของคุณ
การเขียนไปยังลักษณะข้อมูลเพิ่มเติมที่มีชื่อที่ปรับเปลี่ยนในแบบของคุณอาจเกิดขึ้นใน 2 โฟลว์ต่อไปนี้
- หลังจากการจับคู่ครั้งแรก ผู้ขออาจเขียนชื่อที่ปรับเปลี่ยนในแบบของคุณให้กับผู้ให้บริการหลังจากเขียนคีย์บัญชี
- หลังจากที่ผู้ใช้แก้ไขชื่อที่ปรับเปลี่ยนใน Seeker แล้ว Seeker จะเขียนชื่อใหม่ไปยัง Provider ดังนี้
- แฮนด์เชคจากขั้นตอนที่ 1 ถึงขั้นตอนที่ 4 ในกระบวนการข้างต้นเพื่อ
ระบุตัวตนของกันและกันและทราบว่าจะใช้คีย์บัญชีใดในการ
เข้ารหัสและถอดรหัสชื่อ ในตาราง 1.2.2 ให้ทำดังนี้
- ตั้งค่าประเภทข้อความเป็น 0x10
- ตั้งค่าบิตของแฟล็ก 1 เป็น 1 เพื่อระบุว่าตามด้วย
ลักษณะข้อมูล
- ตั้งค่ารหัสข้อมูลของตาราง 1.2.2 เป็น 0x01 เป็นชื่อที่ปรับเปลี่ยนในแบบของคุณ
- เขียนชื่อลงในลักษณะข้อมูล
FE2C1237-8366-4814-8EB0-01DE32100BEA
ผู้ให้บริการควรแจ้งลักษณะข้อมูลเพิ่มเติม
พร้อมชื่อที่ปรับเปลี่ยนในแบบของคุณเมื่อมีการขอผ่านบิต 2 ใน
ตาราง 1.2.1
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-08-13 UTC
[null,null,["อัปเดตล่าสุด 2025-08-13 UTC"],[[["\u003cp\u003eSeekers can personalize the name of their Provider device during initial pairing and anytime after.\u003c/p\u003e\n"],["\u003cp\u003eThe Provider device securely stores the personalized name, allocating at least 64 bytes for it.\u003c/p\u003e\n"],["\u003cp\u003eName updates are communicated via the Additional Data characteristic following a secure handshake process.\u003c/p\u003e\n"],["\u003cp\u003eProviders can be prompted to share the personalized name using a specific flag in the data exchange.\u003c/p\u003e\n"]]],[],null,["Personalized Name\n-----------------\n\nThe Seeker can write a personalized name to the Provider during the first\npairing and when the user edits the name on the Seeker side. The Provider shall\nallocate space, at least 64 bytes, to store the personalized name.\n\nWrites to [Additional Data characteristic](/nearby/fast-pair/specifications/characteristics#AdditionalData \"Characteristic: Addiitonal Data\") with personalized\nname may happen in 2 flows:\n\n1. After initial pairing, the Seeker may write a personalized name to the Provider after writing the account key.\n2. After a user modifies the personalized name on the Seeker, the Seeker will write the new name to the Provider:\n 1. handshake from step 1 to step 4 in the above [procedure](/nearby/fast-pair/specifications/service/gatt#procedure \"GATT Procedure\") to identify each other and know which account key will be used for the encryption and decryption of the name. In [Table 1.2.2](/nearby/fast-pair/specifications/characteristics#table1.2.2 \"Table 1.2.2\"):\n 1. Set Message type to 0x10\n 2. Set Flag Bit 1 to 1 to indicate it will be followed by Data characteristic.\n 3. Set Data ID of [Table 1.2.2](/nearby/fast-pair/specifications/characteristics#table1.2.2 \"Table 1.2.2\") to 0x01 as personalized name.\n 2. write the name to Data characteristic `FE2C1237-8366-4814-8EB0-01DE32100BEA`.\n\nThe Provider should notify to [Additional Data characteristic](/nearby/fast-pair/specifications/characteristics#AdditionalData \"Characteristic: Addiitonal Data\")\nwith personalized name when it is requested via Bit 2 in\n[Table 1.2.1](/nearby/fast-pair/specifications/characteristics#table1.2.1 \"Table 1.2.1\")."]]