Help with long duration NEC1
Moderator: Moderators
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
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
-
The Robman
- Site Owner
- Posts: 21926
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
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.
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!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Here you go Rob. Thanks
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 ..."
Code: Select all
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-
The Robman
- Site Owner
- Posts: 21926
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
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?
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?
Last edited by The Robman on Thu Dec 28, 2017 10:11 pm, edited 1 time in total.
Rob
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
-
The Robman
- Site Owner
- Posts: 21926
- Joined: Fri Aug 01, 2003 9:37 am
- Location: Chicago, IL
- Contact:
Yup, thanks, I'll fix the original.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
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!
www.hifi-remote.com
Please don't PM me with remote questions, post them in the forums so all the experts can help!
Re: Help with long duration NEC1
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.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 ...
Feedback and suggestions for improvements as always welcome.
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.
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.
No, not in the current version. That is (basically) why the change was made.Do I need to add an entry in exportformats as well?
Forgot to say:
If you know the protocol, AND are not afraid of a command line program, you can use IrpTransmogrifier:
If you know the protocol, AND are not afraid of a command line program, you can use IrpTransmogrifier:
Code: Select all
$ 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