如何将表单中的文本发送到PuTTy,然后通过串口发送? [英] How can I send text from a form into PuTTy, to then be sent through a Serial Port?

查看:113
本文介绍了如何将表单中的文本发送到PuTTy,然后通过串口发送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个应用程序,我需要从表单传输文本并将其放入PuTTy以发送到串行设备。我们的想法是有一个带有多个按钮代表数字的表格(即?STX01P00204 ## ETX?),这样当点击它时,该号码直接放入PuTTy并自动发送到串行设备。



我的问题是,是否有应用程序已经执行此过程我可以使用?如果没有,这是一个简单的项目编程,还是有许多并发症。我的编程经验很少,如果您有任何建议,请详细说明。谢谢。

I am building an application that I need to transmit text from a form and place it into PuTTy to be sent to a serial device. The idea is to have a form with multiple buttons representing numbers(i.e. STX01P00204##ETX) so that when it is clicked, that number is placed directly into PuTTy and automatically sent to the serial device.

My question is, are there applications that already do this process that I could use? If not, is this a simple project to be programmed or is there many complications with doing so. I have little experience programming so please be detailed if you have any suggestions. Thank you.

推荐答案

评论应该让你走上正确的道路。您已经开始进行串行通信了。



PuTTy非常有用,请保持方便。用它来测试你的硬件(因为你知道它的工作原理),每当遇到问题时都会回来做基本测试。



这是一个非常好的帮助您入门的基本教程: http://csharp.simpleserial.com/ [ ^ ]

正如您在C#中看到的那样,我们总是回到SerialPort类:https://msdn.microsoft.com/en-us/library /system.io.ports.serialport(v=vs.110).aspx [ ^ ]



这里有很多优秀的文章在CP,但我将由专家挑选一对。从这开始就有一个非常好的背景说明:



C#中的串口通信初学者 [ ^ ]



和这一个:

Arduino,C#和串行接口 [ ^ ]



对于Arduino替换您自己的设备。



这将让你开始,但一如既往地回到这里提出具体问题。
The comments should have put you on the right path. You are at the point we all began with serial communications.

PuTTy is very useful, keep it handy. Use it to test your hardware (because you know IT works) and whenever you run up against a problem come back to it to do basic testing.

This is a very basic tutorial to get you started: http://csharp.simpleserial.com/[^]
As you can see in C# we always come back to the SerialPort class: https://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx[^]

There are many excellent articles here on CP but I will pick a couple by experts. Start with this which has a very good background explanation:

Serial Comms in C# for Beginners[^]

and this one:
Arduino, C#, and Serial Interface[^]

For Arduino substitute your own device.

This will get you started but as always come back here with specific questions.


这篇关于如何将表单中的文本发送到PuTTy,然后通过串口发送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆