![](templates/subSilver/images/CCSLogo.jpg) |
![CCS C Software and Maintenance Offers](templates/subSilver/images/forumAd6.jpg) |
View previous topic :: View next topic |
Author |
Message |
dsk Guest
|
Sony infrared controller emulator |
Posted: Thu May 08, 2008 3:16 pm |
|
|
Hello there. I've seen many great examples of infrared controllers and programming needed, for CCS, in this forum. I've learned a lot from it, specially from the one related to Sony codes.
I have a special problem, though (I think).
I need to emulate a PS2 IR controller, and I have no idea how to create it.
I have the codes listing, here:
www.hifi-remote.com/sony/Sony_ps2.htm
But I can't for the life of me understand how to use those codes to send the commands... I don't know what 26.218 and 26.73 means, and how to send those 21 (power), 85 (right), etc. commands.
What hardware should I use, also? I'd like to use a pic using internal oscillator, and no external crystal, is it possible for this kind of project? Could I then use PWM? How would I do it?
Thanks for any answer, I'm really lost here... |
|
![](templates/subSilver/images/spacer.gif) |
ckielstra
Joined: 18 Mar 2004 Posts: 3680 Location: The Netherlands
|
|
Posted: Thu May 08, 2008 5:21 pm |
|
|
Quote: | I don't know what 26.218 and 26.73 means | The first number is the 'address code' of the device you want to send a command to. The second number is the actual command code. Every device type has a unique address code, for example televisions always have an address 1, VCR's an address 2, etc. The commands possible for each device type are different and you will have to look up the code in the mentioned list.
For example, the code to increase the volume on a TV can be deducted as follows: The website you provided a link to gives the address for a television as '1'. The code for 'Volume Up' on a tv is '18'. Resulting code = 1.18
TV Volume Down = 1.17
TV Channel Up = 1.16
VCR Channel Up = 2.16
etc.
This was for the 12-bit codes, but with more devices being developed Sony discovered they were running out of address codes. So besides the Sony12 code they introduced the Sony15 and Sony20 codes, these are an extension to the Sony12 code where a sub-device code was added. For example your PS2 controller has address 26.218. to send the 'Up' command (84) the code looks like 26.218.84.
The Sony format is very well described on the internet. It really helps if you use Google and do some basic reading before you continue on this project. I never used Sony before, but the above information was found and learned within 2 minutes. |
|
![](templates/subSilver/images/spacer.gif) |
dsk Guest
|
|
Posted: Sun May 11, 2008 10:13 am |
|
|
Thanks for all your help, ckielstra.
I'm going to go deeper on this, read a bit more.
Once again, thank you. |
|
![](templates/subSilver/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|