
Originally Posted by
Vicne
So I don't know what is different with your setup...
I don't know either, probably the startup sequence is different since I don't try to completely emulate the cdc.
I send:
Code:
def startPacket(self):
"""Tries to send the initial packet"""
time.sleep(0.5)
self.flushInput()
self._sendsequence=0
self._recsequence=0
if self.sendPacket('\x11\x60\x06'):
self.sendPacket('\x25\x03')
self.sendPacket('\x26\x05\x01\xFC\xFC')
self.sendPacket('\x25\x03')
if self.sendPacket('\x20\x01\x03\x09\x05\x01'):
return True
return False
nothing more and nothing less, then I enter a loop where I send
Code:
def fakePlaying(self):
"""Sends a fake I'm playing packet"""
return self.sendPacket('\x47%s\0x01\0x00\x00\x01\x00\x00\x00\x00\x00' % bcd(self._track))
The HU will send "random on"+"next track" if it was in random mode.
Bookmarks