2016-03-17

LIRC, IR Transmitter [ irsend ]

Schematic (with Raspberry Pi)

(yellow, 3.5mm middle) PIN 17 [3.3V] ==> + IR LED - ==> [GND] PIN 06 (black, 3.5mm peak)

# irsend SEND_ONCE SHM38K KEY_OK

IRSEND OPTION
-- Help
-h --help display usage summary
-v --version display version
-d --device use given lircd socket [/var/run/lirc/lircd]
-a --address host[:port] connect to lircd at this address
-# --count n send command n times

-- DIRECTIVE can be:
SEND_ONCE - send CODE [CODE...] once
SEND_START - start repeating [CODE]
SEND_STOP - stop repeating [CODE]
LIST - list configured remote items
SET_TRANSMITTERS - set transmitters NUM [NUM...]
SIMULATE - simulate IR event

2016-03-16

LIRC, IR key mapping & Learning

# irrecord –d /dev/lirc0 lircd.conf

Pi, IR Receiver


VCC3.3V (Pin-01) ------------- IR receiver ( from left Pin-03)
GROUND ----------------------- IR receiver ( from left Pin-02)
GPIO-18 (Pin-12) -------------- IR receiver ( from left Pin-01)

2016-03-15

Linux, oneTwoThree

001- tar.bz2
tar jxvf filename.tar.bz2

002- USB-to-Serial ==> CentOS-5.5 not support HL-340 driver by default. Suggest to used PL2303.
# lsusb
# dmesg




003- Find the path.
# whereis wish
wish: /usr/bin/wish8.5


004- dmesg
# dmesg | more ==> Show event by pages.
# dmesg -c ==> clear previous event.

005- kill (find out process id and then kill)
# kill -9 $( ps -ef | grep wdt | awk '{ print $2 }')

006- pgrep & pkill (list process name & kill)
# pgrep -l  [process name]
# pkill [process name]



2016-03-11

Pi, NFS server

NFS server (ip 10.1.1.16)
# apt-get install nfs-kernel-server nfs-common
# vim /etc/exports
     /var/tmp *(ro,sync)
# /etc/init.d/nfs-kernel-server stop
# rpcbind
# /etc/init.d/nfs-kernel-server start