Quote Originally Posted by financecatalyst View Post
Hi, Very useful document. I may be wrong but I want to confirm if it is a mistake in the document or my understanding. In listing 9 of the document, it says :
Code:
 If IR_Dec<>0 then goto again
Should it not be 1 instead of zero as in the same document towards the top it says television Device id is 1?
Yes, the Sony TV device code is 1, so that bit of code is probably wrong.

1) By the way have you got any resourse like this which can explain the transmitting part as well?
I don't have any URL's handy for transmitting but I ran across lots of that info during my brief research on receiving and decoding Sony protocol. I'm sure Google is your friend though.

2) Does it means that all Sony TVs can be controlled with same remote controll?
No. There's at least 3 different Sony protocols that I found in my brief search. Sony12, Sony15, and Sony20.
They are similar, but the number of transmitted bits varies. (12, 15, 20). The extra bits allows addressing more devices and commands.
For my purpose the simplest one, sony12 was adequate, so that's what I used.

FWIW, here's a site with a lot of good Sony IR info:
http://www.hifi-remote.com/sony/


If you are going to play with IR remotes, I'd like to recommend one of Tommy Tylers "USB IR Widgets". (Infrared signal recorder)
It plugs into a USB port and receives signals from your remote. The software that you download for it gives a great visual representation of the signal, gives duration times for the bits and spaces, operating frequency of the remote, what button was pressed, and what protocol it speaks (if the software recognizes it.) and more. For about $30 it's a handy (and fun) learning tool. If you are building your own PIC based IR transmitter,it should be a great diagnostic tool.
You can read out about the USB IR widget, and download it's software and operating instructions here. (About 1/2 way down the page):
http://www.hifi-remote.com/forums/viewtopic.php?t=9405

I have NO affiliation with Tommy or his store, but I bought a widget and like it, and it shipped fast after I ordered it. No complaints here.


Good luck!


steve