I have been playing around with a IR dongle for a Sony PS3. Everything is working fine, thanks to JP1. I am interested in understanding format the IR codes are provided by the vendor and how to convert to/from JP1 type codes.
The vendor codes for up, down, left, right are 49D79, 49D7A, 49D7B, 49D7C. The JP1 OBC, byte2:d#dev, 3-digit EFC that correspond to these are (121, 1 26, 190), (122, 1 26, 192), (123, 1 26, 188), (124, 1 26, 195).
When I talk to the vendor, I hope to be able to use his codes as he knows nothing about JP1.
Thanks
Code Conversion for Sony
Moderator: Moderators
That byte2 value is used indirectly. It is not part of the signal. It is an index into information (that you didn't quote) that is on the setup sheet, that does go into the signal.
The EFC is not needed.
The JP1 form you should work with is device, subdevice and OBC.
Here is how you break apart the manufacturer supplied hex code to get device, subdevice and OBC.
1) Take the first two digits. For "up" those are 49. Convert to decimal. That is 73. This is the subdevice number.
2) Take the third digit. For "up" that is D. Convert to decimal. That is 13. Double it. That is 26. Save for step 3.
3) Look at the fourth digit:
a) If it 0 to 7: then use it unchanged in step 4 and use the result of step 3 as the device number.
b) If it is 8,9,A,B,C,D, or E: subtract 8 from it and use that in step 4. Add 1 to the result of step 3 to get the device number.
4) Take the fourth digit, possibly modified by step 3, combined with the last digit. For "up" those are 79. Convert to decimal. That is 121. This is the OBC number.
The EFC is not needed.
The JP1 form you should work with is device, subdevice and OBC.
Here is how you break apart the manufacturer supplied hex code to get device, subdevice and OBC.
1) Take the first two digits. For "up" those are 49. Convert to decimal. That is 73. This is the subdevice number.
2) Take the third digit. For "up" that is D. Convert to decimal. That is 13. Double it. That is 26. Save for step 3.
3) Look at the fourth digit:
a) If it 0 to 7: then use it unchanged in step 4 and use the result of step 3 as the device number.
b) If it is 8,9,A,B,C,D, or E: subtract 8 from it and use that in step 4. Add 1 to the result of step 3 to get the device number.
4) Take the fourth digit, possibly modified by step 3, combined with the last digit. For "up" those are 79. Convert to decimal. That is 121. This is the OBC number.
Thanks for the quick response John.
I am using the Sony Combo (12/15/20) which in KM shows subdev1 of 73 and subdev2 of 218. If byte2 = 1 26, the sub-device is 73 and 2 26 would be 218?
Is the device 26 for both?
Any additional help you can provide going from OBC to the last two Hex digits would be great.
I am using the Sony Combo (12/15/20) which in KM shows subdev1 of 73 and subdev2 of 218. If byte2 = 1 26, the sub-device is 73 and 2 26 would be 218?
Is the device 26 for both?
Any additional help you can provide going from OBC to the last two Hex digits would be great.
That combo protocol lets you select a device number for each individual signal.wizatdiz wrote:Is the device 26 for both?
The four signals you quoted from the vendor were all device 26. I don't know whether all the signals for your PS3 dongle are device 26.
Those four signals are the last four in the 26.73 table at:
http://www.hifi-remote.com/sony/Sony_dvd.htm
I expect most of your ps3 signals are the same as the PS2 signals 26.218 that you can find at:
http://www.hifi-remote.com/sony/Sony_ps2.htm
From OBC to those hex digits?? I thought you wanted to get OBC from the hex codes you get from the vendor.wizatdiz wrote:Any additional help you can provide going from OBC to the last two Hex digits would be great.
But either way, it is easy if you know how to convert between hex numbers and decimal numbers. If you don't know how, you can use Windows calculator in view/scientific mode: Click the "Hex" or "Dec" radio-button, then type a number in that mode, then click the other radio-button (Dec or Hex) to translate to the other.
For example, subdevice 218 is a decimal number. Click Dec, then 218, then Hex and you see DA. Similarly for the Eject code (from the web page I gave above), which is OBC 22. So Dec then 22 then Hex, gives you 16. So the PS2 eject code in your vendor form is: DAD16