Help with long duration NEC1

If you have learned signals that don't get decoded when you look at them in IR.exe, post your file to the Diagnosis Area then post your question here (including a link to the file).

Moderator: Moderators

Post Reply
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Help with long duration NEC1

Post by mdavej »

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
The Robman
Site Owner
Posts: 21926
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

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!
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Here you go Rob. Thanks

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
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 ..."
The Robman
Site Owner
Posts: 21926
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

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?
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!
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

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
The Robman
Site Owner
Posts: 21926
Joined: Fri Aug 01, 2003 9:37 am
Location: Chicago, IL
Contact:

Post by The Robman »

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!
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Exactly, 14 copies and 3E in the pairs byte.
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Re: Help with long duration NEC1

Post by Barf »

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.
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Thanks Barf! I'll give it a try and report back.
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

Running 1.4.1, but not seeing the new format. Do I need to add an entry in exportformats as well?
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

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.
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.
Barf
Expert
Posts: 1522
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Forgot to say:

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
mdavej
Expert
Posts: 4635
Joined: Wed Oct 08, 2003 7:08 am

Post by mdavej »

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!
Post Reply