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

Help with long duration NEC1

 
Post new topic   Reply to topic    JP1 Remotes Forum Index -> JP1 - Protocol Decodes
View previous topic :: View next topic  
Author Message
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Thu Dec 28, 2017 1:39 pm    Post subject: Help with long duration NEC1 Reply with quote

What's the easiest way for me to generate the pronto hex for a 2 sec duration version of this code: NEC1, 120.120, OBC 58

Not sure if Scrutinizer has an easy way to do it or Mathdon's new protocol builder features in RM could do it just by changing the number of repeats, then get the modified protocol into Scrutinizer.

Command works as desired when user holds button for 2 sec, so I assume the standard NEC1 format with several dittos is all that is needed. Shorter duration performs a different funttion on the device than the long duration one does.

Thanks
Back to top
View user's profile Send private message
The Robman
Site Owner


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

                    
PostPosted: Thu Dec 28, 2017 4:14 pm    Post subject: Reply with quote

What you would need to do is convert it from a repeating signal to a single send signal with as many repeats encoded as you need.

Do you know how to do that? Do you have the standard hex code (save me trying to generate it), if so, post it and I'll try to edit it.
_________________
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
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Thu Dec 28, 2017 5:08 pm    Post subject: Reply with quote

Here you go Rob. Thanks

Code:
0000 006C 0022 0002 015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7 015B 0057 0016 0E6C


I'm ashamed to admit I don't know how to do it. You guys are like Cypher in the Matrix, "I don't even see the code anymore. I only see blonde, brunette, red head ..."
Back to top
View user's profile Send private message
The Robman
Site Owner


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

                    
PostPosted: Thu Dec 28, 2017 10:05 pm    Post subject: Reply with quote

Here's how Pronto code works...

0000 - zeroes mean it's raw code
006C - this gives you the frequency, so nothing to change here
0022 - this tells you there are 0x022 (decimal 34) one-time pairs
0002 - this tells you there are 0x002 (decimal 2) repeating pairss

the following is the one-time data
015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7

the following is the repeating data
015B 0057 0016 0E6C

so, to convert it all to a one-time signal, you'd just change the "0022 0002" bytes to "0024 0000" but then to add in the necessary repeats, you would need to add more "015B 0057 0016 0E6C" strings at the end, and each time you add one, you'll need to increase the "0024" byte by 2.

So, here it is with one repeat:
0000 006C
0024 0000
015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7
015B 0057 0016 0E6C

Here it is with two repeats:
0000 006C
0026 0000
015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7
015B 0057 0016 0E6C
015B 0057 0016 0E6C

Here it is with three repeats:
0000 006C
0028 0000
015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C

Here it is with four repeats:
0000 006C
002a 0000
015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C

You get the idea?
_________________
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!


Last edited by The Robman on Thu Dec 28, 2017 11:11 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Thu Dec 28, 2017 11:02 pm    Post subject: Reply with quote

Got it. I even caught a copy/paste error in your examples. 05F7 should be removed from the repeated parts of the 2 and 4 repeats examples.

I made one with 14 repeats and ran it through Scrutinizer and got the 2 sec duration I was after.

Thanks
Back to top
View user's profile Send private message
The Robman
Site Owner


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

                    
PostPosted: Thu Dec 28, 2017 11:10 pm    Post subject: Reply with quote

mdavej wrote:
Got it. I even caught a copy/paste error in your examples. 05F7 should be removed from the repeated parts of the 2 and 4 repeats examples.

I made one with 14 repeats and ran it through Scrutinizer and got the 2 sec duration I was after.

Thanks

Yup, thanks, I'll fix the original.

So, did you end up with this?

0000 006C
003E 0000
015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
015B 0057 0016 0E6C
_________________
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
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Thu Dec 28, 2017 11:26 pm    Post subject: Reply with quote

Exactly, 14 copies and 3E in the pairs byte.
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Fri Dec 29, 2017 9:03 am    Post subject: Re: Help with long duration NEC1 Reply with quote

mdavej wrote:
What's the easiest way for me to generate the pronto hex for a 2 sec duration version of this code: NEC1, 120.120, OBC 58

Not sure if Scrutinizer has an easy way to do it ...


Almost... So I wrote a new export format achieving exactly this. Download and drop this file into the exportformats.d forder (in version >= 1.4 of IrScrutinizer), restart the program if it was running. Now there should be an export format (in the Export pane) called "Pronto Hex Oneshot". After selecting this, the combo box "# repeats" will be enabled. Select the desired number of repeats. (Unfortunately, not all numbers can presenly be selected.) Now export ONE signal (for example by "Export generated"). The produced export will have the desired property.

Feedback and suggestions for improvements as always welcome.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Fri Dec 29, 2017 11:38 am    Post subject: Reply with quote

Thanks Barf! I'll give it a try and report back.
Back to top
View user's profile Send private message
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Sat Dec 30, 2017 8:04 pm    Post subject: Reply with quote

Running 1.4.1, but not seeing the new format. Do I need to add an entry in exportformats as well?
Back to top
View user's profile Send private message
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Sun Dec 31, 2017 4:14 am    Post subject: Reply with quote

Try this: Select File -> Reset properties, and then restart the program.

Version 1.4 replaced exportformats.xml by the directory exportformats.d, but updating to 1.4[.1] from a previous version leaves a selection of exportformats.xml alone.

Quote:
Do I need to add an entry in exportformats as well?

No, not in the current version. That is (basically) why the change was made.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Barf
Expert


Joined: 24 Oct 2008
Posts: 1402
Location: Munich, Germany

                    
PostPosted: Sun Dec 31, 2017 5:34 am    Post subject: Reply with quote

Forgot to say:

If you know the protocol, AND are not afraid of a command line program, you can use IrpTransmogrifier:

Code:
$ irptransmogrifier render nec1 -n "D=120 S=120 F=58" --pronto --number-repeats 14
0000 006C 003E 0000 015B 00AD 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 05F7 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C 015B 0057 0016 0E6C
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mdavej
Expert


Joined: 08 Oct 2003
Posts: 4500

                    
PostPosted: Sun Dec 31, 2017 1:37 pm    Post subject: Reply with quote

The reset did the trick. And the export worked perfectly. I also have lots of other new export formats in the list now (everything from the folder I presume).

Good to know about the Transmogrifier option as well.

Thanks!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic       JP1 Remotes Forum Index -> JP1 - Protocol Decodes 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