V-USB and Visual C# with LibUSBdotnet

General discussions about V-USB, our firmware-only implementation of a low speed USB device on Atmel's AVR microcontrollers
Post Reply
ManashRaja
Posts: 1
Joined: Mon Apr 09, 2012 10:23 am

V-USB and Visual C# with LibUSBdotnet

Post by ManashRaja » Mon Apr 09, 2012 10:39 am

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.

Micha

Re: V-USB and Visual C# with LibUSBdotnet

Post by Micha » Mon Apr 16, 2012 3:13 pm

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.

Micha

Re: V-USB and Visual C# with LibUSBdotnet

Post by Micha » Mon Apr 16, 2012 8:00 pm

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.

josea
Posts: 1
Joined: Mon Apr 29, 2013 12:31 am

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

Post by josea » Mon Apr 29, 2013 12:51 am

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..

Talib
Posts: 10
Joined: Fri Oct 22, 2010 12:10 pm

Re: V-USB and Visual C# with LibUSBdotnet

Post by Talib » Thu May 23, 2013 3:21 pm

See my reply at this post: viewtopic.php?f=8&t=8395&p=25312#p25312

Maybe it will be able to help you.

Post Reply