Manual loading&unloading driver in Windows with .N

2019-08-13 17:13发布

I have a device which is connected to a computer using the USB port through a COM-USB converter, and I use FTDI drivers to emulate a virtual COM port on this USB.

My converter sometimes freezes and the Windows driver too. I cannot open/close the COM, the software cannot communicate through it, and at last - I cannot stop or delete this virtual port from the device manager in Windows. The only solution is to reboot computer.

This software is used in automation, so rebooting is the worst solution we have.

I think, that loading this driver from my program, working through this copy of driver, and unloading it, if it freezes is the only way.

Can you help me, how can I do this? Or maybe another solutions is available?

标签: c# .net driver
1条回答
孤傲高冷的网名
2楼-- · 2019-08-13 17:44

From what You wrote I think that whole it's driver fault. So loading and unloading won't help because driver doesn't work properly. However this can help You to write a function to load and unload a driver using .NET

查看更多
登录 后发表回答