[From Discord] program crash causes HID to become unusable

Imported from Discord — originally posted by bradcarnage on 23 March 2025.
Source: Discord


The QT app on windows is not consistently connecting to the keyboard and mouse, and i do not know why. I would like to debug this further but do not know how to get the QT project files set up on my system to change the source code around..


Staff: please reply here. When resolved, consider linking back on Discord to drive users to the forum.

Originally posted by bradcarnage on Discord, 23 March 2025.

If someone could help; that would be great! I would love to change a few things around and commit some changes via git

Originally posted by bradcarnage on Discord, 23 March 2025.

Originally posted by Kashall on Discord, 23 March 2025.

Are you using the official toolkit cables or your own? Try using a USB 2.0 port on the host computer, I think there is a issue with USB C to USB C connections

Originally posted by bradcarnage on Discord, 23 March 2025.

yeah. OEM cables included in kit. tried also using aftermarket ones etc. also tried using HID reset firmware upgrade etc

Originally posted by bradcarnage on Discord, 23 March 2025.

it connects alright (host to device), but for some reason the HID function will just stop working?

Originally posted by Kashall on Discord, 23 March 2025.

I have issues with this too. I think it is something with Windows itself as leaving the app open the serial device will disconnect

Originally posted by bradcarnage on Discord, 23 March 2025.

sometimes it’s fixed after a reboot, sometimes not

Originally posted by bradcarnage on Discord, 23 March 2025.

i will try rebooting, then connect host side, then target side

Originally posted by bradcarnage on Discord, 23 March 2025.

give me a minute

Originally posted by Kashall on Discord, 23 March 2025.

You can try using my experimental viewer, it requires Chrome: https://openterface-viewer.pages.dev

Openterface Viewer
A webviewer for the open-source kvm openterface.

Originally posted by Kashall on Discord, 23 March 2025.

Its not perfect, but see if you see the disconnecting there.

Originally posted by Kashall on Discord, 23 March 2025.

It won’t show anything but it would simply just stop working

Originally posted by bradcarnage on Discord, 23 March 2025.

this fixes it

Originally posted by bradcarnage on Discord, 23 March 2025.

OH

Originally posted by bradcarnage on Discord, 23 March 2025.

i think when the program segfaults, or crashes, it won’t release the COM port

Originally posted by Kashall on Discord, 23 March 2025.

Yeah okay there’s something weird going on there then

Originally posted by bradcarnage on Discord, 23 March 2025.

when closing the program normally it seems to release the COM port properly. i think a “try except” block is needed then to release the com port even if the program crashes or something goes terribly wrong

Originally posted by bradcarnage on Discord, 23 March 2025.

program crash causes HID to become unusable