请选择 进入手机版 | 继续访问电脑版
查看: 5896|回复: 1

红外线接收器不工作

[复制链接]

12

主题

21

帖子

1419

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1419
发表于 2016-4-5 16:01:58 | 显示全部楼层 |阅读模式
我尝试使用IR接收器,但是他不运行
我按照以下的说明步骤:
https://github.com/cubieplayer/Cubian/issues/75 and http://www.orangepi.org/orangepi ... &extra=page%3D1

我通过车载实验没有获得任何反馈

我的系统配置是:


Sistema: Armbian Jessie Armbian_5.05_Orangepih3_Debian_jessie_3.4.110_desktop

lsmod

Module                  Size  Used by
sunxi_ir_rx             6206  0
mali_drm                2728  1
drm                   175264  2 mali_drm
mali                  123897  0
ump                    29339  3 mali
gpio_sunxi              8253  0
8189es                896688  0


cat < /proc/bus/input/devices

cat < /proc/bus/input/devices
I: Bus=0019 Vendor=0002 Product=0001 Version=0100
N: Name="vmouse"
P: Phys=vmouse/input0
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=mouse0 event0
B: PROP=0
B: EV=7
B: KEY=70400 0 0 0 0 0 0 0 0
B: REL=143

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-gpiokey"
P: Phys=sunxikbd/input0
S: Sysfs=/devices/virtual/input/input1
U: Uniq=
H: Handlers=kbd event1 cpufreq_interactive
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-ths"
P: Phys=sunxiths/input0
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=event2
B: PROP=0
B: EV=9
B: ABS=100 0

I: Bus=0019 Vendor=0001 Product=0001 Version=0100
N: Name="sunxi-ir"
P: Phys=RemoteIR/input1
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=sysrq rfkill kbd event3 cpufreq_interactive
B: PROP=0
B: EV=100003
B: KEY=ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe



cat < /etc/lirc/hardware.conf
# Cubietruck automatic lirc device detection by Igor Pecovnik
str=$(cat /proc/bus/input/devices | grep "H: Handlers=sysrq rfkill kbd event" | awk '{print $(NF)}')
sed -i 's/DEVICE="\/dev\/input.*/DEVICE="\/dev\/input\/'$str'"/g' /etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES="true"

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="devinput"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/input/event3"
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""



Salida de evtest

evtest /dev/input/event3
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "sunxi-ir"
Supported events:
  Event type 0 (EV_SYN)
  Event type 1 (EV_KEY)
    Event code 1 (KEY_ESC)
    Event code 2 (KEY_1)
    Event code 3 (KEY_2)
    Event code 4 (KEY_3) ........
    Event code 250 (?)
    Event code 251 (?)
    Event code 252 (?)
    Event code 253 (?)
    Event code 254 (?)
    Event code 255 (?)
Key repeat handling:
  Repeat type 20 (EV_REP)
    Repeat code 0 (REP_DELAY)
      Value    280
    Repeat code 1 (REP_PERIOD)
      Value     40
Properties:
Testing ... (interrupt to exit)
^C

0

主题

1

帖子

16

积分

新手上路

Rank: 1

积分
16
发表于 2017-5-26 20:36:01 | 显示全部楼层
没下文了吗
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复 返回顶部 返回列表