yonubear
Posts: 90
Joined: Thu Sep 12, 2013 11:11 pm

Re: LIRC GPIO driver for homebrew adapter

Tue Feb 18, 2014 7:38 pm

Well for me at home 2 transmitters is fine even though I haven't even gotten 1 to work with Lirc as I can turn on the GPIO pin and the IR LED comes on if I use Lirc I get nothing. As to the modified module I am trying to get that working as I am attempting to pitch the Pi as a all in one solution to my boss to replace the dying control systems for 8 of our distance education class rooms I currently have a Pi controlling everything accept the 7 IR devices.

Now if someone can suggest a prebuilt IR transmitter that will do what I need I am all for it.


Thanks,
Yonu

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: LIRC GPIO driver for homebrew adapter

Wed Feb 19, 2014 8:11 pm

My soldering skills are poor, very poor, so I didn't fancy the homebrew route. Ok I have a couple of cobblers, some mini breadboards and jumper leads but no components so I bought a USB to IR transceiver (with RS232 and RS 485 interfaces too).

The device is unbranded but uses the Prolific Technology PL2303HX chip. Is there some way of getting this to work with LIRC? The device doesn't come with drivers but there are Windows drivers available on the internet. lsusb shows the device is plugged in but when I run:

Code: Select all

[email protected]:~# mode2 -d /dev/ttyUSB0
I get:

Code: Select all

mode2: could not get hardware features
mode2: this device driver does not support the LIRC ioctl interface
mode2: major number of /dev/ttyUSB0 is 188
mode2: make sure /dev/ttyUSB0 is a LIRC device and use a current version of the driver
Will it be possible for me to somehow obtain a Debian driver or is it never going to happen?

I know LIRC is the 'market leader' but I would try an alternative so is there any other Debian software that might work with this device?

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: LIRC GPIO driver for homebrew adapter

Wed Feb 19, 2014 11:00 pm

It appears Debian has the Pl2303 driver in the kernel and it sets the device as ttyUSB0.

On rebooting the Pi dmesg shows these entries:

Code: Select all

[    4.659597] usb 1-1.3.4.3: new full-speed USB device number 8 using dwc_otg
[    4.765722] usb 1-1.3.4.3: New USB device found, idVendor=067b, idProduct=2303
[    4.765753] usb 1-1.3.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.765769] usb 1-1.3.4.3: Product: USB-Serial Controller
[    4.765783] usb 1-1.3.4.3: Manufacturer: Prolific Technology Inc.
[   16.580617] usbcore: registered new interface driver usbserial
[   16.580743] usbcore: registered new interface driver usbserial_generic
[   16.597961] USB Serial support registered for generic
[   16.598013] usbserial: USB Serial Driver core
[   16.622028] usbcore: registered new interface driver pl2303
[   16.622174] USB Serial support registered for pl2303
[   16.622284] pl2303 1-1.3.4.3:1.0: pl2303 converter detected
[   16.682085] usb 1-1.3.4.3: pl2303 converter now attached to ttyUSB0
[ 7409.093688] input: lircd as /devices/virtual/input/input1
And after adding the URC22B remote details to lircd.conf when I run:

Code: Select all

[email protected]:~# sudo /etc/init.d/lirc start
The Pi responds with a promising:

Code: Select all

[ ok ] Loading LIRC modules:.
[ ok ] Starting remote control daemon(s) : LIRC :.
[ ok ] Starting execution daemon: irexec:.
sudo mode2 -d /dev/ttyUSB0 still gives the same error messages as in my last post.

I will look into this further but meanwhile does anyone know what I should be doing next to get LIRC running?

User avatar
Grumpy Mike
Posts: 909
Joined: Sat Sep 10, 2011 7:49 pm
Location: Manchester (England England)
Contact: Website

Re: LIRC GPIO driver for homebrew adapter

Sun May 04, 2014 9:30 am

I had great difficulty with this, ( lirc ) because the modulation frequency was not right.

Code: Select all

Frequency Set - Actual frequency
38000                45450
34000                38020
32000                36900
However, there is an issue with the Raspberry Pi kernel that was solved just four days ago.
See here for the full discussion:-
https://github.com/raspberrypi/linux/issues/525
Basically to see if you need an upgrade type in:-

Code: Select all

$ uname -rv
3.12.18+ #677 PREEMPT Mon Apr 28 22:45:00 BST 2014

$ /opt/vc/bin/vcgencmd version
Apr 28 2014 22:08:56
Copyright (c) 2012 Broadcom
version ae8e262 (clean) (release)
or later if you do not need an upgrade.

casete
Posts: 23
Joined: Sun Jun 01, 2014 3:09 pm

Re: LIRC GPIO driver for homebrew adapter

Sun Jun 01, 2014 3:16 pm

Thanks for the great driver! I've been slowly working on a home universal remote control and now that the kernel bug is fixed, I've been trying to make real progress. I had a version working on a breadboard with pin 23 for the out pin. I wanted to make my solution a bit more permanent and transferred it to a solder breakout board. For easier wiring, I switched to using pin 22 instead.

I've validated (using cameraphone) that I can turn the LED on and off from the command-line using the GPIO command. However, after changing my LIRC configuration in /etc/modules, I'm still not seeing anything out of the LED when using the IRSEND commands. To test, I am using SEND_START and using my phone... I see nothing when I do that.

Is there a reason that pin 22 should not work for LIRC? I'm not sure how difficult it would be for me to switch back to pin 23 at this point, so I'm hopeful there is something stupid I'm doing.

Thanks,
Craig

elmicha
Posts: 27
Joined: Tue Jul 03, 2012 4:43 pm

Re: LIRC GPIO driver for homebrew adapter

Sun Jun 01, 2014 6:05 pm

casete wrote:However, after changing my LIRC configuration in /etc/modules, I'm still not seeing anything out of the LED when using the IRSEND commands.
Is /etc/modules not the wrong file? Normally you would have a new file in /etc/modprobe.d and add an options line there, wouldn't you? You can see the effective parameters with "head /sys/modules/lirc_rpi/parameters/*".

casete
Posts: 23
Joined: Sun Jun 01, 2014 3:09 pm

Re: LIRC GPIO driver for homebrew adapter

Sun Jun 01, 2014 9:55 pm

Is /etc/modules not the wrong file? Normally you would have a new file in /etc/modprobe.d and add an options line there, wouldn't you? You can see the effective parameters with "head /sys/modules/lirc_rpi/parameters/*".
I had read previously that the settings went into /etc/modules. Running your command reflected the correct information. Strangely, it has started working correctly now. I have no idea why it wasn't working earlier.

Thanks for the help.
Craig

Massi
Posts: 1691
Joined: Fri May 02, 2014 1:52 pm
Location: Italy

Re: LIRC GPIO driver for homebrew adapter

Tue Jun 10, 2014 9:12 am

Hello everybody :)
i'm trying (with, i have to admit, a lot of fun) to decode my daikin AC protocol, i've seen someone did something similar with other AC in this thread so you can understand :)

First of all, i'd like to know if i'm "missing something" (noobness level: medium)
I'm using lirc, a ir receiver (33kHz) and "mode 2". What i get is ALL the message (so i can work on this) or it lacks, for examplet, of the "start condition"?
I'm working on what i see.. and daikis sends something like 73 BYTES for every message.. lol.. BYTES i said, not BITS.. a lot of stuff :)
What i can't understand is how can it end with a "pulse" and not a "space".. shouldn't it be odd instead of even? every bit is a couple of "pulse" and "space", my output is even..

The second question (noobness level: high) is if is there an "easy" way to send this 73byte message. Lirc can't handle raw data (not in a easy way, if i've understood this thread), is there andifferent way?
And this is the noobness level: critical :) can't i hope to manage the output "by hand" with a python script?
PWM should be achievable, but what about building the raw code? can python handle level switching at, i.e., 500 us?

Thank you really a lot, i'm having good fun with raspberry :)

vinifr
Posts: 3
Joined: Mon Jun 23, 2014 2:51 pm

Re: LIRC GPIO driver for homebrew adapter

Mon Jun 23, 2014 4:41 pm

Hi guys,

Is it possible to change the driver to use multiple pins(GPIOs) to read the IR signal? Something like:

Code: Select all

sudo modprobe lirc_rpi gpio_in_pin0=4  gpio_in_pin1=0 gpio_in_pin2=1 gpio_in_pin3=8

pera
Posts: 2
Joined: Tue Oct 21, 2014 8:35 pm

Re: LIRC GPIO driver for homebrew adapter

Tue Oct 21, 2014 8:46 pm

Hi,

can I somehow send raw data that i receive with mode2 directly to blaster?
irsend requires creation of conf file with ir codes, but I'd like to skip that.

I found this patch for lirc that allows irsend to send CCF signals (http://www.harctoolbox.org/lirc_ccf.html) but I dont know how to convert mode2 data (1305 463 1300 474 2198 475 ) to ccf data (0000 006C 0022 0002 015B 00AD 0016 0016 0016 0041 0016 0016 0016)?

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: LIRC GPIO driver for homebrew adapter

Tue Oct 21, 2014 10:09 pm

pera wrote:Hi,

can I somehow send raw data that i receive with mode2 directly to blaster?
irsend requires creation of conf file with ir codes, but I'd like to skip that.

I found this patch for lirc that allows irsend to send CCF signals (http://www.harctoolbox.org/lirc_ccf.html) but I dont know how to convert mode2 data (1305 463 1300 474 2198 475 ) to ccf data (0000 006C 0022 0002 015B 00AD 0016 0016 0016 0041 0016 0016 0016)?
There are software tools that will convert from RAW to CCF, such as AnalysIR but they would need to be stored in the conf file.
Not quite sure why you don't want a conf file. Could you explain a little more where the IR signals are coming from and going to.

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: LIRC GPIO driver for homebrew adapter

Tue Oct 21, 2014 10:20 pm

casete wrote:Thanks for the great driver! I've been slowly working on a home universal remote control and now that the kernel bug is fixed, I've been trying to make real progress. I had a version working on a breadboard with pin 23 for the out pin. I wanted to make my solution a bit more permanent and transferred it to a solder breakout board. For easier wiring, I switched to using pin 22 instead.

I've validated (using cameraphone) that I can turn the LED on and off from the command-line using the GPIO command. However, after changing my LIRC configuration in /etc/modules, I'm still not seeing anything out of the LED when using the IRSEND commands. To test, I am using SEND_START and using my phone... I see nothing when I do that.

Is there a reason that pin 22 should not work for LIRC? I'm not sure how difficult it would be for me to switch back to pin 23 at this point, so I'm hopeful there is something stupid I'm doing.

Thanks,
Craig
I use pin 22 and my system has been running fine all day. It is likely to be a bad connection somewhere.

pera
Posts: 2
Joined: Tue Oct 21, 2014 8:35 pm

Re: LIRC GPIO driver for homebrew adapter

Wed Oct 22, 2014 6:24 am

ilovemipi wrote:
pera wrote:Hi,

can I somehow send raw data that i receive with mode2 directly to blaster?
irsend requires creation of conf file with ir codes, but I'd like to skip that.

I found this patch for lirc that allows irsend to send CCF signals (http://www.harctoolbox.org/lirc_ccf.html) but I dont know how to convert mode2 data (1305 463 1300 474 2198 475 ) to ccf data (0000 006C 0022 0002 015B 00AD 0016 0016 0016 0041 0016 0016 0016)?
There are software tools that will convert from RAW to CCF, such as AnalysIR but they would need to be stored in the conf file.
Not quite sure why you don't want a conf file. Could you explain a little more where the IR signals are coming from and going to.
setup is like this, i have two RPis, one is receiver and another is IR blaster, receiver should send IR data over the network to the blaster. I don't know upfront what remote control and what device will be used so I just want to record raw IR data and reproduce them on the other side.

User avatar
ilovemipi
Posts: 161
Joined: Mon Dec 02, 2013 11:52 am
Location: UK + Cyprus
Contact: Website

Re: LIRC GPIO driver for homebrew adapter

Wed Oct 22, 2014 7:10 am

pera wrote:
ilovemipi wrote:
pera wrote:Hi,

can I somehow send raw data that i receive with mode2 directly to blaster?
irsend requires creation of conf file with ir codes, but I'd like to skip that.

I found this patch for lirc that allows irsend to send CCF signals (http://www.harctoolbox.org/lirc_ccf.html) but I dont know how to convert mode2 data (1305 463 1300 474 2198 475 ) to ccf data (0000 006C 0022 0002 015B 00AD 0016 0016 0016 0041 0016 0016 0016)?
There are software tools that will convert from RAW to CCF, such as AnalysIR but they would need to be stored in the conf file.
Not quite sure why you don't want a conf file. Could you explain a little more where the IR signals are coming from and going to.
setup is like this, i have two RPis, one is receiver and another is IR blaster, receiver should send IR data over the network to the blaster. I don't know upfront what remote control and what device will be used so I just want to record raw IR data and reproduce them on the other side.
Presumably using your network would give you a MUCH bigger range for the IR signals, something I was looking at just yesterday. I don't have any libraries to convert RAW to CCF but there are probably some out there somewhere. I'm not sure that LIRC can process the signals 'on the fly' from receiver to blaster but in principle it should be possible with modifications.

systemlordanubis
Posts: 2
Joined: Tue Oct 28, 2014 2:19 am

Re: LIRC GPIO driver for homebrew adapter

Tue Oct 28, 2014 2:27 am

Hi All,

I know this thread is getting a little old, but hopefully it's still alive and kicking...

I'm trying to compile Bengt's module to enable multiple 'out' gpio pins, but I'm encountering a few compile time errors and if I try to load the compiled module, it crashes the kernel. I tried loading his 'pre-compiled' module but that failed also.

This is the error I'm getting when compiling:

Code: Select all

[email protected]:/usr/local/src/lirc_rpi# make
make -C /lib/modules/3.12.31+/build M=/usr/local/src/lirc_rpi modules
make[1]: Entering directory '/root/linux-c1361d458506da3020b67f16032f5699b8907532'
  CC [M]  /usr/local/src/lirc_rpi/lirc_rpi.o
In file included from include/linux/module.h:17:0,
                 from /usr/local/src/lirc_rpi/lirc_rpi.c:28:
/usr/local/src/lirc_rpi/lirc_rpi.c: In function ‘__check_sense’:
include/linux/moduleparam.h:349:45: warning: return from incompatible pointer type [enabled by default]
  static inline type *__check_##name(void) { return(p); }
                                             ^
include/linux/moduleparam.h:395:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
include/linux/moduleparam.h:127:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
include/linux/moduleparam.h:113:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/usr/local/src/lirc_rpi/lirc_rpi.c:783:1: note: in expansion of macro ‘module_param’
 module_param(sense, bool, S_IRUGO);
 ^
/usr/local/src/lirc_rpi/lirc_rpi.c: In function ‘__check_softcarrier’:
include/linux/moduleparam.h:349:45: warning: return from incompatible pointer type [enabled by default]
  static inline type *__check_##name(void) { return(p); }
                                             ^
include/linux/moduleparam.h:395:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
include/linux/moduleparam.h:127:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
include/linux/moduleparam.h:113:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/usr/local/src/lirc_rpi/lirc_rpi.c:787:1: note: in expansion of macro ‘module_param’
 module_param(softcarrier, bool, S_IRUGO);
 ^
/usr/local/src/lirc_rpi/lirc_rpi.c: In function ‘__check_invert’:
include/linux/moduleparam.h:349:45: warning: return from incompatible pointer type [enabled by default]
  static inline type *__check_##name(void) { return(p); }
                                             ^
include/linux/moduleparam.h:395:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
include/linux/moduleparam.h:127:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
include/linux/moduleparam.h:113:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/usr/local/src/lirc_rpi/lirc_rpi.c:790:1: note: in expansion of macro ‘module_param’
 module_param(invert, bool, S_IRUGO);
 ^
/usr/local/src/lirc_rpi/lirc_rpi.c: In function ‘__check_debug’:
include/linux/moduleparam.h:349:45: warning: return from incompatible pointer type [enabled by default]
  static inline type *__check_##name(void) { return(p); }
                                             ^
include/linux/moduleparam.h:395:35: note: in expansion of macro ‘__param_check’
 #define param_check_bool(name, p) __param_check(name, p, bool)
                                   ^
include/linux/moduleparam.h:127:2: note: in expansion of macro ‘param_check_bool’
  param_check_##type(name, &(value));       \
  ^
include/linux/moduleparam.h:113:2: note: in expansion of macro ‘module_param_named’
  module_param_named(name, name, type, perm)
  ^
/usr/local/src/lirc_rpi/lirc_rpi.c:796:1: note: in expansion of macro ‘module_param’
 module_param(debug, bool, S_IRUGO | S_IWUSR);
 ^
  Building modules, stage 2.
  MODPOST 1 modules
  CC      /usr/local/src/lirc_rpi/lirc_rpi.mod.o
  LD [M]  /usr/local/src/lirc_rpi/lirc_rpi.ko
make[1]: Leaving directory '/root/linux-c1361d458506da3020b67f16032f5699b8907532'
Then, if I do actually try to load it, I get this message:

Code: Select all

[email protected]:/usr/local/src/lirc_rpi# insmod ./lirc_rpi.ko gpio_out_pins=18,4
[email protected]:/usr/local/src/lirc_rpi# 
Message from [email protected] at Oct 28 11:48:44 ...
 kernel:[  136.729820] Internal error: Oops: 80000007 [#1] PREEMPT ARM
Can anyone point me in the right direction here, I'm really wanting to make use of the multiple 'out' pins.

Thanks
Anubis.

rossiluis22
Posts: 1
Joined: Sun Dec 14, 2014 3:20 am

Re: LIRC GPIO driver for homebrew adapter

Sun Dec 14, 2014 3:39 am

Hi!!, I would like to use 2 IR to control 2 different HVAC, using the same RaspberryPi, but I don't know how I can do that, right now I'm only able to control 1 of the hvac's, I hope anyone can explain to me how to control 2 different GPIO IR. sorry for my English, I'm from Venezuela..

kdee
Posts: 1
Joined: Mon Apr 06, 2015 8:32 am

Re: LIRC GPIO driver for homebrew adapter

Mon Apr 06, 2015 9:14 am

Hi!

I tried to use my raspberry pi to control 5 air conditioners. When I use the standart lirc_rpi it works perfectly with one air conditioner. But when I use the Bengt Martensson’s lirc_rpi it doesn't work. LIRC starts and I can send codes from any GPIO pin, but it sends wrong codes.

I use an another RPI to check the IR commands. For example:

With the Bengt Martensson’s lirc_rpi:

Sent:
3375 1649 426 429 368 1217
408 433 457 384 418 1216
371 436 396 1225 424 424
436 396 449 1165 422 1195
428 1226 405 419 401 1232
392 430 416 1224 397 1213
397 1230 408 423 395 462
375 422 457 383 533 1094
419 1199 447 397 408 1216
399 1214 426 425 378 450
436 1255 351 411 397 435
421 1201 393 441 400 429
388 1252 366 1271 382 417
386 1231 404 1203 412 1220
400 481 360 425 419 1216
394 1214 408 1246 393 1209
412 410 429 409 407 1225
410 1201 455 419 379 421
349 456 388 437 370 1279
414 1198 418 1212 408 1222
414 1213 396 1271 349 1223
408 1230 390 1216 395 434
414 381 485 387 359 467
393 429 382 441 376 463
353 472 373 417 400 1251
427 1192 432 1233 394 374
456 412 377 1233 419 1219
414 1209 451 374 366 484
345 474 338 1270 412 1193
435 461 267 509 368

Recieved:

3131 1589 502 334 410 1122
422 380 533 264 481 1118
418 352 484 1107 446 353
512 287 530 1045 440 1137
440 1166 430 358 424 1193
374 449 371 1177 420 1193
379 1169 419 387 404 394
461 303 527 271 597 984
476 1105 450 372 457 1111
417 1199 399 365 489 306
501 1149 367 359 529 280
466 1108 404 386 485 320
445 1154 437 1205 360 392
435 1120 416 1147 428 1171
425 462 386 320 480 1125
400 1158 422 1201 407 1160
424 386 476 305 471 1113
520 1061 520 293 468 297
435 347 465 315 486 1148
466 1121 453 1111 421 1170
478 1109 425 1218 364 1175
410 1185 454 1113 505 283
481 276 553 272 449 344
457 332 455 329 460 344
427 410 413 298 475 1141
499 1083 503 1114 460 273
526 299 456 1121 499 1105
476 1102 523 306 386 385
436 349 407 1172 477 1089
518 336 362 385 436

As you see, length of the pulses and spaces differents especially at the header. The air conditioner did't work with this code.

With the default lirc_rpi I recieved approximately the same as sent and the AC worked.

I have no idea how to resolve this problem. I tried to change the LIRC_TRANSMITTER_LATENCY to default 50, but it didn't help. Could you help me?

Noel Hibbard
Posts: 5
Joined: Mon Sep 29, 2014 3:29 pm

Re: LIRC GPIO driver for homebrew adapter

Wed Jul 22, 2015 1:52 pm

I see a lot of people asking for multiple outputs. Here is a solution:
http://www.harctoolbox.org/lirc_rpi.html

sofakng
Posts: 4
Joined: Fri Oct 19, 2012 1:47 pm

Re: LIRC GPIO driver for homebrew adapter

Fri Dec 11, 2015 5:46 pm

Does anybody know if I can connect a simple 3.5mm mono-plug (carrying IR signals from a home automation system) to the GPIO pins and use lirc_rpi to decode them?

I'm trying to build a simple IR-to-HDMI-CEC box.

The home automation controller would send an IR signal over a 3.5mm mono-cable (GND and DATA) and then the RPi would decode the signal and issue an HDMI-CEC command.

Thanks for any help!

Virgus
Posts: 2
Joined: Thu Jul 11, 2013 11:34 pm

Re: LIRC GPIO driver for homebrew adapter

Tue Jan 19, 2016 1:54 am

Hello,
as many others before, I'm struggling to compile Bengt Martensson's enhanced driver for my RPi.

To compile lirc_rpi.c I'm following Martin's (mba) instructions as per his post in this thread of Thu Aug 09, 2012
but it's hard to adapt them to the jessie kernel 4.8.3 which I'm using.
I had to add 7.b command "modprobe configs" command before point 8. (zcat /proc/config.gz > .config).
Then, trying to follow http://aron.ws/projects/lirc_rpi/kernel ... -0.3.patch instructions I executed instructions
19 and 20 after 7 and then got back to Martin's ./autogen.sh etc commands.
I ended with no errors but no lirc_rpi.ko file was created.
I suppose some missing/different commands made the process fail on jessie.

Could anybody please point me to an updated link where to find the procedure to get the driver compiled correctly?
Thanks for any help you might give me.
V.

nlecaude
Posts: 4
Joined: Fri Jun 07, 2013 2:33 pm

Re: LIRC GPIO driver for homebrew adapter

Tue Apr 19, 2016 1:23 am

Hello, little bump on this thread, anybody was able to successfully compile the driver that allows multiple transmitters ? Any tips welcomed !

Thanks

Akriss
Posts: 11
Joined: Wed Jul 23, 2014 8:33 am

Re: LIRC GPIO driver for homebrew adapter

Fri Jun 24, 2016 3:13 am

Hello,

I have been using Bengt Martensson's “Improved LIRC driver” for a wile now. With multiple transmitters. With great success. Up to kernel 4.1.15 and firmware as of “17cf280ac76df9d9c3d1305709cc2d74fbc371b9” git hash. After that is where the DTS overlays are used and I don't understand it, and can not get it to work after compiling.

I'll attach my compiled lirc_rpi.ko.

And how to get it to work:

Goto http://downloads.raspberrypi.org/raspbi ... 015-11-24/ and download 2015-11-21-raspbian-jessie.zip and install it.

After install, run in a terminal:

sudo rpi-update 17cf280ac76df9d9c3d1305709cc2d74fbc371b9

sudo apt-mark hold raspberrypi-bootloader

sudo apt-get update

sudo apt-get upgrade

sudo apt-get install lirc


Then drop the compiled lirc_rpi.ko in \lib\modules\4.1.15+\kernel\drivers\staging\media\lirc

The only way I was able to load the module was to add a line to “/etc/rc.local” like such:

modprobe lirc_rpi gpio_in_pin=10 gpio_out_pins=0,1,4,7,8,9,11,23

exit 0


That will give you a working multi lirc transmitter.

Thanks To: Aron Szabo , Bengt Martensson .

I hope it's of help.
Kris.
Attachments
lirc_rpi.ko.4.1.15.zip
(17.59 KiB) Downloaded 107 times

Nexet
Posts: 4
Joined: Thu Jul 02, 2015 2:16 pm

Re: LIRC GPIO driver for homebrew adapter

Wed Jul 20, 2016 9:49 am

hi, I have downloaded the lirc source changed (http://www.harctoolbox.org/lirc_rpi.html#Installation), I downloaded the kernel sources and integrated lirc changed, then I compiled and installed.
When I boot from this mistake, and hangs the raspberry.

https://s31.postimg.org/s02hvb85n/lirc.jpg

Nexet
Posts: 4
Joined: Thu Jul 02, 2015 2:16 pm

Re: LIRC GPIO driver for homebrew adapter

Wed Jul 20, 2016 12:34 pm

i have compiled this lirc , you could test it and let me know if everything is ok? thanks
Attachments
lirc_rpi.zip
compiled on kernel 4.4.11-v7+
(8.6 KiB) Downloaded 84 times

mattmiller
Posts: 2061
Joined: Thu Feb 05, 2015 11:25 pm

Re: LIRC GPIO driver for homebrew adapter

Wed Jul 20, 2016 12:48 pm

Can't help with you issue but normal LIRC works absolutely fine for 1 pair of IR Rx and Tx - not need for new version

Return to “HATs and other add-ons”