<bdo id='LS8IF'></bdo><ul id='LS8IF'></ul>
    <legend id='LS8IF'><style id='LS8IF'><dir id='LS8IF'><q id='LS8IF'></q></dir></style></legend>
    <tfoot id='LS8IF'></tfoot>

    <small id='LS8IF'></small><noframes id='LS8IF'>

    <i id='LS8IF'><tr id='LS8IF'><dt id='LS8IF'><q id='LS8IF'><span id='LS8IF'><b id='LS8IF'><form id='LS8IF'><ins id='LS8IF'></ins><ul id='LS8IF'></ul><sub id='LS8IF'></sub></form><legend id='LS8IF'></legend><bdo id='LS8IF'><pre id='LS8IF'><center id='LS8IF'></center></pre></bdo></b><th id='LS8IF'></th></span></q></dt></tr></i><div id='LS8IF'><tfoot id='LS8IF'></tfoot><dl id='LS8IF'><fieldset id='LS8IF'></fieldset></dl></div>

      获取串口连接的设备名称

      Get the device name connected to the serial port(获取串口连接的设备名称)

            <bdo id='o7rvA'></bdo><ul id='o7rvA'></ul>
            <tfoot id='o7rvA'></tfoot>
                <tbody id='o7rvA'></tbody>
            1. <i id='o7rvA'><tr id='o7rvA'><dt id='o7rvA'><q id='o7rvA'><span id='o7rvA'><b id='o7rvA'><form id='o7rvA'><ins id='o7rvA'></ins><ul id='o7rvA'></ul><sub id='o7rvA'></sub></form><legend id='o7rvA'></legend><bdo id='o7rvA'><pre id='o7rvA'><center id='o7rvA'></center></pre></bdo></b><th id='o7rvA'></th></span></q></dt></tr></i><div id='o7rvA'><tfoot id='o7rvA'></tfoot><dl id='o7rvA'><fieldset id='o7rvA'></fieldset></dl></div>

              • <legend id='o7rvA'><style id='o7rvA'><dir id='o7rvA'><q id='o7rvA'></q></dir></style></legend>

                <small id='o7rvA'></small><noframes id='o7rvA'>

                本文介绍了获取串口连接的设备名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                我搜索如何获取串口连接的素材的设备名称.

                I search how to get the device name of the material connected to the serial port.

                我有两种不同类型的材料可以连接在上面.

                I've two different types of material that can connect on it.

                第一个:打印机(只接收数据不发回)第二个:余额(只发送数据,不接收)

                First one : a printer (only receives data and send nothing back) Second one : a balance (only send data and receives nothing)

                如何区分这两种材料?

                谢谢.

                推荐答案

                没有通用的识别串口(UART RS232)设备的方法.

                There is no univeral way of identifying serial port (UART RS232) devices.

                除非设备有特殊的命令,您可以发送到设备并让它响应识别信息,否则您无能为力.

                Unless the devices have special commands that you can send to the device and have it respond with identifying information there is not much you can do.

                通常依赖于串行端口的应用程序将有一个标准设置屏幕,用户将使用该屏幕来配置设备所连接的串行端口、波特率、奇偶校验位、停止位和数据位等端口配置.如果可以在同一个端口上切换多个设备,则操作员将负责在与设备通信之前为目标设备选择正确的配置.

                Typically application that rely on the serial port will have a standard setting screen that the user would use to configure the serial port the device is connected to, port configuration for things like baud rate, parity bits, stop bits and data bits. If mutiple devices can be switched on the same port, the operator would then be responsible for selecting the correct configuration for the target device before communicating with the device.

                这是 USB 等新技术的优势,其中设备标识内置于标准中.

                This is the advantage of newer technologies like USB etc. where device identification is built into the standard.

                这篇关于获取串口连接的设备名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Multicast delegate weird behavior in C#?(C# 中的多播委托奇怪行为?)
                Parameter count mismatch with Invoke?(参数计数与调用不匹配?)
                How to store delegates in a List(如何将代表存储在列表中)
                How delegates work (in the background)?(代表如何工作(在后台)?)
                C# Asynchronous call without EndInvoke?(没有 EndInvoke 的 C# 异步调用?)
                Delegate.CreateDelegate() and generics: Error binding to target method(Delegate.CreateDelegate() 和泛型:错误绑定到目标方法)
              • <tfoot id='YRdF0'></tfoot><legend id='YRdF0'><style id='YRdF0'><dir id='YRdF0'><q id='YRdF0'></q></dir></style></legend>

                  <small id='YRdF0'></small><noframes id='YRdF0'>

                          <tbody id='YRdF0'></tbody>
                        • <bdo id='YRdF0'></bdo><ul id='YRdF0'></ul>

                          <i id='YRdF0'><tr id='YRdF0'><dt id='YRdF0'><q id='YRdF0'><span id='YRdF0'><b id='YRdF0'><form id='YRdF0'><ins id='YRdF0'></ins><ul id='YRdF0'></ul><sub id='YRdF0'></sub></form><legend id='YRdF0'></legend><bdo id='YRdF0'><pre id='YRdF0'><center id='YRdF0'></center></pre></bdo></b><th id='YRdF0'></th></span></q></dt></tr></i><div id='YRdF0'><tfoot id='YRdF0'></tfoot><dl id='YRdF0'><fieldset id='YRdF0'></fieldset></dl></div>