[mythtv-users] DCT700 IR Blaster

Daryl McDonald darylangela at gmail.com
Sat Aug 10 23:05:37 UTC 2013


On Sat, Aug 10, 2013 at 9:21 AM, Stephen Worthington <
stephen_agent at jsw.gen.nz> wrote:

> On Sat, 10 Aug 2013 08:04:08 -0400, you wrote:
>
> >On Fri, Aug 9, 2013 at 11:24 PM, Stephen Worthington <
> >stephen_agent at jsw.gen.nz> wrote:
> >
> >> On Fri, 9 Aug 2013 22:46:44 -0400, you wrote:
> >>
> >> >On Fri, Aug 9, 2013 at 9:01 PM, Stephen Worthington <
> >> >stephen_agent at jsw.gen.nz> wrote:
> >> >
> >> >> On Fri, 9 Aug 2013 19:22:09 -0400, you wrote:
> >> >>
> >> >> >I'm in the middle of setting up my STB and LIRC, I've been following
> >> the
> >> >> >link at "
> >> >> >
> >> https://help.ubuntu.com/community/Motorola_DCT700_Channel_Change_Script
> "
> >> >> >and when I get to the test the blaster part this is what the
> terminal
> >> >> >returns...
> >> >> >
> >> >> >daryl at daryl-A780L3C:~$ sudo /etc/init.d/lirc restart
> >> >> >[sudo] password for daryl:
> >> >> > * Stopping remote control daemon(s): LIRC
> >>   [
> >> >> >OK ]
> >> >> > * Loading LIRC modules
> >>    [
> >> >> >OK ]
> >> >> > * Starting remote control daemon(s) : LIRC
> >>    [
> >> >> >OK ]
> >> >> >daryl at daryl-A780L3C:~$ irsend SEND_ONCE DCT700 info
> >> >> >irsend: command failed: SEND_ONCE DCT700 info
> >> >> >irsend: unknown remote: "DCT700"
> >> >> >daryl at daryl-A780L3C:~$ irsend SEND_START DCT700 info
> >> >> >irsend: command failed: SEND_START DCT700 info
> >> >> >irsend: unknown remote: "DCT700"
> >> >> >daryl at daryl-A780L3C:~$
> >> >> >
> >> >> >The emitter remained unlit throughout the test, I'm guessing that
> myth
> >> >> >doesn't know what serial port I'm using? I've configured LIRC in
> Myth
> >> >> >Control Center, by enabling an IR transmitter and selected "Serial
> port
> >> >> >(UART) Motorola cable box". What have I missed? Also I have not
> >> configured
> >> >> >nor do I use a remote for live TV viewing, I just need to control
> the
> >> STB
> >> >> >for recording. I run a single box front and back end connected to a
> TV
> >> via
> >> >> >HDMI, so live TV is very simple.
> >> >> >
> >> >> >Daryl
> >> >>
> >> >> That error message normally means that lirc can not find a
> >> >> configuration with a "name DCT700" line.  So where did you put the
> >> >> file with your DCT700 definition that you coped from that web page?
> >> >> Does your /etc/lirc/lircd.conf file point to it?
> >> >>
> >> >> This is what I have in my lircd.conf:
> >> >>
> >> >> #This configuration has been automatically generated via
> >> >> #the Ubuntu LIRC package maintainer scripts.
> >> >> #
> >> >> #It includes the default configuration for the remote and/or
> >> >> #transmitter that you have selected during package installation.
> >> >> #
> >> >> #Feel free to add any custom remotes to the configuration
> >> >> #via additional include directives or below the existing
> >> >> #Ubuntu include directives from your selected remote and/or
> >> >> #transmitter.
> >> >>
> >> >> #Configuration for the Windows Media Center Transceivers/Remotes
> (all)
> >> >> remote:
> >> >> include "/usr/share/lirc/remotes/mceusb/lircd.conf.mceusb"
> >> >>
> >> >> #Configuration for the Microsoft Windows Media Center V2 (usb) :
> SkyTV
> >> >> New Zealand transmitter:
> >> >> include "/usr/share/lirc/extras/transmitters/skynz/general.conf"
> >> >>
> >> >> The last include line points to where I have the configuration file
> >> >> for my transmitter.
> >> >> _______________________________________________
> >> >> mythtv-users mailing list
> >> >> mythtv-users at mythtv.org
> >> >> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >> >
> >> >
> >> >This is my last line in lircd.conf:  #Configuration for the Motorola
> >> DCT700
> >> >Set Top Box IR codes:
> >> >include "/etc/lirc/DCT700.conf"
> >> >
> >> >Daryl
> >>
> >> OK, that looks OK, so how did you make the DCT700.conf file?  If you
> >> made it on a Windows PC, it will likely have the wrong end-of-line
> >> characters and that will make it fail to work on Linux.  Also, check
> >> the permissions on the DCT700.conf file - use the same permissions as
> >> the /etc/lirc/lircd.conf file.
> >> _______________________________________________
> >> mythtv-users mailing list
> >> mythtv-users at mythtv.org
> >> http://www.mythtv.org/mailman/listinfo/mythtv-users
> >>
> >
> >I made the file with Ubuntu's home file GUI, then moved it with the
> >terminal. When I list the etc/lirc directory the DCT700 file is in blue
> >print while all other doc's are white print. Do I need to give
> >"DCT700.conf" to root? Should it remain in a folder, or be removed and
> >appear as a doc like the others in that directory? Another thought, should
> >the last line in my lircd.conf be separated by an empty line space?
>
> Since you used a Linux program to create it, the file should have the
> correct line termination characters.  There should be no need for
> extra empty lines.  But the different colour in the file list shows
> that the file has different permissions or ownership from the other
> files.  So it might need the ownership or permissions changed.  Use
> "ls -al" to see what it has now.  I am running Mythbuntu 12.04 and all
> the files I have in /etc/lirc (and the files included from those
> files) are all owned by root, so from a terminal prompt I would do
> this to make sure it has the correct setup:
>
>   cd /etc/lirc
>   sudo chown root:root DCT700.conf
>   sudo chmod a=r,u=rw DCT700.conf
>
> After that, ls -al should show something like this:
>
>   -rw-r--r--   1 root root     0 Aug 11 01:09 DCT700.conf
>
> and will only be able to be edited with root access, which is how most
> config files under /etc should be.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>

Copious kudos Mr. Worthington, with your help I think I've graduated from a
newbie level -10 to newbie level -9. Most of the problems I had stemmed
from creating a directory, when the wiki said create a file, secondly
creating it outside the terminal caused the ownership issue. DCT700.conf is
now only a file inside /etc/lirc and is owned by root, and even though I
didn't see any light emitting from the IR blaster on the initial tests (I
didn't see error messages either), with one hand holding the emitter on the
STB and the other hitting "enter" for a preloaded channel change command,
shazam! it did it! Again many thanks Stephen. More research and more
tweaking in my immediate future, but I'm over what seemed a major hurdle 24
hours ago.

Daryl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mythtv.org/pipermail/mythtv-users/attachments/20130810/191cfc41/attachment.html>


More information about the mythtv-users mailing list