如何与其他硬件通信..? [英] how to communicate with other hardware..?

查看:62
本文介绍了如何与其他硬件通信..?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我不知道如何使我的程序与其他硬件通信,但是我想学习..所以我决定问你们是否可以给我一些指导..

我想与硬件进行通信,但是我想知道在外部硬件上执行某些操作时发送到计算机的数据是什么(它是控制器/网络读取器(我不知道我是否可以链接或(不是因为规则)的实际产品),我也想知道如何将一些数据发送到硬件.PC确实是通过USB端口与硬件连接的.我只有几个文件可以帮助进行通信:2x .dll文件(Comm.dll&Socket.dll),2x .lib文件(Comm.lib&Socket.lib),2x .h文件(Comm.h&Socket.h)和2x .def文件(也comm.def &socket.def)..
我想用C#编写程序.到目前为止,我读了几篇有关.dll文件..&等的文章,但这只会让我更加困惑.
因此,有关如何进行的介绍/方向是什么?

谢谢..


I have no knowledge on how I can make my program to communicate with some other hardware, but i wanna learn.. So i decided to ask you guys if you can give me some direction..

I want to make a communication with the hardware, but i wanna know what data is send to the computer when some action is taken on the external hardware (it is a Controller/Networking Reader (i don''t know if i can link or not (cause of rules) the actual product) and i also wanna know on how can i send some data to the hardware. The pc is connected true the USB port with the hardware. I have few files that should help in the communication: 2x .dll files (Comm.dll & Socket.dll), 2x .lib files (Comm.lib & Socket.lib), 2x .h files (Comm.h & Socket.h) and 2x .def files (also comm.def & socket.def)..
I wanna make my program in C#. So far i read few articles about .dll files ..& etc, but it only made me more confused..

So any intro/direction on how to proceed?

Thanks in forward..

推荐答案

只需打开 ^ ],您可以直接与其对话.它直接内置在.NET中,因此您不需要外部DLL文件!
Just open a SerialPort[^] and you can talk directly to it. This is directly built into .NET so you don''t need external DLL files!


与硬件进行通信可以使用C语言.
您可以使用C#进行编程,对于硬件功能性功能,您可以使用C,它可以在dll的帮助下组合到C#程序中(就像Java中一样,我们使用jni以便我们可以将Java程序与C语言模块)
For communicating with hardware you can make use of C language.
You can do your programming in c# and for hardware functinality function you can make use of C which could be combined to your C#program with help of dll(Like in Java we make use of jni so that we can connect our java program with a C language module)


这篇关于如何与其他硬件通信..?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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