如何在树莓派中使用LIRC记录来自AC遥控器的ir信号?

时间:2015-05-08 07:18:27

标签: raspberry-pi lirc

我已经使用了覆盆子pi的LIRC来记录和使用三星电视遥控器的红外信号。录音过程很好。我使用this网站作为参考。但现在我无法以相同的方法记录来自蓝星AC的红外信号。在1-3个点(不总是相同的数字)之后,irrecord退出并显示以下错误消息:

irrecord: could not find gap.  
irrecord: gap not found, can't continue

然后我尝试使用mode2记录AC远程信号并将其路由到文本文件并手动修改lircd.conf文件以包含原始代码,如链接所示

How to use irrecord with 2ms timing instead of the default 5ms?

然后我得到错误

irsend: command failed: SEND_ONCE /etc/lirc/lircd.conf KEY_POWER   
irsend: unknown remote : "/etc/lirc/lircd.conf"

2 个答案:

答案 0 :(得分:0)

可能lircd不接受远程名称的所有字符(例如斜杠)。尝试更改:

$scope.login = function () {
  var user = {};
  user.username = $scope.login.username;
  user.password = $scope.login.password;
  SessionFactory.login.save(user,
    function (data) {
      $state.go('app');
    },
    function (err) {
    });
}
<。>在.conf文件中使用不同的名称(例如MY_REMOTE),然后调用irsend:

    name /etc/lirc/lircd.conf

答案 1 :(得分:0)

例如,空调控件比电视控件发送的位数多。您必须将lirc.conf标头配置为:

begin remote

  name  IRAIR1
  bits           48     #Configuración para 48 bits 
  flags SPACE_ENC       
  eps            30
  aeps          100
  header         3388 1678
  one             430 1257
  zero            430  412
  ptrail          428
  gap          108399

      begin raw_codes 
          name KEY_POWER
     3478     1676      500     1218      501      388
      472    ..................................

      end raw_codes

end remote

我认为48位正在发送的是什么。这家伙解释说:http://absurdlycertain.blogspot.com.es/2013/03/lirc-raspi-remote-control-configuration.html

不要忘记重新启动设备,如果我不这样做,它将无效。

抱歉我的英文