ZitatOriginal von obelix
Wäre ein home-brew unter /usr/share/lirc/remotes/ nicht passend?
Ungern, weil das Verzeichnis nicht uns sondern lirc gehört.
Gerald
ZitatOriginal von obelix
Wäre ein home-brew unter /usr/share/lirc/remotes/ nicht passend?
Ungern, weil das Verzeichnis nicht uns sondern lirc gehört.
Gerald
Ich bekomme es nicht zum laufen....
hardware.conf
#################################################################################
# #
# The following configuration file is generated automatically by the yaVDR #
# system. Don't change this file as every update of yaVDR will overwrite #
# the local changes. Instead put your required customizations #
# into /etc/yavdr/templates_custom/ based on the original templates #
# under /usr/share/yavdr/templates. #
# #
# http://www.vdr-wiki.de/wiki/index.php/YaVDR-FAQ#Templating.2FCustomizing #
# #
# #
#################################################################################
# /etc/lirc/hardware.conf
#
#Chosen Remote Control
REMOTE="Home-brew (16x50 UART compatible serial port)"
REMOTE_MODULES="lirc_dev lirc_serial"
REMOTE_DRIVER=""
REMOTE_DEVICE="/dev/lirc0"
REMOTE_LIRCD_CONF=""
REMOTE_LIRCD_ARGS=""
#Chosen IR Transmitter
TRANSMITTER="None"
TRANSMITTER_MODULES=""
TRANSMITTER_DRIVER=""
TRANSMITTER_DEVICE=""
TRANSMITTER_LIRCD_CONF=""
TRANSMITTER_LIRCD_ARGS=""
#Enable lircd
START_LIRCD="true"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD="false"
#Try to load appropriate kernel modules
LOAD_MODULES="true"
# Default configuration files for your hardware if any
LIRCMD_CONF=""
#Forcing noninteractive reconfiguration
#If lirc is to be reconfigured by an external application
#that doesn't have a debconf frontend available, the noninteractive
#frontend can be invoked and set to parse REMOTE and TRANSMITTER
#It will then populate all other variables without any user input
#If you would like to configure lirc via standard methods, be sure
#to leave this set to "false"
FORCE_NONINTERACTIVE_RECONFIGURATION="false"
START_LIRCMD=""
Alles anzeigen
yavdrdb.hdf
vdr {
frontend = xineliboutput
}
webfrontend {
language = de
}
system {
vdr {
uid = 107
gid = 107
}
hardware {
nvidia {
detected = 1
}
alsa {
analog {
card = 0
device = 0
}
digital {
card = 0
device = 1
}
hdmi {
card = 0
device = 3
}
}
}
lirchw {
serial_port = /dev/ttyS0
description = Home-brew (16x50 UART compatible serial port)
driver = serial
lirc_driver = lirc_dev lirc_serial
hw_default = hw_default
lircd_conf =
}
remoted = lircd
}
Alles anzeigen
serial.conf
#################################################################################
# #
# The following configuration file is generated automatically by the yaVDR #
# system. Don't change this file as every update of yaVDR will overwrite #
# the local changes. Instead put your required customizations #
# into /etc/yavdr/templates_custom/ based on the original templates #
# under /usr/share/yavdr/templates. #
# #
# http://www.vdr-wiki.de/wiki/index.php/YaVDR-FAQ#Templating.2FCustomizing #
# #
# #
#################################################################################
#COM1 equivalent, /dev/ttyS0
/dev/ttyS0 uart none
#COM2 equivalent, /dev/ttyS1
#/dev/ttyS1 uart none
Alles anzeigen
Das Asus M3n78-VM ist im Bios so eingestellt:
Serial Port1 Adress: 3F8/IRQ4
Serial Port1 Mode: Normal
Als Mode gibt es auch noch "IrDa" und "ASK IR"
C1E ist Disabeld
Sind die Einstellingen so korrekt?
Sieht alles gut aus. Was läuft denn nicht ? Hast du eine lircd.conf erstellt oder reinkopiert ?
reinkopiert
#
# this config file was automatically generated
# using lirc-0.8.3(default) on Wed Jul 2 21:51:15 2008
#
# contributed by
#
# brand: Technotrend
# model no. of remote control:
# devices being controlled by this remote: TV-Card
#
begin remote
name Technotrend
bits 6
flags RC5|CONST_LENGTH
eps 30
aeps 100
one 889 889
zero 889 889
plead 889
pre_data_bits 7
pre_data 0x55
gap 113792
toggle_bit 2
frequency 36000
duty_cycle 50
begin codes
Power 0x01
Mute 0x18
1 0x03
2 0x04
3 0x05
4 0x06
5 0x07
6 0x08
7 0x09
8 0x0A
9 0x0B
0 0x0C
Audio 0x1A
Repeat 0x02
vol- 0x26
vol+ 0x25
Text 0x19
ch- 0x24
ch+ 0x23
Exit 0x13
OK 0x0F
Up 0x0D
Down 0x11
Left 0x0E
Right 0x10
Red 0x14
Green 0x15
Yellow 0x16
Blue 0x17
Record 0x3A
Play 0x3B
Stop 0x3C
Info 0x12
Rew 0x3D
Pause 0x3E
Fwd 0x3F
EPG 0x22
end codes
end remote
Alles anzeigen
irw macht keinen Mux
was sagt irrecord dazu ?
Dies:
root@vdr03:~# irrecord /etc/lircd.conf
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
irrecord: could not get file information for /dev/lirc
irrecord: default_init(): No such file or directory
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
Alles anzeigen
root@vdr03:~# irrecord -d /dev/lirc0 /etc/lircd.conf
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
irrecord: could not open /dev/lirc0
irrecord: default_init(): Device or resource busy
irrecord: could not init hardware (lircd running ? --> close it, check permissions)
Alles anzeigen
stop remoted
dann irrecord, sry
huh ? wie läuft denn lircd wenn remoted upstart job nicht gestartet ist ?
utiltiy
du hast nicht zuffälig versucht lirc mit /etc/init.d/lirc start
zu starten ?
stop remoted :
remoted stop/waiting
ps alx | grep lirc
0 0 11740 1516 20 0 3328 808 pipe_w S+ pts/0 0:00 grep --color=auto lirc
start remoted
remoted start/running, process 11743
ps alx | grep lirc
0 0 11743 1 20 0 3120 984 poll_s Ss ? 0:00 /usr/sbin/lircd --nodaemon --output=/var/run/lirc/lircd --device=/dev/lirc0
0 0 11753 1516 20 0 3328 808 pipe_w S+ pts/0 0:00 grep --color=auto lirc
Ich bin ja ehrlich - habe ich gemacht
Ich lasse kurz einen Reboot laufen und melde mich dann gleich wieder
Edit
root@vdr03:~# irrecord -d /dev/lirc0 /etc/lircd.conf
irrecord - application for recording IR-codes for usage with lirc
Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)
This program will record the signals from your remote control
and create a config file for lircd.
A proper config file for lircd is maybe the most vital part of this
package, so you should invest some time to create a working config
file. Although I put a good deal of effort in this program it is often
not possible to automatically recognize all features of a remote
control. Often short-comings of the receiver hardware make it nearly
impossible. If you have problems to create a config file READ THE
DOCUMENTATION of this package, especially section "Adding new remote
controls" for how to get help.
If there already is a remote control of the same brand available at
http://www.lirc.org/remotes/ you might also want to try using such a
remote as a template. The config files already contain all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available in the remotes/generic/ directory of the source
distribution of this package. You can use a template files by
providing the path of the file as command line parameter.
Please send the finished config files to <lirc@bartelmus.de> so that I
can make them available to others. Don't forget to put all information
that you can get about the remote control in the header of the file.
Press RETURN to continue.
Hold down an arbitrary button.
irrecord: gap not found, can't continue
Alles anzeigen
na also !!
klappt doch
jetzt sollte deine lircd.conf auch funktionieren
vorher
stop remoted
finger weg vom init.d startskript
Nö, geht nicht
Edit:
Der Atric funktioniert aber, ich habe gerade meinen Wohnzimmer VDR zerlegt und dort getestet. Also schliesse ich den Einschalter aus. Das Kabel kann ich nicht testen da der WZ VDR ein Siemens MB hat mit 16-Poligen Stecker.
ZitatOriginal von utiltiy
Nö, geht nicht
Bitte bei einer Fehlersuche keine Interpretationen, sondern nur Fakten. Also immer nur was du gemacht hast, was du dir davon erwartet hast und welches Ergebnis es stattdessen gab.
Ich vermisse hier noch die Ausgaben, die lirc_serial in dmesg hinterlässt.
Kannst du ausschließen, dass du das falsche Kabel bestellt hast, also Typ-9 statt Typ-5, oder umgekehrt?
Hängt der Atric vielleicht an /dev/ttyS1 statt /dev/ttyS0?
Gerald
Also,
bei mir geht es jetzt, nach update/upgrade,
dann nochmal im WebFrontend Homebrew COM1 eingestellt,
meine lircd.conf direkt nach /etc/lirc kopiert und in "hardware" bei
REMOTE_LIRCD_CONF=lircd.conf" eingetragen, reboot, geht.
Meine remote.conf hatte ich vorher schon an die richtige Stelle kopiert.
Danke allen Helfern.
sdude
Fakten:
- Das MB hat nur einen intern COM-Port Anschluss
root@vdr03:~# dmesg | grep lirc
[ 8.639304] lirc_dev: IR Remote Control driver registered, major 61
[ 8.641433] lirc_imon: Driver for SoundGraph iMON MultiMedia IR/Display, v0.6
[ 8.641460] lirc_dev: lirc_register_driver: sample_rate: 0
[ 8.641565] lirc_imon: Registered iMON driver (lirc minor: 0)
[ 8.663547] lirc_imon: iMON device (15c2:ffdc, intf0) on usb<3:3> initialized
[ 8.663592] usbcore: registered new interface driver lirc_imon
[ 11.240518] lirc_serial: auto-detected active high receiver
[ 11.240523] lirc_dev: lirc_register_driver: sample_rate: 0
[ 11.240608] lirc_serial $Revision: 5.104 $ registered
[ 12.097521] lirc_imon: IR port opened
Alles anzeigen
Das Kabel ist 1:1 und nicht "gekreuzt, wie es beim Typ-9 ist. zudem habe ich erwähnt dass ich den VDR einschalten kann. Das ist nur möglich wenn GND durch das Adapterkabel am Atric ankommt. Die FB mußte er ja auch erkennen
Zitat
Das ist schon mal nicht gut. Ich zitiere mal von hier:
ZitatSollte statt dessen auto-detected active high receiver vermeldet werden, wurde das Empfänger-Modul nicht erkannt - das kann zum einen auf die falsche Schnittstellenangabe oder aber einen Baufehler des Empfängers zurückzuführen sein
Das Empfänger in Ordnung ist, wie du sagst, bleibt eigentlich nur die Verkabelung, oder der falsche Anschluss, oder der Port ist im BIOS ausgeschaltet, oder hat einen anderen als den Standard-Port.
Gerald
Die MB Einstellungen habe ich weiter oben genannt, disable müßte ich anstatt des "3F8/IRQ4" auswählen.
Könnte man das IR Signal messen oder wo könnte ich weiter suchen?
Hallo,
ich habe nun mal die Default-Werte vom Bios laden lassen.
Die Ausgabe sieht nun so aus:
root@vdr03:~# dmesg | grep lirc
[ 10.612878] lirc_dev: IR Remote Control driver registered, major 61
[ 10.614907] lirc_imon: Driver for SoundGraph iMON MultiMedia IR/Display, v0.6
[ 10.614933] lirc_dev: lirc_register_driver: sample_rate: 0
[ 10.614990] lirc_imon: Registered iMON driver (lirc minor: 0)
[ 10.639546] lirc_imon: iMON device (15c2:ffdc, intf0) on usb<3:3> initialized
[ 10.639590] usbcore: registered new interface driver lirc_imon
[ 13.352035] lirc_serial: auto-detected active low receiver
[ 13.352040] lirc_dev: lirc_register_driver: sample_rate: 0
[ 13.352125] lirc_serial $Revision: 5.104 $ registered
[ 18.137468] lirc_imon: IR port opened
[ 482.929825] lirc_imon: IR port closed
[ 485.919835] lirc_imon: IR port opened
[ 922.683642] lirc_imon: IR port closed
[ 928.480129] lirc_imon: IR port opened
[ 992.045147] lirc_imon: IR port closed
[ 997.465265] lirc_imon: IR port opened
Alles anzeigen
Wäre dies nun besser?
Anlernen und Codes "sehen" per "irw" geht nicht
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!