Hanging serial port in linux client

I am using a free version of virtualhere to find that it has a convenient behavior to my work or not. In my scenario I configured a ubuntu 16.04 on windows 10 hyper-v system. Hyper-v is a great solution in my case but has an annoying shortage that has not any serial sharing support, so I use virtualhere to share my usb connected to windows 10 for my ubuntu system.
Now I faced a bug in system after sometimes working with serial in linux, it hangs completely and I could not write anything to serial and sometimes even I could not read data from serial. If I try to reopen the serial port it may take some insane time about 20 seconds and sometimes it could not even reopen and program completely hangs and even it could not be killed.
Currently I use a console version of virtualhere on linux but I am getting the same behavior when using gui version on linux.

Thanks in advance,
Regards

#2

Try this,

on the windows 10 host, bring up Windows Device Manager, then the COM port device listed right click Properties -> Power Management -> UNcheck "Allow this computer to turn off this device to save power"

#3

I use a ch340 chip for usb to serial and there is no such option that you mentioned in windows 10.

#4

I use a ch340 driver for usb to serial communication and there is no such option that you mentioned.

#5

Im not sure, i think its probably a bug in the linux kernel, do you have an FTDI or prolific, serial->USB instead? Those work better. You could also try updating the kernel in your client by using sudo apt-get update; sudo apt-get upgrade -y