o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.44k stars 403 forks source link

comm_serialtalk.py: Attempt to find BULK endpoint #314

Closed tmbinc closed 1 year ago

tmbinc commented 1 year ago

The current method of finding the bulk endpoint (for usage with --bulk) is hardcoded to only work on a few devices. All modern DJI devices don't have ACM descriptors anymore. This change attempts to add support in a somewhat generic way.

Tested on:

(But not in all combinations with and without ADB enabled.)

Only tested on Linux; this may need fixes for Windows. Please don't merge yet without more testing.

Bin4ry commented 1 year ago

looks good to me, windows seems to work aswell. it's much better than the current approach so i will merge this now.