Skip to main content
Topic: Cant Record Signal From Remote (Read 4376 times) previous topic - next topic

Cant Record Signal From Remote

Hi,

I have successfully upgrade my IRtoy firmware but when i want to record my remote it cant work.
May i know what is the problem? I follow all the instruction in this wiki http://http://dangerousprototypes.com/docs/USB_IR_Toy:_Configure_LIRC#Copy_that_file_to_the_.2Fetc.2Flirc.2Flircd.conf_location
Code: [Select]
ble@ble-K43SJ:~$ irrecord -n -H irman -d /dev/ttyUSB0 Remote1.conf

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 of this package, especially section "Adding new remote
controls" for how to get help.

If there already is a remote control of the same brand available at
http://www.lirc.org/remotes/ you might also want to try using such a
remote as a template. The config files already contain 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 in the remotes/generic/ directory of the source
distribution of this package. You can use a template files by
providing the path of the file as command line parameter.

Please send the finished config files to <lirc@bartelmus.de> so that I
can make them available to others. Don't forget to put all information
that you can get about the remote control in the header of the file.

Press RETURN to continue.


Hold down an arbitrary button.

Result:
Code: [Select]
irrecord: gap not found, can't continue



I really need your help. Thank you so much.

Re: Cant Record Signal From Remote

Reply #1
I ran into the same problem when trying to use the irman driver. What fixed it for me is using the usb_irtoy driver. This driver, however, does not come with LIRC by default so you either have to compile LIRC with this driver yourself or, if you are using an Ubuntu (based) distro, use a PPA with the package already compiled with this driver.

I've created a PPA with a version of LIRC with the driver included. This will safe you the time of having to compile LIRC yourself. https://launchpad.net/~forage/+archive/ubuntu/lirc

Follow this steps provided on that page, on how to add this PPA to Ubuntu and update the LIRC package.

After that replace the driver in the command you are running to usb_irtoy:
Code: [Select]
irrecord -n -H usb_irtoy -d /dev/ttyUSB0 Remote1.conf

Re: Cant Record Signal From Remote

Reply #2
And you got to remember that LIRC works with the ir toy's IRMAN mode and this only works with RC5 remotes.

Re: Cant Record Signal From Remote

Reply #3
Thank you so much. I have done the PPA but I dont know how to patch the file and where to patch it? Please teach me as well, I'm totally new in linux.
pacth file name:
0001-Add-driver-for-USB-Infrared-Toy-in-sample-mode.patch
0002-Add-USB-Infrared-Toy-driver-to-setup-system.patch

Code: [Select]
ble@ble-K43SJ:~$ sudo add-apt-repository ppa:forage/lirc

Result:
Code: [Select]
 LIRC with added driver for the Dangerous Prototypes USB Infrared Toy, providing full receive/transmit support compared to using the IRman LIRC driver.

NOTE: Requires firmware v20 or higher!

Example usage:
irrecord -n --driver usb_irtoy --device /dev/ttyACM0 RemoteXXX.conf

Driver patch applied: http://sourceforge.net/p/lirc/mailman/message/28032156/
For more information: http://dangerousprototypes.com/docs/USB_Infrared_Toy
 More info: https://launchpad.net/~forage/+archive/ubuntu/lirc
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmprud82ld_/secring.gpg' created
gpg: keyring `/tmp/tmprud82ld_/pubring.gpg' created
gpg: requesting key 56D26B9B from hkp server keyserver.ubuntu.com
gpg: /tmp/tmprud82ld_/trustdb.gpg: trustdb created
gpg: key 56D26B9B: public key "Launchpad PPA for Forage" imported
gpg: Total number processed: 1
gpg:              imported: 1  (RSA: 1)
OK

Re: Cant Record Signal From Remote

Reply #4
[quote author="birdlayegg"]Thank you so much. I have done the PPA but I dont know how to patch the file and where to patch it? Please teach me as well, I'm totally new in linux.
pacth file name:
0001-Add-driver-for-USB-Infrared-Toy-in-sample-mode.patch
0002-Add-USB-Infrared-Toy-driver-to-setup-system.patch

Code: [Select]
ble@ble-K43SJ:~$ sudo add-apt-repository ppa:forage/lirc

Result:
Code: [Select]
 LIRC with added driver for the Dangerous Prototypes USB Infrared Toy, providing full receive/transmit support compared to using the IRman LIRC driver.

NOTE: Requires firmware v20 or higher!

Example usage:
irrecord -n --driver usb_irtoy --device /dev/ttyACM0 RemoteXXX.conf

Driver patch applied: http://sourceforge.net/p/lirc/mailman/message/28032156/
For more information: http://dangerousprototypes.com/docs/USB_Infrared_Toy
 More info: https://launchpad.net/~forage/+archive/ubuntu/lirc
Press [ENTER] to continue or ctrl-c to cancel adding it

gpg: keyring `/tmp/tmprud82ld_/secring.gpg' created
gpg: keyring `/tmp/tmprud82ld_/pubring.gpg' created
gpg: requesting key 56D26B9B from hkp server keyserver.ubuntu.com
gpg: /tmp/tmprud82ld_/trustdb.gpg: trustdb created
gpg: key 56D26B9B: public key "Launchpad PPA for Forage" imported
gpg: Total number processed: 1
gpg:              imported: 1  (RSA: 1)
OK
[/quote]
After you added the PPA repository, you don't need to apply the patches any more, because they are already included in the updated LIRC package. That's the whole reason you use the package from the PPA so you don't have to apply the patches yourself. Install the updated package and you're done.

After you added the PPA:
Code: [Select]
sudo apt-get update
sudo apt-get install lirc

Re: Cant Record Signal From Remote

Reply #5
[quote author="Simpkins"]And you got to remember that LIRC works with the ir toy's IRMAN mode and this only works with RC5 remotes.[/quote]
Incorrect, at least in the way you are saying it. If you have LIRC patched like described above you don't need to use irman any more and other remotes besides RC5, like RC6 remotes, work fine as well.

Re: Cant Record Signal From Remote

Reply #6
Forage, have you tested it with RC6 remotes? How it goes? Was you able to wake up PC from S3 suspend with those remotes?

Re: Cant Record Signal From Remote

Reply #7
[quote author="bam"]Forage, have you tested it with RC6 remotes? How it goes? Was you able to wake up PC from S3 suspend with those remotes?[/quote]
Recording and simulating an RC6 remote worked for me. With irrecord I had to use --force though and after that run irrecord again with --analyse to clean up the new config file. I never played around with waking up PC's with it.
Both are a different topic though, so please start a new topic (one for recording and one for the waking up) with more details in a new thread if you need any more help.

Re: Cant Record Signal From Remote

Reply #8
Thank you.
By the way, LIRC already supports IR Toy in sample mode out of the box.

 

Re: Cant Record Signal From Remote

Reply #9
[quote author="bam"]By the way, LIRC already supports IR Toy in sample mode out of the box.[/quote]
Nowadays it does yes. Not all platforms have updated to 0.9.2 yet though.