本文介绍了如何在C#中使用USB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友, 我想在C#中使用USB端口并从该端口发送和接收数据 请帮帮我 谢谢.
解决方案此 [ ^ ]可以帮助您.
尝试 USB和C#[ ^ ] 您正在尝试将USB端口与串行或并行端口相同.你不能您不能向端口本身读取/写入数据. 看看USB代表什么.通用串行总线.它与PC中的扩展插槽没有什么不同.您与设备而不是总线进行通信. 您可以通过设备暴露给您的任何方式与连接的设备进行通信.您可能需要一个SDK才能到达该设备,或者它可能会模拟一些串行端口通信.不知道您要使用哪种设备,就很难说.
Hi Friends, I want to use USB port in C# and Send & Recieve Data From this port Please help me Thanks.
解决方案 This[^] could help you out.Try USB and C#[^]You''re trying to treat the USB port the same as a Serial or Parallel port. You can''t. You cannot read/write data to the port itself. Look at what USB stands for. Universal Serial Bus. It''s no different than the explansion slots in your PC. You talk to the device, not the bus. You communicate with the device attached through whatever means the device exposes to you. You may need an SDK to get at that device or it may emulate some serial port communications. Without knowing what device you''re trying to get at, it''s impossible to say.更多推荐
如何在C#中使用USB
发布评论