Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
dieresOffline
15 Post subject: how to use irrecord with lirc serial ir adapter?  PostPosted: 11.07.2011, 09:28



Joined: 2010-09-12
Posts: 30

Status: Offline
i try to get my medion md4688 remote-control with an old seial lirc ir-adapter working.

what I have tried:

setserial /dev/ttyS0 uart none

/etc/lirc/hardware.conf:
      Code:


# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="DEFAULT"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="lirc_serial"
# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""


if I try irrecord:
      Code:

root@amd64box:/home/didi# irrecord -d /dev/lirc0 -H default /etc/lirc/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 hardware features
irrecord: this device driver does not support the LIRC ioctl interface
irrecord: major number of /dev/lirc0 is 248
irrecord: LIRC major number is 61
irrecord: check if /dev/lirc0 is a LIRC device
irrecord: could not init hardware (lircd running ? --> close it, check permissions)


Of course I have run "/etc/init.d/lirc stop" before trying irrecord, and setserial tells uart none for /dev/ttyS0.
Where is my mistake in running irrecord?

I have found a lircd.conf for TV=183 and VCR=308 but there is no Menu key, is the same as purple key. Sad


Last edited by dieres on 13.07.2011, 10:08; edited 1 time in total
 
 View user's profile Send private message  
Reply with quote Back to top
slhOffline
Post subject: RE: how to use irrecord with lirc serial ir adapter?  PostPosted: 11.07.2011, 15:25



Joined: 2010-08-25
Posts: 750

Status: Offline
      Code:
$ grep -v -e ^\# -e ^$ /etc/lirc/hardware.conf
LIRCD_ARGS=""
LOAD_MODULES=true
DRIVER=""
DEVICE="/dev/lirc0"
MODULES="lirc_serial"
LIRCD_CONF=""
LIRCMD_CONF=""

$ cat /etc/serial.conf
/dev/ttyS0 uart none
      Code:
# /etc/init.d/lirc stop
Stopping remote control daemon(s): LIRC:.
      Code:
$ irrecord -d /dev/lirc0 /tmp/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> 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.


Now start pressing buttons on your remote control.

It is very important that you press many different buttons and hold them
down for approximately one second. Each button should generate at least one
dot but in no case more than ten dots of output.
Don't stop pressing buttons until two lines of dots (2x80) have been
generated.

Press RETURN now to start recording.
................................................................................
Found const length: 113016
Please keep on pressing buttons like described above.
................................................................................
RC-5 remote control found.
No header found.
Found hidden lead pulse: 905
No repeat code found.
Signals are biphase encoded.
Signal length is 13
Now enter the names for the buttons.

Please enter the name for the next button (press <ENTER> to finish recording)
 
 View user's profile Send private message  
Reply with quote Back to top
wofritzOffline
Post subject: Re: how to use irrecord with lirc serial ir adapter?  PostPosted: 11.07.2011, 15:57



Joined: 2010-09-11
Posts: 30
Location: Uetze/NDS/DE
Status: Offline
      dieres wrote:

I have found a lircd.conf for TV=183 and VCR=308 but there is no Menu key, is the same as purple key. Sad

I've used this RC in the past with my VDR but was not able to find a mode where all keys were available with unique key codes, neither with LIRC nor the IR receiver on my Nexus-S DVB card with the corresponding V4L driver (don't remember the name, sorry).

Regards,
Wolfgang
 
 View user's profile Send private message  
Reply with quote Back to top
dieresOffline
Post subject:   PostPosted: 11.07.2011, 23:12



Joined: 2010-09-12
Posts: 30

Status: Offline
      Code:
root@amd64box:/home/didi# grep -v -e ^\# -e ^$ /etc/lirc/hardware.conf

LIRCD_ARGS=""
LOAD_MODULES=true
DRIVER=""
DEVICE="/dev/lirc0"
MODULES="lirc_serial"
LIRCD_CONF=""
LIRCMD_CONF=""

root@amd64box:/home/didi# cat /etc/serial.conf
/dev/ttyS0 uart none



      Code:
root@amd64box:/home/didi# /etc/init.d/lirc stop
Stopping remote control daemon(s): LIRC:.

root@amd64box:/home/didi# irrecord -d /dev/lirc0 /tmp/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 hardware features
irrecord: this device driver does not support the LIRC ioctl interface
irrecord: major number of /dev/lirc0 is 249
irrecord: LIRC major number is 61
irrecord: check if /dev/lirc0 is a LIRC device
irrecord: could not init hardware (lircd running ? --> close it, check permissions)


root@amd64box:/home/didi# ls -l /dev/lirc0
crw-rw---- 1 root video 249, 0 12. Jul 00:47 /dev/lirc0




I dont't see what is going wrong

Sad
 
 View user's profile Send private message  
Reply with quote Back to top
dieresOffline
Post subject:   PostPosted: 13.07.2011, 10:08



Joined: 2010-09-12
Posts: 30

Status: Offline
I've just booted my second aptosid system on this PC, and irrecord works perfectly. Same Kernel same lirc, I cant see any difference.
Mad
the created lircd.conf works perfectly on first aptosid system too.
Very Happy
To get all keys on Medion 4688 working one has to choose 065 for DVD and 260 for VCR. then learn 2 lircd.conf in /temp, 1. for 065 without touching FF RW Play Pause Record Stop keys. 2. for VCR with only FF RW Play Pause Record Stop keys.
after this add 2. conf file to 1. with cat >> and use this for /etc/lirc/lircd.conf.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by Zafenio