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

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

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

      <tfoot id='eZgID'></tfoot>
      1. C# 串口和超级终端

        时间:2023-11-10
        <i id='xDoHt'><tr id='xDoHt'><dt id='xDoHt'><q id='xDoHt'><span id='xDoHt'><b id='xDoHt'><form id='xDoHt'><ins id='xDoHt'></ins><ul id='xDoHt'></ul><sub id='xDoHt'></sub></form><legend id='xDoHt'></legend><bdo id='xDoHt'><pre id='xDoHt'><center id='xDoHt'></center></pre></bdo></b><th id='xDoHt'></th></span></q></dt></tr></i><div id='xDoHt'><tfoot id='xDoHt'></tfoot><dl id='xDoHt'><fieldset id='xDoHt'></fieldset></dl></div>
      2. <small id='xDoHt'></small><noframes id='xDoHt'>

          <tbody id='xDoHt'></tbody>

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

                1. 本文介绍了C# 串口和超级终端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 c# 和 Serialport 和 com0com(虚拟串行端口)我的问题是我的 c# 应用程序无法从超级终端接收数据,事件 DataRecived 没有被触发,如果我手动调用 readExisting 我什么也得不到要测试这个问题,你可以创建一个像这个有同样问题的基本 c# 应用程序 http://balau82.wordpress.com/2009/04/18/simplest-serial-port-terminal-in-csharp/ ,如果你运行这个应用程序的 2 个实例没问题,但是如果您运行一个实例和超级终端,则数据将从 C# 发送到 hiperterminal,而不是从超级终端返回.

                  i am using c# and Serialport and com0com(virtual serial ports) My problem is that my c# application can't recive data from hyperterminal,the event DataRecived is not fired and if i call manualy the readExisting i get nothing To test this problem you can create a basic c# app like this one that has same problem http://balau82.wordpress.com/2009/04/18/simplest-serial-port-terminal-in-csharp/ , if you run 2 instances of this app all is ok, but if you run one instance andne hyperterminal the data is send from C# to hiperterminal but not from hyperterm back.

                  推荐答案

                  太简单了,保证不行.您需要在 SerialPort 上设置通信属性以将它们与超级终端匹配.至少波特率、数据位、奇偶校验和停止位.如果没有检测到在线设备,超级终端将不会发送任何内容.您必须将 RtsEnable 和 DtrEnable 属性设置为 true.

                  It's rather too simple, guaranteed to not work. You'll need to set the communication properties on the SerialPort to match them with HyperTerminal. Baudrate, DataBits, Parity and StopBits at least. And HyperTerminal won't send anything if it doesn't detect the device on-line. You have to set the RtsEnable and DtrEnable properties to true.

                  这篇关于C# 串口和超级终端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:将正确的 Gcode 字符串发送到串行端口? 下一篇:将 Silverlight 连接到本地计算机的 COM 端口

                  相关文章

                    <legend id='dIVPQ'><style id='dIVPQ'><dir id='dIVPQ'><q id='dIVPQ'></q></dir></style></legend>
                  1. <tfoot id='dIVPQ'></tfoot>

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

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

                      • <bdo id='dIVPQ'></bdo><ul id='dIVPQ'></ul>