Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto NG Family Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
Yamaha codes
This thread has 7 replies. Displaying all posts.
Post 1 made on Tuesday August 28, 2007 at 20:24
pipster
Lurking Member
Joined:
Posts:
August 2007
4
Hi, I've had a good look around the forums for help but despite lots of very helpful posts, couldn't get anything to work. Probable down to my lack of knowledge. I have found some codes on the web for my Yamaha KX 390 tape deck but haven't been able to convert in code for the Pronto (sbc ru950/tsu3000). An example of the code I have is '0x00000000FE0100FF'. The last 4 digits change for each function as expected. Can anyone help?

Many thanks
Phil
Post 2 made on Tuesday August 28, 2007 at 21:03
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
For the last 4 sets of 2 digits, replace as follows and use this code:

900A 006D 0000 0001 FE01 00FF

This is the NEC protocol with device = 254 (0xFE) and function code 0 (0x00)

I presume that you have a datasheet from Yamaha so you can simply replace the last 4 digits in the code above for different function code numbers.

You can also search this forum for +Makehex +NEC1.irp and can read up on what these numbers mean.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 3 made on Tuesday August 28, 2007 at 21:41
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
Close Lyndel, but LIRC files (such as the one pipster found) almost always have the bits in pure MSB sequence.

NEC protocols and 900A format pronto hex use LSB sequence within each byte.

So to translate, you need to reverse the bits in each byte. It is device 127, not 254.

900A 006D 0000 0001 7F80 00FF

For the other functions in that file [Link: lirc.sourceforge.net] you need to reverse each byte (00 and FF are the same reversed, but the others aren't).

Most LIRC files also invert the polarity, but that one didn't.

BTW, pipster, it's always better to provide the URL where you got your info. I knew at a glance the "254" was wrong, but forgot things I should have remembered about Yamaha and LIRC to tell me what was right. Fortunately the thing you quoted was very easy to track down via google. A glance at the whole LIRC file made it easy for me to see what I maybe should have seen from just 0x00000000FE0100FF

Last edited by johnsfine on August 28, 2007 21:48.
OP | Post 4 made on Wednesday August 29, 2007 at 19:25
pipster
Lurking Member
Joined:
Posts:
August 2007
4
Many thanks to you both, will try tommorow evening and let you know how it goes.

Ta phil
Phil
Post 5 made on Wednesday August 29, 2007 at 20:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Dohh! Don't know what I was thinking. I knew Yammy Cassette device was device 0x7f. Receivers use devices 0x7e and 0x7c.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 6 made on Thursday August 30, 2007 at 19:38
pipster
Lurking Member
Joined:
Posts:
August 2007
4
Hi again, please bear with me and forgive my ignorance. I've had a go at programming the code but must've gone wrong with reversing the bits. Play (00FF) worked fine. But tried reversing the bits from the lirc code and didn't get anywhere. Stop, in lirc is C03F, so what should that be for Pronto? I tried 0CF3 but that doesn't seem to work. Where have I gone wrong?

Many thanks
Phil
Phil
Post 7 made on Friday August 31, 2007 at 09:13
johnsfine
IR Expert
Joined:
Posts:
September 2002
5,159
Here are the digits pairs:

0 <-> 0
1 <-> 8
2 <-> 4
3 <-> C
5 <-> A
6 <-> 6
7 <-> E
9 <-> 9
B <-> D
F <-> F

The whole signal has four bytes, each of which is two hex digits. For example, Stop is:

FE 01 C0 3F

First you must find each digit in the above table (on either side) and change it to the digit that the table pairs it with. So Stop becomes:
F7 08 30 CF

Next you must swap the two digits in each byte, so Stop becomes:
7F 80 03 FC

The first two bytes always start as FE 01 so they always end as 7F 80, so you don't need to redo that part every time. But I included them this time to make the process clearer.
OP | Post 8 made on Sunday September 2, 2007 at 18:00
pipster
Lurking Member
Joined:
Posts:
August 2007
4
excellent. Thanks for all your help, the codes all work and my pronto now controls my tape deck. Many thanks again.

Phil
Phil


Jump to


Protected Feature 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.

Hosting Services by ipHouse