How to record ir signal from AC remote using LIRC in raspberry pi?
I have already used raspberry pi LIRC to record and use IR signals of a remote samsung tv. the recording process was great. I used this site for reference. But now I cant record IR signals from blue bluestar in the same method. After 1-3 dots (not always the same number) irrecord comes out with the following error message:
irrecord: could not find gap.
irrecord: gap not found, can't continue
then I tried to record the AC remote signals using mode2 and redirect it to a text file and manually modified the lircd.conf file to include the raw code as shown in the link
How to use irrecord with 2ms sync instead of the standard 5ms?
but then i get an error which is
irsend: command failed: SEND_ONCE /etc/lirc/lircd.conf KEY_POWER
irsend: unknown remote : "/etc/lirc/lircd.conf"
source to share
Air conditioning controls send out more bits than, for example, televisions. You must configure the lirc.conf header as:
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
I think it is exactly 48 bits that are being sent. This guy explains it: http://absurdlycertain.blogspot.com.es/2013/03/lirc-raspi-remote-control-configuration.html
Remember to restart the device, it doesn't work with me if I don't.
sorry for my English
source to share
Authentication of remote configuration data management documents in the "/etc/lirc/lircd.conf" archive, command-specific authentication
{ irsend LIST "" ""
}
y mostrará la siguiente respuesta por ejemplo:
pi @raspberrypi: ~ / Downloads / smarapi $ irsend LIST "" ""
tv1
donda lugo listo los botons bees n cicentran dentro de mi control preventive configuration "tv1" con el comandoirsend LIST tv1 ""
pi @raspberrypi: ~ / Downloads / smarapi $ irsend LIST tv1 ""
0000000000000001 KEY_POWER
0000000000000002 KEY_VOLUMEUP
0000000000000003 KEY_VOLUMEDOWN
0000000000000004 KEY_CHANNELUP
0000000000000005 KEY_CHANNELDOWN
de este modo tengo la certeza que tengo un control remoto "tv1" with specified specifications.
At least sudo lircd
we see that you have all rights to destiny, and so on .
/ ru // etc / lirc / /etc/lirc/lircd.conf
de mi control remoto tv1 el cual lo pueden modificar con sudo nano/etc/lirc/lircd.conf
.
# Please take the time to finish this file as described in
# https://sourceforge.net/p/lirc-remotes/wiki/Checklist/
# and make it available to others by sending it to
# <lirc@bartelmus.de>
#
# This config file was automatically generated
# using lirc-0.9.4c(default) on Sat Dec 8 00:35:04 2018
# Command line used: -f -d /dev/lirc0 /tmp/remote.conf
# Kernel version (uname -r): 4.14.86-v7+
#
# Remote name (as of config file): tv1
# Brand of remote device, the thing you hold in your hand:
# Remote device model nr:
# Remote device info url:
# Does remote device has a bundled capture device e. g., a
# usb dongle? :
# For bundled USB devices: usb vendor id, product id
# and device string (use dmesg or lsusb):
# Type of device controlled
# (TV, VCR, Audio, DVD, Satellite, Cable, HTPC, ...) :
# Device(s) controlled by this remote:
begin remote
name tv1
flags RAW_CODES
eps 30
aeps 100
frequency 38000
begin raw_codes
name KEY_POWER
3092 1586 500 1108 530 1054 504 364 506 304 512 340 506 1078 532 304 516 304 540 1078 506 1080 530 304 512 1084 528 306 510 340 508 1056 500 1110 528 306 488 1130 506 1080 502 342 506 306 538 1080 506 308 538 304 514 1080 530 304 464 388 506 306 486 366 506 306 510 340 506 306 536 306 512 338 508 302 514 338 506 306 510 340 506 306 484 366 504 306 512 338 506 306 538 306 512 310 536 1058 526 338 506 306 508 1088 526 1080 478 368 504 306 488 366 504 306 514 310 534 336 508 270 548 314 530 306 536 314 508 306 510 342 504 306 510 340 506 1082 504 338 506 1104 506 308 512 310 536 306 512 312 534 308 534 310 510 306 512 342 504 308 510 340 504 308 536 306 512 310 534 308 512 340 504 310 534 312 508 306 512 364 480 338 482 340 504 310 534 308 510 340 506 336 432 368 526 306 536 310 510 308 510 340 504 308 536 338 480 310 536 272 544 344 504 336 508 1080 504 1058 554 308 510 1080 530 1060 526 1080 530 1058 528 310 534 1060 526
name KEY_VOLUMEUP
4524 4523 551 1698 551 1697
551 1699 550 599 526 600
525 601 525 600 526 600
526 1699 550 1698 551 1703
544 600 526 599 526 600
525 601 526 599 526 1703
546 1695 553 1697 552 599
525 600 526 600 526 599
527 599 526 599 526 600
527 598 526
name KEY_VOLUMEDOWN
4521 4524 552 1719 529 1720
528 1698 551 599 526 577
549 599 527 599 526 600
525 1697 552 1721 528 1700
548 600 525 576 550 600
525 600 526 600 526 1721
528 1698 549 577 549 1700
549 576 549 576 550 601
525 577 548 600 526 574
551
name KEY_CHANNELUP
4525 4524 552 1719 528 1720
529 1719 528 598 529 574
551 598 527 575 550 575
551 1719 530 1719 530 1719
530 596 528 599 527 597
529 575 550 574 552 573
552 1720 529 574 550 598
528 1719 530 572 553 575
550 574 552 1720 528 575
550
name KEY_CHANNELDOWN
4523 4524 551 1698 550 1697
552 1697 551 600 525 600
526 600 526 599 526 599
526 1696 552 1699 551 1697
553 597 528 598 527 598
527 601 524 599 526 599
526 600 525 600 526 600
525 1697 552 600 527 597
527 599 527 1697 551 1698
552
end raw_codes
end remote
RAW Los Códigos the lost general with sudo irrecord -f -d/dev/lirc0/tmp/remote.conf
, sudo irrecord -f -d/dev/lirc0/tmp/remote.conf
se pueden dar cuenta modifique manualmente el primer KEY TERMS KEY CONDITIONS WITH ONE CORRESPONDING AGAINST DECLARATION ACTION ProjectSyndicate en Arduino mismora que sía lo yo recon iguual forma, you diría que hasta mejor.
Parallel electronic equipment, transistor 2N2222, fixed resistance 10K, base emitter, 2 infrared diodes 5 mm. based on 2N2222 by direct color recipe in the form of salida del raspberry with resistance.
Cualquier duda o sugerencia, aqui estare =)
Usen el traductor de google los que no sepan español =)
source to share