beaglebone to receive infrad remote control with one GPIO pin?

2,569 views
Skip to first unread message

Yiling Cao

unread,
Feb 12, 2013, 8:47:50 AM2/12/13
to beagl...@googlegroups.com
Hi, I have an infrared sensor receiver connected to one of the GPIO pins of beaglebone, and I can echo value of the GPIO pin in linux. I would like to it to decode TV remote control signals.

My question is should I hack the kernel to enable its support? or Just write a linux user space program? Thanks


Yiling Cao

unread,
Feb 12, 2013, 12:21:52 PM2/12/13
to beagl...@googlegroups.com
Ok I made it work by using lirc + gpio existing kernel drivers. still fixing it up.

Yiling Cao

unread,
Apr 5, 2013, 2:40:35 AM4/5/13
to beagl...@googlegroups.com
Yes I have used some existing code from Raspberry Pi community. But I have only used receiving part.

read 1: http://aron.ws/projects/lirc_rpi/

read 2: http://forum.stmlabs.com/showthread.php?tid=1954


basically you make:

* a kernel driver and specify GPIO pin number

* install lirc (installed by apt-get) and init.d auto start,  make a conf file enable lirc to decode and sends input back to kernel (/dev/input/uinput something like this)


it is very reliable so far. and basically you can make a IR remote to become a keyboard device to your beaglebone.





On Thu, Apr 4, 2013 at 2:07 AM, <nathan...@gmail.com> wrote:
Hello c2h2,

I'm trying to get something similar working. Could you possibly explain how you were able to get lirc working on the beaglebone? I've written a user space program in C to read the IR signals, but I would like a more reliable way of doing this. Also, are you outputting the signals back to an IR LED, and if so, have you find a way to reliably do this? I've written C code to output saved IR signals to a GPIO pin, but since it's in user space, and relies on software timing, it doesn't always work correctly. Any help would be very appreciated, thanks!

-Nathan

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Yiling Cao

unread,
Apr 8, 2013, 11:14:51 PM4/8/13
to beagl...@googlegroups.com
I'd love to, but don't have time to tidy up all the stuff, meanwhile plz just use the patch from the rasp pi community



On Mon, Apr 8, 2013 at 4:35 PM, <ovi...@gmail.com> wrote:
I am interested in this too. Could you make your code available on github?

Thanks,
Ovidiu

pli...@gmail.com

unread,
Oct 11, 2013, 11:06:22 AM10/11/13
to beagl...@googlegroups.com
Hi,

have anybody managed to get Lirc workin?

if so, can somebody give me directions, how to do that ?

vitormh...@gmail.com

unread,
Jan 7, 2014, 1:29:22 AM1/7/14
to beagl...@googlegroups.com, pli...@gmail.com
Any progress on this?!

Vitor Henrique

143.ma...@gmail.com

unread,
Jan 16, 2014, 7:57:21 AM1/16/14
to beagl...@googlegroups.com

hi,,I want to transmit lirc code using beaglebone black gpio. anyone got success..?/ I kindly request all you to help me please...

Eric Fort

unread,
Jan 16, 2014, 1:13:06 PM1/16/14
to beagleboard
no success or experience here but it seems like it would be a nifty
app for the PRUSS on the beagle, especially as that subsystem was
initially intended for handling and implementation of various serial
protocols. turning this into a PRUSS driver that exposed for instance
/dev/remote/sony and/or /dev/remote/panasonic etc. would be kinda
cool. simply write a specific button press character to the device
file and magically get a code stream out, or read a code stream and
have the characters buffered and ready to read from the device file.

Eric

On Thu, Jan 16, 2014 at 4:57 AM, <143.ma...@gmail.com> wrote:
>
> hi,,I want to transmit lirc code using beaglebone black gpio. anyone got
> success..?/ I kindly request all you to help me please...
>

mrma...@gmail.com

unread,
Feb 25, 2014, 8:06:11 PM2/25/14
to beagl...@googlegroups.com
not sure, if i've made it correctly, but at least it works :D
https://github.com/hani93/lirc_bbb


ece0...@myport.ac.uk

unread,
Apr 19, 2014, 1:36:03 PM4/19/14
to beagl...@googlegroups.com, mrma...@gmail.com
Could i just ask you guys how you managed to install LIRC? I'm trying now and opkg is returning with no package found and doing it from source is just throwing up loads of errors, 
Thanks,
Adam.

Martin Hani

unread,
Apr 19, 2014, 1:40:41 PM4/19/14
to ece0...@myport.ac.uk, beagl...@googlegroups.com

Sorry. Can't remember. But i think i installed it via apt-get install lirc .  But i'm not 100% sure.

Martin Hani

unread,
Apr 19, 2014, 1:42:01 PM4/19/14
to ece0...@myport.ac.uk, beagl...@googlegroups.com

spot...@gmail.com

unread,
Jun 3, 2014, 6:53:09 AM6/3/14
to beagl...@googlegroups.com, ece0...@myport.ac.uk, mrma...@gmail.com

   Hi Martin, I really like the idea of digging into LIRC on the BBB and throwing codes through OpenRemote.
I flashed Debian to the eMMC did an; 
apt-get install lirc

After I did that, I cloned your RPi adjusted kernel git to the BBB and turned off lightdm to save resources as it will be headless.
http://dumb-looks-free.blogspot.com/2014/04/beaglebone-black-bbb-disable-debian.html

   So the question is, how do I install this patch? (Err, what do I do with it)
Then of course, how to auto-start lirc?  (I swear, Googling this shouldn't come up with so many vagueries, and I much prefer  chkconfig!  :-(  )
I haven't dug around in systems at this level too often and precise answers are so helpful, thank you!


   ps, Sorry for all the stupid questions about something you likely did off-the-cuff FOREVER ago!

Martin Hani

unread,
Jun 3, 2014, 9:21:13 AM6/3/14
to spot...@gmail.com, ece0...@myport.ac.uk, beagl...@googlegroups.com

I'm not so good at linux especially in kernel compiling, but i got it working by downloading kernel sources, and then applyed that patch to kernel and at menuconfig , enabled lirc_bbb.
Hope it clears things up. Also, i have not tested it with latest kernels. When i get some time, i'll try to compile it again/test and make some sort of tutorial or so...

Ps. You are not first person who asks about "how to get it working"

Currently i have so limited time that i can't even get to computer, but i'll start looking at it in few days.

(Also, i know my "english" is not good, but i hope you get the point, that i wanted to say...)

Martin

Reply all
Reply to author
Forward
0 new messages