zoukankan      html  css  js  c++  java
  • [转]How Can I Find Out What Is Using a Busy or Reserved Serial Port?

    转自:http://digital.ni.com/public.nsf/allkb/29B079481C5ECE76862578810082394E

     

    How Can I Find Out What Is Using a Busy or Reserved Serial Port?



    Primary Software: 
    Primary Software Version: 5.0.3
    Primary Software Fixed Version: N/A
    Secondary Software: Driver Software>>NI-Serial
    Hardware: Serial


    Problem: 
    I have a program that is returning VI_ERROR_RSRC_BUSY or other resource is busy error when trying to access a Serial (COM) port through VISA. How do I figure out what process is using the COM port?

    Solution: 
    To find the process which is using the Serial (COM) Port, follow the steps below:

      1. Download the Process Explorer tool, which is linked in the related links section of this article.
      2. Navigate to Control Panel » Device Manager. In Device Manager navigate to Ports (COM & LPT) and right click and select Properties on the target serial port.

      1. Select the Details tab and click the Property field and change the value to Service. Write down the value that is listed here. In the example below (a NI USB-232), the service value isNiSerU. Note the value of this field for searching in Process Explorer.

      1. Open Process Explorer and you will see a screen similar to the image below.

      1. Select Find » Find Handle or DLL... in the menu. A new window will pop up and in the field Handle or DLL substring type in the value that was obtained from Device Manager, in this case NiSerU
      2. Click Search and the results will populate to show which process is using a the particular handle. For example in the search below, the USB-232 shows as DeviceNiSerU1 being used by NIMax.exe. From here you can tell which process is using the serial port resource.




  • 相关阅读:
    Swift
    iOS 拨打电话
    UI控件问题和XCode编译警告和错误解决方法集锦 (持续更新ing)
    让UIWebView弹出键盘上的按钮显示中文 (附效果图)
    启动app时全屏显示Default.png (附效果图)
    三种数据存储 (plist,NSUserDefaults存储,NSKeyedArchiver存模型方法)
    生成圆形头像 (附效果图)
    循环按钮,并且选中 (附效果图)
    leetcode 字符串分割对称
    leetcode merge-sorted-array/
  • 原文地址:https://www.cnblogs.com/msdynax/p/3889604.html
Copyright © 2011-2022 走看看