IR Blaster for N1

Moderators: mdrjr, odroid

IR Blaster for N1

Unread postby mad_ady » Wed Jul 11, 2018 10:17 pm

I'd like to add an IR blaster to my N1 (on the GPIO) and adapt the lirc_odroid module from xu4 (either from 4.9 branch or from 4.14) to work on N1's 4.4.

Since I haven't done kernel development nor hacking - my plan is to transplant the code over and look at how a GPIO is mapped to the driver. Most likely that will need adjustment. Any suggestions at what I should look for in addition to that?

I'll post feedback once I finish the hardware build (can't find my transistors at the moment) :D
User avatar
mad_ady
 
Posts: 4453
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: IR Blaster for N1

Unread postby joy » Wed Jul 25, 2018 5:05 pm

Hi mad_ady,

Based on the common approach from C2 and XU4, lirc_odroid module is needed to run IR blaster.
Here are the examples.
- XU4
https://github.com/hardkernel/linux/blo ... c_odroid.c
- C2
https://github.com/hardkernel/linux/blo ... c_odroid.c

I've tried to find another good approach like running application over userspace without modifying kernel side, but I haven't. :(
joy
 
Posts: 496
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: IR Blaster for N1

Unread postby mad_ady » Wed Jul 25, 2018 6:25 pm

Yes, that's what I had in mind. I'm not sure where you map GPIO to the module, but I will look into it.
User avatar
mad_ady
 
Posts: 4453
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1

Re: IR Blaster for N1

Unread postby joy » Wed Jul 25, 2018 6:34 pm

I think you can quickly catch the way when you look through the source code. :)

The common gpio functions like "gpio_request", "gpio_direction_output" and "gpio_set_value" are used
and using a module param, a specific gpio number is assigned.
joy
 
Posts: 496
Joined: Fri Oct 02, 2015 1:44 pm
languages_spoken: english
ODROIDs: ODROID-C1+, XU4, X

Re: IR Blaster for N1

Unread postby mad_ady » Wed Jul 25, 2018 6:43 pm

Thanks. I'll see when I can free up some time to look around :)
User avatar
mad_ady
 
Posts: 4453
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1


Return to Hardware and peripherals

Who is online

Users browsing this forum: No registered users and 2 guests