View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 12 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Broken Irman
PostPosted: Wed Feb 23, 2005 11:56 am 
Offline
Joined: Fri Feb 11, 2005 9:51 am
Posts: 37
Im trying to get my irman reciever to work with knoppmyth instead of my hauppauge one. The hauppauge reciver does not accept my Kenwood recievers remote. I found the wiki instructions for recompiling lirc and followed them but they are written for a generic serial reciever so i installed libirman 4.3, 'make unistall' the old lirc, ran the setup.sh, 'make' & 'make install' It state that i dont need a module for it when i try irrecord it die and reports:

could not open /dev/lirc
irman_init() connection timed out
could not init hardware...

both /dev/lirc and /dev/lircd exist are set to root:root and i chmod'ed them to 666
Also i noticed that when I 'dmesg | grep lirc' it still lists the hauppauge and lirc_i2c driver

What am i missing do i need a special libirman or is it something else?

_________________
Tag Scott

AMD 1800
MSI VIA KT-333
GF4 Ti4200
250 GB HHD
PVR-250
SB Live
DVD+/-RW


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 27, 2005 12:56 pm 
Offline
Joined: Wed Nov 26, 2003 10:24 am
Posts: 18
I'm working on similar issues; first off, you have to rebuild lirc with irman support. I think it'd be nice if this were added to KnoppMyth in the future, but it's not too hard. As root:

Code:
apt-get install libirman-dev
cd /usr/src
tar xjvf lirc-0.7.0.tar.bz2
cd lirc-0.7.0
./configure --with-driver=irman
make
make install


from there, I'm kinda confused where to go. I think last night I linked /dev/lirc to the serial port device where my IRman is connected, and that let me run irrecord, but then lirc wasn't sending commands to mythtv, and it was late, and I think I broke something. Now when I start lircd, it comes up, but as soon as I try to do something with it, I get:

Code:
Feb 27 12:44:51 freya lircd 0.7.0: lircd(irman) ready
Feb 27 12:45:14 freya lircd 0.7.0: accepted new client on /dev/lircd
Feb 27 12:45:14 freya lircd 0.7.0: could not open /dev/ttyS0
Feb 27 12:45:14 freya lircd 0.7.0: irman_init(): Input/output error
Feb 27 12:45:14 freya lircd 0.7.0: caught signal


not sure what to do now. Lemme know if you get any further.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 27, 2005 1:19 pm 
Offline
Joined: Wed Nov 26, 2003 10:24 am
Posts: 18
sonofa....

well, looks like a system halt (not a reboot, power off, power on) cleared the I/O error. So, set up your lircd.conf and .lircrc, and you should be good to go. Luck!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 23, 2005 5:39 pm 
Offline
Joined: Fri Feb 11, 2005 9:51 am
Posts: 37
Update!

First apt-get install libirman-dev, then follow the LIRC howto in the wiki but change the config for the IRMan reciever. Edit the lircd.conf and .lircrc and your good to go.

_________________
Tag Scott

AMD 1800
MSI VIA KT-333
GF4 Ti4200
250 GB HHD
PVR-250
SB Live
DVD+/-RW


Top
 Profile  
 
 Post subject: Lost
PostPosted: Sun Dec 17, 2006 12:57 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
I have a ira3-oem device connected to my serial port. I saw on the knoppmyth wiki instructions but I am running into issues.

I followed the IRA -3 setup to the letter on and RC57 frontend and it resulted in the box just continuously rebooting. I kept running into issues with the command to test my remote commands "/test_io /dev/ttyS0" I get a handshake error even though i followed the instructions to change the handshake gap from 500 to 2000. I will need to do this step for creating the commands for a custom remote file for my RCA universal remote. This will be put in Lircd file. That I will need to create.

I researched that issue using google and the lirc mailing list said this error is caused by a improper port possible. However when I issue the command the red led comes on and it registers a few remote keypresses before it stops and gives the timeout error.

I also read that its meaningless and irrecord works despite.


So I rebooted thats when the box just would not boot properly.

So I rebuilt with Rd51. However I thought I would be more careful. I was successful with the following steps.

1. apt-get remove lirc

2. wget http://lirc.sourceforge.net/software/sn ... 4.3.tar.gz

3. wget http://lirc.sourceforge.net/software/sn ... e1.tar.bz2

4. tar -xvzpf libirman-0.4.3.tar.gz

5. tar -xvjpf lirc-0.8.0pre1.tar.bz2

6. cd libirman-0.4.3

7. edit irman.h and change the IR_HANDSHAKE_GAP? from 500 to 2000

"#define IR_HANDSHAKE_GAP? (2000 USEC)"

8. ./configure && make && make install

9. cd ../lirc-0.8.0pre1

10. ./setup.sh

11. Driver Configuration -> Other Serial Port Drivers -> IRMan/UIR

12. Save configuration and run configure

13. rm /dev/lirc

14. make && make install



It is the 15th step and beyond that I don't understand.

"15. edit /etc/init.d/bootmisc.sh and comment out the line (near the bottom):

setserial /dev/ttyS0 uart none "

I dont have the setserial entry in Rd51 bootmisc.

The next step I am not sure is relevant because I dont have pvr cards in this box it is just a frotend. Do I need to do this?

16. edit /etc/mythtv/modules/ivtv (assuming a pvr card ) and comment out the line:

alias char-major-61lirc_i2c?

The next steps I think are for modifying the original "lirc" and creating a new lirc file called "lirc.default". However this is not clear at all. Also in step 20 I am really confused with "cp reboot lirc". It seems he is saying to copy the reboot lirc file. However was I supposed to create a new lirc startup file called reboot lirc? In that file I am supposed to make changes to the original edited Lirc file?




17. cd /etc/init.d

18. mv lirc lirc.default

19. update-rc.d lirc remove

20. cp reboot lirc

21. edit the new lirc startup script and change the line:

Rebooting... to Starting LIRC...

and the next line to:

/usr/local/sbin/lircd --device=/dev/ttyS0 --driver=irman

22. update-rc.d lirc defaults 20



Any help is appreciated. I believe I have the device connected properly. I also have lirc recompiled with support for libirman. I just need to be able to now go and create the lircd and lircc files and make sure they are loaded at startup.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Dec 17, 2006 10:03 pm 
Offline
Joined: Fri Feb 11, 2005 9:51 am
Posts: 37
Lets see if I can help clear this up

17. cd /etc/init.d
-- Moves you to the directory where the startup liles are

18. mv lirc lirc.default
-- renames lirc to lirc.default (as a backup)

19. update-rc.d lirc remove
--Removes any reference of the old file so the new one will be used

20. cp reboot lirc
-- copies the file reboot to a new file named lirc

21. edit the new lirc startup script and change the line:

Rebooting... to Starting LIRC...

and the next line to:

/usr/local/sbin/lircd --device=/dev/ttyS0 --driver=irman
--Make sure to delete the line with the reboot command when you edit the new lirc file or youll continually reboot, which is probably what happened on the last install.

22. update-rc.d lirc defaults 20
--Adds the new lirc file to the startup list

_________________
Tag Scott

AMD 1800
MSI VIA KT-333
GF4 Ti4200
250 GB HHD
PVR-250
SB Live
DVD+/-RW


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 9:12 am 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
Thanks for the reply. One of the other questions I have is that when you compile lirc yourself it actually creates a another lirc file in /usr/local/sbin/. So does it matter that you have one in /etc/init.d/ as well?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 18, 2006 10:01 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
So I followed the steps properly and the machine does boot properly now.

I also see the led light for the irman saw I think it is working.

However I am still struggling with running the test code command

25. To check your ir codes, go into libirman-0.4.3 and run:

./test_io /dev/ttyS0

When I do this I get the handshake timeout error.

Just to test i ran the

setserial /dev/ttyS0 uart none

Then I tried to test my ir codes. When I do this I get the input output messages.

Just as a note. I also tried to do a

modprobe lirc_serial

This results in the led staying lit all the time.

Trying to run irrecord in the following way

irrecord /rcauniversal.conf

Results in a message saying lircd is running and fails.


So what am I doing wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 7:20 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
This is really killing my WAF acceptance factor right now. It is also
driving me quite batty.

I installed the hardware using the serial plug to the header on the motherboard. It only does com1 or /devttyS0.
The port is enabled in the bios. irq4 0x3f8

The box is running as a frontend only with mysql and mythbackend
removed as per the frotend only how to on the knoppmythwiki

dmesg output shows the following:
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing
disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 10
ACPI: PCI Interrupt 0000:00:14.5[B] -> Link [LNKB] -> GSI 10 (level,
low) -> IRQ
10

One thing that is interesting is that I also get a odd error message.
ttyS1: LSR safety check engaged!
ttyS1: LSR safety check engaged!

I dont have another com port physically so I am not sure about this one.


APIC is disabled and so is plug and play. I am using a ATI IGP
motherboard RS480mil.

So when the box boots I can see the red led flash so I know lirc is
doing something and the hardware seemingly works.

However the major issue I have is that when I try and do step 25.

First of all I have to be root (not sure if this matters, I did the
install as root) I follow the step:

25. To check your ir codes, go into libirman-0.4.3 and run:

./test_io /dev/ttyS0

This is what I get:

root@mythtvfamilyfrontend:~/libirman-0.4.3# ./test_io /dev/ttyS0
IR
error reading handshake (Connection timed out)
root@mythtvfamilyfrontend:~/libirman-0.4.3#

If I press the remote when I do this the red led sees the keypresses
because it flashes but then it stops.

I looked this up on the lirc mailing list and saw a post that means that
the its not receiving a reply and it could be the wrong port. I think
its the right port and I tried to set it to the ttyS1 port but that
didnt matter.

Looking into lircd I see the following:

Dec 28 13:43:54 mythtvfamilyfrontend lircd: lircd(irman) ready
Dec 28 13:44:12 mythtvfamilyfrontend lircd: accepted new client
on /dev/lircd
Dec 28 13:44:14 mythtvfamilyfrontend lircd: could not open /dev/ttyS0
Dec 28 13:44:14 mythtvfamilyfrontend lircd: irman_init(): Connection
timed out
Dec 28 13:44:14 mythtvfamilyfrontend lircd: caught signal

I am stuck at this point. I have some suspicions. The default lircd
file is for the happauge grey remote. I tried to use that but nothing
happens. Lirc still cant communicate.

When you compile lirc yourself it gets created
in /usr/local/sbin/lircd.

I saw this post:


the startup script is different from the one I got here, but something
else is different as well..
by compiling it myself lirc has put its executables in /usr/local/sbin
instead of the regular /usr/sbin. weird, I specificly used --bindir. oh,
I see, should have used --sbindir... recompiling...


That file if I try to cat it has lots of garbled characters in it plus
text.

I also have a lircd.conf file in /etc/lirc/ and one in /etc/ not sure if
this screws anything up. I have the grey remote but I wanted to create
my own lirc.d file with my rca remote.


Also when I try to run the command

alexvd@mythtvfamilyfrontend:/etc$ /usr/local/sbin/lircd
--device=/dev/ttyS0 --driver=irman
lircd: can't open or create /var/run/lircd.pid
lircd: Permission denied.

Running it from root seems to have no issues.

I am open for additional troubleshooting steps. I think it is a serial
issue. However I cannot figure out where to troubleshoot.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 9:39 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
So I got a reply from the mythtv mailing list from a guy who got it working on Fedora. I posted below his response. I copied his lircd.conf over my existing lircd.conf, this was the default 350 grey remote file. (i have one from my pvr-250) However I need one that is for the .irman. Unfortunately it did not work.

I still believe it is a hardware issue with the serial port or permissions. So I ran the following just to be sure. I don't know if these are right? The mythtv user is alexvd. I ran these as root.

root@mythtvfamilyfrontend:~# ls -l /dev/lirc*
lrwxrwxrwx 1 root root 5 Dec 17 12:08 /dev/lirc -> ttyS0
crw-r--r-- 1 root root 61, 1 Oct 1 2005 /dev/lirc1
srw-rw-rw- 1 root root 0 Dec 29 20:51 /dev/lircd
prw-r--r-- 1 root root 0 Jul 30 2004 /dev/lircm


root@mythtvfamilyfrontend:~# ls -l /dev/ttyS0
crwxrwxrwx 1 root dialout 4, 64 Dec 29 20:51 /dev/ttyS0


R
Quote:
e: ira-3 oem with knoppmyth [In reply to]
>From: Alex VanDeusen <alex.vandeusen[at]gmail.com>
>Date: Thu, 28 Dec 2006 20:11:14 -0500
>
>I also have a lircd.conf file in /etc/lirc/ and one in /etc/ not sure if
>this screws anything up. I have the grey remote but I wanted to create
>my own lirc.d file with my rca remote.

I have the ira-3 running with the hauppauge grey remote on Fedora. You
don't mention that you've created a new lircd.conf for the ira-3. It will
not work with the happauge receiver lircd.conf. You need to use irrecord to
create it. So with lircd not running try something like this:

irrecord --device=/dev/ttyS0 --driver=irman <filename>

This creates a new lircd.conf which you put in the normal place.

Also make sure you have the correct permissions on /dev/ttyS0 (use chmod or
chgrp or whatever it takes to give your myth user full permission.)

The only other thing I needed to do was add:

LIRCD_OPTIONS="--driver=irman --device=/dev/ttyS0"

To /etc/sysconfig/lircd (which may be different for Knoppmyth I dunno).

As it turns out I have never (yet) figured out how to get the ira3 working
as well as the hauppauge receiver. It works but sometimes I need to hit
buttons two-three times. If anyone else is successfully using this
configuration please post your lircd.conf... here is mine:


# Please make this file available to others
# by sending it to <lirc[at]bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.8.0(irman) on Sat Dec 9 11:11:17 2006
#
# contributed by
#
# brand: ira3
# model no. of remote control: hauppauge grey
# devices being controlled by this remote:
#
# To record:
# irrecord --device=/dev/ttyS0 --driver=irman <filename>
#

begin remote

name ira
bits 24
eps 30
aeps 100

one 0 0
zero 0 0
pre_data_bits 16
pre_data 0xFFFF
post_data_bits 24
post_data 0x0
gap 215971
min_repeat 1
# toggle_bit 28
toggle_bit 0


begin codes
Power 0x060600
Go 0x180600
TV 0x840400
Videos 0x900400
Music 0x920400
Radio 0x240400
Pictures 0x270100
Guide 0x980400
UP 0x3C0100
LEFT 0x390100
RIGHT 0xE00400
DOWN 0x3E0100
OK 0xCE0100
Back-Exit 0x001200
Menu 0x260400
Record 0x600600
Stop 0x990100
Rewind 0x930100
Forward 0x9C0100
Play 0x9E0100
Pause 0x400600
Previous 0xCC0100
Next 0x810400
1 0x021000
2 0x030400
3 0x081000
4 0x0C0400
5 0x0E0400
6 0x090400
7 0x201000
8 0x300400
9 0x320400
0 0x001000
Channel-UP 0x000700
Channel-DOWN 0x020700
red 0x380400
green 0xE10100
blue 0xF20100
yellow 0x100600
end codes

end remote


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 9:46 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
I also have one other question. I can't figure out how to stop lirc

I believe the command should be /etc/init.d/lircd stop however if I run this i get:
root@mythtvfamilyfrontend:~# /etc/init.d/lircd stop
-bash: /etc/init.d/lircd: No such file or directory

So I also tried stopping just lirc

root@mythtvfamilyfrontend:~# /etc/init.d/lirc stop
to Starting Lirc... root@mythtvfamilyfrontend:~#

Dont know for sure if lirc is stopped now? I think this is because I changed the lirc file to reboot startup. That is why I get "starting lirc"

So is this right?

In order to run irrecord or I am pretty sure I have to stop lirc. How do i do this properly now?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 29, 2006 9:49 pm 
Offline
Joined: Wed Jun 01, 2005 3:59 pm
Posts: 199
So when I try to run irrecord this is what I get.

root@mythtvfamilyfrontend:~# /etc/init.d/lirc stop
to Starting Lirc... root@mythtvfamilyfrontend:~#
root@mythtvfamilyfrontend:~# irrecord --device=/dev/ttyS0 --driver=irman rca

irrecord - application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

irrecord: could not open /dev/ttyS0
irrecord: irman_init(): Connection timed out
irrecord: could not init hardware (lircd running ? --> close it, check permissions)


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 25 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu