I have done study of USB in pic controller but i don't know about C# that much. so where i can learn USB program in C#.
USB inside micro is not related to any programming language, even USB stack on micro side can be written in any.I have done study of USB in pic controller but i don't know about C# that much. so where i can learn USB program in C#.
The depends on what kind of USB device the PIC looks like. Many devices already have build in methods in Windows.USB study in PIC means usb protocols and how to use with that controller.
and i mean there is any library or dll file that can easily add and start to communicate with PIC.
What are you trying to connect to? PLEASE don't say a PIC, what kind of USB device is the PIC programmed to be?
I give up.i m using 18f4550 controller in which there is built in USB now i want code in c# to communicate from pc to pic.
OK so maybe there is a wrapper for calls to system functions like "CreateFile" used with serial ports. I've never written a C# program, but my friends and associates have and there is definitely some mechanism for doing it. If a C# program can get to Win ring 0 then I'm sure it can get to a USB deviceAFAIK there is no "USB Object" in .NET USB devices always appear as a particular device (mass storeage, camera, printer, mouse, serial port). The OP either needs to write a device driver or use an available driver and make his PIC emulate that kind of device.
Sure, that makes sense. I was thinking in terms of HID, serial port emulation, and mass storage devices. We used a USB "mass storage device" to do firmware updates from the PC to serial Flash Memories on the peripheral device which measured parts being fabricated in grinding machines. It used the HID device to report measurements, just like a USB mouse would do.Well I write lots of C# but that's besides the point, the point I was making is that the USB needs a driver on the end of it and that driver "emulates" a device. Typically when talking to MCUs people use a driver which emulates a serial port and so the C# program would just use the standard serial port library to send and receive data.
A common USB driver is the Human Input Device (HID) driver that handles keyboards, mice,etc. and the OP may be very interested in this - http://www.codeproject.com/Tips/530836/Csharp-USB-HID-Interface which shows exactly how to connect a PIC and have it recognised as a USB-HID.
Generally speaking, people let Windows use generic HID driver to communicate with PIC over USB.i think there is confusion
and may be i fail to explain well.
i have done usb code sample for controller so from controller side USB is OK. now my problem is other end that is C# .dll files.
The only confusion is your continued refusal to identify what your device is doing.i think there is confusion
and may be i fail to explain well.
i have done usb code sample for controller so from controller side USB is OK. now my problem is other end that is C# .dll files.
by Duane Benson
by Jeff Child
by Jeff Child