如何将数据从驱动程序发送到串行端口 [英] How to send data from driver to Serial port

查看:93
本文介绍了如何将数据从驱动程序发送到串行端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我想问一下从驱动程序向COM端口发送数据的问题。

例如:

我从我的程序发送一个号码给我的司机。收到号码后,我的驱动程序加1,然后发送到连接到Serial2的Serial1。在终端我希望看到我的号码+1。类似的东西...



如何从驱动程序向COM发送任何内容?

Hi all!
I would want to ask u a question about sending data from driver to COM-port.
For example:
I send a number from my program to my driver. After receiving the number, my driver adds 1 to it and sends to Serial1 that is joined to Serial2. In terminal I expect to see "my number"+1. Something like that...

How can I send anything from my driver to COM?

推荐答案

我希望我的驱动程序在激活驱动程序时在串口发送一些符号'A'。

如果我不知道怎么办,我应该发布什么信息?我可以从驱动程序发送数据到应用程序,可以触摸驱动程序到串口,但不知道如何发送任何东西...(这些驱动程序的代码,我可以发布)
I want my driver to send some symbol 'A' in Serial port when driver is activated.
what information should i post if i have no idea how to do it? i can send data from driver to application, can touch driver to Serial port, but dont know how to send anything to it...(code of these drivers i can post tho)


尝试发布一个代码片段。没有人可以从那些告诉我们什么的信息中帮助你。
Try posting a code snippet .. no one can help you from that information which tells us nothing.


这篇关于如何将数据从驱动程序发送到串行端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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