o-gs / dji-firmware-tools

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

Mavic mini - on tools calibration USB connection lost before completing #265

Open WACITDJ opened 2 years ago

WACITDJ commented 2 years ago

On windows 10 the allocated com port for the usb only stays available for a short time. When running tools calibration, command below, it starts and before completion loses the usb/com connection (windows make noise indicating it is lost contact) and calibration just stops. Com port 3 shows initially in device manager and then after about 10 seconds disappears. Anyone any ideas.

py comm_og_service_tool.py --port com3 WM160 GimbalCalib JointCoarse

mefistotelis commented 2 years ago

You're not completely right about the calibration progress.

Anyway, you might try to call do_assistant_unlock() before the calibration - maybe that will help with disappearing port.

I'm not sure whether only that is needed, or some kind of heartbeat. I remember seeing one of newer drones having programmed the need of heartbeat, which is just another packet, sent periodically. So if the unlock call won't help, that's the lead to follow next.

WACITDJ commented 2 years ago

Thanks, just found out I had to run the DJ assistant 2 first, then shut it down. Found in another thread and did not realise you had to do this. This will hold the USB port and stop it going into charging mode. Then use the tools.