From: Enrico S. <enr...@gm...> - 2003-11-10 22:03:28
|
Hello Christoph, The the 5-byte-codes trancated to 4-byte codes are mostly unique (there are 3 codes which are also in 5 bytes non-unique). Using only 4 bytes should be ok for this remote in PC mode. But in this case the actual_length should always be truncated to 4. What do you mean with: > Most of the time the best approach is to find out what the remote > control really sends. Most receivers will not provide the raw code that > the remote control sends. Translating the received code to the original > remote control code will help here. These codes have constand length if > they use the same protocol. Some remote controls use different protocols > for different buttons, but this is rare. The remote transmites the codes not via IR but uses an antenna. I think the recieved codes are those which the remote sends. My Remote has two functions. One is to control the mouse with 11 keys which send 4-byte codes. Second, the about 30 other keys, which emits 5 bytes, have normal TV or REC remote control functions. It might be possible that these two groups have different protocols. How could I find out? Some Examples: 4-Byte-Codes: 00000000142570e0 00 PC_MOVE_W qsonicmr6in1pc 00000000142671e0 00 PC_MOVE_E qsonicmr6in1pc 00000000142772e0 00 PC_MOVE_N qsonicmr6in1pc 00000000142873e0 00 PC_MOVE_S qsonicmr6in1pc 00000000142974e0 00 PC_MOVE_NW qsonicmr6in1pc 00000000142a75e0 00 PC_MOVE_NE qsonicmr6in1pc 00000000142b76e0 00 PC_MOVE_SE qsonicmr6in1pc 00000000142c77e0 00 PC_MOVE_SW qsonicmr6in1pc 00000000142d78e0 00 PC_CLICK_LEFT qsonicmr6in1pc 0000000014307be0 00 PC_CLICK_HAND qsonicmr6in1pc 0000000014317ce0 00 PC_CLICK_RIGTH qsonicmr6in1pc _____________X__ For this Remote Bits 9-13 seems to be relevant for 4-byte keys (These are all 4-byte keys) 5-Byte-Codes: 20ee11827d 20ee11d52a 20ee1152ad 20ee11c936 20ee11b04f Every Code starts with 20EE11 so this could be truncated. In combination with 4-Byte codes the lowest 16 Bytes are relevant. The problem is that I could speak only for my remote in Combination with my reciever but the driver supports some more... See also Message thread with Paul Miller. Thanks Enrico |