[mythtv-users] Serial control of a TV

Mitch Gore mitchell.gore at gmail.com
Fri Mar 20 02:36:23 UTC 2009


>
> Now, i just need to map this to a button/script.
>

Ok i wrote a simple scirpt to send the cmd:

[root at mythtv ~]# cat /usr/bin/pj_cont
#this script controls Optoma HD80 via serial connecion. takes in 1 variable
as $1 and adds that to the cmd to be sent.

#set baud rate
stty -F /dev/ttyUSB0 115200


echo "* 0 IR "$1"\r" > /dev/ttyUSB0

It works great.  but i would like to make it easier to use.

Right now, i have to call it by

pj_cont 008

this brings the menu up.  I would like to save all the numbers to keys in an
array or simpilar so i can say

pj_cont menu

and the script pulls up the correct number and sends it.

Next,
i cant get power on to work.  The manual says

Viewed as           command                                     descrip.
OKOKOKOKOK OKOKOKOKOK<CR> <LF> -- s Power On Default ACK

Sending
echo "OKOKOKOKOK\r\n" does not power on the pj.  Am i reading something
wrong?

Thanks,
Mitchell
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-users/attachments/20090319/4cbe63e6/attachment.htm>


More information about the mythtv-users mailing list