KurtE
Senior Member+
You too and me too that its working. Probably should solder up the M02 chips - still on track for Monday to get mine and then solder and test
EDIT: Now I have to sync up with MTP but not sure what version I should use.
Me too! - I need to double check that that branch (send_object_yield) still copies OK, I think I had a file corrupted. Will be trying it again maybe today.
I may also check out @WMXZ version as well, to see how he is trying to do some events generation. I know he said he had some success with the reset device one. But I may try to add in my code again to have my sample sketch to generate a new file and have it send an event (probably 2) to windows to update from.
Probably using the stuff from my USBHost MTPDevice test code.
Example output - cut out some of the initial debug stuff:
Code:
*** Device MTPD 1949: c - connected ***
manufacturer: Android
product: Android
Serial: D0FCA0A0342600M6
STD Version:64
Vendor extesion ID:6
MTP Version:64
Extensions:microsoft.com: 1.0; android.com: 1.0;
Mode:0
Operations: 1001 1002 1003 1004 1005 1006 1007 1008 1009 100A 100B 100C 100D 1014 1015 1016 1017 101B 9801 9802 9803 9804 9805 9810 9811 95C1 95C2 95C3 95C4 95C5
Events: 4002 4003 4004 4005 C801 400C
Device Properties: D401 D402 5003
Capture formats:
Playback formats: 3000 3001 3004 3005 3008 3009 300B 3801 3802 3804 3807 3808 380B 380D B901 B902 B903 B982 B983 B984 BA05 BA10 BA11 BA14 BA82 B906
Manufacturer:Amazon
Model:Fire
Serial:1.0
Get Storage IDS: 10001
*** MPT connected ***
Connected to:
Count of Storages: 1
0(10001): Internal storage() type:3 2 max:27571462144, free: 22527651840 access:0
========== Internal storage ===========
Music(1) FMT:3001 Size:0
Podcasts(2) FMT:3001 Size:0
Ringtones(3) FMT:3001 Size:0
Alarms(4) FMT:3001 Size:0
Notifications(5) FMT:3001 Size:0
Pictures(6) FMT:3001 Size:0
Movies(7) FMT:3001 Size:0
Download(8) FMT:3001 Size:0
DCIM(9) FMT:3001 Size:0
Android(a) FMT:3001 Size:4096
kindle(3a) FMT:3001 Size:4096
Books(3b) FMT:3001 Size:4096
Documents(3e) FMT:3001 Size:0
.imagecache(40) FMT:3001 Size:0
Audible(44) FMT:3001 Size:0
Contacts(b0) FMT:3001 Size:0
.bugsense(272) FMT:3000 Size:33
mapquest(276) FMT:3001 Size:0
sirius(421) FMT:3001 Size:4096
TuneIn Radio(5e6) FMT:3001 Size:4096
amazonmp3(925) FMT:3001 Size:0
AccuWeather(107c) FMT:3001 Size:0
.backups(115c) FMT:3001 Size:0
.chartboost(1160) FMT:3001 Size:0
zzz(14fe) FMT:3004 Size:0
rx event, len=1, i=0
rx queue i=0
---------- Commands ----------
s - Show storage list
e - enum <ID>
d - dump storage list
R - Remove <ID>
rx event, len=5, i=1
rx queue i=1
================= Start ENUM(62:Documents) =================
========== Enum completed (62:Documents ===========
Sidecars(3f) FMT:3001 Size:4096
PSNL!DigitalSupportPSNLs!bWFrZVNvZnR3YXJlVXBncmFkZUxldHRlci5odG1sLz9sb2NhbGU9QVRWUERLSUtYMERFUg_PSNL(6b4) FMT:3000 Size:88192
PSNL!DigitalSupportPSNLs!bWFrZVNvZnR3YXJlVXBncmFkZUxldHRlci5odG1sLz9sb2NhbGU9QVRWUERLSUtYMERFUg_PSNL.prc(6e4) FMT:3001 Size:0
PSNL!DigitalSupportPSNLs!bWFrZVdhUG9MZXR0ZXIuaHRtbD9iaW5hcnk9bW9iaTg_PSNL(752) FMT:3000 Size:81760
my data(14fc) FMT:3004 Size:0
Naxos.xls(14fd) FMT:ba85 Size:11776
abcdefg(1501) FMT:3000 Size:0
qwerty(1502) FMT:3000 Size:0
kkk(1504) FMT:3000 Size:0
EVENT C<- len:16 EVENT: OP:4002(EVT:OBJECT_ADDED) TID:166 P:1505
EVENT C<- len:16 EVENT: OP:400c(EVT:STORAGE_INFO_CHANGED) TID:169 P:10001
mtpd_event_callback 4002 1505 20206a88 : 0 0 20206320
CALLBACK: Object added: 20206a88 ID:00001505 P:20206320 C:0000: S:00010001 F:3000 new_file
mtpd_event_callback 400c 10001 - no node
CALLBACK: Storage Changed: 10001
EVENT C<- len:16 EVENT: OP:4003(EVT:OBJECT_REMOVED) TID:171 P:1504
mtpd_event_callback 4003 1504 202068c8 : 0 0 20206320
CALLBACK: Object removed: ## FreeStorageListTree: 202068c8 1504 10001: kkk
EVENT C<- len:16 EVENT: OP:400c(EVT:STORAGE_INFO_CHANGED) TID:171 P:10001
mtpd_event_callback 400c 10001 - no node
CALLBACK: Storage Changed: 10001
20006f70 ID:00010001 P:0000 C:202060e0: S:00010001 F:3001 Internal storage
202060e0 ID:00000001 P:20006f70 C:0000: S:00010001 F:3001 Music
20206110 ID:00000002 P:20006f70 C:0000: S:00010001 F:3001 Podcasts
20206140 ID:00000003 P:20006f70 C:0000: S:00010001 F:3001 Ringtones
20206170 ID:00000004 P:20006f70 C:0000: S:00010001 F:3001 Alarms
202061a0 ID:00000005 P:20006f70 C:0000: S:00010001 F:3001 Notifications
202061d0 ID:00000006 P:20006f70 C:0000: S:00010001 F:3001 Pictures
20206200 ID:00000007 P:20006f70 C:0000: S:00010001 F:3001 Movies
20206230 ID:00000008 P:20006f70 C:0000: S:00010001 F:3001 Download
20206260 ID:00000009 P:20006f70 C:0000: S:00010001 F:3001 DCIM
20206290 ID:0000000a P:20006f70 C:0000: S:00010001 F:3001 Android
202062c0 ID:0000003a P:20006f70 C:0000: S:00010001 F:3001 kindle
202062f0 ID:0000003b P:20006f70 C:0000: S:00010001 F:3001 Books
20206320 ID:0000003e P:20006f70 C:20206748: S:00010001 F:3001 Documents
20206748 ID:0000003f P:20206320 C:0000: S:00010001 F:3001 Sidecars
20206778 ID:000006b4 P:20206320 C:0000: S:00010001 F:3000 PSNL!DigitalSupportPSNLs!bWFrZVNvZnR3YXJlVXBncmFkZUxldHRlci5odG1sLz9sb2NhbGU9QVRWUERLSUtYMERFUg_PSNL
202067a8 ID:000006e4 P:20206320 C:0000: S:00010001 F:3001 PSNL!DigitalSupportPSNLs!bWFrZVNvZnR3YXJlVXBncmFkZUxldHRlci5odG1sLz9sb2NhbGU9QVRWUERLSUtYMERFUg_PSNL.prc
202067d8 ID:00000752 P:20206320 C:0000: S:00010001 F:3000 PSNL!DigitalSupportPSNLs!bWFrZVdhUG9MZXR0ZXIuaHRtbD9iaW5hcnk9bW9iaTg_PSNL
20206808 ID:000014fc P:20206320 C:0000: S:00010001 F:3004 my data
20206838 ID:000014fd P:20206320 C:0000: S:00010001 F:ba85 Naxos.xls
20206868 ID:00001501 P:20206320 C:0000: S:00010001 F:3000 abcdefg
20206898 ID:00001502 P:20206320 C:0000: S:00010001 F:3000 qwerty
20206a88 ID:00001505 P:20206320 C:0000: S:00010001 F:3000 new_file
20206350 ID:00000040 P:20006f70 C:0000: S:00010001 F:3001 .imagecache
20206380 ID:00000044 P:20006f70 C:0000: S:00010001 F:3001 Audible
202063b0 ID:000000b0 P:20006f70 C:0000: S:00010001 F:3001 Contacts
202063e0 ID:00000272 P:20006f70 C:0000: S:00010001 F:3000 .bugsense
20206410 ID:00000276 P:20006f70 C:0000: S:00010001 F:3001 mapquest
20206440 ID:00000421 P:20006f70 C:0000: S:00010001 F:3001 sirius
20206470 ID:000005e6 P:20006f70 C:0000: S:00010001 F:3001 TuneIn Radio
202064a0 ID:00000925 P:20006f70 C:0000: S:00010001 F:3001 amazonmp3
202064d0 ID:0000107c P:20006f70 C:0000: S:00010001 F:3001 AccuWeather
20206500 ID:0000115c P:20006f70 C:0000: S:00010001 F:3001 .backups
20206530 ID:00001160 P:20006f70 C:0000: S:00010001 F:3001 .chartboost
20206560 ID:000014fe P:20006f70 C:0000: S:00010001 F:3004 zzz
The good news is I am getting better understanding...
Also I am going to now split off the Serial emulation code and Serial fixes into new branch and try to PU it. And then rebase this code again on new branch. But current branch has been updated.