Re: Long press LIRC

Bengt Martensson <[email protected]>
Newsgroups gmane.comp.hardware.lirc
Message-ID <[email protected]>
On 08/30/17 19:12, andy fc wrote:
> Hello.
> 
> I use LIRC with a Raspberry Pi to control Thomson MS5300
> 
> I need help for the the Power button
> 
> 
> With my remote :
> A simple press of "power" button on the remote switches to "standby mode".
> A long press of "power" button "power off" the stereo.
> :
> With LIRC
> irsend SEND_ONCE remote KEY_POWER send "standby mode" command
> 
> 
> How to run a command that makes a long press ("power off")?

A good command line is

irsend --count 50 SEND_ONCE Thomson_MS5300 KEY_POWER

which will send 50 copies; that should be "long". I "cleaned up" your 
lircd.conf using IrScrutinizer, enclosed. You may try with that.

If that does not either, you may try to adjust the parameter "gap", try 
to increase/decrease in steps of 2000?

If that still does not work, capture the original remote using 
IrScrutinizer. For this, you can probably use the same receiving 
hardware that is already on the RPi.




# IrScrutinizer parametric export
#
# Creating tool: IrScrutinizer version 1.4.1
# Creating user: bengt
# Creating date: Wed Aug 30 19:48:47 CEST 2017
# Encoding: WINDOWS-1252
#
# Manufacturer:
# Model:
# Displayname: Thomson MS5300
# Remotename: Thomson_MS5300
#
begin remote
	# Protocol name: RCA-38
	name		Thomson_MS5300
	bits		24
	flags		SPACE_ENC
	eps		30
	aeps		100
	zero		460	920
	one		460	1840
	header		3680	3680
	ptrail		460
	gap		7360
	frequency	38700
	begin codes
		KEY_VOLUMEDOWN	0x0000000000C2E3D1
		KEY_VOLUMEUP	0x0000000000C2F3D0
		KEY_POWER	0x0000000000C2A3D5
		KEY_MODE	0x0000000000C413BE
		KEY_CHANNELUP	0x0000000000C2D3D2
		KEY_CHANNELDOWN	0x0000000000C2C3D3
		KEY_EJECTCD	0x00000000009406BF
		KEY_BASSBOOST	0x0000000000C3F3C0
		KEY_EQUAL	0x0000000000CB234D
		KEY_MUTE	0x0000000000C283D7
		KEY_INFO	0x0000000000CD532A
		KEY_RADIO	0x00000000008417BE
		KEY_B	0x0000000000C043FB
		KEY_PLAY	0x00000000008157EA
		KEY_PREVIOUS	0x00000000008227DD
		KEY_NEXT	0x00000000008207DF
		KEY_RECORD	0x00000000009176E8
		KEY_PAUSE	0x000000000081F7E0
		KEY_PAUSECD	0x000000000084D7B2
		KEY_PROG1	0x0000000000C183E7
		KEY_TIME	0x0000000000C3E3C1
		KEY_ADDRESSBOOK	0x00000000008247DB
		KEY_DELETE	0x00000000008237DC
		KEY_MEDIA_REPEAT	0x000000000090C6F3
		KEY_SLEEP	0x0000000000C213DE
		KEY_TITLE	0x0000000000C163E9
		KEY_PRINT	0x00000000009A565A
		KEY_PROGRAM	0x000000000084A7B5
	end codes
end remote

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.