vb.netusbmicrocontrollerpicmikroc

Interfacing my PIC Microcontroller over USB and Controlling with my VB.NET application


Iam devoloping an embedded device using PIC Microcontroller (PIC18F4550). Iam almost done with the hardware part. I need to control my device via USB using VisualBasic 2010 Express. Source code is compiled using MikroC PRO

My device belongs to an USB HID specification and its VID=1234 and PID=4321.

I tried many dll's but can't understand logic behind all.

What I need from my application is as follows...
1: Detect all USB devices connected to my PC
2: Detect wether my device(VID=1234,PID=4321) is connected or not
3: Send and recive commands
4: Send and recive Ascii values

Can any of my friends suggest me which library is the best and how to use it for the above tasks.

*Iam feeling complex using WMI to detect all USB devices. Iam prefering any librarys and the simplest way i can make use of it.

Any help is hopping..!


Solution

  • Check out libusb I think there's .NET wrapper libraries too.

    Much more complicated than TTL usb-serial adapter, though.