V-USB and Visual C# with LibUSBdotnet
Posted: 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.
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.