从串行端口接收数据 [英] Receive Data from Serial Port

查看:83
本文介绍了从串行端口接收数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想通过串口从我的 karel ms128 PBX系统接收数据。我试着创建一个电话记录历史。请给我一个示例项目。

I want to receive data from my karel ms128 PBX System through serial port. I have try to create a telephone call history. Please give me sample project.

推荐答案

它不是那样的工作。

我们不为你工作。

如果你想让别人写你的代码,你必须支付 - 我建议你去Freelancer.com并在那里问。



但是要知道:你得到了你付出的代价。支付花生,买猴子。



或者转到MSDN: https://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v = vs.110)的.aspx [ ^ ]和您正在使用的PBX手册,并自己开始编写。为了理解通信数据,你需要两者来计算发送和接收的内容。
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.

But be aware: you get what you pay for. Pay peanuts, get monkeys.

Or go to MSDN: https://msdn.microsoft.com/en-us/library/system.io.ports.serialport(v=vs.110).aspx[^] and the manual for the PBX you are using and start writing it yourself. You will need both in order to work out what to send and receive in order to understand the communication data.


使用 .NET SerialPort并不困难 class,你可以在网上找到很多教程。但是,为了完成您的任务,您必须仔细研究外部设备文档(如果可用)以实现所需的协议。
It is not difficult using the .NET SerialPort class, you may find many tutorials on the web. However, in order to accomplish your task, you have to carefully study the external device documentation (if available) in order to implement the required protocol.


我可以建议您一个非常直接的前进和这个简单的例子:

http://coad.net/Blog/Resources/SerialPortTerminal .zip [ ^ ]



同样在Code Project上你会找到一些文章。
I can suggest you a very straight Forward and easy example to dive into this:
http://coad.net/Blog/Resources/SerialPortTerminal.zip[^]

Also on Code Project you will find some articles.


这篇关于从串行端口接收数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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