Questions regaring the decoding of an IR signal
Posted: Wed Jul 21, 2010 6:10 am
Hello all, I hope someone can help me a bit with an issue I'm having.
I have recently built an IR receiver for USB (the USB IR Toy from DangerousPrototypes) and want to use it in conjunction with my Pioneer KURO Remote to control my mediapc.
The IR Toy only supports RC5 out of the box so I am trying to modify either the firmware or the driver to decode the Pioneer protocol.
If I look at the raw data supplied from the IR Toy in a logic analyzer I notice the pattern described by the specification (i.e the IR-receiver gets 10 1000 10 1000... etc which if I understood the IRP-specification should in the end be translated to 0101... ).
However when I try to visualize the signal as string of 1's and 0's it looks nothing like the protocol at all..it has stuff like 7 0's and 8 1's in a row in the middle of the transmission.
My questions thus is:
1. Is there a detailed description of the IRP specification somewhere? THe NEC2 IRP is {38.4k,564}<1,-1|1,-3>(16,-8,D:8,S:8,F:8,~F:8,1,-78)+ which i undestand it as 38.4khz, 564us pulses, 10 is a 0, 1000 is a 1, 16 1s is the beginning of signal...
I assume the -8 means it's part of the start signal, D: means 8 bit device, F: should be function? But what about the S: and the ~F: (one's complement of function code?)...
2. Is it even possible to to what I try to do? (convert the raw stream to a byte array)
3. If the above is possible, can the timing in the microcontroller that interprets and retransmits the IR-signal be an issue if it's not synced to the 564us that NEC uses?
4. Can i use the DecodeIR dll to decode the signal on my PC?
And as a side not, does anyone know what kind of license the DecodeIR is under? It would be great if i could use the decoding of it in the IR Toy firmware itself but I don't want to violate the license.
Thanks for any suggestions/pointers towards more information!
/Shadowsoul
I have recently built an IR receiver for USB (the USB IR Toy from DangerousPrototypes) and want to use it in conjunction with my Pioneer KURO Remote to control my mediapc.
The IR Toy only supports RC5 out of the box so I am trying to modify either the firmware or the driver to decode the Pioneer protocol.
If I look at the raw data supplied from the IR Toy in a logic analyzer I notice the pattern described by the specification (i.e the IR-receiver gets 10 1000 10 1000... etc which if I understood the IRP-specification should in the end be translated to 0101... ).
However when I try to visualize the signal as string of 1's and 0's it looks nothing like the protocol at all..it has stuff like 7 0's and 8 1's in a row in the middle of the transmission.
My questions thus is:
1. Is there a detailed description of the IRP specification somewhere? THe NEC2 IRP is {38.4k,564}<1,-1|1,-3>(16,-8,D:8,S:8,F:8,~F:8,1,-78)+ which i undestand it as 38.4khz, 564us pulses, 10 is a 0, 1000 is a 1, 16 1s is the beginning of signal...
I assume the -8 means it's part of the start signal, D: means 8 bit device, F: should be function? But what about the S: and the ~F: (one's complement of function code?)...
2. Is it even possible to to what I try to do? (convert the raw stream to a byte array)
3. If the above is possible, can the timing in the microcontroller that interprets and retransmits the IR-signal be an issue if it's not synced to the 564us that NEC uses?
4. Can i use the DecodeIR dll to decode the signal on my PC?
And as a side not, does anyone know what kind of license the DecodeIR is under? It would be great if i could use the decoding of it in the IR Toy firmware itself but I don't want to violate the license.
Thanks for any suggestions/pointers towards more information!
/Shadowsoul