Actually I have got the quite good sounding all-in-one stereo Caruso from T+A which is nearly 15 years old.
The speakers and the 3x50W processor controlled amp are still top. But the streaming client is now rather outdated, slow and not highres capable. So I replaced it with the RaspDac mini and use the Caruso as an actice speaker box. I must say, I am very content with this solution.
The only thing I missed is, to use the remote control to switch between my favorite radio station using the number keys. So I looked into the Audiophonic scripts provided thanks to the a.m. tuto.
Adding a second rc is quite easy:
Look into the lirc config file:
Code : Tout sélectionner
/etc/lirc/lircd.conf
If you followed the a.m. tuto, the Audiophonic script which evalutates the rc keys is:
Code : Tout sélectionner
/home/pi/<some subdir>/oled/raspdac_oled_telecommand.py
Luckily I found a ready made lirc conf file for the T+A rc in this database http://lirc-remotes.sourceforge.net/remotes-table.html. Otherwise you have to first create your own conf file by using the lirc ir codes record utility.
Look at the original Audiophonics lircd.conf in order to find out the key code names. Then you can rename the key code names in your own lircd.conf accordingly. For instance, I used an otherwise unused key F1 to launch the RaspDac mini menu.
When done you can just concatenate the two conf files. And then, after reboot, you can use both remotes in parallel.
Here is the code of my lircd.conf: In the part for my rc, I commented out the original keys and added below a line for the respective RaspDac key.
I did not map the Vol+/Vol- keys, because I use these to control the volume on the Caruso itself, as well as to mute the speaker. (I am running the RaspDac with its volume permanently set to 100.)
Code : Tout sélectionner
begin remote
name RaspdacMini
bits 8
flags SPACE_ENC|CONST_LENGTH
eps 30
aeps 100
header 9047 4480
one 603 1664
zero 603 531
ptrail 603
repeat 9047 2226
pre_data_bits 16
pre_data 0x77E1
post_data_bits 8
post_data 0x55
gap 108227
min_repeat 1
suppress_repeat 5
toggle_bit_mask 0x0
begin codes
KEY_LEFT 0x10
KEY_RIGHT 0xE0
KEY_UP 0xD0
KEY_DOWN 0xB0
KEY_ENTER 0xBA 0x20
KEY_MENU 0x40
KEY_PLAY 0x7A 0x20
end codes
end remote
s config file was generated using lirc-0.8.2 with LIRC serial recceiver
# on Beaujolais Day 2007 (Nov. 15th 2007)
#
# Contributed by: Lothar Wiemann (lothar.wiemann [at] arcor.de)
#
# Brand: T+A
# Remote Model: F 100
# Notes: If building a LIRC serial receiver:
# T+A remotes use a carrier frequency of 31.25 kHz.
# IR-receivers with 30...33 kHz will work best (eg. Vishay TSOP 1730)
# Std. 38 kHz receivers not recommended
# -----------------------------------------------------------------------
# The F100 uses a modified bi-phase code with header, start-bit, 9 data-bits, no toggle bits.
# The HEADER is 512us pulse / 2560 us pause
# The START bit is NOT bi-phase-coded ! It has a length of 1024us pulse / no pause (plead)
# The DATA bits are standard bi-phase with 512us pulse/512us pause (one) or 512us pause/512us pulse (zero)
#
# Enjoy
# ------------------------------------------------------------------------
#
begin remote
name lircd.conf
bits 9
flags RC5|CONST_LENGTH
eps 5
aeps 192
header 512 2560
one 512 512
zero 512 512
plead 1024
gap 130000
min_repeat 1
toggle_bit_mask 0x0
begin codes
ON_OFF 0x1F7
SCL 0x15F
DISC 0x0E7
A1/PH 0x017
A2/TV 0x1C7
A3/TUN 0x147
REC 0x57
# 1 0x02F
# 2 0x1CF
# 3 0x14F
# 4 0x1EF
# 5 0x1B7
# 6 0x27
# 7 0x77
# 8 0x177
# 9 0x037
# 0 0x1E7
KEY_1 0x02F
KEY_2 0x1CF
KEY_3 0x14F
KEY_4 0x1EF
KEY_5 0x1B7
KEY_6 0x27
KEY_7 0x77
KEY_8 0x177
KEY_9 0x037
KEY_0 0x1E7
<> 0x06B
Note 0x09F
SRND 0x047
Speaker 0x167
VOL+ 0x1FF
VOL- 0x0FF
# UP 0x5F
KEY_UP 0x5F
# DOWN 0xAF
KEY_DOWN 0xAF
# LEFT 0x12F
KEY_LEFT 0x12F
# RIGHT 0xD7
KEY_RIGHT 0xD7
# OK 0xCF
KEY_ENTER 0xCF
# |<< 0x199
KEY_LEFT 0x199
<< 0x1A9
>> 0x1A1
# >>| 0x191
KEY_RIGHT 0x191
Record 0x141
Back/RPT 0x4F
# STOP 0xDF
KEY_STOP 0xDF
# PLAY/PAUSE 0x16F
KEY_PLAY 0x16F
SYS_Menu 0x139
VID_Menu 0x73
AUD_Menu 0x1AF
SRC_Menu 0x107
RED 0x1AB
GREEN 0x1B3
YELLOW 0x1C3
BLUE 0x1CB
LIST 0x1BB
STORE 0x10F
(i) 0x1A3
View 0x1BF
# F1 0x6F
KEY_MENU 0x6F
F2 0x1DB
F3 0x1A7
F4 0x193
end codes
end remote
Have fun!