embeded/raspberry pi2018. 9. 18. 21:20

config.txt

dtoverlay=gpio-ir 

콘솔에서 테스트

# systemctl stop kodi

# systemctl stop eventlircd

# ir-keytable -t

# irw 

[링크 : https://wiki.libreelec.tv/infrared_remotes]


dmesg 내용 lircd 이런 문구는 빠지고 단지 RC라던가 gpio_ir 이런식으로 문구가 바뀌어있다.

[    4.189143] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000

[    4.204139] Registered IR keymap rc-rc6-mce

[    4.204602] input: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0/input0

[    4.205457] rc rc0: gpio_ir_recv as /devices/platform/ir-receiver/rc/rc0

[    4.249361] IR RC6 protocol handler initialized

[    4.275615] Console: switching to colour dummy device 80x30

[    4.340170] IR NEC protocol handler initialized

[    4.626084] usbcore: registered new interface driver brcmfmac

[    4.790759] uart-pl011 3f201000.serial: no DMA platform data

[    4.818228] brcmfmac: Firmware version = wl0: Aug 29 2016 20:48:16 version 7.45.41.26 (r640327) FWID 01-4527cfab

[    4.863885] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup 


특이하게도(?) 하라는대로 안되서 일단 삐딱선을 타는중

irw로는 eventlircd 에서 잡고 있어서 읽히지 않고 서비스를 죽이면 irw로 읽지 못한다 -_-

그래서 ir-keytable로 읽히는걸 확인

OpenELEC:~ # irw

^C

OpenELEC:~ # systemctl stop eventlircd

OpenELEC:~ # systemctl stop kodi

OpenELEC:~ # irw

connect: No such file or directory

OpenELEC:~ # ir-keytable

Found /sys/class/rc/rc0/ (/dev/input/event0) with:

        Driver gpio-rc-recv, table rc-rc6-mce

        Supported protocols: unknown other rc-5 rc-5-sz jvc sony nec sanyo mce_kbd rc-6 sharp xmp

        Enabled protocols: nec rc-6

        Name: gpio_ir_recv

        bus: 25, vendor/product: 0001:0001, version: 0x0100

        Repeat delay = 500 ms, repeat period = 125 ms

OpenELEC:~ # ir-keytable -t

Testing events. Please, press CTRL-C to abort.

1537273010.205799: event type EV_MSC(0x04): scancode = 0x5e

1537273010.205799: event type EV_SYN(0x00).

1537273010.671725: event type EV_MSC(0x04): scancode = 0x5e

1537273010.671725: event type EV_SYN(0x00).

1537273011.578027: event type EV_MSC(0x04): scancode = 0x58

1537273011.578027: event type EV_SYN(0x00).

1537273012.054831: event type EV_MSC(0x04): scancode = 0x04

1537273012.054831: event type EV_SYN(0x00).

1537273012.423875: event type EV_MSC(0x04): scancode = 0x06

1537273012.423875: event type EV_SYN(0x00).

1537273012.979334: event type EV_MSC(0x04): scancode = 0x59

1537273012.979334: event type EV_SYN(0x00).

1537273014.182888: event type EV_MSC(0x04): scancode = 0x44

1537273014.182888: event type EV_SYN(0x00).

1537273014.540484: event type EV_MSC(0x04): scancode = 0x45

1537273014.540484: event type EV_SYN(0x00).

1537273014.865167: event type EV_MSC(0x04): scancode = 0x48

1537273014.865167: event type EV_SYN(0x00). 


음.. 이 변화가 커널 영향인가 아니면.. 라즈베리 배포판 시기 문제인가..

# uname -a

Linux OpenELEC 4.9.25 #1 SMP Sat Apr 29 05:11:28 CEST 2017 armv7l GNU/Linux 


'embeded > raspberry pi' 카테고리의 다른 글

rpi face detection & recognition  (4) 2018.11.16
openELEC(kodi) 미스테리..  (0) 2018.09.22
라즈베리 파이 3 + openELEC  (0) 2018.09.16
라즈베리 파이 3B 소비전류  (0) 2018.09.16
라즈베리 파이 3 - 블루투스 / wifi  (2) 2018.09.15
Posted by 구차니
embeded/raspberry pi2018. 9. 16. 20:59

일단 키보드 / 마우스 연결해보니 H.265 30p 재생은 문제없어서 리모컨 설정하려니 배를 짼다 -_ㅠ

일단 버전이 올라가서 dtoverlay 이름을 바꾸어야 한다는데 영 안되네..


OpenElec 8.0.0 and later, LibreELEC 8.2.0 and later

dtoverlay=gpio-ir 

[링크 : https://www.msldigital.com/pages/support-for-remote]



+

rpi 3b+에는 발열 문제가 적으나 3b는 발열 문제가 있다고..

[링크 : https://raspberrypi.stackexchange.com/questions/47187/h265-decoding-performance-on-a-pi-3]

'embeded > raspberry pi' 카테고리의 다른 글

openELEC(kodi) 미스테리..  (0) 2018.09.22
rpi 3b gpio-ir 관련  (0) 2018.09.18
라즈베리 파이 3B 소비전류  (0) 2018.09.16
라즈베리 파이 3 - 블루투스 / wifi  (2) 2018.09.15
라즈베리 파이 3B 블투/무선랜  (2) 2018.09.14
Posted by 구차니
embeded/raspberry pi2018. 9. 16. 14:24

IDLE

1.76 W


IDLE + LAN

1.99 W


IDLE + LAN + OFF

0.94 W


IDLE + HDMI

1.80 W


IDLE + HDMI + LAN

2.02 W



의외로 라즈베리 2랑 3는 대기전력에서는 별 차이가 없다.

'embeded > raspberry pi' 카테고리의 다른 글

rpi 3b gpio-ir 관련  (0) 2018.09.18
라즈베리 파이 3 + openELEC  (0) 2018.09.16
라즈베리 파이 3 - 블루투스 / wifi  (2) 2018.09.15
라즈베리 파이 3B 블투/무선랜  (2) 2018.09.14
raspbian stretch - node.js  (0) 2018.09.13
Posted by 구차니
embeded/raspberry pi2018. 9. 15. 21:27

라즈베리 파이 3에는 BLE랑 Wifi가 있는데

환경 설정을 안해줘도 하나도 안 잡히고, 설정해서 KR로 해줘도 안잡힌다.



원인은 찾아봐야겠지만, 이녀석은 왜 오버클럭 설정이 없는거지?


일단 초기 설정 및 KR로 설정시에는 WIFI가 잡히지 않는데, 블루투스는 잡히긴 한다.


검색한대로 US로 설정하니 정상적으로 와이파이가 잡힌다.


[링크 : http://justksh.tistory.com/entry/라즈베리파이3Raspberry-PI-WiFi-설정]

[링크 : http://webnautes.tistory.com/903]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 3 + openELEC  (0) 2018.09.16
라즈베리 파이 3B 소비전류  (0) 2018.09.16
라즈베리 파이 3B 블투/무선랜  (2) 2018.09.14
raspbian stretch - node.js  (0) 2018.09.13
라즈베리 3B stretch 한글 설정  (0) 2018.09.13
Posted by 구차니
embeded/raspberry pi2018. 9. 14. 14:06

처음 부팅할때 무선랜 검색하는데 전혀 안뜨는데. 머가 문제일까?

오늘 집에 가서 해봐야지..


[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=171482]

[링크 : https://www.makeuseof.com/tag/setup-wi-fi-bluetooth-raspberry-pi-3/]


+

2018.09.23


블루투스 프로파일(SPP) 추가하는 방법

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?p=919420#p919420]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 3B 소비전류  (0) 2018.09.16
라즈베리 파이 3 - 블루투스 / wifi  (2) 2018.09.15
raspbian stretch - node.js  (0) 2018.09.13
라즈베리 3B stretch 한글 설정  (0) 2018.09.13
라즈비안 업데이트  (0) 2018.09.11
Posted by 구차니
embeded/raspberry pi2018. 9. 13. 23:14

$ node --version

v8.11.1


아주 최신은 아니지만 jessie의 v0.10 에 비하면 천국인듯?



+

2018.09.14

LTS로 8.12.0 쓰고 있는데

그래놓고는 정작 10.10.0 최신버전을 기억하고 있었던 대참사.. -_-


stretch에 들은 버전은 신버전이니 걱정없이 써도 될 듯

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 3 - 블루투스 / wifi  (2) 2018.09.15
라즈베리 파이 3B 블투/무선랜  (2) 2018.09.14
라즈베리 3B stretch 한글 설정  (0) 2018.09.13
라즈비안 업데이트  (0) 2018.09.11
node.js on rpi  (0) 2018.09.11
Posted by 구차니
embeded/raspberry pi2018. 9. 13. 23:08

jessie에서는 아래로 설치했는데

$ sudo apt-get install ttf-unfonts-core



stretch에서는 아래로 변경되었다.

$ sudo apt-get install  fonts-unfonts-core


[링크 : https://blog.naver.com/specialist0/221241859486]

'embeded > raspberry pi' 카테고리의 다른 글

라즈베리 파이 3B 블투/무선랜  (2) 2018.09.14
raspbian stretch - node.js  (0) 2018.09.13
라즈비안 업데이트  (0) 2018.09.11
node.js on rpi  (0) 2018.09.11
라즈베리 파이 USB 사운드 카드로 녹음 및 재생하기  (4) 2018.09.10
Posted by 구차니
embeded/raspberry pi2018. 9. 11. 22:33

걍 미는게 편할까.. 업데이트 하는게 편할까..

경고를 보고 하는 절차를 보니 걍 밀고 새로 설정하는게 편하겠는데..?


[링크 : https://linuxconfig.org/raspbian-gnu-linux-upgrade-from-jessie-to-raspbian-stretch-9]

'embeded > raspberry pi' 카테고리의 다른 글

raspbian stretch - node.js  (0) 2018.09.13
라즈베리 3B stretch 한글 설정  (0) 2018.09.13
node.js on rpi  (0) 2018.09.11
라즈베리 파이 USB 사운드 카드로 녹음 및 재생하기  (4) 2018.09.10
라즈베리 파이 SPI 속도  (0) 2018.05.18
Posted by 구차니
embeded/raspberry pi2018. 9. 11. 22:00

내 라즈베리가 버전이 구버전인지 심각하게 구버전이 설치된다.. -_-

그런 이유로 컴파일 해서 할거 아니라면 일단 포기

(혹은 배포판 버전업?)

$ sudo apt-get install nodejs npm

$ node --version

v0.10.29



---

아무 생각없이 했더니 에러가 난다 -ㅁ-

$ npm install -g express-generator

npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules'

npm ERR!  { [Error: EACCES, mkdir '/usr/local/lib/node_modules']

npm ERR!   errno: 3,

npm ERR!   code: 'EACCES',

npm ERR!   path: '/usr/local/lib/node_modules',

npm ERR!   fstream_type: 'Directory',

npm ERR!   fstream_path: '/usr/local/lib/node_modules/express-generator',

npm ERR!   fstream_class: 'DirWriter',

npm ERR!   fstream_stack:

npm ERR!    [ '/usr/lib/nodejs/fstream/lib/writer.js:171:23',

npm ERR!      '/usr/lib/nodejs/mkdirp/index.js:46:53',

npm ERR!      'Object.oncomplete (fs.js:107:15)' ] }

npm ERR!

npm ERR! Please try running this command again as root/Administrator.


npm ERR! System Linux 4.9.35-v7+

npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "express-generator"

npm ERR! cwd /home/pi

npm ERR! node -v v0.10.29

npm ERR! npm -v 1.4.21

npm ERR! path /usr/local/lib/node_modules

npm ERR! fstream_path /usr/local/lib/node_modules/express-generator

npm ERR! fstream_type Directory

npm ERR! fstream_class DirWriter

npm ERR! code EACCES

npm ERR! errno 3

npm ERR! stack Error: EACCES, mkdir '/usr/local/lib/node_modules'

npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:171:23

npm ERR! fstream_stack /usr/lib/nodejs/mkdirp/index.js:46:53

npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)

npm ERR!

npm ERR! Additional logging details can be found in:

npm ERR!     /home/pi/npm-debug.log

npm ERR! not ok code 0 


그런데.. 윈도우용 node랑은 verbose mode 설정이 다른건가?

이런 설치 메시지를 윈도우 용에서는 본적이 없네?

$ sudo npm install -g express-generator

/usr/local/bin/express -> /usr/local/lib/node_modules/express-generator/bin/express-cli.js

express-generator@4.16.0 /usr/local/lib/node_modules/express-generator

├── sorted-object@2.0.1

├── commander@2.13.0

├── ejs@2.5.7

├── mkdirp@0.5.1 (minimist@0.0.8)

└── minimatch@3.0.4 (brace-expansion@1.1.11) 


$ npm i node-rtsp-stream-es6

node-rtsp-stream-es6@1.0.6 node_modules/node-rtsp-stream-es6

├── jsmpeg@1.0.0

└── ws@1.1.5 (options@0.0.6, ultron@1.0.2)


$ npm install ws node-rtsp-stream-es6

ws@6.0.0 node_modules/ws

└── async-limiter@1.0.0


node-rtsp-stream-es6@1.0.6 node_modules/node-rtsp-stream-es6

├── jsmpeg@1.0.0

└── ws@1.1.5 (options@0.0.6, ultron@1.0.2)


$ npm install jsmpeg

jsmpeg@1.0.0 node_modules/jsmpeg


그나저나 아무생각이 없었는데..

라즈베리 debian에 ffmpeg이 없네?

[링크 : https://github.com/.../(RPi)-Compile-FFmpeg-with-the-OpenMAX-H.264-GPU-acceleration]

Posted by 구차니
embeded/raspberry pi2018. 9. 10. 19:26

USB 사운드 카드가 잠시 생겨 일단 테스트 해보고 싶은 마음에 찾아보니..


arecord --device=hw:1,0 --format S16_LE --rate 44100 -c1 test.wav -V mono

aplay --device=plughw:1,0 test.wav 

[링크 : https://www.instructables.com/id/How-to-Record-Voice-With-USB-Microphone-Then-Play-/]


speaker-test -c2 -D plughw:1,0 

[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/testing-audio]

[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/recording-audio]

[링크 : https://scribles.net/voice-recording-on-raspberry-pi/]


[링크 : https://linux.die.net/man/1/arecord]


+

[433655.786504] usb 1-1.4: new full-speed USB device number 4 using dwc_otg

[433655.924800] usb 1-1.4: New USB device found, idVendor=0d8c, idProduct=013c

[433655.924820] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0

[433655.924831] usb 1-1.4: Product: USB PnP Sound Device

[433655.936390] input: USB PnP Sound Device as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.4/1-1.4:1.3/0003:0D8C:013C.0001/input/input1

[433656.007216] hid-generic 0003:0D8C:013C.0001: input,hidraw0: USB HID v1.00 Device [USB PnP Sound Device] on usb-3f980000.usb-1.4/input3

[433656.114545] usbcore: registered new interface driver snd-usb-audio 


$ arecord -l

**** List of CAPTURE Hardware Devices ****

card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]

  Subdevices: 1/1

  Subdevice #0: subdevice #0 


$ aplay -l

**** List of PLAYBACK Hardware Devices ****

card 0: ALSA [bcm2835 ALSA], device 0: bcm2835 ALSA [bcm2835 ALSA]

  Subdevices: 8/8

  Subdevice #0: subdevice #0

  Subdevice #1: subdevice #1

  Subdevice #2: subdevice #2

  Subdevice #3: subdevice #3

  Subdevice #4: subdevice #4

  Subdevice #5: subdevice #5

  Subdevice #6: subdevice #6

  Subdevice #7: subdevice #7

card 0: ALSA [bcm2835 ALSA], device 1: bcm2835 ALSA [bcm2835 IEC958/HDMI]

  Subdevices: 1/1

  Subdevice #0: subdevice #0

card 1: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]

  Subdevices: 1/1

  Subdevice #0: subdevice #0 


일단 해보는데 극성이 문제인지

그냥은 안되고 마이크 쇼트 시키니 볼륨 메터가 뜨긴 한다.


결론 : 되긴하는데 마이크를 잘 골라야 할지도?


+

2019.09.11

윈도우에서 꽂으니 아래와 같은 식별자로 뜬다.

일단은(?) CM108 인듯?


[링크 : https://learn.adafruit.com/usb-audio-cards-with-a-raspberry-pi/figure-out-your-chipset]

[링크 : https://www.raspberrypi.org/forums/viewtopic.php?t=74982]

'embeded > raspberry pi' 카테고리의 다른 글

라즈비안 업데이트  (0) 2018.09.11
node.js on rpi  (0) 2018.09.11
라즈베리 파이 SPI 속도  (0) 2018.05.18
라즈베리 2B + waveshare 35a + MAME 0.182  (0) 2018.05.18
odroid u3 headless setup중 문제..  (0) 2018.05.14
Posted by 구차니