Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
Nome personalizzato
La persona che ha bisogno di assistenza può scrivere un nome personalizzato per il fornitore durante il primo
accoppiamento e quando l'utente modifica il nome sul lato della persona che ha bisogno di assistenza. Il fornitore deve
allocare spazio, almeno 64 byte, per memorizzare il nome personalizzato.
La scrittura nella caratteristica Dati aggiuntivi con nome personalizzato può avvenire in due flussi:
- Dopo l'accoppiamento iniziale, il richiedente può scrivere un nome personalizzato al
fornitore dopo aver scritto la chiave dell'account.
- Dopo che un utente ha modificato il nome personalizzato sul Richiedente, quest'ultimo
scriverà il nuovo nome al Fornitore:
- handshake dal passaggio 1 al passaggio 4 della procedura riportata sopra per
identificarsi a vicenda e sapere quale chiave dell'account verrà utilizzata per la
crittografia e la decrittografia del nome. Nella Tabella 1.2.2:
- Imposta il tipo di messaggio su 0x10
- Imposta il bit del flag 1 su 1 per indicare che sarà seguito da
Data characteristic.
- Imposta l'ID dati di Tabella 1.2.2 su 0x01 come nome personalizzato.
- scrivi il nome in Caratteristica dei dati
FE2C1237-8366-4814-8EB0-01DE32100BEA
.
Il fornitore deve inviare una notifica alla caratteristica Dati aggiuntivi
con il nome personalizzato quando viene richiesta tramite il bit 2 nella
tabella 1.2.1.
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-08-13 UTC.
[null,null,["Ultimo aggiornamento 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\")."]]