Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
infrared... is this possible?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Sun Mar 21, 2004 7:25 pm    Post subject: infrared... is this possible? Reply with quote

Ok, here's the deal:
I wanted to steal the remote control from my tv and use it for my computer... this shouldn't be a problem, I understand that's lirc's main use.
Thing is, an infrared port costs quite a bit (about 40 euros 8O ) so I asked my friends a bit, and found that one of them had these wireless headphones which use an infrared connection to receive data; problem (at least I think it's a problem): the base (I don't know what to call it, anyway, the thing that sends data to the headphones) has a jack like the ones that you plug into your sound card...
so, is it hopeless? or can I somehow use my remote control anyway?
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
tredman2
Apprentice
Apprentice


Joined: 06 Dec 2002
Posts: 169
Location: Holiday, FL

PostPosted: Sun Mar 21, 2004 7:32 pm    Post subject: InfraRed Reply with quote

mirko_3,

Checkout LIRC. They have alot of home grown infrared projects for Linux. Some of the software is even in the portage tree (app-misc/lirc, dev-python/pylirc and media-plugins/xmms-lirc), but the hardware pointers are on the web site.

Tim
_________________
Tim
"I drank what?" - Socrates, 399 BCE
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Mon Mar 22, 2004 1:26 pm    Post subject: Reply with quote

yeah, I know about lirc, but the question was - is it possible to send/receive signals through my sound card, as that's where I would have to connect the infrared device...
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Mar 22, 2004 1:33 pm    Post subject: Reply with quote

mirko_3 wrote:
as that's where I would have to connect the infrared device...


Wrong.....you just need a soldering iron and some patience.....google a bit with the make of the base station and see what you get
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
genneth
Apprentice
Apprentice


Joined: 24 Mar 2003
Posts: 152
Location: UK

PostPosted: Mon Mar 22, 2004 2:01 pm    Post subject: Reply with quote

mirko_3 wrote:
yeah, I know about lirc, but the question was - is it possible to send/receive signals through my sound card, as that's where I would have to connect the infrared device...

I presume that the earphone would send the data over as sound data... so you could write a userland program which watches the mic channel, and does a modem-like function and transform the data. So watch the mic channel and mash your remote a little, and see whether anything gets picked up.
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Mar 22, 2004 2:13 pm    Post subject: Reply with quote

Logically the reciever should just send out what it recieves as is, so there shouldn't even be modulation, just an exact[1] copy of the original output from the headphones/tv remote. Hooking the wires upto a serial port and watching that rather than the sound card would be a better bet I would think. Try it and see, a multimeter/scope on the led terminals on the remote, and on the output from the reciever (or better the signal you get fom the serial port, or both) should tell you if I'm right. Your looking for a matching signal.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Mon Mar 22, 2004 2:22 pm    Post subject: Reply with quote

philips sbc hc042 is the brand and model of the base, and google turned up two useless pages of results; as for hooking it up to the serial port, I'll look into it later, I have to study now... I hope a soldering iron doesn't cost too much :D
as for programming, I only know what I read a couple years ago in my 'Sams Teach Yourself: C++ in 24 hours' - good book, but nothing practical, I don't know what libraries have what I need, ecc.
So I guess that's somewhat ruled out... (not totally, If I find a good tutorial somewhere... also postponed until I've finished studying)

thanks[/quote]
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Useful Idiot
Guru
Guru


Joined: 30 Aug 2002
Posts: 329
Location: Finland

PostPosted: Mon Mar 22, 2004 2:25 pm    Post subject: Reply with quote

Are you perhaps looking for something like this? At the end there are some instructions on how to setup your software. Both lirc and portaudio are in portage but if you emerge them you might have to do some hacking.
_________________
[size=9]We are all in the gutter, but some of us are looking at the stars.
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Mon Mar 22, 2004 3:41 pm    Post subject: Reply with quote

hey, that seems to be exactly it...
now I patched the kernel, have a /dev/lirc/lirc0 file, can start the lirc daemon, and fount a config file. Only I can seem to get no i/o :(
I compiled lirc with the --with-driver=audio option.

I tried using irrecord --force and pushing buttons on my remote, but I get nothing.. the receiver is plugged into my sound card; must I define which jack? there seemed to be no reference to it on the link...

also, no hacking to be done for emerging them except defining --with-driver=audio in lirc's ebuild...
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Mon Mar 22, 2004 4:12 pm    Post subject: Reply with quote

update:
could it be that the device I'm trying to use as receiver is only capable of sending infrared signals?
I've plugged it into the line in slot, tried unmuting the relevant controls in alsamixer, and pressing some buttons on the remote. nothing
I've plugged it into the mic slot, unmuted the relevant controls, pressed the buttons, nothing. Only thing is, after unmuting the mic, if I move the jack in the sound card slot, I hear some noise in the speakers (like when you move the speaker's jack). this doesn't happen with the line in, so I'm sticking with this one.
I'm not even using lirc yet - I figured that I first had to get some noise on my speakers with the remote control, then start lirc to decode signals...
...help? :(
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
nevynxxx
Veteran
Veteran


Joined: 12 Nov 2003
Posts: 1123
Location: Manchester - UK

PostPosted: Mon Mar 22, 2004 4:23 pm    Post subject: Reply with quote

Ohhhh thats a transmitter isn't it........emmm....audio being a one way thing, I'd say your right and there isn't a reciever in there. There would be 1 on the headphones though. It seems a little strange to use ir for headphones though, are you sure it doesn't use radio? having wireless headphones that need line of sight to the reciever seems a lot strange to me.
_________________
My Public Key

Wanted: Instructor in the art of Bowyery
Back to top
View user's profile Send private message
mirko_3
l33t
l33t


Joined: 02 Nov 2003
Posts: 605
Location: Birreria

PostPosted: Mon Mar 22, 2004 4:32 pm    Post subject: Reply with quote

http://cgi.ebay.com.au/ws/eBayISAPI.dll?ViewItem&item=3065090417&category=3274

check it out, it's infrared...
so I guess this thing is useless... :(
_________________
Non fa male! Non fa male!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum