LKP on Device keys- How?

General JP1 chit-chat. Developing special protocols, decoding IR signals, etc. Also a place to discuss Tips, Tricks, and How-To's.

Moderator: Moderators

Post Reply
drb
Posts: 41
Joined: Mon Feb 14, 2005 8:28 pm

LKP on Device keys- How?

Post by drb »

I can't seem to get LPK to work on the device keys. I did get it to work on a shifed device key, I assume I had shift-cloaking in action, however that is not what I want. My reason for using LPK, besides a excuse to play with this JP1 programing stuff, is to move away from using shift keys in my set-up. I have done alot of searching and reading. Here is the quote from how I derived my set-up.
Here is the bast way to set up a LKP for the device buttons.

1) Create a macro on the CBL button that executes the LKP.

It would look something like: DEV_CBL;Phantom1

2) Put the LKP on the CBL;Phantom1

It would look something like: Device;CBL and Button;Phantom1

SHORT side: SET_OTHER_KEYS;SET_TRANS_KEYS etc
I gueuss my questions is: Are these instructions correct?

Thanks
DRB
[/quote]
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Re: LKP on Device keys- How?

Post by Capn Trips »

drb wrote: Are these instructions correct?
Yes. You're probably making some minor error that a review of a posted and linked IR file would quickly reveal.
drb
Posts: 41
Joined: Mon Feb 14, 2005 8:28 pm

Post by drb »

I will post the IR file later today when I get home. I left the macros on the shifted device keys as a failsafe, couls this be part of the problem why LKP won't work?

DRB
Capn Trips
Expert
Posts: 3989
Joined: Fri Oct 03, 2003 6:56 am

Post by Capn Trips »

Hard to tell from the info provided, but if you have two different functions/macros/keymoves/... assigned to the same key, then you'll have a problem.
drb
Posts: 41
Joined: Mon Feb 14, 2005 8:28 pm

Post by drb »

Well I worked on this file some more and still no luck. I left shifted device key macros [which all work]. These shifted device macros are what should be on the long part of the LKP.

The only device keys that flash like a LKP should are the P&p,CD, and Cbl/Sat keys. While these keys flash, the flashes are sometimes weak and have no results at all. BTW, all the short functions seem to work well.

Here is a link to the file, hopefuly someone can see some dumb mistake I am making.

http://www.hifi-remote.com/forums/dload ... le_id=1427

Thanks
DRB
Hlorri
Posts: 9
Joined: Sat Mar 26, 2005 4:00 am
Location: Castro Valley, CA

Post by Hlorri »

One thing that strikes me as somehwat, ahem, uneccessarily complex in your .IR file is that you call LKPs from your device macros, then recursively DSMs from your LKPs. For instance, you have a macro on the CBL/SAT button which only calls the "CBL/SAT -> Phantom3" LKP, which in turn calls the "CBL/SAT -> Shift-Phantom1" DSM from both the "short" and "long" key sequences.

Why not change this to:
  • Device macros that (a) set the active device in your remote (T_xx, V_xx, ...), and (b) call the LKP for the active mode.
    LKPs that have an empty "short" key sequence (first byte would be "$20"), but a key sequence that sets up your units in the "long" sequence
For instance:
  • CBL/SAT macro: <T_SAT> <V_AUX1> <C_SAT> <M_SAT> <P_SAT> <O_SAT> <Phantom3>
    CBL/SAT -> Phantom3 (LKP): Short sequence empty, Long sequence <X_TV> <DiscreteOn> <CH+> <TV/Video{A/B}> <TV/Video{A/B> <X_AUX1> <DiscreteON> <3>
Voila - you have eliminated the need for your "Shift-Phantom1" DSMs.

Not sure if this will fix your problems with the LKP, but it's probably worth a try. (This is similar to what I do).

Tor
Post Reply