Skip to content

Commit c6e9565

Browse files
committed
experiments/mtp.py: Dump info
Signed-off-by: Hector Martin <[email protected]>
1 parent aacbfc0 commit c6e9565

2 files changed

Lines changed: 19 additions & 14 deletions

File tree

proxyclient/experiments/mtp.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,18 @@ def reset(i):
8080
mp = MTPProtocol(u, node, mtp, dc, smc)
8181

8282
mp.wait_init("keyboard")
83-
mp.wait_init("multi_touch")
83+
#mp.wait_init("multi_touch")
84+
mp.wait_init("stm")
8485

8586
mtp.stop()
8687
mtp.start()
8788
mon.poll()
8889

90+
for i in range(256):
91+
mp.stm.get_report(i)
92+
mtp.work()
93+
mp.work_pending()
94+
8995
#for i in range(256):
9096
#if i in (0x40, 0x42):
9197
#continue
@@ -104,15 +110,15 @@ def reset(i):
104110
#print(f"{m.command:#x} {m.args.hex()}")
105111
#mp.comm.device_control(m)
106112

107-
mon.poll()
108-
mtp.stop()
109-
mon.poll()
110-
mtp.start()
113+
#mon.poll()
114+
#mtp.stop()
115+
#mon.poll()
116+
#mtp.start()
111117

112-
mon.poll()
113-
mtp.stop(1)
114-
#reset(1)
115-
#p.dapf_init_all()
118+
#mon.poll()
119+
#mtp.stop(1)
120+
##reset(1)
121+
##p.dapf_init_all()
116122

117123
#mtp.boot()
118124

proxyclient/m1n1/fw/mtp.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -311,11 +311,10 @@ class MTPMultitouchInterface(MTPHIDInterface):
311311
def initialize(self):
312312
super().initialize()
313313

314-
data = open("afe.bin", "rb").read()
315-
self.proto.comm.init_afe(self.iface, data)
316-
self.proto.comm.device_reset(self.iface, 1, 0)
317-
self.proto.comm.device_reset(self.iface, 1, 2)
318-
314+
#data = open("afe.bin", "rb").read()
315+
#self.proto.comm.init_afe(self.iface, data)
316+
#self.proto.comm.device_reset(self.iface, 1, 0)
317+
#self.proto.comm.device_reset(self.iface, 1, 2)
319318

320319
class MTPKeyboardInterface(MTPHIDInterface):
321320
NAME = "keyboard"

0 commit comments

Comments
 (0)