embeded/odroid2021. 9. 14. 20:21

 

$ cat /etc/lirc/lirc_options.conf
# These are the default options to lircd, if installed as
# /etc/lirc/lirc_options.conf. See the lircd(8) and lircmd(8)
# manpages for info on the different options.
#
# Some tools including mode2 and irw uses values such as
# driver, device, plugindir and loglevel as fallback values
# in not defined elsewhere.

[lircd]
nodaemon        = False
#driver          = devinput
#device          = auto
driver          = default
device          = /dev/lirc0
output          = /var/run/lirc/lircd
pidfile         = /var/run/lirc/lircd.pid
plugindir       = /usr/lib/aarch64-linux-gnu/lirc/plugins
permission      = 666
allow-simulate  = No
repeat-max      = 600
#effective-user =
#listen         = [address:]port
#connect        = host[:port]
#loglevel       = 6
#release        = true
#release_suffix = _EVUP
#logfile        = ...
#driver-options = ...

[lircmd]
uinput          = False
nodaemon        = False

[modinit]
code = /sbin/modprobe meson-ir
# code = /usr/sbin/modprobe lirc_serial
# code1 = /usr/bin/setfacl -m g:lirc:rw /dev/uinput
# code2 = ...


[lircd-uinput]
add-release-events = True
release-timeout    = 50
release-suffix     = _EVUP
# add-release-events = False
# release-timeout    = 200
# release-suffix     = _EVUP

 

 

$ ls -al /dev/lirc*
ls: cannot access '/dev/lirc*': No such file or directory
$ sudo service lircd restart
$ ls -al /dev/lirc*
crw-rw---- 1 root video 230, 0 Sep 14 10:35 /dev/lirc0

 

[링크 : https://wiki.odroid.com/odroid-c2/application_note/lirc/lirc_ubuntu18.04]

 

 

[링크 : https://wiki.odroid.com/common/application_note/gpio/ir/lirc_gpioir_ubuntu18.04#tab__odroid-c2]

[링크 : https://wiki.odroid.com/odroid-c2/application_note/gpio/ir]

 

 

[링크 : https://forum.odroid.com/viewtopic.php?t=14201]

  [링크 : https://odroid.com/dokuwiki/doku.php?id=en:c2_enhancement_gpio40]

  [링크 : https://odroid.com/dokuwiki/doku.php?id=en:c2_hardware#expansion_connectors]]

 

+

Pin #11 (GPIO #247) /  왼쪽 위에서 6번째(5번째는 GND)

[링크 : https://wiki.odroid.com/odroid-c2/application_note/gpio/lirc_gpio_blaster#tab__odroid-c2]

 

$ service lircd stop
$ modprobe lirc_dev
$ modprobe lirc_odroid gpio_out_pin=247 softcarrier=1 invert=1
$ service lircd restart

[링크 : https://wiki.odroid.com/odroid-c2/application_note/gpio/lirc_gpio_blaster/irblaster_lirc_setup_ubuntu18.04#tab__odroid-c2]

'embeded > odroid' 카테고리의 다른 글

odroid c2 lircd output 성공  (0) 2021.09.18
lirc irrecord, odroid c2 성공 (ubuntu 18.04.3)  (0) 2021.09.17
odroid c2 i2c  (0) 2021.09.11
odroid c2 wiringpi pinout  (0) 2021.09.10
odroid c2 gpio wiringpi  (0) 2021.09.09
Posted by 구차니