通过桌面快捷方式打开串行端口. [英] Opening a serial port via a desktop shortcut.

查看:143
本文介绍了通过桌面快捷方式打开串行端口.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我在以下方面寻求您的帮助.我有一个代码,可以将二进制文件数据逐帧发送到串行端口引擎.为此,我在系统上连接了一个微控制器来执行通信.每次我运行程序时,都会向微控制器发送一个打开端口的请求,并在打开端口后进行通信.

现在我的任务是我需要创建一个桌面快捷方式(例如,我的EXE).单击此快捷方式后,应直接要求打开端口并进行通讯,而在关闭应用程序后,通讯应退出进程.通过我的主程序完成相同的过程时,端口不应打开或关闭.也就是说,对此不应该采取任何行动.

请帮我解决这个问题.在此先感谢您.

Hi all,

I m seeking your help for the following. I have a code which sends a binary file data to a Serial port engine frame by frame. For this I have a micro-controller attached with my system to perform the communication.Everytime i run the program a request for port open is sent to the microcontroller and after the port opens the communication occurs.

Now my task is i need to create a desktop shortcut(for eg my EXE).This shortcut when clicked should directly request for port open and carry forward the communication and after communication when the application is closed it should quit the process. While the same process when done through my main program the port should not open or close. ie no action regarding this should happen.

Pls help me regarding this. Thanks in advance.

推荐答案

阅读以下文章.您所需的一切都在那里.

使用C#和Whidbey进行的串行通信 [
Read the following article. All what you need is there.

Serial Communication using C# and Whidbey[^]


这篇关于通过桌面快捷方式打开串行端口.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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