Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
en:wb_xu4_shifter_shield [2017/04/25 18:17] john1117 [Directly connecting WEATHER-BOARD to ODROID-XU4] |
en:wb_xu4_shifter_shield [2017/06/15 09:42] (current) odroid [Directly connecting WEATHER-BOARD to ODROID-XU4] |
||
---|---|---|---|
Line 9: | Line 9: | ||
====== Directly connecting WEATHER-BOARD to ODROID-XU4 ====== | ====== Directly connecting WEATHER-BOARD to ODROID-XU4 ====== | ||
- | {{:en:weather_board:wb2_xu4_wire.png?500|}} | + | {{:en:weather_board:wb3_xu4_wire.png?500|}} |
---- | ---- | ||
- | **H/W I2C CH-A** | + | **H/W I2C(I2C-A)** |
^ Kernel 3.10.y\\ (node name) ^ Kernel 4.9.y\\ (node name) ^ Net Name ^ Export Number ^ Description ^ | ^ Kernel 3.10.y\\ (node name) ^ Kernel 4.9.y\\ (node name) ^ Net Name ^ Export Number ^ Description ^ | ||
- | | /dev/i2c-4 | /dev/i2c-1 | GPB3[2](I2C_1.SDA) | 209 | SDA | | + | | <color #ed1c24>**/dev/i2c-4**</color> | <color #ed1c24>**/dev/i2c-1**</color> | GPB3[2](I2C_1.SDA) | 209 | SDA | |
| ::: | ::: | GPB3[3](I2C_1.SCL) | 210 | SCL | | | ::: | ::: | GPB3[3](I2C_1.SCL) | 210 | SCL | | ||
- | **H/W I2C CH-B(HS-I2C)** | + | **H/W I2C(I2C-B : HS-I2C)** |
^ Kernel 3.10.y\\ (node name) ^ Kernel 4.9.y\\ (node name) ^ Net Name ^ Export Number ^ Description ^ | ^ Kernel 3.10.y\\ (node name) ^ Kernel 4.9.y\\ (node name) ^ Net Name ^ Export Number ^ Description ^ | ||
- | | /dev/i2c-1 | /dev/i2c-5 | GPA2[2](I2C_5.SDA) | 187 | SDA | | + | | <color #ed1c24>**/dev/i2c-1**</color> | <color #ed1c24>**/dev/i2c-5**</color> | GPA2[2](I2C_5.SDA) | 187 | SDA | |
| ::: | ::: | GPA2[3](I2C_5.SCL) | 188 | SCL | | | ::: | ::: | GPA2[3](I2C_5.SCL) | 188 | SCL | | ||
Line 32: | Line 32: | ||
</code> | </code> | ||
- | <note warning>I2C CH-B(HS-I2C)의 경우 3.10.y에서는 i2cdetect 명령어가 정상 동작하지 않습니다</note> | + | <note warning>H/W I2C(I2C-B : HS-I2C) doesn't work with i2cdetect command on Kernel 3.10</note> |
Weather board rev 0.1 output | Weather board rev 0.1 output | ||
Line 79: | Line 79: | ||
**Get the WEATHER-BOARD source code.** | **Get the WEATHER-BOARD source code.** | ||
- | git clone https://github.com/hardkernel/WEATHER-BOARD.git | + | <code> |
- | cd WEATHER-BOARD/c_weather | + | odroid@odroid:~$ mkdir work |
- | make | + | odroid@odroid:~$ cd work |
+ | odroid@odroid:~/work$ git clone https://github.com/hardkernel/WEATHER-BOARD.git | ||
+ | odroid@odroid:~/work$ cd WEATHER-BOARD/c_weather | ||
+ | odroid@odroid:~/work/WEATHER-BOARD/c_weather$ make | ||
+ | </code> | ||
- | Check your I2C node, and run the program. | + | Check your I2C node first and run the program. |
<code> | <code> | ||
- | odroid@odroid:~$ sudo ./weather_board [i2c node name(default /dev/i2c-1)] | + | odroid@odroid:~/work/WEATHER-BOARD/c_weather$ sudo ./weather_board [i2c node name(default /dev/i2c-1)] |
</code> | </code> | ||
- | **sudo ./weather_board [i2c node name : default /dev/i2c-1]** | ||
- | **If weather board connect to I2C CH-A (Kernel 4.9.y)** | + | **If weather board is connected to I2C Channel-A (Kernel 4.9.y)** |
<code> | <code> | ||
- | odroid@odroid sudo ./weather_board /dev/i2c-1 | + | odroid@odroid:~/work/WEATHER-BOARD/c_weather$ sudo ./weather_board /dev/i2c-1 |
</code> | </code> | ||