Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Nama yang Dipersonalisasi
Pencari dapat menulis nama yang dipersonalisasi ke Penyedia selama penyambungan pertama dan saat pengguna mengedit nama di sisi Pencari. Penyedia akan mengalokasikan ruang, setidaknya 64 byte, untuk menyimpan nama yang dipersonalisasi.
Penulisan ke karakteristik Data Tambahan dengan nama yang dipersonalisasi dapat terjadi dalam 2 alur:
- Setelah penyambungan awal, Pencari dapat menulis nama yang dipersonalisasi ke Penyedia setelah menulis kunci akun.
- Setelah pengguna mengubah nama yang dipersonalisasi di Seeker, Seeker akan
menulis nama baru ke Provider:
- handshake dari langkah 1 hingga langkah 4 dalam prosedur di atas untuk
mengidentifikasi satu sama lain dan mengetahui kunci akun mana yang akan digunakan untuk
enkripsi dan dekripsi nama. Di Tabel 1.2.2:
- Tetapkan Jenis pesan ke 0x10
- Tetapkan Bit Flag 1 ke 1 untuk menunjukkan bahwa setelahnya akan diikuti dengan
Karakteristik data.
- Tetapkan ID Data Tabel 1.2.2 ke 0x01 sebagai nama yang dipersonalisasi.
- tulis nama ke Karakteristik data
FE2C1237-8366-4814-8EB0-01DE32100BEA
.
Penyedia harus memberi tahu karakteristik Data Tambahan
dengan nama yang dipersonalisasi saat diminta melalui Bit 2 di
Tabel 1.2.1.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-08-13 UTC.
[null,null,["Terakhir diperbarui pada 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\")."]]