IR transmission with X series

i still can't understand something from that link though

what i wanna talk about today is the "Decoding without INFRAIN or INFRAIN2", where the author of the page is trying to decode the IR signal coming from his sony remote. Above this is an explanation of how the Sony protocol works.

But i really don't get a few things about the decoding he's doing.

let's start from the bruteforceinfrain2 sub. First thing he does is check if the start is long enough. And that's ok.

-1- But then he pauses for some 20ms, which i don't understand why. If you go check in the protocol, it says that the pause between the "start" byte and the command is 0.6ms, then why does he pause for so long?



At the end he does this strange thing: b0 = b0 / 80, bit1= b1 / 80 etc....

-2- what i thought was: he's actually trying to make those pulse lenghts become 1s or 0s, so if the pulsin value was bigger than 80 it was a 1, if smaller then it would be a 0. But why 80?....

thanks for helping
 
Top