Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Subject says it all. There only seems to be one on the internet, originally called vip1200, and I'm trying to use that; unfortunately it's unreliable. Sometimes it works, but too often it will skip a digit. Files attached. I've tried with and without sleeps in the channel changer file, as well as only sending the digits, etc.
Any help would be appreciated.
file: lircd.conf
Code:
#
# this config file was automatically generated
# using lirc-0.8.6(default) on Sun Dec 20 14:45:21 2009
#
# contributed by
#
# brand: ATT
# model no. of remote control: U-Verse
# devices being controlled by this remote:
#
begin remote
name vip1200
bits 32
flags RCMM|CONST_LENGTH
eps 2
aeps 100
header 417 278
three 167 778
two 167 611
one 167 444
zero 167 278
ptrail 167
gap 99817
toggle_bit_mask 0x8000
begin codes
ZERO 0x23402600
0 0x23402600
ONE 0x2340A601
1 0x2340A601
TWO 0x23402602
2 0x23402602
THREE 0x2340A603
3 0x2340A603
FOUR 0x23402604
4 0x23402604
FIVE 0x2340A605
5 0x2340A605
SIX 0x2340A606
6 0x2340A606
SEVEN 0x2340A607
7 0x2340A607
EIGHT 0x23402608
8 0x23402608
NINE 0x2340A609
9 0x2340A609
LAST 0x2340260A
POWER 0x2340A60C
INFO 0x2340260F
CHPG+ 0x2340A620
CHPG- 0x2340A621
FF 0x23402628
REW 0x2340A629
PLAY 0x2340262C
PAUSE 0x23402630
STOP 0x2340A631
RECORD 0x23402637
A 0x2340A638
B 0x2340A639
RECORDEDTV 0x23402644
FWD 0x2340A64C
REPLAY 0x2340264D
MENU 0x2340A654
EXIT 0x2340A655
UP 0x2340A658
DOWN 0x23402659
LEFT 0x2340A65A
RIGHT 0x2340A65B
OK 0x2340A65C
BACK 0x2340A683
C 0x2340A686
DELETE 0x2340A69E
TVVIDEO 0x234026A8
GUIDE 0x234026CC
ENTER 0x234026E1
VIDEOONDEMAND 0x2340A6F0
gointeractive 0x2340A6FD
end codes
end remote
file: change-channel-lirc.pl
Code:
#!/usr/bin/perl
# make sure to set this string to
# the corresponding remote in /etc/lirc/lircd.conf
$remote_name = "vip1200";
sub change_channel {
my($channel_digit) = @_;
system ("irsend SEND_ONCE $remote_name $channel_digit");
sleep 1;
}
$channel=$ARGV[0];
system ("irsend SEND_ONCE $remote_name EXIT");
sleep 1;
system ("irsend SEND_ONCE $remote_name OK");
sleep 1;
if (length($channel) > 3) {
change_channel(substr($channel,0,1));
change_channel(substr($channel,1,1));
change_channel(substr($channel,2,1));
change_channel(substr($channel,3,1));
} elsif (length($channel) > 2) {
change_channel(substr($channel,0,1));
change_channel(substr($channel,1,1));
change_channel(substr($channel,2,1));
} elsif (length($channel) > 1) {
change_channel(substr($channel,0,1));
change_channel(substr($channel,1,1));
} else {
change_channel(substr($channel,0,1));
}
system ("irsend SEND_ONCE $remote_name ENTER");
sleep 1;
system ("irsend SEND_ONCE $remote_name EXIT");
Hi smoker,
Yeah, I tried that one first. I think I may have found the problem, though. I was just waiting for some more testing before I posted. I added a frequency line, thinking it might not be a 38,000 Hz device. I settled on 36,000 Hz, and it seems to be working trouble-free.
Code:
frequency 36000
I need to correct this. I've measured it with an o-scope and it's closer to 36000 than the original 34000 I had posted. Sorry for any inconvenience this caused anyone.
Last edited by Quakeboy02; 08-20-2010 at 11:18 PM.
Reason: Correction from measurement
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.