<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Do I just add that in to the config that irrecord creates?</p>
<p>I added that right under "begin remote" and it did not seem to
make a difference.</p>
<p><br>
</p>
<p>Perhaps I am misunderstanding though.</p>
<p><br>
</p>
<p>Thanks for the help!</p>
<p><br>
</p>
<div class="moz-cite-prefix">On 2017-03-19 4:07 PM, Karl Newman
wrote:<br>
</div>
<blockquote
cite="mid:CAOOwNtJ+O7cv7ys3J5h_8jHRxqRDzA4jjcDG8pCv38oUBAO-YQ@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Sun, Mar 19, 2017 at 7:47 AM, Mark
Hutchinson <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:8012900@gmail.com" target="_blank">8012900@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left:1px solid
rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p> </p>
<div class="gmail-m_5415388973109467751moz-text-flowed"
style="font-family:-moz-fixed;font-size:12px"
lang="x-unicode">Hello, <br>
<br>
I have made a conf file for a remote control with
irrecord ( see below ) <br>
<br>
Using that conf file, I get odd behavior testing it
with irw. <br>
<br>
on pressing number one for instance, it will give
KEY_1 the first time then KEY_2 the second time, then
KEY_1 the third time. <br>
<br>
It alternates. Same every time I try it. I have
tried to make a new irrecord conf file, but got the
same results. <br>
<br>
Any ideas on what I can try? <br>
<br>
<br>
This is me pressing the 1 key, three times: <br>
<br>
root@mythbuntu:~# irw <br>
0000000000000002 00 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 01 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 02 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 03 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 04 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 05 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000003 00 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000003 01 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000003 02 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000003 03 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000003 04 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000003 05 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000003 06 KEY_2 /etc/lirc/own_remote.conf <br>
0000000000000002 00 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 01 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 02 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 03 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 04 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 05 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 06 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 07 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 08 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 09 KEY_1 /etc/lirc/own_remote.conf <br>
0000000000000002 0a KEY_1 /etc/lirc/own_remote.conf <br>
<br>
<br>
Here is my conf file: <br>
<br>
root@mythbuntu:~# cat /etc/lirc/own_remote.conf <br>
<br>
# Please make this file available to others <br>
# by sending it to <a moz-do-not-send="true"
class="gmail-m_5415388973109467751moz-txt-link-rfc2396E"
href="mailto:lirc@bartelmus.de" target="_blank"><lirc@bartelmus.de></a>
<br>
# <br>
# this config file was automatically generated <br>
# using lirc-0.9.0(default) on Sat Mar 18 23:40:06
2017 <br>
# <br>
# contributed by <br>
# <br>
# brand:
/etc/lirc/own_remote.conf <br>
# model no. of remote control: <br>
# devices being controlled by this remote: <br>
# <br>
<br>
begin remote <br>
<br>
name /etc/lirc/own_remote.conf <br>
flags RAW_CODES|CONST_LENGTH <br>
eps 30 <br>
aeps 100 <br>
<br>
gap 99800 <br>
<br>
begin raw_codes <br>
<br>
name KEY_0 <br>
550 100 350 100 350
500 <br>
250 350 300 150 300
500 <br>
250 150 300 150 300
150 <br>
300 150 300 500 250
350 <br>
300 500 250 200 250
200 <br>
250 200 250 200 250 <br>
<br>
name KEY_1 <br>
500 100 350 150 300
500 <br>
300 300 300 150 300
500 <br>
250 150 300 150 300
150 <br>
300 500 300 500 250
350 <br>
250 550 250 200 250
200 <br>
250 200 250 350 250 <br>
<br>
name KEY_2 <br>
550 100 350 100 300
500 <br>
300 350 250 150 300
500 <br>
300 150 300 150 300
150 <br>
300 150 250 550 250
350 <br>
250 550 250 200 250
150 <br>
300 150 250 550 250 <br>
<br>
name KEY_3 <br>
550 100 300 150 300
500 <br>
300 300 300 150 300
500 <br>
250 200 250 150 300
150 <br>
300 550 250 500 250
350 <br>
300 500 250 200 250
200 <br>
250 200 250 700 250 <br>
<br>
name KEY_4 <br>
550 100 350 100 350
500 <br>
250 350 250 150 300
500 <br>
300 150 300 150 300
150 <br>
300 150 250 550 250
350 <br>
250 550 250 200 250
200 <br>
250 350 250 200 250 <br>
<br>
name KEY_5 <br>
550 100 300 150 300
500 <br>
300 350 250 150 300
500 <br>
300 150 250 200 250
200 <br>
250 550 250 500 250
400 <br>
250 500 250 200 250
200 <br>
250 350 250 400 250 <br>
<br>
end raw_codes <br>
<br>
end remote <br>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>It's normally best if you can find a lircd.conf for the
device somewhere, or at least a similar device to start
with when you do irrrecord, so that the header information
is correct. You will get much more reliable operation.
However, if that's not available you can proceed as you
have been. For your particular situation, it looks like a
toggle bit is active but not configured as such in your
file. See the lircd.conf documentation here: <a
moz-do-not-send="true"
href="http://www.lirc.org/html/lircd.conf.html">http://www.lirc.org/html/lircd.conf.html</a>
The relevant part is this:<br>
<dl>
<div><dt>
<b>toggle_bit_mask <hexadecimal mask></b>
</dt>
</div>
<dd>
Bits which are toggled between one and zero each time
a button is pressed.
The mask is applied to the concatenated value of pre
data - data - post_data.
</dd>
</dl>
<p>I would suggest adding toggle_bit_mask 0x2 (it appears
to be bit 2 which is toggled) to the header of your
lircd.conf and see how that affects your irw results.
You may have to restart lirc after making a change to
the file; I can't remember.</p>
<p>Karl<br>
</p>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
mythtv-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mythtv-users@mythtv.org">mythtv-users@mythtv.org</a>
<a class="moz-txt-link-freetext" href="http://lists.mythtv.org/mailman/listinfo/mythtv-users">http://lists.mythtv.org/mailman/listinfo/mythtv-users</a>
<a class="moz-txt-link-freetext" href="http://wiki.mythtv.org/Mailing_List_etiquette">http://wiki.mythtv.org/Mailing_List_etiquette</a>
MythTV Forums: <a class="moz-txt-link-freetext" href="https://forum.mythtv.org">https://forum.mythtv.org</a>
</pre>
</blockquote>
<br>
</body>
</html>