【发布时间】:2018-10-13 10:53:09
【问题描述】:
我是 C# 新手
我正在尝试向 USB 端口发送命令(usbport=========fx3(Cypress 芯片),在 LED 上比在定制板上点亮))
我尝试扫描端口但失败了,因为我的电脑 (win10) 将 USB 识别为摄像头(fx3 是图像处理芯片)
所以我在 sysnet.pe.kr 中找到了这段代码
using System;
using System.Threading.Tasks;
using Windows.Devices.Enumeration;
namespace ConsoleApp1
{
class Program
{
static void Main(string[] args)
{
ListDevices().GetAwaiter().GetResult();
}
private static async Task ListDevices()
{
var devices = await DeviceInformation.FindAllAsync(DeviceClass.VideoCapture);
foreach (var item in devices)
{
Console.WriteLine($"{item.Id}: {item.Name}");
devices.
}
}
}
}
有效!!!所以我找到了端口
但我不知道如何向端口发送命令!!!
请帮帮我ㅠㅠ
【问题讨论】:
-
你能在这里发布一些制造商/定制板模型的链接吗?也许我们可以看看并尝试找到一些文档或示例代码。
-
非常感谢cypress.com/products/… 这里是 url 芯片是 fx3 CYUSB3014-BZXC
标签: c# .net winforms webcam uvc