View previous topic :: View next topic |
Author |
Message |
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Thu Dec 28, 2017 1:39 pm Post subject: Help with long duration NEC1 |
|
|
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 |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21244 Location: Chicago, IL |
Posted: Thu Dec 28, 2017 4:14 pm Post subject: |
|
|
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 |
|
|
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Thu Dec 28, 2017 5:08 pm Post subject: |
|
|
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 |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21244 Location: Chicago, IL |
Posted: Thu Dec 28, 2017 10:05 pm Post subject: |
|
|
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 |
|
|
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Thu Dec 28, 2017 11:02 pm Post subject: |
|
|
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 |
|
|
The Robman Site Owner
Joined: 01 Aug 2003 Posts: 21244 Location: Chicago, IL |
Posted: Thu Dec 28, 2017 11:10 pm Post subject: |
|
|
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 |
|
|
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Thu Dec 28, 2017 11:26 pm Post subject: |
|
|
Exactly, 14 copies and 3E in the pairs byte. |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1415 Location: Munich, Germany |
Posted: Fri Dec 29, 2017 9:03 am Post subject: Re: Help with long duration NEC1 |
|
|
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 |
|
|
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Fri Dec 29, 2017 11:38 am Post subject: |
|
|
Thanks Barf! I'll give it a try and report back. |
|
Back to top |
|
|
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Sat Dec 30, 2017 8:04 pm Post subject: |
|
|
Running 1.4.1, but not seeing the new format. Do I need to add an entry in exportformats as well? |
|
Back to top |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1415 Location: Munich, Germany |
Posted: Sun Dec 31, 2017 4:14 am Post subject: |
|
|
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 |
|
|
Barf Expert
Joined: 24 Oct 2008 Posts: 1415 Location: Munich, Germany |
Posted: Sun Dec 31, 2017 5:34 am Post subject: |
|
|
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 |
|
|
mdavej Expert
Joined: 08 Oct 2003 Posts: 4502
|
Posted: Sun Dec 31, 2017 1:37 pm Post subject: |
|
|
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 |
|
|
|