Page 1 of 1
Long/Double Key Press on Device Keys with URC-6131
Posted: Thu Aug 19, 2004 1:05 pm
by dannydeutsch
I am using a URC-6131B00
IR 5.11
6131_extender1_.txt
I am having trouble doing a key move on a device key with protocol 1106, the long/double key press protocol. It works fine on other keys just not on the device keys.
Thanks
Posted: Thu Aug 19, 2004 1:10 pm
by gfb107
Show us exactly your key move for the LKP/DKP.
You're probably using the device key inside the LKP, which you shouldn't do. You should be using the X_, T_, V_, or O_ pseudo-keys instead.
Posted: Thu Aug 19, 2004 1:16 pm
by dannydeutsch
Greg
You are right. I am using the device key
Here is the hex string inside the LKP/DKP
41 01 01 83
41 = My Delay plus the 01 byte command for the short key press
01 = TV
83 = Shift Power (I already have a macro on the power button, I am using shift cloaking)
For the bound key on the key move I am using
device = TV
key = TV
Posted: Thu Aug 19, 2004 1:25 pm
by gfb107
You've created a loop in your LKP. TV invokes TV, which invokes TV, which invokes TV, and on and on. That is a no-no.
Have you read the extender readme? Especially the section about device selection? Here's a clip:
DEVICE SELECTION:
=================
There is no normal device selection. There is no VPT. There is no
Transport Punch Through. There is no Home Theater Mode.
Instead there is a device selection mechanism by key set that has a
superset of the power of all the above; But you must define macros to use
and customize it.
The device keys have no built in meaning. You must define macros to
have any device selection at all.
There are 33 commands that can be used in macros to control device
selection. Each command specifies the key set and the Device Index that will
be used for keys in that set. For example V_TV says the TV device will be
used for keys in the "Volume" set.
There are 4 Key sets: Volume, Transport, Other and Temporary(X).
There are 8 Device Indexes: SAT, TV, PVR, VCR, DVD, AUD, DEV7 and
DEV8. There is one additional command X_Cancel.
To achieve simple device selection (no VPT, TPT or HT) you would put a 3
command macro on each device key, for example the TV device key would have
the macro:
V_TV; T_TV; O_TV
The 6131 has only 6 device keys; But the extender uses 8 device indexes.
You can use any keys you want for the device selection macros (and you can use
device keys for other purposes).
To achieve VPT, replace the V_ command within the macro for each device
that should have VPT enabled with the command from the device to which VPT
should be set. For example, to enable TV VPT on your VCR, the VCR key
macro might be:
V_TV; T_VCR; O_VCR
If you want full VPT (same V_ selection in all device selection macros) you
can save some macro memory by omitting all the V_ commands. You can set the
initial V device using IR. That remains as the V device as long as no V_
commands specify a different V_ device.
To achieve crude TPT (such as most of the UEIC remotes) replace the T_
command within the macro for each device that should have TPT enabled with
T_VCR. For example, your TV key macro might be:
V_TV; T_VCR; O_TV
To achieve dynamic TPT (similar to the URC7800). Omit the T_ command from
the macro for each non Transport device and include it in the macro for each
transport device (VCR, DVD etc.). When you select a non transport device,
the T keys will all remain associated with whatever transport device was
most recently selected.
Shifted keys all go into the key set containing their unshifted
counterpart. For example SHIFT-Stop is in the T set. Phantom keys are in
the O set. Device keys are in the O set; But most people will put macros
on device keys. If a key is a macro, it doesn't matter which set it is in.
The set only matters for KeyMoves and for keys defined by setup code.
Posted: Thu Aug 19, 2004 1:36 pm
by dannydeutsch
Greg I have been reading that. It is a little bit unclear to me. I want a short press of the TV button to select the TV device & a long press to select and toggle power to the TV device. Could you or someone provice a hex command string example of this so I can get a better understanding?
Thanks

Posted: Thu Aug 19, 2004 3:42 pm
by gfb107
Instead of using the TV button to select the TV device, use the three pseudo-buttons V_TV,T_TV,O_TV
If you use IR to build your LKP, you don't even need to know what the keycodes are.
Posted: Mon Aug 23, 2004 7:37 am
by dannydeutsch
I tried using the pseudo device keys and it still does not work correctly. Any other ideas or thoughts?
Thanks
Posted: Mon Aug 23, 2004 7:45 am
by gfb107
Please upload your saved IR file to the
Diagnosis Area, come back here and post a link to it (after reading
Posting Links to Yahoo files).
That will allow us to see
exactly what you've done.
Posted: Mon Aug 23, 2004 8:26 am
by dannydeutsch
Greg,
Thanks again so much for taking your time and helping me out. This is, I believe one of my last stumbling blocks with this remote.
I have this programmed for broksonic tv/vcr, the setup code is 0479. I have the PVR Menu button setup with a dkp to power the tv on and off. I tried it with a device key using the pseudo key and it isn't working. I hope you can figure out what I did wrong. Please take a look at
6131 extended test.zip. I have included a ir and txt version of the programming.
Thanks again,
Danny
Posted: Tue Aug 24, 2004 10:52 am
by gfb107
I think I've figured out the problem. I think the macro defined on the TV button is taking precedence over the keymove defined on the TV button. Try deleting the macro on the TV button.
Posted: Tue Aug 24, 2004 11:44 am
by dannydeutsch
Yeah, thats what I ended up concluding to. Because if I removed all references to the TV device selection in the keymove itself it works. I think the problem was that a infinite loop was created. The TV Button still has the default exended macro (psuedo device keys). This macro seems to be executed before the key move. So thats how the key move works without actually using any psuedo device keys for the TV device selection.