User Tools

Site Tools


en:i2c

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:i2c [2014/12/21 10:22] – [Reading] kakliken:i2c [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 38: Line 38:
 ===== Convertors to connect I²C to PC ===== ===== Convertors to connect I²C to PC =====
  
-Although I²C is quite popular bus suitable to connect different sensors over short distances, it is not usually found and readily available on regular computers with exception of [[http://www.paintyourdragon.com/?p=43|DCC leading out of free display port.]]+Although I²C is quite popular bus suitable to connect different sensors over short distances, it is not usually found and readily available on regular computers. (([[http://www.paintyourdragon.com/?p=43|with exception of DCC leading out at free display port.]]))
  
 ==== USB interface ==== ==== USB interface ====
Line 132: Line 132:
 ==== Use of Linux kernel drivers ==== ==== Use of Linux kernel drivers ====
  
-Některá I²C zařízení mají přímo ovladače v linuxovém jádřeJe tak možné k těmto zařízením přistupovat přímo prostřednictvím souborového systému. V případě MLABu se to týká těchto modulů+Some I²C devices have their drivers directly in the linux kernel allowing an access directly through file systemIt applies to following MLAB modules:
  
-  * [[cs:usbi2c]] +  * [[en:usbi2c]] 
-  * [[cs:i2chub]] +  * [[en:i2chub]] 
-  * [[cs:i2cspi]]+  * [[en:i2cspi]]
  
-Protože I²C není v principu [[http://cs.wikipedia.org/wiki/Plug-and-playplug-and-play]] sběrnicetak je třeba o každém připojeném zařízení kernelu explicitně říctObecný postup takového přihlášení připojeného hardwaru probíhá přes příkaz+Due to the fact that, in principle, I²C is not a [[http://en.wikipedia.org/wiki/Plug_and_play|plug-and-play]] busevery connected device must be explicitly reported to the kernelA general procedure of such connection is via a following command
  
-  echo název_driveru i2c_adresa > /sys/bus/i2c/devices/i2c-X/new_device+  echo driver's_name i2c_adresa > /sys/bus/i2c/devices/i2c-X/new_device
  
-Tím dojde k převzetí kontroly nad I²C zařízením jádrem Linuxu. Ve výpisu i2cdetect můžeme takový stav vidět označený jako UU. Podrobnosti o provedení a úspěšnosti inicializace můžeme pak obvykle najít v [[http://en.wikipedia.org/wiki/Dmesg|dmesg]].+Linux kernel will take control of I²C device - such state can be seen in i2cdetect list labeled as UU. Details concerning the initialisation can be further found in [[http://en.wikipedia.org/wiki/Dmesg|dmesg]].
  
 ===== Other operating systems ===== ===== Other operating systems =====
en/i2c.1419157341.txt.gz · Last modified: 2014/12/21 10:22 (external edit)