So I have a Streamzap IR receiver that works very well. I just added an
IR transmitter. I have it configured, and I'm just trying to configure
lirc to send the same remote codes that my remote would send.
This is for a Sony device. I'm testing it with a button called "bright",
that should change the brightness of the LCD on the Sony device. If I
test the remote with mode2, I see this:
# mode2 --device /dev/lirc0 -m
16777215
2432 640 1408 640 1408 640
640 640 1152 640 640 640
640 640 1408 640 640 640
1152 640 640 640 1408 640
1408 640 1408 640 1408 640
640 640 640 640 1408 640
640 640 640 640 640 12672
2432 640 1152 640 1152 640
640 640 1152 640 640 640
and if I test it with irw, I see this:
# irw
00000000000d2bc8 00 bright sony-hd-radio
00000000000d2bc8 01 bright sony-hd-radio
00000000000d2bc8 02 bright sony-hd-radio
00000000000d2bc8 03 bright sony-hd-radio
00000000000d2bc8 04 bright sony-hd-radio
00000000000d2bc8 05 bright sony-hd-radio
00000000000d2bc8 06 bright sony-hd-radio
Here's the transmitter config section from lirc/hardware.conf:
#Chosen IR Transmitter
TRANSMITTER="transmitter"
TRANSMITTER_MODULES="lirc_dev lirc_serial"
TRANSMITTER_DRIVER=""
#TRANSMITTER_DEVICE="/dev/ttyS1"
TRANSMITTER_DEVICE="/dev/lirc1"
TRANSMITTER_LIRCD_CONF="/etc/lirc/sony-hd-radio.conf"
TRANSMITTER_LIRCD_ARGS=""
And the relevant section from my sony-hd-radio.conf:
begin remote
name sony-hd-radio
bits 12
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 256
header 2454 640
one 1408 640
zero 759 640
post_data_bits 8
post_data 0xC8
gap 46636
min_repeat 2
toggle_bit_mask 0x0
begin codes
bright 0xD2B
(more codes, snipped -ted)
end codes
end remote
I know the transmitter is working, because I can watch it with irw and
send the signal from another terminal:
# irsend -d /dev/lircd1 SEND_ONCE sony-hd-radio bright
(and in the other terminal)
# irw
00000000000d2bc8 00 bright sony-hd-radio
00000000000d2bc8 01 bright sony-hd-radio
Back to mode2- here's the irsend signal sent to my IR receiver:
16777215
2432 640 1664 640 1408 640
896 640 1408 640 896 640
896 640 1408 640 896 640
1408 640 896 640 1664 640
1408 640 1408 640 1664 640
896 640 896 640 1408 640
896 640 896 640 896 10368
2432 640 1408 640 1664 640
896 640 1408 640 896 640
896 640 1408 640 896 640
1664 640 896 640 1408 640
1664 640 1408 640 1408 640
896 640 896 640 1408 640
896 640 896 640 896 10368
2432 640 1408 640 1408 640
896 640 1408 640 896 640
896 640 1408 640 896 640
1408 640 896 640 1664 640
1408 640 1408 640 1408 640
896 640 896 640 1408 640
896 640 896 640 896
That code matches the one from the config. so here's what I think I need:
* based on the mode2 data, does that config file look correct?
* why wouldn't this work? Am I missing something?
Obviously, I can confirm that the transmitter works. That makes me think
it is down to a configuration issue. I just don't know what to do next.
-ted
|