From: Allan S. <Dib...@pe...> - 2006-02-23 16:36:22
|
Hi! I've recently bought one of these, mistakenly assuming that the transmitter would work - Of course, it's not finished yet. I saw a few messages stating that capture on Windows was not possible but I'm afraid I didn't quite believe that and tried anyway. What works for me is a tetrahub - A hub with a transaction translator per-port. Not quite sure why, but capture with snoopypro from the device doesn't work with it directly attached to the port. Through a normal hub is broken as well. However, connected through the tetrahub, I see traffic. Using 'hip' I can capture and send codes through the device. 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: (Up key - Send to all blasters) 9f0806 84b6108a07 848b068b0f 848b0f9307 848b078a07 848a078b07 848a078a07 848b078a07 848a088a07 848a078a08 8492109307 848a108a08 84927f7f7f 847f7f7f7f 847f7f7f7f 847f7f7f7f 815f80 (Up key - Send to blaster 1) 9f0804 84b6108a07 848b068b0f 848b0f9307 848b078a07 848a078b07 848a078a07 848b078a07 848a088a07 848a078a08 8492109307 848a108a08 84927f7f7f 847f7f7f7f 847f7f7f7f 847f7f7f7f 815f80 (Up key - Send to blaster 2) 9f0802 84b6108a07 848b068b0f 848b0f9307 848b078a07 848a078b07 848a078a07 848b078a07 848a088a07 848a078a08 8492109307 848a108a08 84927f7f7f 847f7f7f7f 847f7f7f7f 847f7f7f7f 815f80 Left key 9f0806 84b6108b06 848b068b0f 848b0f9307 848b078a07 848a078b07 848a078a08 848a078a07 848a088a07 848a078a08 8492109308 8489109308 84897f7f7f 847f7f7f7f 847f7f7f7f 847f7f7f7f 815f80 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 Unfortunately, I'm having difficulty finding a good example to copy from for a USB blaster device. I'm only a copy / paste programmer, I'm afraid :( Can anyone give me some clues? Cheers, Allan. |
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 |