Re: [mythtv-users] MyBlaster/Dish Network
On Thu, 17 Nov 2005 10:28:33 -0500 Steve Adeff wrote: > You should add a TRAC for inclusion in the contrib folder. > > Steve and you should learn to trim your posts :) -- Nick Rout <[EMAIL PROTECTED]> ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
RE: [mythtv-users] MyBlaster/Dish Network
Steve, Once I finish updating the script I will look into having it part of the distro. Thanks, Bill ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] MyBlaster/Dish Network
On Wednesday 16 November 2005 17:32, Robert Denier wrote: > I'm going to use the format [FILENAME] and then paste the file. > The only change to the perl script was just an edit to make it find the > file easier. Perhaps it wasn't even needed. I have everything in > /usr/local/bin. To use these you will need to copy paste these into files > and make the scripts executable. Myth calls the change_channel scripts. > > [Don't forget the alternate keys are for receiver remote code 2. This is > settable on the receiver, or at least the ones I have.] > > -Robert Denier > > [---/usr/local/bin/change_channel.sh---] > #!/bin/bash > perl /usr/local/bin/MyBlaster.pl $1 > > [---/usr/local/bin/change_channel2.sh---] > #!/bin/bash > cd /usr/local/bin > perl /usr/local/bin/MyBlaster.pl changechannel d2.keys $1 > > [---/usr/local/bin/d2.keys---] > power = 1B008B0300C70C1700C7058900BE0354010091212100 > select = 1B008C0300C90C1500C9058700C00352010091122100 > exit = 1B008C0300C90C1400C9058600C003570100911211212100 > 0 = 1B008C0300C90C1400C9058700C003540100911211122100 > 1 = 1B008C0300C90C1500C9058700C00354010092112100 > 2 = 1B008C0300C90C1400C9058700C00354010092122100 > 3 = 1B008C0300C90C1400C9058700C00356010092212100 > 4 = 1B008C0300C90C1500C9058700C9034A0100911121112100 > 5 = 1B008C0300C90C1400C9058600C9034E0100911121122100 > 6 = 1B008C0300C90C1400C9058600C903510100911121212100 > 7 = 1B008C0300C90C1400C9058700C9034D0210911122112100 > 8 = 1B008C0300C90C1400C9058700C9034C0100911122122100 > 9 = 1B008C0300C90C1400C9058700C9034C0100911122212100 > > [---/usr/local/bin/MyBlaster.pl---] > #!/usr/bin/perl > > # MyBlaster.pl: Controller for the MyBlaster serial IR blaster > (www.mytvstore.com) > # By William Munson [wmunson] (July 26, 2004, ver-1.4) > # > # This code is being released into the public domain for non-profit use. > # For commercial use please contact me at our support forum: > # http://www.mythtvtalk.com/forum/viewtopic.php?p=622#622 > # > # Version 1.0 - Initial release of code. > # Version 1.1 - Added macro feature. > # Version 1.2 - Fixed some timing issues in the data transfer to MyBlaster. > # Version 1.3 - Fixed output for devices other than DSS/Satellite > receivers. # - Added support for port locking which keeps a > second instance # suspended until the 1st has completed. > # Version 1.4 - Public Release #1 - Updated documentation for release. > # Version 1.4.1 - Added Learing and emitting learned keys - Vlado > > > $|=1; > use POSIX qw(:termios_h); > use FileHandle; > use Time::HiRes qw( sleep ); > > > # Defaults to standard COM2 port, 19200 baud. > my $serial=init_serial("/dev/ttyS0","19200"); # Com 1 > # my $serial=init_serial("/dev/ttyS1","19200"); # Com 2 > > # Device code for the piece of equipment you want to control. This info can > # be found in the MyBlaster Library folder. > # > # 775 controls a standard Dishnet receiver. > $remote_code="775"; > > # Device Type is a hex value from 0 to A and represents the type of device > you # want to control. Below is a list of the available device type codes. > # 0=TV, 1=CABLE, 2=Video Acc, 3=DSS/Satellite, 4-VCR, 5=Laser Disk, 6=DVD # > 7=Tuner/Amp, 8=Amplifier, 9=CD, A=Home Control > $Device_Type="3"; > > # Duplicate process protection. Enable this if you use the same blaster to > control > # multiple devices. With this enabled, multiple instances of the program > will each > # sleep until the blaster port is free. Uses a lock file. > $Use_Locking=0; > > # Lock File name. > $LockFile="/tmp/MyBlaster.lock"; > > # remote file prefix. The file name will be $prefix_.keys > $remote_prefix = "/home/mythtv/MyBlaster_"; > > # Use verbose output mode for debugging. > $verbose=0; > > # Time delay between each channel digit. > $inter_key_delay=0.1; > > # Emit time. This is the length of time the command is sent. Probably a > # good idea to leave this alone but if you are getting repeats of buttons > # then you can shorten it a little bit. > $Emit_Time=0.333; > > # Learn Time. This is the length of time we let MyBlaster to try to learn a > command. > $Learn_Time=3.0; > > # Enable to press a key to finalize channel entry > $finalize=1; > > # Key used to finalize channel entry > $finalize_key="select"; > > # Enable to clear the on screen display more quickly. > $quick_clear=1; > > # Key used to clear the display. Taken from keymap below. > $quick_clear_key="exit"; > > # Time to wait until clearing the display > $clear_delay=2.0; > > # Misc variables needed by the program > $Count=0; > > # These keys should be common to all device codes. The remote buttons > # may have different names. Feel free to change the name but not the value. > %keymap=(1 => "0x01", > 2 => "0x02", > 3 => "0x03", > 4 => "0x04", >
Re: [mythtv-users] MyBlaster/Dish Network
True, I originally had change_channel.sh and change_channel2.sh in my mythtv configuration, and it was easier to not go in and change things. It was a bit of lazyness on my part I suppose. On Wednesday 16 November 2005 05:58 pm, William wrote: > > [---/usr/local/bin/change_channel.sh---] > > #!/bin/bash > > perl /usr/local/bin/MyBlaster.pl $1 > > Its good to see that my scripts are still getting used. I just wanted to > add a note about starting the script. You do not need to call the script > from with a shell. Just put: > > /usr/local/bin/MyBlaster.pl > > in the script field for that capture card. If you need to use options: > > /usr/local/bin/MyBlaster.pl > > Mythtv will append the channel number to the end of the string and will > call the script shell itself. No need to double shell the thing. Also will > give you a noticable speed increase when changing channels. > > PS - I should have time this winter to pull the learning mode code into the > origional command set and will release an update. Check sourceforge for > the latest version which is currently 1.4.1 ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
RE: [mythtv-users] MyBlaster/Dish Network
> [---/usr/local/bin/change_channel.sh---] > #!/bin/bash > perl /usr/local/bin/MyBlaster.pl $1 > Its good to see that my scripts are still getting used. I just wanted to add a note about starting the script. You do not need to call the script from with a shell. Just put: /usr/local/bin/MyBlaster.pl in the script field for that capture card. If you need to use options: /usr/local/bin/MyBlaster.pl Mythtv will append the channel number to the end of the string and will call the script shell itself. No need to double shell the thing. Also will give you a noticable speed increase when changing channels. PS - I should have time this winter to pull the learning mode code into the origional command set and will release an update. Check sourceforge for the latest version which is currently 1.4.1 ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] MyBlaster/Dish Network
I'm going to use the format [FILENAME] and then paste the file. The only change to the perl script was just an edit to make it find the file easier. Perhaps it wasn't even needed. I have everything in /usr/local/bin. To use these you will need to copy paste these into files and make the scripts executable. Myth calls the change_channel scripts. [Don't forget the alternate keys are for receiver remote code 2. This is settable on the receiver, or at least the ones I have.] -Robert Denier [---/usr/local/bin/change_channel.sh---] #!/bin/bash perl /usr/local/bin/MyBlaster.pl $1 [---/usr/local/bin/change_channel2.sh---] #!/bin/bash cd /usr/local/bin perl /usr/local/bin/MyBlaster.pl changechannel d2.keys $1 [---/usr/local/bin/d2.keys---] power = 1B008B0300C70C1700C7058900BE0354010091212100 select = 1B008C0300C90C1500C9058700C00352010091122100 exit = 1B008C0300C90C1400C9058600C003570100911211212100 0 = 1B008C0300C90C1400C9058700C003540100911211122100 1 = 1B008C0300C90C1500C9058700C00354010092112100 2 = 1B008C0300C90C1400C9058700C00354010092122100 3 = 1B008C0300C90C1400C9058700C00356010092212100 4 = 1B008C0300C90C1500C9058700C9034A0100911121112100 5 = 1B008C0300C90C1400C9058600C9034E0100911121122100 6 = 1B008C0300C90C1400C9058600C903510100911121212100 7 = 1B008C0300C90C1400C9058700C9034D0210911122112100 8 = 1B008C0300C90C1400C9058700C9034C0100911122122100 9 = 1B008C0300C90C1400C9058700C9034C0100911122212100 [---/usr/local/bin/MyBlaster.pl---] #!/usr/bin/perl # MyBlaster.pl: Controller for the MyBlaster serial IR blaster (www.mytvstore.com) # By William Munson [wmunson] (July 26, 2004, ver-1.4) # # This code is being released into the public domain for non-profit use. # For commercial use please contact me at our support forum: # http://www.mythtvtalk.com/forum/viewtopic.php?p=622#622 # # Version 1.0 - Initial release of code. # Version 1.1 - Added macro feature. # Version 1.2 - Fixed some timing issues in the data transfer to MyBlaster. # Version 1.3 - Fixed output for devices other than DSS/Satellite receivers. # - Added support for port locking which keeps a second instance # suspended until the 1st has completed. # Version 1.4 - Public Release #1 - Updated documentation for release. # Version 1.4.1 - Added Learing and emitting learned keys - Vlado $|=1; use POSIX qw(:termios_h); use FileHandle; use Time::HiRes qw( sleep ); # Defaults to standard COM2 port, 19200 baud. my $serial=init_serial("/dev/ttyS0","19200"); # Com 1 # my $serial=init_serial("/dev/ttyS1","19200"); # Com 2 # Device code for the piece of equipment you want to control. This info can # be found in the MyBlaster Library folder. # # 775 controls a standard Dishnet receiver. $remote_code="775"; # Device Type is a hex value from 0 to A and represents the type of device you # want to control. Below is a list of the available device type codes. # 0=TV, 1=CABLE, 2=Video Acc, 3=DSS/Satellite, 4-VCR, 5=Laser Disk, 6=DVD # 7=Tuner/Amp, 8=Amplifier, 9=CD, A=Home Control $Device_Type="3"; # Duplicate process protection. Enable this if you use the same blaster to control # multiple devices. With this enabled, multiple instances of the program will each # sleep until the blaster port is free. Uses a lock file. $Use_Locking=0; # Lock File name. $LockFile="/tmp/MyBlaster.lock"; # remote file prefix. The file name will be $prefix_.keys $remote_prefix = "/home/mythtv/MyBlaster_"; # Use verbose output mode for debugging. $verbose=0; # Time delay between each channel digit. $inter_key_delay=0.1; # Emit time. This is the length of time the command is sent. Probably a # good idea to leave this alone but if you are getting repeats of buttons # then you can shorten it a little bit. $Emit_Time=0.333; # Learn Time. This is the length of time we let MyBlaster to try to learn a command. $Learn_Time=3.0; # Enable to press a key to finalize channel entry $finalize=1; # Key used to finalize channel entry $finalize_key="select"; # Enable to clear the on screen display more quickly. $quick_clear=1; # Key used to clear the display. Taken from keymap below. $quick_clear_key="exit"; # Time to wait until clearing the display $clear_delay=2.0; # Misc variables needed by the program $Count=0; # These keys should be common to all device codes. The remote buttons # may have different names. Feel free to change the name but not the value. %keymap=(1 => "0x01", 2 => "0x02", 3 => "0x03", 4 => "0x04", 5 => "0x05", 6 => "0x06", 7 => "0x07", 8 => "0x08", 9 => "0x09", 0 => "0x0a", vol_up => "0x0b", vol_dn => "0x0c", mute => "0x0d", ch_up => "0x0e", ch_dn => "0x0f",
Re: [mythtv-users] MyBlaster/Dish Network
> I can send someone the files I'm using if someone needs them. You will > need a > serial IR blaster, and one receiver set with id 1 and the other with id 2. Getting it to work with two dish network receivers is very cool - I'd like your changed files if you don't mind! Thank, Greg ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
[mythtv-users] MyBlaster/Dish Network
Overall the MyBlaster serial seems rock solid with two dish network receivers, where the IR blaster did flaky channel changes no matter how long I messed with it, especially when myth was doing the channel changing. [When myth is changing the channel, there are other things going on that seem to make IR blasters less reliable.] I can send someone the files I'm using if someone needs them. You will need a serial IR blaster, and one receiver set with id 1 and the other with id 2. Note, I don't have anything particularly new, I just did a couple minor changes to a set of perl scripts linked in a past list post. -Robert ___ mythtv-users mailing list mythtv-users@mythtv.org http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users