From: <li...@ba...> - 2006-02-25 20:17:22
|
Hi! Allan Stirling "Dib...@pe..." wrote: [...] > Each transmission is sent in one request, with what looks like a blank > ACK packet getting sent back. Here is part of the stream from a send of > a RC6 (I believe - Sky UK remote) split up for easy reading: [...] > As you can see, this looks generalizable to: > > Start sending x=6 All blasters x=4 Blaster 1 x=2 Blaster 2 > 9f080x > > Send code xx xx xx xx > 84 xx xx xx xx > > Finish sending ? > 81 5f 80 To generalize even further, each packet looks like this: 8n X1 ... Xn X(n) is a pulse or space duration, pulses have the MSB set. The other 7 bits encode the length. The resolution is 50 us. 84b6108a07 means: 4 bytes: 0x36 * 50 us pulse 0x10 * 50 us space 0x0a * 50 us pulse 0x07 * 50 us space values longer than 127 * 50 us seem to be encoded by several sequential bytes. 0x80 marks the end. Should be trivial to implement in the driver. Actual it's the same format that the receiver uses. Christoph |