|
|
|
The following page was printed from RemoteCentral.com:
Need help converting NEC to Pronto
| |
|
Topic: | Need help converting NEC to Pronto This thread has 39 replies. Displaying posts 1 through 15. |
|
Post 1 made on Friday April 29, 2016 at 04:19 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
I have an amplifier from Audio-gd – Precision 1 ( [Link: tinyurl.com]) I want to use my Samsung Galaxy S4 to control the volume, so I asked the manufacturer for the IR-codes. This is what he returned: The chip is NEC. First Code :0x80 User codes: case 0x16: select=1; case 0x17: select=2; case 0x11: select=3; //case 0x4F: select=4; //case 0x12: select=5; case 0x05: volume++; case 0x19: volume--; case 0x4c: out++; case 0x18: gain++; I then went to this page to convert the NEC-code - [Link: irdb.tk]I figured I had to convert the NEC HEX to decimal and for the volume++ i entered: NEC1 0 128 5 This was the output: 0000 006C 0022 0002 015B 00AD 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 06FB 015B 0057 0016 0E6C But it doesn’t work. I do not have the knowledge in this field to understand if I did something wrong. Can somebody help me? Regards Anders
|
|
Post 2 made on Friday April 29, 2016 at 10:59 |
mdavej Active Member |
Joined: Posts: | December 2002 627 |
|
|
I end up with this using IRScrutinizer. I think on the irdb page, it would be NEC1 128 0 5.
0000 006C 0022 0002 015B 00AD 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 0016 0016 0041 0016 0016 0016 0041 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0016 0041 0016 0016 0016 0041 0016 0041 0016 0041 0016 0041 0016 0041 0016 05F7 015B 0057 0016 0E6C
|
|
OP | Post 3 made on Saturday April 30, 2016 at 03:01 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
Thanks for answering
It doesn't work for me, but I think I have enough information now to proceed on my own. If not I'll return. And if I find the solution, I will return as well.
Regards Anders
|
|
Post 4 made on Saturday April 30, 2016 at 03:57 |
Barf Long Time Member |
Joined: Posts: | August 2013 350 |
|
|
Hej Anders!
irdb.tk uses the same engine as IrScrutinizer, so in a way I am guilty for both :-).
My intuition says that the first message refers to two parameter NEC1 form, i.e. with subdevice default, i.e. 255-device. In IrScrutinizer you can just leave S blank; in irdb.tk you have to enter it explicitly. Bottom line: NEC1 128 127 5.
|
|
|
OP | Post 5 made on Tuesday May 3, 2016 at 09:13 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
Hej Barf
Well, If that is true it pretty much leaves me a victim of your invention. But a lucky one I guess ;) Thank you!
Since my last post I did download IrScrutinizer. I was actually in doubt about how I should fill out Subdevice. I left it blank.
Still I have had no luck making it work. At the moment my suspicion is pointed at the information that I had from the vendor of my device, since the app (Unified Remote) works fine with other devices.
Regards Anders
|
|
Post 6 made on Wednesday May 4, 2016 at 11:07 |
Barf Long Time Member |
Joined: Posts: | August 2013 350 |
|
|
The vendor tries to help, but it sees that he cannot describe the used signals in a universally understandable language. What mdavej and I tied to do was to *guess* what was meant, and you claim that both guesses were wrong. There are discussions on the internet that are equally unclear, like [Link: head-fi.org]Do you have any possibilities to analyze or "learn" the codes? IrScrutinizer supports several different learning devices. Or you can possibly use a learning JP1 remote or a Pronto?
|
|
|
OP | Post 7 made on Thursday May 5, 2016 at 04:30 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
The vendors reply on my latest inquiry is a confirmation of your statement. He does not know much about IR. So that source is dry. There is a hackerspace [Link: Labitat.dk] here in Copenhagen, and I am now reaching out to them, as a last chance before considering buying my own sensor. If I do not have luck with the guys at Labitat, which sensor do you then recommend?
|
|
Post 8 made on Thursday May 5, 2016 at 10:06 |
Barf Long Time Member |
Joined: Posts: | August 2013 350 |
|
|
The "sensor" I like most is of course my own "baby" [Link: harctoolbox.org]. But there are may other things that work well with IrScrutinizer, see the manual. As I mentioned in the previous post, you can also use a JP1 learning remote or a Pronto to capture the signals and then transfer them to a computer using a suitable cable. But there is a leaning curve...
|
|
|
OP | Post 9 made on Tuesday June 7, 2016 at 00:09 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
I finally purchased the parts to make a replica of your "baby", and captured the signals with IrScrutinizer. Thank you for your work and time Barf. For those that own a Audio-gd Precision 1 like me. I made the codes available here: [Link: tinyurl.com]
Last edited by Smakodak on June 7, 2016 01:24.
|
|
Post 10 made on Tuesday June 7, 2016 at 16:22 |
Barf Long Time Member |
Joined: Posts: | August 2013 350 |
|
|
Nice!
But I have to ask you how you came up with the ugly Pronto signals like
--Ana1 protocol = NEC1, device = 72, obc = 22
0000 006C 0024 0000 0158 00AC 0015 0016 0015 0016 0014 0016 0015 0041 0014 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0014 0041 0015 0016 0014 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0014 0016 0015 0041 0014 0016 0015 0016 0015 0016 0014 0041 0015 0016 0014 0016 0015 0041 0014 0016 0015 0041 0014 0041 0015 0041 0015 05FD 0157 0056 0015 04EC
containing both "0015" and "0016"!! I know of only one program that is doing its arithmetics that badly... and it is not IrScrutinizer.
|
|
|
OP | Post 11 made on Wednesday June 8, 2016 at 05:32 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
Hi Barf I'm not exactly sure of what you are asking, but every signal was captured/scrutinized with IrSrutinizer? The remote that came with the amplifier is a very modest one: [Link: tinyurl.com]For instance when pressing "Vol-" you sometimes get the function of "Ana3". Also when capturing with IrSrutinizer I get different results every time I press the same button. Here are 3 examples from pressing "Ana1": 0000 006C 0026 0000 0157 00AD 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0041 0015 0016 0015 0042 0015 0041 0015 0041 0015 0016 0015 0042 0015 0041 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0042 0014 05FD 0158 0056 0015 048B 0158 0056 0015 04EC 0000 006C 0022 0000 0157 00AD 0015 0016 0015 0016 0015 0016 0014 0042 0015 0016 0015 0016 0015 0042 0015 0016 0015 0042 0013 0042 0014 0042 0015 0016 0015 0042 0014 0042 0015 0016 0014 0042 0015 0016 0015 0042 0013 0042 0015 0016 0014 0042 0016 0016 0015 0016 0015 0016 0014 0042 0015 0016 0015 0016 0014 0042 0015 0016 0014 0042 0014 0042 0014 0042 0014 04EC 0000 006C 0024 0000 0158 00AC 0015 0016 0015 0016 0015 0016 0015 0041 0014 0016 0015 0016 0014 0041 0015 0016 0015 0041 0015 0041 0015 0041 0014 0016 0015 0041 0014 0041 0015 0016 0014 0041 0015 0016 0014 0041 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0041 0014 0016 0015 0016 0015 0041 0014 0016 0015 0041 0014 0041 0014 0041 0015 05FC 0158 0057 0015 04EC I hope this whas what you were asking about?! Regards Anders
|
|
Post 12 made on Wednesday June 8, 2016 at 08:33 |
Barf Long Time Member |
Joined: Posts: | August 2013 350 |
|
|
Ok, then I guess my post was quite confusing... Sorry for that.
You probably captured the signals in "raw" mode. This is only in rare occurrences a sensible thing to do. All physical measurements, not only the capturing of IR signals, are associated with measurement errors. This is unavoidable, and a fact of life.
Instead, you should (normally) capture in "parametric" mode. Then IrScrutinizer identifies the signals as belonging to a certain protocol (here NEC1), and replaces them with the computed, mathematically exact representation. Using these instead of the measured ones leads to a more reliable and robust system. We have thus eliminated the measurement errors. If you need for example the Pronto Hex, it can be generated during export. And there will be no "0015".
|
|
|
OP | Post 13 made on Wednesday June 8, 2016 at 23:41 |
Smakodak Long Time Member |
Joined: Posts: | April 2016 16 |
|
|
I get it - on a philosophical level, and now also in using your application. Though I still haven't got the slightest clue as to how a mathematical exact representation of an infrared signal becomes exactly that. But spare your time. This isn't my field. I'm just a humble user relying on your expertise. Here are my results after capturing in parametric mode: [Link: drive.google.com]Even though I, as I stated above, do not understand it, it seems more consistent and pleasant to the eye :) Thanks again Barf
|
|
Post 14 made on Thursday June 9, 2016 at 04:27 |
Barf Long Time Member |
Joined: Posts: | August 2013 350 |
|
|
Let me just add that using clean codes is not just theoretically cool, in practice it really makes the system more reliable. When the receiver (in the to-be-controlled device) receives the signal, there are again measurement errors. If using unclean codes, you are actually adding two measurement errors...
Ok, I stop here...
|
|
|
Post 15 made on Tuesday October 17, 2017 at 14:43 |
borgon Long Time Member |
Joined: Posts: | August 2011 44 |
|
|
to piggyback, anyone able to help me convert these to HEX? can’t seem to figure it out in or scrutinizer...
Please find them below
Best regards Lyngdorf Audio Flemming Smith
IR CODES / NEC Protocol
Description Value 0 0x37CA, 0x00FF 1 0x37CA, 0x01FE 2 0x37CA, 0x02FD 3 0x37CA, 0x03FC 4 0x37CA, 0x04FB 5 0x37CA, 0x05FA 6 0x37CA, 0x06F9 7 0x37CA, 0x07F8 8 0x37CA, 0x08F7 9 0x37CA, 0x09F6 Audio 0x37CA, 0x0AF5 Setup 0x37CA, 0x0BF4 Power Togle 0x37CA, 0x0CF3 Power On 0x37CA 0x807F Power Off 0x37CA 0x817E Info 0x37CA, 0x0DF2 Previous 0x37CA, 0x0EF1 Play_Pause 0x37CA, 0x0FF0 Next 0x37CA, 0x10EF Up 0x37CA, 0x11EE Left 0x37CA, 0x12ED OK 0x37CA, 0x13EC Right 0x37CA, 0x14EB Down 0x37CA, 0x15EA Back 0x37CA, 0x16E9 Menu 0x37CA, 0x17E8 SRC 0x37CA, 0x18E7 Vol+ 0x37CA, 0x19E6 SRC+ 0x37CA, 0x1AE5 Vol- 0x37CA, 0x1BE4 Mute 0x37CA, 0x1CE3 SRC- 0x37CA, 0x1DE2
|
|
|
Before you can reply to a message... |
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now. |
Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.
|
|