USB & VB6 Communication

Go To Last Post
6 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi All ,

I want to connect an ATMega32 Micro to PC Through USB Port , using Visual Basic 6 .
I don't Want to use RS232 to USB or USB to RS232 or any other convertors .
Just Direct connection .

Is there any simple source code to do that ?
I mean Visual basic 6 source code along with micro source code .
I just want to send a SIMPLE command from PC to Micro and get a reply from it .

I searched and found something ,
But the micro source code and vb6 source code are not matched together and it will take some time to match them .

The attached is the sources I've found .

Thanks alot

Attachment(s): 

Last Edited: Tue. Aug 3, 2010 - 11:34 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

Is there any simple source code to do that ?

Use V-USB (Goole for it).

This really has nothing to do with GCC specifically so moving to AVR Forum.

Moderator.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

clawson wrote:
Quote:

Is there any simple source code to do that ?

Use V-USB (Goole for it).

Hi Clawson
The source code(firmware)I mentioned above is "automator" which uses V-USB .
But I'm looking for vb6 project along with it's "completely complete" matched GCC firmware .

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Was there some reason you couldn't simply have started by a link to?:

http://www.obdev.at/products/vus...

It says it's implemented as a generic HID device so can you not simply access it though VB's generic HID support?

If you Google "HID access in visual basic" you end up here:

http://www.lvr.com/hidpage.htm

On that page he has generic_hid_vb_46.zip

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Clawson ,

I had Googled "HID access in visual basic" and ended up there .

I think I have no choice but to do what you said .
I think I can't have these 2 "completely complete" matched together .

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:

I think I can't have these 2 "completely complete" matched together

Yes you can if it's generic HID as it will behave exactly as documented in the USB specs. and how libusb expects it to behave. Sure you cannot use their code because it's written in C but, like I say, this should not matter as it's operating in a standardized, not proprietary way.