Controller Area Network: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
Marius~itwiki (discussione | contributi)
aggiunte, -stub
Marius~itwiki (discussione | contributi)
aggiunte
Riga 144:
* ''Active Error Flag'': trasmessi da un nodo che ha rilevato un errore di rete, e che si trova nello stato di "error active";
* ''Passive Error Flag'': trasmessi da un nodo che ha rilevato la presenza sulla rete di un Active Error Flag, e che si trova nello stato di "error passive".
 
<!--
 
=== Overload frame ===
 
== Bit stuffing ==
 
In CAN frames a bit of opposite polarity is inserted after five consecutive bits of the same polarity. This practice is called [[bit stuffing]], and is due to the "[[NRZ|Non Return to Zero]]" (NRZ) coding adopted. The "stuffed" data frames are destuffed by the receiver.
Consiste nell'inserire un bit di valore opposto dopo cinque bit consecutivi dello stesso valore. Questa pratica è chiamata ''bit stuffing'' (letteralmente ''riempimento di bit''), ed è resa possibile dall'applicazione dell'algoritmo di codifica denominato [[NRZ]] (''Non Return to Zero''). I frame sottoposti a questa operazione vengono poi "decodificati" dal ricevitore, che rimuove i bit precedentemente inseriti. Di conseguenza, quando vengono ricevuti sei bit uguali consecutivi dello stesso valore (111111 oppure 000000), essi vengono considerati un errore. Il ''bit stuffing'' implica che i frame dati trasmessi possono essere più grandi di quelli che ci si potrebbe aspettare dall'applicazione delle tabelle soprariportate.
Since bit stuffing is used, six consecutive bits of the same type (111111 or 000000) are considered an error.
 
Bit stuffing implies that sent data frames could be larger than one would expect by simply enumerating the bits shown in the tables above.
<!--
 
== ISO standards ==