Re: mode2 shows output, irrecord fails (using the remote out port of an amplifier)

Robert Jäschke <[email protected]> Fri, 6 Mar 2020 13:40:09 +0100
Newsgroups gmane.comp.hardware.lirc
Organization L3S Research Center
Message-ID <[email protected]>
Dear Bengt,

Am 06.03.20 um 09:29 schrieb Bengt Martensson:
>>> https://www.raspberrypi.org/forums/viewtopic.php?p=1622026#p1622026
>>
>> Thank's a lot! It works like a charm. Problem solved. :-)
> 
> Nice that it works now (I have not tried it myself). My gutfeeling is
> that is would probably be best to turn that driver into a /dev/lirc
> device, but I am not the expert here. Please keep us posted.

Using IrScrutinizer to record buttons now also works, which is great.

The remote seems to be more complex than I thought, though. First, some
buttons use the RC5x protocol. Second, there are two buttons
("CD"/"NET") which change the codes of the keys. E.g., while the number
keys send out RC5 codes when in CD mode, they send out RC5x codes when
in NET mode. Thus, I have recorded some of the keys with IrScrutinizer
and have appended them as second remote in my lircd.conf:

> # Protocol name: RC5x
> begin remote
> 	name		marantz_amp-rc5x
> 	bits		19
> 	flags		RC5|CONST_LENGTH
> 	eps		10
> 	aeps		100
> 	zero		889	889
> 	one		889	889
> 	plead		889
> 	gap		114000
> 	toggle_bit	2
> 	frequency	36000
> 	begin codes
> 		POWER	0x0000000000059300
> 		TUNER	0x0000000000071FCA
> 		NETWORK	0x0000000000059FCA
> 		INPUT	0x0000000000079FC0
> 		INFO	0x00000000000592C0
> 		MODE	0x0000000000039DDE
> 		LEFT	0x0000000000019540
> 		RIGHT	0x0000000000039580
> 		UP	0x0000000000019400
> 		DOWN	0x0000000000039440
> 		ENTER	0x00000000000195C0
> 		+10	0x0000000000079280
> 	end codes
> end remote

Strangely, irw shows pushed buttons only for the RC5 codes, not for that
new remote with the RC5x codes. Any idea why that could happen? (lircd
logs that it's using both configured remotes.)


For my purposes using just the RC5 keys is fine. As I plan to upload a
complete lircd.conf somewhere it would be nice to include all buttons.


Best,
Robert