[mythtvnz] SkyStar 2 remote with serial dongle...

Steve Holdoway steve at greengecko.co.nz
Sat Dec 8 06:42:20 GMT 2007


Well, I've sort of had a partial success. I've got the remote working, but not very well. The provided config file for the TTS35AI ( the 100...  remote just doesn't work at all, so I created my own usint the irrecord utility. However, it's not working too well - have to press buttons twice, and don't seem to have any volume control. The faq suggests that it isn't recognising the RC-5 protocol in use, but it does state that. I think I'll try recreating the file tomorrow - it's beer o'clock now! 

Nothing worked until I set the device to /dev/lirc0 in the /etc/lirc/hardware.conf

Adding the config to the list in /usr/share/lirc/remotes/technisat, and then creating an entry for the remote in /usr/share/lirc/lirc.hdwr ( munging the default serial and the existing technicat entry ) brought it up in the list of remotes in the mythbuntu remotes selection page.

I think I now need some guidance in mapping the buttons on the remote to functions within the mythbuntu menu system. Can anyone point me resources to help me in getting that right?

Also, is there a wiki/forum/similar anywhere that I can publish all of this once I get it working properly?

Cheers,

Steve
On Thu, 06 Dec 2007 08:31:39 +1300
Noel & Di <noel at igrin.co.nz> wrote:

> Here is a print of my /etc/lirc/lircd.conf for a  an R6 remote... you 
> shuoul be able to follow the format...
> Just set up a clean install of Mythbuntu 7.10, but I use the MCE remote 
> because I like it..  I use a Techniasat 2 as my only input.
> 
> #
> # RC-6 config file
> #
> # source: http://home.hccnet.nl/m.majoor/projects__remote_control.htm
> #         http://home.hccnet.nl/m.majoor/pronto.pdf
> #
> # used by: Philips
> #
> #########
> #
> # Philips Media Center Edition remote control
> # For use with the USB MCE ir receiver
> #
> # Dan Conti  dconti|acm.wwu.edu
> #
> # Updated with codes for MCE 2005 Remote additional buttons
> # *, #, Teletext, Red, Green, Yellow & Blue Buttons
> # Note: TV power button transmits no code until programmed.
> # Updated 12th September 2005
> # Graham Auld - mce|graham.auld.me.uk
> #
> # Radio, Print, RecTV are only available on the HP Media Center remote 
> control
> #
> 
> begin remote
> 
>   name mceusb
>   bits           16
>   flags RC6|CONST_LENGTH
>   eps            30
>   aeps          100
> 
>   header       2667   889
>   one           444   444
>   zero          444   444
>   pre_data_bits 21
>   pre_data      0x37FF0
>   gap          105000
>   toggle_bit     22
>   rc6_mask     0x100000000
> 
> 
>       begin codes
> 
>     Blue    0x00007ba1
>     Yellow    0x00007ba2
>     Green    0x00007ba3
>     Red    0x00007ba4
>     Teletext    0x00007ba5
> 
> # starts at af
>         Radio    0x00007baf
>         Print    0x00007bb1
>         Videos   0x00007bb5
>         Pictures 0x00007bb6
>         RecTV    0x00007bb7
>         Music    0x00007bb8
>         TV       0x00007bb9
> # no ba - d8
> 
>         Guide    0x00007bd9
>         LiveTV   0x00007bda
>         DVD      0x00007bdb
>         Back     0x00007bdc
>         OK       0x00007bdd
>         Right    0x00007bde
>         Left     0x00007bdf
>         Down     0x00007be0
>         Up       0x00007be1
> 
>         Star       0x00007be2
>         Hash       0x00007be3
> 
>         Replay   0x00007be4
>         Skip     0x00007be5
>         Stop     0x00007be6
>         Pause    0x00007be7
>         Record   0x00007be8
>         Play     0x00007be9
>         Rewind   0x00007bea
>         Forward  0x00007beb
>         ChanDown 0x00007bec
>         ChanUp   0x00007bed
>         VolDown  0x00007bee
>         VolUp    0x00007bef
>         More     0x00007bf0
>         Mute     0x00007bf1
>         Home     0x00007bf2
>         Power    0x00007bf3
>         Enter    0x00007bf4
>         Clear    0x00007bf5
>         Nine     0x00007bf6
>         Eight    0x00007bf7
>         Seven    0x00007bf8
>         Six      0x00007bf9
>         Five     0x00007bfa
>         Four     0x00007bfb
>         Three    0x00007bfc
>         Two      0x00007bfd
>         One      0x00007bfe
>         Zero     0x00007bff
>       end codes
> 
> end remote
> 
> 
> 
> And my Hardware.conf....
> 
>  /etc/lirc/hardware.conf
> #
> #Chosen Remote Control
> REMOTE="Windows Media Center Remotes (old version MicroSoft USB ID)"
> 
> # Arguments which will be used when launching lircd
> LIRCD_ARGS=""
> 
> #Don't start lircmd even if there seems to be a good config file
> #START_LIRCMD=false
> 
> #Try to load appropriate kernel modules
> LOAD_MODULES=true
> 
> # Run "lircd --driver=help" for a list of supported drivers.
> DRIVER=""
> # If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
> # automatically used instead
> DEVICE=""
> MODULES="lirc_dev lirc_mceusb"
> 
> # Default configuration files for your hardware if any
> LIRCD_CONF="mceusb/lircd.conf.mceusb"
> LIRCMD_CONF=""
> 
> hope that helps.
> 
> Steve Holdoway wrote:
> 
> >I've just purchase a SkyStar 2 card with serial dongle, which I want to connect up to freeview-powered mythbuntu box - running both a front and back end. This is my first try...
> >
> >Can anyone point me at where I'm going wrong? I'm getting output from mode2 -d/dev/lirc0 - not paying too much notice to the content as it seems to be pretty random ( and supposed to be from my reading of the docs! ).
> >
> >This is what I've done so far, after a clean install of mythbuntu 7.10, apt-get updated to now...
> >
> >I've downloaded a lircd.conf frm sourceforge and stuck it in /etc/lirc
> >
> >( starts...
> >
> >#
> ># this config file was automatically generated
> ># using lirc-0.6.6(any) on Wed May 19 00:28:01 2004
> >#
> ># contributed by Nicolas Huillard
> >#
> ># brand:                       TechniSat
> ># model no. of remote control: 100TS035
> ># devices being controlled by this remote: SkyStar 2 TV (DVB PCI card)
> >#
> >
> >begin remote
> >
> >  name  100TS035
> >
> >)
> >
> >I've also installed it in /usr/share/lirc/remotes/technisat/100TS035
> >
> >and modified /etc/lirc/hardware.conf to
> >
> >#
> >#Chosen Remote Control
> >REMOTE="Technisat 100TS035"
> >
> ># Arguments which will be used when launching lircd
> >LIRCD_ARGS=""
> >
> >#Don't start lircmd even if there seems to be a good config file
> >#START_LIRCMD=false
> >
> >#Try to load appropriate kernel modules
> >LOAD_MODULES=true
> >
> ># Run "lircd --driver=help" for a list of supported drivers.
> >DRIVER=""
> ># If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
> ># automatically used instead
> >DEVICE="/dev/ttyS0"
> >MODULES="lirc_serial"
> >
> ># Default configuration files for your hardware if any
> >LIRCD_CONF="technisat/100TS035"
> >LIRCMD_CONF=""
> >
> >( do I need a driver in there??? There doesn't seem to be one on the list that's remotely (ha!) relevant )
> >
> >To ensure that the uart stuff doesn't get in the way, I've modified /etc/init.d/lirc, adding a new function
> >
> >unload_modules ()
> >{
> >        for mod in $*
> >        do
> >                /sbin/rmmod $mod 2> /dev/null || MODULES_MISSING=true
> >        done
> >}
> >
> >and extending the load_modules function
> >
> >        unload_modules $*
> >        /bin/setserial /dev/ttyS0 uart none
> >
> >before modprobe -k to guarantee that the serial port is initialised properly. I like overkill!
> >
> >At this point, mode2 shows output when buttons are pressed on the remote.
> >
> >Next, I need to integrate it into mythtv to get some use out of it. I've run  
> >
> >  mythbuntu-lircrc-generator
> >
> >both as root and as my login user ( steve ). I've looked arounf through the system for any other occurrences of .lircrc / lircrc and replaced with the generated ones ( /home/mythtv/.lircrc being the only one I could find ).
> >
> >Still nothing is actually controlled by the remote. The resources mentioned by google are pretty messy - they seem to be referencing all different versions of mythbuntu ( I'm using the latest one based on gutsy ), and it's pretty confugsing to say the least!
> >
> >Can anyone out there point me to the next step? I'm pretty linux savvy so don't hold back (:
> >
> >TIA,  Steve.
> >
> >
> >  
> >
> 
> _______________________________________________
> mythtvnz mailing list
> mythtvnz at lists.linuxnut.co.nz
> http://lists.ourshack.com/mailman/listinfo/mythtvnz
> Archives http://www.gossamer-threads.com/lists/mythtv/mythtvnz/


-- 
Steve Holdoway <steve at greengecko.co.nz>



More information about the mythtvnz mailing list