Conversation
|
Just one more thing. I have a D805 and I need to adjust EP_IN and EP_OUT to 0x83 and 2, respectively. |
send-file.py
Outdated
|
|
||
|
|
||
| if len(sys.argv) != 3: | ||
| print 'Usage: {0} <local> <remote>'.format(sys.argv[0]) |
There was a problem hiding this comment.
Please use print(...) for Python 3 compatibility
|
Hi Dorian, thank you for your interest and PR! I have added some inline comments. About the endpoint numbers, can you post a subset of the Also an additional tip for those who need something with low overhead: you can actually rename /dev/block/mmcblk0 and make a symlink or something. Then OPENing it for writing will allow you to use WRTE commands to transfer a whole file. Alternatively, write to an unused partition and use something like |
|
I actualy thought in replace /dev/block/mmcblk0 by a link but I not tried to implement. I'll sent and lsusb subset for D805 when I get home. I also tried in my D855 and I think that I have to adjust the endpoints too (I don't remember well). I'll check that and sent these informations in the next patch. |
|
I would not recommend renaming the mmcblk0 device unless the user is absolutely sure what (s)he is doing (and then I would still be careful). The D855 is the European version right? That is the one I have tested this project with. |
|
D805 usb information: |
|
One more thing. |
Rename lsusb.txt while at it. Thanks to @dorianlangbeck for the D805 dump (#1 (comment))
|
About the /dev/block path, my D855 has both, but on newer devices only the bootdevice path is present. I guess that some fallback is needed here. |
|
Initialy I created a new parser |
|
The If some common arguments are needed in the future, then it could be added as needed. |
|
I can't see the merge button... maybe only you @Lekensteyn can do it. |
With this script we can push files to phone using several EXEC blocks (with optimal payload size) to transfer a file to phone.