embeded/raspberry pi2015. 6. 9. 21:19

음.. 정 안되던거 다시 시도!


일단은 config.txt에서

간단하게 주석만 삭제하고 lirc 설정

# Uncomment this to enable the lirc-rpi module

dtoverlay=lirc-rpi 


pi@raspberrypi /boot $ dmesg | grep -i lirc

[    4.369486] lirc_dev: IR Remote Control driver registered, major 246

[    4.416487] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.

[    5.397784] lirc_rpi: auto-detected active high receiver on GPIO pin 18

[    5.410733] lirc_rpi lirc_rpi: lirc_dev: driver lirc_rpi registered at minor = 0

[    5.424117] lirc_rpi: driver registered! 


gpio 상으로는 input으로 그냥.. 일반 gpio로 잡히는데..

pi@raspberrypi ~ $ gpio readall

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |

 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |

 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |

 |   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |

 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |

 |  17 |   0 | GPIO. 0 |  OUT | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |

 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |

 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |

 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |

 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |

 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |

 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |

 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |

 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |

 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |

 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |

 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |

 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |

 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |

 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ 


여전히 리모컨 못 읽는건 여전..

센서를 태워먹었나... ㅠㅠ


[링크 : http://ozzmaker.com/2013/10/24/how-to-control-the-gpio-on-a-raspberry-pi-with-an-ir-remote/]

Posted by 구차니
embeded/raspberry pi2015. 6. 9. 20:52

wiring pi로 테스트

리본케이블은 어떻게 연결되는지 모르겠는데..

아무튼 연결해보니 좌우가 바뀌었다!!! 두둥!!!

(하드는 그럼 어떻게 연결된거였던거야? ㄷㄷㄷ)


귀차니즘으로.. 220옴 연결안하고

GPIO와 GND 연결해주니 문제없이 불 들어 오고 열은 미미하게 나는 수준

물론.. 5V와 GNGD에 연결하면 손을 델 정도로 심하게 열이 나니

LED 손상될 것 같아서 후다닥 뺴고 던지기 신공 -_ㅠ


LED는 7(+) 9(-) 연결

pi@raspberrypi ~/src/java $ sudo gpio write 7 1

pi@raspberrypi ~/src/java $ gpio readall

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |

 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |

 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |

 |   4 |   7 | GPIO. 7 |  OUT | 1 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |

 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |

 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |

 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |

 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |

 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |

 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |

 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |

 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |

 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |

 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |

 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |

 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |

 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |

 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |

 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |

 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ 




pi@raspberrypi ~/src/java $ sudo gpio write 7 0

pi@raspberrypi ~/src/java $ gpio readall
 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |
 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |
 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |
 |   4 |   7 | GPIO. 7 |  OUT | 0 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |
 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |
 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |
 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |
 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |
 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |
 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |
 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |
 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |
 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |
 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |
 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |
 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |
 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |
 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |
 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |
 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |
 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ 






2015/06/08 - [개소리 왈왈/라즈베리 파이 2] - 라즈베리 파이 2 wiringpi 설치 / pi4j



pi@raspberrypi ~/src/java $ gpio mode 1 pwm

pi@raspberrypi ~/src/java $ gpio readall

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |

 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |

 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |

 |   4 |   7 | GPIO. 7 |  OUT | 0 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |

 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |

 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 1 | ALT5 | GPIO. 1 | 1   | 18  |

 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |

 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |

 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |

 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |

 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |

 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |

 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |

 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |

 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |

 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |

 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |

 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |

 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |

 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+


pi@raspberrypi ~/src/java $ gpio pwm 1 128

pi@raspberrypi ~/src/java $ gpio pwm 1 512

pi@raspberrypi ~/src/java $ gpio pwm 1 1024 



PWM - 128 / 1024


PWM - 512 / 1024


PWM - 1024 / 1024


핀위치는 12(+) 14(-)번 핀 연결



[링크 : http://wiringpi.com/the-gpio-utility/]

Posted by 구차니
하드웨어/Storage2015. 6. 9. 17:20


DS213j Release Notes

Version : 5.2-5565 Update 2


(2015/06/09)

Important Information

A thorough investigation has been done, and it is confirmed that DSM and its related packages are not impacted by the LogJam vulnerability because of the way Synology implements OpenSSL in our system.

Fixed Issues

Fixed multiple kernel vulnerabilities (CVE-2014-3122, CVE-2014-3153, CVE-2014-0196, and CVE-2014-4699).

Improved the stability of SHR expansion.

Improved the stability of SMB transfer when the system is being accessed by an excessive number of clients.

Fixed an issue where CPU usage could remain high when widget is enabled.

Fixed an issue where LDAP users could fail to log in to DSM.

Fixed an issue where files could not be downloaded via Windows' terminal.

Fixed an issue where system cannot enter hibernation.

Fixed an issue where some folders with non-English names would become inaccessible via SMB.

Fixed an issue where volumes/iSCSI LUN cannot be displayed after the Synology High Availability system resumes from safe mode with UPS connected.



내가 설정 잘못한게 아니었어!!! 닝기럴!!!!!

'하드웨어 > Storage' 카테고리의 다른 글

xpenology  (0) 2015.06.30
DS213j 하이버네이트 정상작동중!  (0) 2015.06.25
ds cloud 이상 CPU/RAM 사용  (0) 2015.06.02
synology DSM 5.2 절전기능 차이점?  (0) 2015.05.28
synology iSCSI 외부 접속 시도 실패  (0) 2015.05.18
Posted by 구차니

헐? 2013년에 이미 완성된게 있으려나? 해봐야겠네 ㄷㄷㄷ


[링크 : http://www.cnx-software.com/2013/07/05/12mb-minimal-image-for-raspberry-pi-using-the-yocto-project/]

'프로그램 사용 > yocto project' 카테고리의 다른 글

imx8 yocto  (0) 2023.08.28
imx8 yocto build on ubuntu 22.04  (0) 2023.02.10
라즈베리 파이 with yocto project  (2) 2015.07.30
yocto project 구조  (0) 2015.07.29
rpi in yocto project  (0) 2015.04.29
Posted by 구차니
embeded/raspberry pi2015. 6. 8. 20:31

패키지로 다운로드 될줄 알았는데 안되네..


일단 사용한 녀석은


라즈베리 2

2015-05-05-raspbian-wheezy.img


wiringpi

pi@raspberrypi ~ $ sudo apt-get install git-core

pi@raspberrypi ~ $ mkdir src

pi@raspberrypi ~ $ cd src

pi@raspberrypi ~/src $ git clone git://git.drogon.net/wiringPi

Cloning into 'wiringPi'...

remote: Counting objects: 742, done.

remote: Compressing objects: 100% (676/676), done.

remote: Total 742 (delta 536), reused 96 (delta 58)

Receiving objects: 100% (742/742), 264.80 KiB | 128 KiB/s, done.

Resolving deltas: 100% (536/536), done.

pi@raspberrypi ~/src $ cd wiringPi/

pi@raspberrypi ~/src/wiringPi $ git pull origin

Already up-to-date.

pi@raspberrypi ~/src/wiringPi $ ./build

wiringPi Build script

=====================



WiringPi Library

[UnInstall]

[Compile] wiringPi.c

[Compile] wiringSerial.c

[Compile] wiringShift.c

[Compile] piHiPri.c

[Compile] piThread.c

[Compile] wiringPiSPI.c

[Compile] wiringPiI2C.c

[Compile] softPwm.c

[Compile] softTone.c

[Compile] mcp23008.c

[Compile] mcp23016.c

[Compile] mcp23017.c

[Compile] mcp23s08.c

[Compile] mcp23s17.c

[Compile] sr595.c

[Compile] pcf8574.c

[Compile] pcf8591.c

[Compile] mcp3002.c

[Compile] mcp3004.c

[Compile] mcp4802.c

[Compile] mcp3422.c

[Compile] max31855.c

[Compile] max5322.c

[Compile] sn3218.c

[Compile] drcSerial.c

[Compile] wpiExtensions.c

[Link (Dynamic)]

[Install Headers]

[Install Dynamic Lib]


WiringPi Devices Library

[UnInstall]

[Compile] ds1302.c

[Compile] piNes.c

[Compile] maxdetect.c

[Compile] gertboard.c

[Compile] piFace.c

[Compile] lcd128x64.c

[Compile] lcd.c

[Compile] piGlow.c

[Link (Dynamic)]

[Install Headers]

[Install Dynamic Lib]


GPIO Utility

[Compile] gpio.c

[Compile] readall.c

[Compile] pins.c

[Link]

[Install]


All Done.


NOTE: To compile programs with wiringPi, you need to add:

    -lwiringPi

  to your compile line(s) To use the Gertboard, MaxDetect, etc.

  code (the devLib), you need to also add:

    -lwiringPiDev

  to your compile line(s).


pi@raspberrypi ~/src/wiringPi $ gpio readall

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 |     |     |    3.3v |      |   |  1 || 2  |   |      | 5v      |     |     |

 |   2 |   8 |   SDA.1 |   IN | 1 |  3 || 4  |   |      | 5V      |     |     |

 |   3 |   9 |   SCL.1 |   IN | 1 |  5 || 6  |   |      | 0v      |     |     |

 |   4 |   7 | GPIO. 7 |   IN | 1 |  7 || 8  | 1 | ALT0 | TxD     | 15  | 14  |

 |     |     |      0v |      |   |  9 || 10 | 1 | ALT0 | RxD     | 16  | 15  |

 |  17 |   0 | GPIO. 0 |   IN | 0 | 11 || 12 | 0 | IN   | GPIO. 1 | 1   | 18  |

 |  27 |   2 | GPIO. 2 |   IN | 0 | 13 || 14 |   |      | 0v      |     |     |

 |  22 |   3 | GPIO. 3 |   IN | 0 | 15 || 16 | 0 | IN   | GPIO. 4 | 4   | 23  |

 |     |     |    3.3v |      |   | 17 || 18 | 0 | IN   | GPIO. 5 | 5   | 24  |

 |  10 |  12 |    MOSI |   IN | 0 | 19 || 20 |   |      | 0v      |     |     |

 |   9 |  13 |    MISO |   IN | 0 | 21 || 22 | 0 | IN   | GPIO. 6 | 6   | 25  |

 |  11 |  14 |    SCLK |   IN | 0 | 23 || 24 | 1 | IN   | CE0     | 10  | 8   |

 |     |     |      0v |      |   | 25 || 26 | 1 | IN   | CE1     | 11  | 7   |

 |   0 |  30 |   SDA.0 |   IN | 1 | 27 || 28 | 1 | IN   | SCL.0   | 31  | 1   |

 |   5 |  21 | GPIO.21 |   IN | 1 | 29 || 30 |   |      | 0v      |     |     |

 |   6 |  22 | GPIO.22 |   IN | 1 | 31 || 32 | 0 | IN   | GPIO.26 | 26  | 12  |

 |  13 |  23 | GPIO.23 |   IN | 0 | 33 || 34 |   |      | 0v      |     |     |

 |  19 |  24 | GPIO.24 |   IN | 0 | 35 || 36 | 0 | IN   | GPIO.27 | 27  | 16  |

 |  26 |  25 | GPIO.25 |   IN | 0 | 37 || 38 | 0 | IN   | GPIO.28 | 28  | 20  |

 |     |     |      0v |      |   | 39 || 40 | 0 | IN   | GPIO.29 | 29  | 21  |

 +-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+

 | BCM | wPi |   Name  | Mode | V | Physical | V | Mode | Name    | wPi | BCM |

 +-----+-----+---------+------+---+---Pi 2---+---+------+---------+-----+-----+ 


[링크 : http://wiringpi.com/download-and-install/]



pi4j

pi@raspberrypi ~/src/java $ wget http://get.pi4j.com/download/pi4j-1.0.deb

--2015-06-08 11:35:02--  http://get.pi4j.com/download/pi4j-1.0.deb

Resolving get.pi4j.com (get.pi4j.com)... 54.231.18.148

Connecting to get.pi4j.com (get.pi4j.com)|54.231.18.148|:80... connected.

HTTP request sent, awaiting response... 200 OK

Length: 616120 (602K) [application/octet-stream]

Saving to: `pi4j-1.0.deb'


100%[======================================>] 616,120      255K/s   in 2.4s


2015-06-08 11:35:05 (255 KB/s) - `pi4j-1.0.deb' saved [616120/616120]


pi@raspberrypi ~/src/java $ sudo dpkg -i pi4j-1.0.deb

Selecting previously unselected package pi4j.

(데이터베이스 읽는중 ...현재 77870개의 파일과 디렉터리가 설치되어 있습니다.)

pi4j 패키지를 푸는 중입니다 (pi4j-1.0.deb에서) ...

pi4j (1.0) 설정하는 중입니다 ...


pi@raspberrypi ~/src/java $ sudo apt-get install pi4j

패키지 목록을 읽는 중입니다... 완료

의존성 트리를 만드는 중입니다

상태 정보를 읽는 중입니다... 완료

pi4j 패키지는 이미 최신 버전입니다.

0개 업그레이드, 0개 새로 설치, 0개 제거 및 3개 업그레이드 안 함.



pi@raspberrypi ~/src/java $ ls -al /opt/pi4j/lib

합계 496

drwxr-xr-x 2 root root   4096  6월  8 11:35 .

drwxr-xr-x 5 root root   4096  6월  8 11:35 ..

-rw-r--r-- 1 root root 179187  4월 18 16:02 pi4j-core.jar

-rw-r--r-- 1 root root 217311  4월 18 16:02 pi4j-device.jar

-rw-r--r-- 1 root root  74078  4월 18 16:02 pi4j-gpio-extension.jar

-rw-r--r-- 1 root root  17663  4월 18 16:02 pi4j-service.jar


pi@raspberrypi ~/src/java $ vi TriggerGpio.java


import java.util.concurrent.Callable;


import com.pi4j.io.gpio.GpioController;

import com.pi4j.io.gpio.GpioFactory;

import com.pi4j.io.gpio.GpioPinDigitalInput;

import com.pi4j.io.gpio.GpioPinDigitalOutput;

import com.pi4j.io.gpio.PinPullResistance;

import com.pi4j.io.gpio.PinState;

import com.pi4j.io.gpio.RaspiPin;

import com.pi4j.io.gpio.trigger.GpioCallbackTrigger;

import com.pi4j.io.gpio.trigger.GpioPulseStateTrigger;

import com.pi4j.io.gpio.trigger.GpioSetStateTrigger;

import com.pi4j.io.gpio.trigger.GpioSyncStateTrigger;


public class TriggerGpio {


    public static void main(String[] args) throws InterruptedException {


        System.out.println("START");


        // create gpio controller

        final GpioController gpio = GpioFactory.getInstance();


        // provision gpio pin #02 as an input pin with its internal pull down resistor enabled

        final GpioPinDigitalOutput ledPin = gpio.provisionDigitalOutputPin(RaspiPin.GPIO_07, PinState.LOW);


        ledPin.setState(PinState.HIGH);


    }

}


pi@raspberrypi ~/src/java $ date;javac -classpath .:classes:/opt/pi4j/lib/'*' TriggerGpio.java ;date

2015. 06. 08. (월) 11:40:03 UTC

2015. 06. 08. (월) 11:40:09 UTC 


pi@raspberrypi ~/src/java $ sudo java -classpath .:classes:/opt/pi4j/lib/'*' TriggerGpio

START


[링크 : http://pi4j.com/download.html]

Posted by 구차니

낮잠만 자다가 끝~!

ㅠㅠ


그래도 가계부 정리를 위한 기본 데이터는 정리 했고..

이제 엑세스로 분석만 하면 끝 ㅠㅠ

Posted by 구차니

개인적으로 만들어서 사용하던 로컬 저장소를 메인 소스에

소스가 아닌 히스토리까지 합치려고 하면

다음과 같이 하면 된다고 하는데..

딱히 합쳐볼 만한 프로젝트가 없어서 해보긴 겁나고.. ㄷㄷ


$ svnadmin dump > project<n>.dmp

$ svn mkdir "<repo url>/project<n>"

$ svnadmin load --parent-dir "project<n>" <filesystem path to repos>


[링크 : http://stackoverflow.com/questions/267256/combining-multiple-svn-repositories-into-one]

[링크 : https://blog.tinned-software.net/merge-two-svn-repositories/]

[링크 : http://geekswithblogs.net/kariemali/archive/2009/06/02/how-to-merge-two-svn-repositories.aspx]


2011/01/08 - [프로그램 사용/CVS / SVN / GIT / Mercurial] - SVN 저장소 합치기 - merging SVN repositories

2011/05/09 - [프로그램 사용/CVS / SVN / GIT / Mercurial] - svnadmin dump / load를 이용한 저장소 합치기



Posted by 구차니

문자 띠링띠링~

웬지.. 다들 환불하고 나중에 다시 신청을 받아서 9월 즈음에나 하게 될거 같은.. 스멜스멜?


하이서울 자전거대행진 사무국입니다.

현재 메르스의 확산 추세가 꺾이지 않고 있으며, 국민적 우려가 날로 커지는 상황에서 주최측에서는 이번 일요일 개최 예정인 ‘2015 하이서울 자전거대행진’의 연기를 결정하였습니다.

행사 참여를 계획하고 계셨던 분들의 양해를 부탁 드리며, 빠른 시일 내에 차기 행사 개최일을 확정하여 다시 고지 드리도록 하겠습니다.


참가를 예정했던 분들 중 행사 연기에도 불구하고 환불을 원하시는 분께서는 6월 8일(월)부터 홈페이지 공지사항을 참조하여 환불 신청을 부탁드리며 이미 환불을 신청하신 분들 중 행사 연기로 재 참여 의사가 있을시 “환불 취소” 메일을 부탁드립니다. 



Posted by 구차니
embeded/raspberry pi2015. 6. 4. 23:29

일단.. B+와 호환되는 녀석으로 알고 있으니..

음.. PCM_CLK는 말그대로 클럭이니.. PCM_DIN에 연결이 되어야 하는거 아닐려나?


아니면...

그냥 GPIO로 CPU 쪽쪽 빨아가면서 구현하는 걸려나?






[링크 : http://elinux.org/RPi_BCM2835_GPIOs]

Posted by 구차니
embeded/raspberry pi2015. 6. 4. 22:57

2012년 글에서는 I2S가 사라졌다고 하는데

리비전 2 부터는 P5 헤더에 존재하게 되엇다는데 끄응..

라즈베리 2에서 안되는거 같기도 하고... 미지수네


Moderator: this is an old thread! Since revision 2 the PI has a new header P5 which has I2S.

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=7&t=2631]



  • P1: 26-pin (2x13) 2.54 mm header expansion, providing: see Low-level peripherals
    • GPIOs at 3v3
    • 2-pin UART serial console, 3v3 TTL (debug); or 2 GPIOs at 3v3
    • I²C interface (3v3); or 2 GPIOs at 3v3
    • SPI interface (3v3); or 5 GPIOs at 3v3
    • 3v3, 5v and GND supply pins
    • ARM JTAG (if pins are reconfigured in software - on Revision1.0 boards one signal would also need to be taken from S5)
    • I²S interface (if pins are reconfigured in software, hardware hack may be required[4])
  • P2: 8-pin 2.54 mm header expansion (header not fitted on Revision 2.0 boards), providing GPU JTAG (ARM11 pinout, pin 7 is nofit for locating)
  • P3: 7-pin 2.54 mm header expansion (header not fitted), providing LAN9512 JTAG (pin 6 is nofit for locating)
  • P4: 10/100Mb RJ45 Ethernet jack (Model B)
  • P5: 8-pin (2x4) 2.54 mm header expansion (header not fitted), on the bottom of the board, providing: see Low-level peripherals (Model B Revision 2.0 and Model A boards only)
    • GPIOs at 3v3
    • 3v3, 5v and GND supply pins
    • Second I²C interface (3v3) (if pins are reconfigured in software)
    • I²S interface (if pins are reconfigured in software)
    • Handshake signals for the UART on the P1 header (if pins are reconfigured in software)
  • P6: 2-pin 2.54 mm header expansion (header not fitted), providing an option to connect a hardware-reset button (Revision 2.0 boards only)

[링크 : http://elinux.org/RPi_Hardware#cite_note-i2s-4]


I2S 2015년 글. 라즈베리 2 일려나?

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?f=44&t=8496]

Posted by 구차니