-1

I am new in c#

I am trying to send command to USB port(usbport=========fx3(Cypress chip), to light on LED than with in the custom board))

I tried to scanport but it was failed because my computer(win10) recognized the usb as camera(fx3 is chip that image processing)

so i found this code in 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.            
            }
         }

    }
}  

it works!!! so I found port

but i don't have idea how to send command to the port!!!

please help me ㅠㅠ

김진섭
  • 1
  • 1
  • Can you post here some link to the manufacturer / custom board model? Maybe we can give a look and try to find some documentation or sample code. – Tony Oct 13 '18 at 22:19
  • 1
    thanks a lot http://www.cypress.com/products/ez-usb-fx3-superspeed-usb-30-peripheral-controller here is url the chip is fx3 CYUSB3014-BZXC – 김진섭 Oct 14 '18 at 22:44

1 Answers1

0

First you must read your camera documentation (from producer website or .. , it may have programing sdk)

Otherwise you can use LibUsbDotNet

rahim
  • 106
  • 1
  • 11
  • thanks your reply http://www.cypress.com/products/ez-usb-fx3-superspeed-usb-30-peripheral-controller here is url the chip is fx3 CYUSB3014-BZXC – 김진섭 Oct 14 '18 at 22:43
  • Download SDK from this link http://www.cypress.com/documentation/software-and-drivers/ez-usb-fx3-software-development-kit – rahim Oct 15 '18 at 17:21