如何在C#中使用USB

编程入门 行业动态 更新时间:2024-10-25 20:17:45
本文介绍了如何在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

本文发布于:2023-11-03 06:43:09,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1554481.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何在   USB

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!