Soo,
wie erwartet scheine ich bei jeder Kleinigkeit Probleme zu haben, nichts läuft mal auf Anhieb.
Die Suche konnte zwar genug liefern, aber für diesen Fall nichts brauchbares.
Also es fing damit an das ich das Ext-Board von TBE nicht ans laufen kriegte, weil der zuvor für VDR genutzte FB-Code (376 Medion MD4688 ) kein "richtiger" RC5-Code war.
Irw sagte zwar "RC5" und die LED an der Frontplatine blinkte auch, aber das Board reagierte nicht, werder bei konformer noch "unkonformer" belegung auf der FB.
Ich hatte dann einen hier aus dem Board probiert und damit ließ sich das Ext-Board dann auch einschalten und auf den RGB-Ausgang steuern, das umschalten auf den VGA-Eingang funktioniert auch.
Dann habe ich mir einen passenden RC5-Code rausgesucht und einprogrammiert (beim vorherigen waren einige Tasten nicht belegt, bzw. doppelt, aber immerhin konnte ich damit das Board zum arbeiten bewegen).
LIRC (0.6.6) gibt nun per irw auch die richtige Ausgabe auf den Bildschirm.
Jedoch kann meine Hardware anscheinend keine Befehle senden, ich erhalte dort immer eine Fehlermeldung.
Hier einmal ein paar Konsolenlines:
vdr:/ # lircd /etc/lirc290rc5.conf
vdr:/ # lsmod
Module Size Used by Not tainted
dvb-ttpci 310164 8
evdev 4192 0 (unused)
input 3264 0 [dvb-ttpci evdev]
ves1820 4736 0
stv0299 7604 0 (unused)
grundig_29504-491 3556 0
grundig_29504-401 4172 0
alps_bsrv2 3900 1
alps_tdmb7 4008 0
dvb-core 41880 30 [dvb-ttpci ves1820 stv0299 grundig_29504-491 grundig_29504-401 alps_bsrv2 alps_tdmb7]
videodev 6176 2 [dvb-ttpci]
isa-pnp 31560 0 (unused)
ipv6 145108 -1 (autoclean)
via-rhine 12912 1
mii 2528 0 [via-rhine]
lirc_serial 7648 0
ide-cd 31964 0 (autoclean)
cdrom 30304 0 (autoclean) [ide-cd]
ext3 85928 4
jbd 50960 4 [ext3]
vdr:/ # irexec /etc/lircrc.extb &
[1] 11521
vdr:/ # cd /opt/extb/bin
vdr:/opt/extb/bin # ./tx.sh M1
rc: command failed: send_once EXTB_TX M1
rc: hardware does not support sending
Es wird dabei auch nicht auf den TV umgeschaltet, so wie es TBE beschrieben hat, folglich liegt definitiv irgendwo ein Fehler vor.
Habe mal lustigerweise versucht die Firmware (1.01-hex) zu übertragen, die Punkte beim Bootloader schreiten dann voran und nachdem ich dann auf den Reset-Knopf am Ext-Board gedrückte habe, hörte es mit der Meldung "OK" auf und startete den VDR.
Aber mit dem extb.sh kann ich immer noch keine LEDs oder sonstiges ansteuern ... also funktioniert noch überhaupt nicht.
Meine lirc-config (lirc290rc5.conf unter /etc) sieht folgendermassen aus:
ZitatAlles anzeigen
# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.6.6(serial) on Mon Apr 19 21:08:01 2004
#
# contributed by
#
# brand: /etc/lirc290rc5.conf
# model no. of remote control: Medion-MD4688
# devices being controlled by this remote:
#
begin remote
name md4688
bits 13
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 964 772
zero 964 772
plead 998
gap 111933
min_repeat 2
toggle_bit 2
begin codes
ch+ 0x0000000000001160
ch- 0x0000000000001161
red 0x0000000000000171
green 0x000000000000115E
yellow 0x000000000000114E
blue 0x0000000000000170
1 0x0000000000001141
2 0x0000000000001142
3 0x0000000000001143
4 0x0000000000001144
5 0x0000000000001145
6 0x0000000000001146
7 0x0000000000001147
8 0x0000000000001148
9 0x0000000000001149
0 0x0000000000001140
av 0x000000000000117A
ent 0x000000000000114B
up 0x0000000000000150
down 0x0000000000000151
left 0x0000000000000155
right 0x0000000000000156
ok 0x0000000000000157
menu 0x0000000000000152
exit 0x0000000000001171
reward 0x0000000000001165
play 0x0000000000001175
forward 0x0000000000001166
record 0x0000000000001177
stop 0x0000000000001176
pause 0x0000000000001169
power 0x000000000000114C
end codes
end remote
#******************************************************************************
# SECTION 2 - TRANSMIT CODES
#******************************************************************************
# RC5 transmit codes, to be received by the PIC on the Extension Board
begin remote
name EXTB_TX
bits 11
flags RC5
eps 20
aeps 0
header 0 0
one 940 840
zero 940 840
ptrail 0
plead 940
foot 0 0
repeat 0 0
pre_data_bits 2
pre_data 0x02
post_data_bits 0
post_data 0x0
pre 0 0
post 0 0
gap 90000
repeat_bit 2
begin codes
# -----------------------------------------------------------------------------
# RESET/SET OUTPUTS RC5 ADR 0x00 / CMD 0x00...0x1F (0...31)
# -----------------------------------------------------------------------------
# ---------------------------
# Function: LED1 OFF
R_LD1 0x0000
# Function: LED1 ON
S_LD1 0x0001
# ---------------------------
# Function: LED2 OFF
R_LD2 0x0002
# Function: LED2 ON
S_LD2 0x0003
# ---------------------------
# Function: LED3 OFF
R_LD3 0x0004
# Function: LED3 ON
S_LD3 0x0005
# ---------------------------
# Function: LED4 OFF
R_LD4 0x0006
# Function: LED4 ON
S_LD4 0x0007
# ---------------------------
# Function: LED5 OFF
R_LD5 0x0008
# Function: LED5 ON
S_LD5 0x0009
# ---------------------------
# Function: LED6 OFF
R_LD6 0x000A
# Function: LED6 ON
S_LD6 0x000B
# ---------------------------
# Function: LCD OFF
R_LCD 0x000C
# Function: LCD ON
S_LCD 0x000D
# ---------------------------
# Function: SCART Pin 8 12V
R_SC8_6V 0x000E
# Function: SCART Pin 8 6V
S_SC8_6V 0x000F
# ---------------------------
# Function: Analog audio OFF
R_ANA 0x0010
# Function: Analog audio ON
S_ANA 0x0011
# ---------------------------
# Function: S/PDIF OFF
R_DIA 0x0012
# Function: S/PDIF ON
S_DIA 0x0013
# ---------------------------
# Function: Ext. output 1 OFF
R_OUT1 0x0014
# Function: Ext. output 1 ON
S_OUT1 0x0015
# ---------------------------
# Function: Ext. output 2 OFF
R_OUT2 0x0016
# Function: Ext. output 2 ON
S_OUT2 0x0017
# ---------------------------
# Function: Ext. output 3 OFF
R_OUT3 0x0018
# Function: Ext. output 3 ON
S_OUT3 0x0019
# ---------------------------
# Function: Ext. output 4 OFF
R_OUT4 0x001A
# Function: Ext. output 4 ON
S_OUT4 0x001B
# ---------------------------
# Function: (Reserved)
# 0x001C
# Function: (Reserved)
# 0x001D
# ---------------------------
# Function: (Reserved)
# 0x001E
# Function: (Reserved)
# 0x001F
# ---------------------------
# -----------------------------------------------------------------------------
# TOGGLE OUTPUTS RC5 ADR 0x01 / CMD 0x00...0x0E (0...14) [0x40 offset]
# -----------------------------------------------------------------------------
# -------------------------------
# Function: Toggle LED1
T_LD1 0x0040
# -------------------------------
# Function: Toggle LED2
T_LD2 0x0041
# -------------------------------
# Function: Toggle LED3
T_LD3 0x0042
# -------------------------------
# Function: Toggle LED4
T_LD4 0x0043
# -------------------------------
# Function: Toggle LED5
T_LD5 0x0044
# -------------------------------
# Function: Toggle LED6
T_LD6 0x0045
# -------------------------------
# Function: Toggle analog audio
T_ANA 0x0046
# -------------------------------
# Function: Toggle S/PDIF
T_DIA 0x0047
# -------------------------------
# Function: Toggle ext. output 1
T_OUT1 0x0048
# -------------------------------
# Function: Toggle ext. output 2
T_OUT2 0x0049
# -------------------------------
# Function: Toggle ext. output 3
T_OUT3 0x004A
# -------------------------------
# Function: Toggle ext. output 4
T_OUT4 0x004B
# -------------------------------
# Function: (Reserved)
# 0x004C
# -------------------------------
# Function: (Reserved)
# 0x004D
# -------------------------------
# Function: (Reserved)
# 0x004E
# -------------------------------
# -----------------------------------------------------------------------------
# Command sequences RC5 ADR 0x02 / CMD 0x00...0x1D (0...29) [0x80 offset]
# -----------------------------------------------------------------------------
# -----------------------------------------------------------
# Function: LCD backlight ON
R_LCD_BL 0x0080
# -----------------------------------------------------------
# Function: LCD backlight OFF
S_LCD_BL 0x0081
# -----------------------------------------------------------
# Function: Select DVB as video source, deselect VGA and AUX
S_DVB 0x0082
# -----------------------------------------------------------
# Function: Select VGA as video source, deselect DVB and AUX
S_VGA 0x0083
# -----------------------------------------------------------
# Function: Select AUX as video source, deselect DVB and VGA
S_AUX 0x0084
# -----------------------------------------------------------
# Function: Toggle DVB/VGA video source
T_DVB_VGA 0x0085
# -----------------------------------------------------------
# Function: Toggle DVB/AUX video source
T_DVB_AUX 0x0086
# -----------------------------------------------------------
# Function: Toggle VGA/AUX video source
T_VGA_AUX 0x0087
# -----------------------------------------------------------
# Function: Turn off all video sources
R_VID_ALL 0x0088
# -----------------------------------------------------------
# Function: Turn off analog audio and S/PDIF
R_ANDIA 0x0089
# -----------------------------------------------------------
# Function: Turn on analog audio and S/PDIF
S_ANDIA 0x008A
# Function: Toggle analog audio and S/PDIF
T_ANDIA 0x008B
# -----------------------------------------------------------
# Function: Set F_DVB_RGB, reset F_DVB_CS
F_DVB_RGB 0x008C
# -----------------------------------------------------------
# Function: Set F_DVB_CS, reset F_DVB_RGB
F_DVB_CS 0x008D
# -----------------------------------------------------------
# Function: Set F_VGA_RGB, reset F_VGA_CS
F_VGA_RGB 0x008E
# -----------------------------------------------------------
# Function: Set F_VGA_CS, reset F_VGA_RGB
F_VGA_CS 0x008F
# -----------------------------------------------------------
# Function: Set F_AUX_RGB, reset F_AUX_C
F_AUX_RGB 0x0090
# -----------------------------------------------------------
# Function: Set F_AUX_CS, reset F_AUX_RGB
F_AUX_CS 0x0091
# -----------------------------------------------------------
# Function: Set F_SC8_ON_PWR, reset F_SC8_ON_VDR
F_SC8_ON_PWR 0x0092
# -----------------------------------------------------------
# Function: Set F_SC8_ON_VDR, reset F_SC8_ON_PWR
F_SC8_ON_VDR 0x0093
# -----------------------------------------------------------
# Function: Reset F_SC8_ON_PWR, reset F_SC8_ON_VDR
F_SC8_OFF 0x0094
# -----------------------------------------------------------
# Function: Set F_BOOT_VGA, reset F_BOOT_AUX
F_BOOT_VGA 0x0095
# -----------------------------------------------------------
# Function: Set F_BOOT_AUX, reset F_BOOT_VGA
F_BOOT_AUX 0x0096
# -----------------------------------------------------------
# Function: Reset F_BOOT_VGA, reset F_BOOT_AUX
F_BOOT_OFF 0x0097
# -----------------------------------------------------------
# Function: Triggers the PIC to send the current options
STATUS 0x0098
# -----------------------------------------------------------
# Function: (Reserved)
# 0x0099
# -----------------------------------------------------------
# Function: (Reserved)
# 0x009A
# -----------------------------------------------------------
# Function: (Reserved)
# 0x009B
# -----------------------------------------------------------
# Function: (Reserved)
# 0x009C
# -----------------------------------------------------------
# Function: (Reserved)
# 0x009D
# -----------------------------------------------------------
# -----------------------------------------------------------------------------
# Macros RC5 ADR 0x02 / CMD 0x1E...0x27 (30...39) [0x9E offset]
# -----------------------------------------------------------------------------
# ---------------------------
# Function: Macro 1
M1 0x009E
# ---------------------------
# Function: Macro 2
M2 0x009F
# ---------------------------
# Function: Macro 3
M3 0x00A0
# ---------------------------
# Function: Macro 4
M4 0x00A1
# ---------------------------
# Function: Macro 5
M5 0x00A2
# ---------------------------
# Function: Macro 6
M6 0x00A3
# ---------------------------
# Function: Macro 7
M7 0x00A4
# ---------------------------
# Function: Macro 8
M8 0x00A5
# ---------------------------
# Function: Macro 9
M9 0x00A6
# ---------------------------
# Function: Macro 10
M10 0x00A7
# ---------------------------
end codes
end remote
#******************************************************************************
# SECTION 3 - RECEIVE CODES FOR REPORTING THE PIC OPTIONS
#******************************************************************************
begin remote
name EXTB_RX
bits 11
flags RC5
eps 20
aeps 0
header 0 0
one 940 840
zero 940 840
ptrail 0
plead 940
foot 0 0
repeat 0 0
pre_data_bits 2
pre_data 0x02
post_data_bits 0
post_data 0x0
pre 0 0
post 0 0
gap 90000
repeat_bit 2
begin codes
# The following RC5 codes are generated by the PIC on the Extension Board
# for reporting the current video/SCART/boot modes
V0 0x07c0
V1 0x07c1
V2 0x07c2
V3 0x07c3
V4 0x07c4
V5 0x07c5
V6 0x07c6
V7 0x07c7
SB0 0x0780
SB1 0x0781
SB2 0x0782
SB4 0x0784
SB5 0x0785
SB6 0x0786
SB8 0x0788
SB9 0x0789
SBa 0x078a
end codes
end remote
Meine lircrc.extb (auch unter /etc) sieht so aus:
ZitatAlles anzeigen
#
# ---------------------------- ANMERKUNGEN --------------------------------
#
# Bitte die folgenden Eintraege an die vorhandene lircrc anhaengen oder so
# uebernehmen, wenn noch keine lircrc existiert.
#
# Der Name der vorhandenen RC-5 Fernbedienung (so wie in der lircd.conf
# definiert) muss in der ersten beiden Eintraegen noch ergaenzt werden,
# ebenso die Namen der Scripte fuer Eject und Restart.
#
# --- For restart & eject scripts -----------------------------------------
begin
remote = md4688
button = restart
repeat = 0
prog = irexec
config = <hier den Namen des VDR-Restart-Scripts einfuegen>
end
begin
remote = md4688
button = eject
repeat = 0
prog = irexec
config = <hier den Namen des Eject-Scripts einfuegen>
end
# --- For reporting the PIC video options ---------------------------------
begin
remote = EXTB_RX
button = V0
repeat = 0
prog = irexec
config = status.sh V0
end
begin
remote = EXTB_RX
button = V1
repeat = 0
prog = irexec
config = status.sh V1
end
begin
remote = EXTB_RX
button = V2
repeat = 0
prog = irexec
config = status.sh V2
end
begin
remote = EXTB_RX
button = V3
repeat = 0
prog = irexec
config = status.sh V3
end
Die Skripts für Restart und Eject habe ich noch nicht eingefügt.
Setserial wird beim booten ohne Fehler ausgeführt und dier (bzw. das) Lirc wurde wie empfohlen über Dialog nur mit der Transmitter Diode (oder wie das Teil heißt) configuriert, bzw. installiert.
MFG
Marco