========
English:
========Put the system built here in this thread to work with your
smartphone as the infrared remote.
How to...
https://play.google.com/store/apps/details?id=com.chham.lirc_client(or Google: Lirc-Client)
Read the comment of Eduardo Soares there.
Workaround to work with Ubuntu 12.04 64 bit Linux System ...
1)In your smartphone's Lirc-Client app, in "Devices menu" long press your_ir_driver, then mark "Use SIMULATE".
And in IP settings put this... your_IP:8765 (if you use local IP then disable WLAN)
2)In your Ubuntu,
— if you don't use the ubuntu lirc scripts:
lircd --allow-simulate --driver=your_ir_driver --device=/dev/your_ir_event_path --output=/var/run/lirc/lircd --pidfile=/var/run/lircd.pid --listen=8765 /etc/lirc/lircd.conf
— if you do use the ubuntu lirc scripts:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="your ir name"
REMOTE_MODULES=""
REMOTE_DRIVER="your_ir_driver"
REMOTE_DEVICE="/dev/your_ir_event_path"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS="--allow-simulate --listen=8765" # (if script is already defined then change just this last line)
If you don't use Ubuntu) Adapt it to your Linux system !!!
===========
Portuguese:
===========Coloque o sistema desenvolvido neste tópico para funcionar com o seu
smartphone como controle remoto.
How to...
https://play.google.com/store/apps/details?id=com.chham.lirc_client(ou Google: Lirc-Client)
Leia o comentário de Eduardo Soares lá.
Solução alternativa para trabalhar com o Ubuntu 12.04 de 64 bits ...
1)No aplicativo Lirc-Client do seu smartphone, no menu "Devices", pressione longamente your_ir_driver, aí marque "Use SIMULATE".
Na configuração IP coloque isso ... your_IP:8765 (se você usa o IP local então desative WLAN)
2)Em seu Ubuntu,
— Se você não utilizar os scripts ubuntu lirc:
lircd --allow-simulate --driver=your_ir_driver --device=/dev/your_ir_event_path --output=/var/run/lirc/lircd --pidfile=/var/run/lircd.pid --listen=8765 /etc/lirc/lircd.conf
— Se você utilizar os scripts ubuntu lirc:
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="your ir name"
REMOTE_MODULES=""
REMOTE_DRIVER="your_ir_driver"
REMOTE_DEVICE="/dev/your_ir_event_path"
REMOTE_SOCKET=""
REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
REMOTE_LIRCD_ARGS="--allow-simulate --listen=8765" # (if script is already defined then change just this last line)
Se você não usar o Ubuntu) Adapte para o seu sistem Linux !!!
==================
==================
Two examples for testing:echo "SIMULATE 0000000000000002 00 vol+ devinput" | nc localhost 8765
echo "SEND_ONCE devinput vol+" | nc localhost 8765
PS:If you decide to study more and go on further trying to make the option SEND_ONCE to work in Ubuntu and finally get rid of the message...
"hardware does not support sending"
... then, please, post your results here in this topic as well.
[ Editado 20150615:Ajustei a configuração "SIMULATE dalay" no app Lirc-Client para
40. Foi o valor mais adequado que encontrei para simular o delay do controle remoto da placa Play TV PVR que tenho.
A disposição dos botões para o controle da placa Play TV PVR ficou assim no Lirc-Client:
]Regards, boladegude.