我们如何将C#与其他硬件通信 [英] how can we communicate c# to other hardware
本文介绍了我们如何将C#与其他硬件通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
[][]
推荐答案
从您的问题:"[] []"很难确定.但是,最好的猜测是通过 SerialPort [ ^ ]类,可以进行交谈通过RS232/RS485或USB.
如果您想要更多,请提供更多细节.
顺便说一句:您提供的问题越详细,答案的质量就越高.极简主义非常好,但是...
From your question: "[][]" it is difficult to be sure. However, the best guess is via the SerialPort[^] class, which can talk via RS232/RS485 or USB.
If you want more, give more detail.
BTW: The more detail you give in a question, the better the quality of an answer. Minimalism is all very well, but...
确实有很多选择,所有这些取决于您的其他硬件"与计算机的接口.
USB :
主机要求:USB主机适配器
硬件要求:USB适配器
CAN :
主机要求:PC CAN适配器
硬件要求:CAN已启用
WiFi,局域网:
主机要求:LAN(连接到WiFi接入点)或WiFi
硬件要求:LAN或WiFi适配器
I 2 C总线:
主机要求:USB至I 2 C主机适配器(请参见此处,例如: http://www. i2cchip.com/pdfs/i2c2pc.pdf [ ^ ])
硬件要求:I 2 C接口
我没有提到串行端口,因为OriginalGriff已经指出了这一点.
希望能给您一些想法.
最好的问候,
曼弗雷德(Manfred)
There are really quite some options all of which depend on what interfaces your "other hardware" and which of these your computer has.
USB:
Host requirement: USB host adapter
HW requirement: USB adapter
CAN:
Host requirement: PC CAN adapter
HW requirement: CAN enabled
WiFi, LAN:
Host requirement: LAN (Connected to a WiFi Access point) or WiFi
HW requirement: LAN or WiFi adapter
I2C Bus:
Host requirement: USB to I2C host adapter (see here e.g.: http://www.i2cchip.com/pdfs/i2c2pc.pdf[^])
HW requirement: I2C interface
I didn''t mention the serial port as OriginalGriff already pointed that one out.
Hope that gives you some ideas.
Best regards,
Manfred
这篇关于我们如何将C#与其他硬件通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文