View Single Post
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#4
Originally Posted by the_accidental View Post
As I said, I want to send a raw (pulse space encoded) IR signal, in the format used by the lirc conf files, (like using an "irsend SEND_ONCE blah blah...") but without having the configuration file. I want to pass the code as an argument (or a file as an argument) to the program.
I might just rewrite irsend to do what I want, but it's time consuming.
Don't be too proud to cheat, it's only software
Why don't you work with a "variable" config file? Simply write the argument into the config file before calling irsend the usual way.
Then do /etc/init.d/lircd reload
Now issue your command using IRSEND

Depends a bit on performance/timing needs, if you tell us a bit more we might help better.
__________________
-Tom (N900, N810, N800)

"the idea of truly having a computer in your pocket just moved a big step closer."