I can't connect to the MissionPlanner

Can anyone help me, I can connect successfully in rare cases, and I will report an error ERROR MissionPlanner.MAVLinkInterface - System.IO.IOException: The device connected to the system is not functioning.
I can connect when the software is installed for the first time and open it, but after closing it and opening the software, I can’t connect

I need help! How can I fix it ?If I use betaflight firmware, it can work normal,but if I use ardupilot firmware and mission planner,it can not work!

INFO MissionPlanner.Utilities.TerrainFollow - OnPacketReceived to packets
INFO MissionPlanner.MAVLinkInterface - Open port with COM6 115200
HUD 1 hz drawtime 1 gl True
INFO MissionPlanner.Comms.WinSerialPort - Closing port COM6
INFO MissionPlanner.Comms.WinSerialPort - Closing port COM6
INFO MissionPlanner.MAVLinkInterface - set giveComport ProgressReporterDialogue Background thread current False new False
ERROR MissionPlanner.MAVLinkInterface - System.IO.IOException: 连到系统上的设备没有发挥作用。

在 System.IO.Ports.InternalResources.WinIOError(Int32 errorCode, String str)
在 System.IO.Ports.SerialStream.InitializeDCB(Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Boolean discardNull)
在 System.IO.Ports.SerialStream…ctor(String portName, Int32 baudRate, Parity parity, Int32 dataBits, StopBits stopBits, Int32 readTimeout, Int32 writeTimeout, Handshake handshake, Boolean dtrEnable, Boolean rtsEnable, Boolean discardNull, Byte parityReplace)
在 System.IO.Ports.SerialPort.Open()
在 MissionPlanner.Comms.WinSerialPort.Open() 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\Comms\CommsSerialPort.cs:行号 510
在 MissionPlanner.Comms.SerialPort.Open() 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\Comms\CommsSerialPort.cs:行号 148
在 MissionPlanner.MAVLinkInterface.OpenBg(IProgressReporterDialogue PRsender, Boolean getparams) 位置 C:\Users\mich1\Desktop\CubePilot\MissionPlanner\ExtLibs\ArduPilot\Mavlink\MAVLinkInterface.cs:行号 654