Procedura di configurazione dettagliata tra dispositivi Type-C

Jul 30, 2024Lasciate un messaggio

Utilizziamo dispositivi elettronici comuni che corrispondono a queste tre tipologie: Sorgente: caricabatterie; Dispersore: telefono cellulare; DRP: laptop o power bank.

Per tre tipi di dispositivi, ci saranno 9 combinazioni di interconnessione in teoria. Devono esserci metodi di connessione sbagliati (come l'adattatore che collega l'adattatore) o metodi di connessione che non sono sicuri di chi sia la Fonte (come power bank o laptop). Quindi, per così tante combinazioni, come configura l'interfaccia il controller Type-C?

Il controller Type-C completa l'intero processo di identificazione e comunicazione tramite la commutazione di stato della macchina a stati. Di seguito sono riportati diversi stati principali nella macchina a stati.

1. Unattached.SRC, la sorgente è in uno stato non connesso

2. Unattended.SNK, Sink è in uno stato non connesso

3. AttachWait.SRC, lo scopo di questo stato è che Source assicuri che CC1 e CC2 rimangano stabili dopo che il dispositivo è connesso

4. AttachWait.SNK, lo scopo di questo stato è che Sink assicuri che CC1 e CC2 rimangano stabili dopo che il dispositivo è connesso

5. Attached.SRC, Source determina che il dispositivo è connesso correttamente

6. Attached.SNK, Sink determina che il dispositivo è connesso correttamente

5. Try.SRC, questo stato è per il dispositivo DRP per provare a cambiare il ruolo di origine

6. Try.SNK, questo stato è per il dispositivo DRP per provare a cambiare il ruolo Sink

Scenario 1 Meccanismo di comportamento tra Sorgente e Pozzo (adattatore e telefono cellulare)

Di seguito è riportato il meccanismo di comportamento quando il dispositivo Source ha un dispositivo Sink connesso:

(1) Source e Sink sono entrambi nello stato non collegato Unattached.SRC e Unattached.SNK

(2) Source detects that there is a pull-up resistor on the CC end of the Sink, and the Source state changes to Unattached.SRC --> AttachWait.SRC-->Attached.SRC; La sorgente attiva VBUS e VCONN.

(3) Sink detects VBUS, and the Sink state changes to Unattached.SNK --> AttachWait.SNK -->Allegato.SNK

(4) Dopo che la Sorgente e il Pozzo sono nello stato allegato

La sorgente regola il valore Rp per limitare la corrente assorbita dal dissipatore

Sink rileva la tensione vRd su Rd per determinare la corrente consentita da VBUS

Source determina se il Sink è disconnesso monitorando CC. Se è disconnesso, entra in Unattached.SRC

Sink determina se la Source è disconnessa monitorando la tensione VBUS. Se è disconnessa, entra in Unattached.SNK

33

Scenario 2 Meccanismo di comportamento tra Sorgente e DRP (caricabatterie e laptop)

Di seguito è riportato il meccanismo di comportamento quando alla Sorgente è collegato un dispositivo DRP:

(1) Sia la sorgente che il DRP sono nello stato non collegato

La sorgente è nello stato Unattached.SRC - DRP passa da Unattached.SRC a Unattached.SNK e viceversa

(2) Source detects that there is a Sink pull-up resistor on the CC end, then the Source state changes to Unattached.SRC --> AttachWait.SRC -->Attached.SRC; La sorgente attiva VBUS e VCONN.

(3) When DRP switches to Unattached.SNK and detects that the CC pin is pulled up, the DRP state changes to Unattached.SNK --> AttachWait.SNK -->Allegato.SNK

(4) Dopo che la sorgente e il DRP sono nello stato allegato

La sorgente regola il valore Rp per limitare la corrente assorbita dal DRP (ovvero Sink)

DRP (ovvero Sink) rileva la tensione vRd su Rd per determinare la corrente consentita da VBUS

Source determina se Sink è disconnesso monitorando CC. Se è disconnesso, entra in Unattached.SRC- DRP (ovvero Sink) determina se Source è disconnesso monitorando la tensione VBUS. Se è disconnesso, entra in Unattached.SNK e ripristina il suo meccanismo di commutazione tra Unattached.SRC e Unattached.SNK

44

Scenario 3 Meccanismo di comportamento tra DRP e Sink (Laptop e telefono cellulare)

Di seguito è riportato il meccanismo di comportamento quando DRP ha un dispositivo Sink connesso:

(1) Sia DRP che Sink sono nello stato non collegato

DRP passa da Unattached.SRC a Unattached.SNK e viceversa: il sink è nello stato Unattached.SNK

(2) When DRP switches to Unattached.SRC and detects that the CC pin has a pull-down resistor, the DRP state changes to Unattached.SRC --> AttachWait.SRC -->Attached.SRC; DRP (ovvero Sorgente) attiva VBUS e VCONN.

(3) When the Sink detects VBUS, the Sink state changes to Unattached.SNK --> AttachWait.SNK -->Allegato.SNK

(4) Dopo che la Sorgente e il DRP sono nello stato allegato

DPR (ovvero Source) regola il valore Rp per limitare la corrente assorbita dal Sink - il Sink rileva la tensione vRd su Rd per determinare la corrente consentita da VBUS

DRP (ovvero Source) determina se il Sink è disconnesso monitorando CC. Se è disconnesso, entra in Unattached.SRC e ripristina il suo meccanismo di commutazione tra Unattached.SRC e Unattached.SNK

DRP (ovvero Sink) determina se la Source è disconnessa monitorando la tensione VBUS. Se è disconnessa, entra in Unattached.SNK

55

Scenario 4 Meccanismo di comportamento tra DRP e DRP (Power Bank e Laptop)

Per la comunicazione tra DRP e DRP, ci sono tre situazioni. In una situazione, i due dispositivi decidono casualmente chi è la Sorgente o il Sink; nella seconda situazione, uno dei DRP cerca di decidere di essere la Sorgente tramite il meccanismo Try.SRC; nella terza situazione, uno dei DRP cerca di decidere di essere il Sink tramite il meccanismo Try.SNK.

Di seguito è riportato il meccanismo di comportamento quando un dispositivo DRP è connesso al DRP:

Scenario 1:

(1) Entrambi i dispositivi DRP sono nello stato non connesso

DRP#1 e DRP#2 passano casualmente da Unattached.SRC a Unattached.SNK

(2) When DRP#1 switches to Unattached.SRC and detects that the CC pin is pulled down by DRP#2, the state of DRP#1 changes to Unattached.SRC--> AttachWait.SRC -->Attached.SRC; DRP#1 (ovvero Sorgente) attiva VBUS e VCONN.

(3) When DRP#2 switches to Unattached.SRC and detects that the CC pin is pulled up, the state of DRP#2 changes to Unattached.SNK --> AttachWait.SNK -->Allegato.SNK

(4) Dopo che la sorgente e il DRP sono nello stato allegato

DPR#1 (ovvero Sorgente) regola il valore Rp per limitare la corrente assorbita da DRP#2 (ovvero Dispersore)

DRP#2 (ovvero Sink) rileva la tensione vRd su Rd per determinare la corrente consentita da VBUS

DRP#1 (ovvero Source) determina se Sink è disconnesso monitorando CC. In tal caso, entra in Unattached.SRC e ripristina il suo meccanismo di commutazione tra Unattached.SRC e Unattached.SNK

DRP#2 (ovvero Sink) determina se Source è disconnesso monitorando la tensione VBUS. In tal caso, entra in Unattached.SNK e ripristina il suo meccanismo di commutazione tra Unattached.SRC e Unattached.SNK

66

Caso 2:

(1) Entrambi i dispositivi DRP sono nello stato non collegato

DRP#1 e DRP#2 passano casualmente da Unattached.SRC a Unattached.SNK

(2) When DRP#1 switches to Unattached.SRC and detects that the CC pin is pulled down by DRP#2, the state of DRP#1 changes to Unattached.SRC--> AttachWait.SRC -->Attached.SRC; ; DRP#1 (ovvero Sorgente) attiva VBUS e VCONN.

(3) When DRP#2 switches to Unattached.SRC and detects that the CC pin is pulled up, the state of DRP#2 changes to Unattached.SNK -->AllegaAspetta.SNK

(4) DRP#2 is in AttachWait.SNK and wants to switch to the Source role. The state of DRP#2 changes to AttachWait.SNK -->Prova.SRC; e solleva il pin CC

(5) DRP#1 no longer detects DRP#2 pulling down the CC pin, so the state changes to Attached.SRC --> UnattachWait.SNK -->AttachWait.SNK; e disattiva VBUS e VCONN, e commuta la resistenza pull-down sul pin CC

(6) DRP#2 detects that the CC pin is pulled up, so its state changes to Try.SRC -->Attached.SRC; e attiva VBUS e VCONN

(7) The state of DRP#1 changes to AttachWait.SNK -->Allegato.SNK

(8) Dopo che la sorgente e il DRP sono nello stato allegato

DPR#2 (ovvero Sorgente) regola il valore Rp per limitare la corrente assorbita da DRP#1 (ovvero Dispersore)

DRP#1 (ovvero Sink) rileva la tensione vRd su Rd per determinare la corrente consentita da VBUS

DRP#2 (ovvero Source) determina se Sink è disconnesso monitorando CC. In tal caso, entra in Unattached.SRC e ripristina il suo meccanismo di commutazione tra Unattached.SRC e Unattached.SNK

DRP#1 (ovvero Sink) determina se Source è disconnesso monitorando la tensione VBUS. In tal caso, entra in Unattached.SNK e ripristina il suo meccanismo di commutazione tra Unattached.SRC e Unattached.SNK

77

Il terzo caso è il meccanismo Try.SNK, che è simile al meccanismo Try.SRC e non verrà descritto qui.

Scenario 5 Meccanismo di comportamento tra Sorgente e Sorgente e tra Pozzo e Pozzo

In questi due casi d'uso, sia Source che Sink sono negli stati Unattached.SRC e Unattached.SNK, quindi non c'è alimentazione tra i dispositivi.

Finora abbiamo introdotto alcuni meccanismi di comunicazione comuni tra dispositivi. In particolare per due dispositivi DRP a doppio ruolo, il controller Type-C utilizzerà Try.SRC o Try.SNK per provare a stabilire una normale logica di alimentazione. Ovviamente, se si verifica una logica di alimentazione errata (ad esempio, un laptop carica un power bank), l'USB

Il protocollo PD fornisce anche un meccanismo Power Role Swap, che commuta il ruolo dell'alimentatore tramite il protocollo PD. Per i dettagli, fare riferimento alla USB Power Delivery Specification.

 

 

 

Invia la tua richiesta

Casa

teams

Posta elettronica

Inchiesta