Page 1 of 1

V-USB and Visual C# with LibUSBdotnet

Posted: Mon Apr 09, 2012 10:39 am
by ManashRaja
Hi,
I am on a project where I am using an AVR ATmega328 to grab incoming GSM messages from a GSM module and send it to the PC via V-USB to be displayed on a custom built app on VC# with LibUSBdotnet. Along with that I want to write messages on the PC software and send the message to the AVR via V-USB for the AVR to then forward the sms via the GSM using AT commands.

So basically I want a custom USB device to send data (with no predefined size) to the PC software and also receive it back. The data might be in the form of an char array. So please anyone help me with the AVR side code and VC# side code to enable sending and receiving data.

In AVR I am using WinAVR and USbooBie and in the PC I am using C# in Visual Studio and included the LibUSBdotnet library or the dll as shown in the video by Mr. Frank Zhao on how to start with LibUSBdotnet.

I want the basic code block of AVR, what to include, and sending and receiving options. I am not concerned about endpoints or whatever, but just want to change the Vendor name of the Product's name. I the PC side software, I want the whole code block about what to include, how to initialize everything for USB communication and send and receive data. I don't want the code regarding GSM, but just bare code structure for USB communication.

Re: V-USB and Visual C# with LibUSBdotnet

Posted: Mon Apr 16, 2012 3:13 pm
by Micha
Have a look on the following websites and especially the package on the first one (although the packages you can find via the links on the second site will also work with more or less effort):
http://www.mikrocontroller.net/articles ... r#Download
http://www.mikrocontroller.net/articles ... ternativen
Both are in German but I think they'll help nevertheless.

Re: V-USB and Visual C# with LibUSBdotnet

Posted: Mon Apr 16, 2012 8:00 pm
by Micha
Forget the C# app behind the first link as it runs only with a specific dll and firmware. Instead you can use the C# version here http://www.mikrocontroller.net/topic/171111#2639159 which only uses standard Windows (XP) functionality, so there's no need for LibUSBdotnet.
The corresponding device firmware you will find following the first link anyway.

Re: V-USB with VB.net (using HIDLIBRARY.dll)

Posted: Mon Apr 29, 2013 12:51 am
by josea
Hi ,
I would like to share my host application created in vb.net that talked to V-USB generic hid ( with In , Out and feature report)
if its ok with the moderator, I'll post the source code here..

thanks..

Re: V-USB and Visual C# with LibUSBdotnet

Posted: Thu May 23, 2013 3:21 pm
by Talib
See my reply at this post: viewtopic.php?f=8&t=8395&p=25312#p25312

Maybe it will be able to help you.