覆盆子皮:现在按住“键”键。出现错误:无法解码数据请重试。(还剩28次重试)

2024-06-17 12:36:48 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经从https://gist.github.com/prasanthj/c15a5298eb682bde34961c322c95378b安装并配置了LIRC。我现在试着记录红外信号,但我得到一个错误:

>>pi@raspberrypi:~ $ sudo irrecord -d /dev/lirc0 ~/lircd.conf

Running as regular user pi Using driver default on device /dev/lirc0

irrecord - application for recording IR-codes for usage with lirc Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

This program will record the signals from your remote control and create a config file for lircd.

A proper config file for lircd is maybe the most vital part of this package, so you should invest some time to create a working config file. Although I put a good deal of effort in this program it is often not possible to automatically recognize all features of a remote control. Often short-comings of the receiver hardware make it nearly impossible. If you have problems to create a config file READ THE DOCUMENTATION at https://sf.net/p/lirc-remotes/wiki

If there already is a remote control of the same brand available at http://sf.net/p/lirc-remotes you might want to try using such a remote as a template. The config files already contains all parameters of the protocol used by remotes of a certain brand and knowing these parameters makes the job of this program much easier. There are also template files for the most common protocols available. Templates can be downloaded using irdb-get(1). You use a template file by providing the path of the file as a command line parameter.

Please take the time to finish the file as described in https://sourceforge.net/p/lirc-remotes/wiki/Checklist/ an send it to <lirc@bartelmus.de> so it can be made available to others.

Press RETURN to continue.

Checking for ambient light creating too much disturbances. Please don't press any buttons, just wait a few seconds...

No significant noise (received 0 bytes)

Enter name of remote (only ascii, no spaces) :

^{pr2}$

Using conf.lircd.conf as output filename

Signals are pulse encoded. Signal length is 16 Unknown encoding

Please enter the name for the next button (press <ENTER> to finish recording)

KEY_OK

Now hold down button "KEY_OK". Something went wrong: Cannot decode data Please try again. (28 retries left)

Now hold down button "KEY_OK". Something went wrong: Cannot decode data Please try again. (27 retries left)

Now hold down button "KEY_OK". Something went wrong: Cannot decode data Please try again. (26 retries left)

Now hold down button "KEY_OK". Something went wrong: Cannot decode data Please try again. (25 retries left)

^C

Tags: ofthetokeyconfigforremoteas
1条回答
网友
1楼 · 发布于 2024-06-17 12:36:48

此错误通常来自于使用FC-51模块,因为该模块同时是一个红外发射器和接收器,要使用LIRC库,必须使用红外接收器模块,并用该模块的out引脚配置LIRC库。在

相关问题 更多 >