Active Topics

 


Reply
Thread Tools
Posts: 526 | Thanked: 99 times | Joined on Sep 2009
#1
Hi All a friend of mine is looking for some help here is his request


right, I need a command to take a raw code string as an argument and LIRC IRSEND it, anyone want to knock this up for me?
__________________
Christopher Stobbs

My Blog
 
Posts: 883 | Thanked: 980 times | Joined on Jul 2007 @ Bern, Switzerland
#2
He could download my shutter widget, then start his work based on that.
Does he already have a configuration file with his raw code in it?
Then just add that config file to his lirc config and extend shutter for his device - not much work indeed.
Or even simpler, abuse one of the existing remote configs coming with shutter (they are in /opt/tomch.com/shutter). He must just rename my original file for the cam he sure doesn't need, then insert his own config file and rename it to the same remote and command names that I use.
__________________
-Tom (N900, N810, N800)

"the idea of truly having a computer in your pocket just moved a big step closer."
 
Posts: 45 | Thanked: 34 times | Joined on Feb 2010
#3
Actually it's a bit more complex than that.

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.
__________________
-----
Posts about my trial N900 can be found at: http://doitdifferent.wordpress.com/
 
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."
 
Posts: 45 | Thanked: 34 times | Joined on Feb 2010
#5
It's for helicopter control code as per here:

http://doitdifferent.wordpress.com/2...-story-so-far/

I've written code to generate the IR pulses... though that's not working just now so this might all be a moot point anyhow. So not worth spending effort on this part of the problem for now.
__________________
-----
Posts about my trial N900 can be found at: http://doitdifferent.wordpress.com/
 
Posts: 45 | Thanked: 34 times | Joined on Feb 2010
#6
So, this is what I was up to:
http://bit.ly/9vjuDO
__________________
-----
Posts about my trial N900 can be found at: http://doitdifferent.wordpress.com/
 
Posts: 526 | Thanked: 99 times | Joined on Sep 2009
#7
I love your work bro
__________________
Christopher Stobbs

My Blog
 
Reply


 
Forum Jump


All times are GMT. The time now is 05:56.