View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 8 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Homebrew Lirc receiver.
PostPosted: Fri Aug 27, 2004 5:56 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
Ok i made a homebrew lirc receiver.. after some tinkering.. im on the finish-line.. but not quite done.

i recompile lirc
then
Code:
setserial /dev/ttyS0 UART none

now im able to modconf and add lirc_serial

when i use mode2 it sees the remote keystrokes just fine. I even used irrecord to create a new .lirc file. the only thing that doesnt work is myth. do i have to recompile mythtv inorder to have the new lirc support.. When installed knoppmyth i chose the REMOTE install..

so my homebrew works great.. and lirc compiles fine... irrecord works.. so does mode2.. myth does not. =(


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 27, 2004 6:17 pm 
Offline
Joined: Fri Sep 19, 2003 7:05 pm
Posts: 5088
Location: Fontana, Ca
irrecord isn't used to create .lircrc rather it is used to create /etc/lircd.conf. MythTV doesn't use ~/.lircrc but rather ~/.mythtv/lircrc. When it doubt, read the docs for the program you are trying to use, KnoppMyth in no way deviates from them.

_________________
cesman

When the source is open, the possibilities are endless!


Top
 Profile  
 
 Post subject:
PostPosted: Fri Aug 27, 2004 6:46 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
Quote:
irrecord isn't used to create .lircrc rather it is used to create /etc/lircd.conf.


i miss-spoke, however that is what i meant. i created a lircd.conf file with irrecord. I used the names from the ./myth/lirc like BLANK and such. I in no way changed the .myth/lirc file, but myth still doesnt work... hmmm i must have missed something.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 2:46 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
I seem to have hit a roadblock. :( I cant get lirc to work. From one of my working stock knoppmyth boxes if i try

Code:
mode2


it says cant run it becase \dev\lirc is being used. On my non working box it lets me run it, that tells me that lirc is not running. Here is how i buildt my box. I recompiled Lirc using these steps
1) untar the kernel source using walkthough on forum
2) ./configure choose homebrew lirc
3)make
4)make install
5) at this point i cant modconf the module lirc_serial (which im not sure, but i should load that right? so i have to run
Code:
setserial /dev/ttyS0 uart none

6) NOw because of the previous command "setseral /dev/ttyS0 uart none" it will let me load the lirc_serial, and it will install the module

like i said input from the remote is working great using mode2. As near as i can tell lirc is NOT running .. I dont see it on TOP course i dont think top actualy shows everything, it seems to only show what the screen has room for.. I have read every howto i could get my hands on, including the FAQ on lirs website. I did the howto for the homebrew as well. Also my last thing.. i have read that people use modprobe ati_lirc (or something like that if you have an ati, what do i do if im not using an ati?)

:cry: somebody help before a grown man cries ...



ps
:D


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 3:21 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
well small update.. in all my attempts.. it started working..
i was just typeing along.. and typed
mode2
it regected me saying that /dev/licr is in use!!!!! YEAH
so i started myth and bam!i could use the remote and the homebrew receiver fine.. I have no idea what i did though.. so after testing it, i held my breath.. and rebooted.. and what i thought happened.. it stoped working again. I read about howto update-modules. (or something like that.. ill look again when im closer) i just need to figure out why it started working to begin with??


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 3:29 pm 
Offline
Joined: Wed Jun 30, 2004 4:08 pm
Posts: 31
try to write in /etc/init.d/local

setserial /dev/ttyS0 uart none
modprobe lirc_serial

then as root

chmod +x /etc/init.d/local
update-rc.d local defaults 34


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 3:45 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
well i copied and pasted all the lines.. and rebooted.. umm here is what it says when i mode2

Quote:
mode2: error opening /dev/lirc
mode2: No such device

here is what it says when i
Code:
irrecord a.txt


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

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

irrecord: could not open /dev/lirc
irrecord: default_init(): No such device
irrecord: could not init hardware (lircd running ? --> close it, check permissions)



/dev/lirc no loger exits.. all the lines seem self explanitor except
Quote:
update-rc.d local defaults 34


i still have to run setserial and modconf to get /dev/lirc to appear


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 4:20 pm 
Offline
Joined: Thu Apr 01, 2004 10:44 am
Posts: 677
Location: WA
*********************** SOLVED *********************

Wow good thing.. cause my computer was gonna grow wings and fly out a 2 story window.... (not that joking) i am going todo a complete howto in the howto section, so newbies dont have to go though what i just went though.. so coming soon. (but good side wow i learned alot) :D

On bootup this needed to run
Code:
setserial /dev/ttyS0 uart none

Code:
modprobe lirc_serial

Code:
/usr/local/sbin/lircmd

Code:
/usr/local/sbin/lircd



the last two where the ones i was missing.. little thing like starting the program.. lol .. Weird as many howtos i read never saw that i was suppose to run those.. finally google'ing it i found alittle howto...

Thanks for letting me vent here. :)

<sighhhh of releif>


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 75 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu