Hello,
I have a remote control that sends Sony SIRC15 protocol. PICAXE command irin expects SIRC12.
As far as I understand, SIRC15 has 3 bits more in the device code (or address) at the end.
With my example code shown below, the received IR code changes between 3 values:
24 (00011000)
76 (01001100)
102 (01100110)
24 is the correct code.
Can you please explain, how irin command works internally?
Is the startbit checked for correct timing of 2.4 ms? Then I would suppose that the 3 extra bits at the end should not care and simply could be ignored by irin. But that is not the case.
Thanks.
I have a remote control that sends Sony SIRC15 protocol. PICAXE command irin expects SIRC12.
As far as I understand, SIRC15 has 3 bits more in the device code (or address) at the end.
SB-Projects - IR - Sony SIRC Protocol
SB-Projects, A collection of my electronics and software projects.
www.sbprojects.net
With my example code shown below, the received IR code changes between 3 values:
24 (00011000)
76 (01001100)
102 (01100110)
24 is the correct code.
Can you please explain, how irin command works internally?
Is the startbit checked for correct timing of 2.4 ms? Then I would suppose that the 3 extra bits at the end should not care and simply could be ignored by irin. But that is not the case.
Thanks.
Code:
#picaxe 14m2
main:
gosub check_IR
goto main
check_IR:
irin [1000,check_IR_end],C.0,b0 ; wait for new signal
sertxd("IR: ", #b0,cr,lf)
check_IR_end:
return