USB connection with Microcontroller in Visual Studio C#

Asked

Viewed 201 times

0

I have a microcontroller programmed to send data on Visual Studio c# through the class USB Hid Net Class. I have the license to use the class already and the application ran normally on multiple computers. Data is passed through the USB cable.

However when connecting the USB cable on a specific computer it does not receive the data, it appears or connect the USB cable. Could be some configuration of the computer itself that receives the data?

Below is the connection code with the PIC18F4550.

  private void Form1_Activated(object sender, EventArgs e)
    {
        easyUSBHidNetClass.DeviceUSB_Config_VID_PID(0x4601, 0x9725); //VID and PID PLACA 1
        easyUSBHidNetClass1.DeviceUSB_Config_VID_PID(0x2920, 0x2112); //VID and PID PLACA 2
    }

Note: Windows version is Windows 8.

  • Check if the USB port is actually working on this machine?

  • Yes, with pen drive works normally...

  • If it works on other computers, the problem is in the computer and not in the code. Have you checked if there are other USB peripherals on this computer? If yes disconnect them. It is also good to check if the USB ports are delivering enough power

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.