SerialPort.Open() throws IOException - Insufficient system resources exist to complete the requested service

自闭症网瘾萝莉.ら 提交于 2019-12-05 11:44:33

The answer to this question is that the serial port server used by the client was a wi-fi version (Moxa NPort W2150 Plus) and it turns out the exception occurs when the serial port server has wi-fi connectivity problems.

Had the same problem with NPort 5150. Increasing Network timeout (in NPort Administrator) solved my problem.

I recently had the same problem, the resolution for me was that I was accidentally using a straight-through DB9 cable with a device that required a null modem DB9 cable. Once I swapped to a null modem cable the error disappeared and the device functioned properly.

When I called Moxa, they suggested some other things to try that might lead to this problem:

  • Anti-virus software could be interfering with the communication
  • Try using the Driver Manager Utility rather than Nport Administrator when setting up the COM ports (on Windows machines)
mikestromi

I had this error and my problem was that the NPort Administration found and programmed the serial ports but the IP4 Address of the network card was set to DHCP. I think this happened during a system update.

Recovery from that:

  1. Add a TCP/IP address in the subnet of the network interface
  2. Reassign the serial ports in NPort Administration
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!