OpenGD77 CPS COM port problems

Locked
VK3KYY
Posts: 7590
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

OpenGD77 CPS COM port problems

Post by VK3KYY » Wed Jul 19, 2023 12:21 am

The OpenGD77 firmware operates as a USB Serial Com port after the firmware has been installed

Note.
Before the firmware is installed all radios will appear as whatever USB device the official firmware creates.
Also when the radios are in Device Firmware Update (DFU) mode, they do not appear as a USB serial device either


Window 7 and Windows 10 do not automatically recognise the OpenGD77 firmware USB connection as a Serial device because these versions of Windows do not query the USB device to find its device type.

AFIK. Windows 11 and Linux do query USB devices and Windows 11 sometimes automatically installs a default USB Serial aka CDCACM driver.
However on Windows 11 this is a problem, becuase Windows does not name the device as "OpenGD77" so the CPS has no way of knowing that a specicfic COM port is the OpenGD77 radio.


Windows 7 and Windows 10 do not query USB devices when they are connected, so the OpenGD77 CPS installer includes a small program, which uses a third party utility called LibWDI https://github.com/pbatard/libwdi, to assign the built in Windows USB Serial driver to the USB Vendor / Product ID of the USB Serial device created by the firmware.

The LibWDI also names the com port as OpenGD77


When the OpenGD77 CPS need to read or wite to the firmware in the radio, it opens the Com port named "OpenGD77", however becuase Windows 11 automatically installs the Serial driver, and gives it a gerneric name, hence the OpenGD77 will not be able to find which com port is the OpenGD77 radio

If the CPS can't find the com port, you need to manually select it for each data transfer


On Windows 10. If the COM device works but is not named "OpenGD77", you should uninstall the default driver, and reinstall the OpenGD77 Com driver by re-installing the OpenGD77 CPS

Also note that Windows installs a separate device driver to each USB socket, so plugging the radio into a different socket could potentially cause Windows to use a different driver.

Locked