This is the most crucial step. It often involves using ADB commands ( adb shell -> su -> setprop sys.usb.config diag,adb ) or dialing a hidden menu code to activate the diagnostic port.
However, based on the acronyms, it is highly likely you are referring to tools used in (specifically for Qualcomm chipsets): qxdm xda