JP1 Remotes Forum Index JP1 Remotes


FAQFAQ SearchSearch 7 days of topics7 Days MemberlistMemberlist UsergroupsUsergroups RegisterRegister
ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in

Adding pause in a macro

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Beginners
View previous topic :: View next topic  
Author Message
PGBELL



Joined: 23 Nov 2004
Posts: 51
Location: BELLMORE, N.Y.

                    
PostPosted: Mon Jan 03, 2005 2:08 pm    Post subject: Adding pause in a macro Reply with quote

HI,
I would like to know if there is a way to add a pause of x seconds to a macro or command? Also I have a scientific Atlanta explorer 4200hd cable box. I am trying to find discrete on/off codes. Any help would be great!!!
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21238
Location: Chicago, IL

                    
PostPosted: Mon Jan 03, 2005 2:51 pm    Post subject: Reply with quote

Use the "Pause" special protocol.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
PGBELL



Joined: 23 Nov 2004
Posts: 51
Location: BELLMORE, N.Y.

                    
PostPosted: Tue Jan 04, 2005 9:25 am    Post subject: Reply with quote

Where can I find this protocol?
Pete
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21238
Location: Chicago, IL

                    
PostPosted: Tue Jan 04, 2005 10:03 am    Post subject: Reply with quote

In the special protocols folder.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21238
Location: Chicago, IL

                    
PostPosted: Tue Jan 04, 2005 10:06 am    Post subject: Reply with quote

Actually, I just remembered that it was also added to KM.
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
mathboy



Joined: 15 Dec 2004
Posts: 43
Location: Toronto, ON

                    
PostPosted: Fri Jan 07, 2005 4:51 pm    Post subject: Reply with quote

I have followed the instructions here and am stuck on one step from the special protocol upgrade mentioned above:

Quote:
and assign Advanced Codes to some phantom key you will then use in macros to insert pauses.


What codes and where do I assign them? I'm using IR and KM. Any help would be appreciated.
Back to top
View user's profile Send private message
The Robman
Site Owner


Joined: 01 Aug 2003
Posts: 21238
Location: Chicago, IL

                    
PostPosted: Fri Jan 07, 2005 5:10 pm    Post subject: Reply with quote

I can't see that line. Here's the complete Help page from KM:

Quote:
Pause Protocol Help:

This protocol allows you to insert a variable length pause inside a macro. To use this protocol, you have to install both the Device Upgrade and the Protocol Upgrade.

Typically, you would assign an OBC to a phantom key that you will use in a macro to insert pauses.

The length of the pause depends upon the OBC code.
1 = shortest, 255=longest (in some cases, 0=longest)

The actual delay time will vary among different remotes, but the values shown below will serve as a guideline for S3C8 (old) processors.

OBC = (seconds to pause) x (10.66)
011 = approx 1 second
021 = approx 2 seconds
032 = approx 3 seconds
043 = approx 4 seconds
053 = approx 5 seconds
107 = approx 10 seconds

To set this up, select the Remote, Device Type, and Setup Code on the 'Setup' sheet.

On the 'Functions' sheet, enter function names like
'1 second pause'
'2 second pause'
and enter the appropriate OBC value.

On the 'Key Moves' sheet, for each desired pause function, select '(upgrade)' as the Bound Device, and the appropriate button for the 'Bound Key'.

Copy the Key Move Code block from the 'Setup' sheet, and paste it into IR's Key Moves tab using the [Import] button.

On IR's Macros tab, setup your macro to include the proper button needed to invoke the pause.

NOTE: when using the Pause protocol, you should NOT assign any
functions to buttons on the 'Buttons' sheet, since KM and IR won't be able to properly setup the key moves required to make it work.

_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Back to top
View user's profile Send private message Visit poster's website
mathboy



Joined: 15 Dec 2004
Posts: 43
Location: Toronto, ON

                    
PostPosted: Fri Jan 07, 2005 5:16 pm    Post subject: Reply with quote

Thanks! I meant to say I'm using IR and RM but I can figure it out with what you posted.
Back to top
View user's profile Send private message
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Fri Jan 07, 2005 7:20 pm    Post subject: Reply with quote

RM doesn't (yet) support the pause protocol, so you either have to use KM or do it manually in IR, as documented in the pause.txt:
Quote:
This protocol allows to insert a variable length pause inside a macro.
The protocol works on all S3C8 based remotes (15-1994, RCU-810, URC-7560, etc.)

Upgrade protocol 0 = 01 FB (S3C80)
00 00 01 E4 03 C2 C6 C0 00 00 0A FE 1A FC 2A FA
AF
End


To use the protocol you also have to install a device upgrade like this one:

Upgrade code 0 = 1C 50 (TV/1104)
FB 00 01
End

SPECIAL CASE: The URC-6131 remote requires some special handling, so use this
device upgrade instead and replace the last byte with the correct code for the
delay that you need (see below). Then for the keymove, just enter hex code $03.

Upgrade Code 0 = 1C 50 (TV/1104)
FB 00 11 A0
End

and assign Advanced Codes to some phantom key you will then use in macros to
insert pauses.
The length of the pause depends on the Advanced Code argument ($01 = shortest,
$FF = longest).
On a URC-7560, $10 lasts for about 1 second, $20 for about 2 seconds, etc.
The 15-1994 has a slower CPU so $10 lasts for about 1.5 seconds, $20 for about
3 seconds, etc.
Example:

SAT/Phantom1 = TV/1104 $10 will pause for ~1s on URC-7560 or 1.5s on 15-1994
SAT/Phantom1 = TV/1104 $A0 will pause for ~10s on URC-7560 or 15s on 15-1994




Here's a protocol for doing a variable-length pause on any of the P8 remotes
(8080, 8090, 8800, 9800, 15-1995, 5550, Maestro):

Upgrade protocol 0 = 01 FB (740)
00 00 01 A5 5D A0 50 22 42 1A D0 F9 60
End


This works exactly like Nicola's version for the S3C8. A hex value of $10 will
pause for about one second.

_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
gfb107
Expert


Joined: 03 Aug 2003
Posts: 3411
Location: Cary, NC

                    
PostPosted: Sat Jan 08, 2005 10:19 am    Post subject: Reply with quote

To provide more detail, when you create your keymoves, the Hex value is used to control the length of pause, 01 being the shortest, FF being the longest. You'll have to experiment with different values to find the one that works best for you.
_________________
-- Greg
Original RemoteMaster developer
JP1 How-To's and Software Tools
The #1 Code Search FAQ and it's answer (PLEASE READ FIRST)
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Beginners All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

Powered by phpBB © 2001, 2005 phpBB Group
Top 7 Advantages of Playing Online Slots The Evolution of Remote Control