PDA

View Full Version : Loaded USB question + Hey Squib



Steve_88
- 16th October 2007, 01:56
Hey Group,

Squib, I see you have done some things in this area, I'm thinking of trying your example using the virtual comport.

Let's say I would like to design a pic product that can communicate with a PC over the USB bus.

A virtual comport would work but probably kind of kludgy?

Are the microchip CDC drivers for just this purpose?

Starting from scratch, how best to accomplish this?

Maybe HidMaker FS and then choose a PC side software?

They say HidMaker generates code in

Visual Basic 6
Delphi
C++ Builder
New! MS Visual Basic .NET*
New! MS Visual C++* ( MFC and WinForms apps)
New! MS Visual C# .NET*
New! Borland C#

Which program would be the easiest....lol....to get started on? Visual Basic.......

I have noticed that EasyHid seems to be no longer up on MicroCode studio's webpage?

Thanks,
Steve

Normnet
- 16th October 2007, 02:17
RealBasic would be easier.
EasyHID 64k.

See:Anyone Using RealBasic? (http://www.picbasic.org/forum/showthread.php?t=7049
) warning, other compiler.
post#6
Simple USB terminal.
1st zip is RealBasic exe.
2nd zip is PIC code and RealBasic source.

Norm

Steve_88
- 16th October 2007, 02:56
Hi Norm,

Thanks for the links I read them all through. I looked over the realbasic website and didn't see mention of the USB add on?

I'm guessing EasyHid generates code that can be imported into RealBasic?

Seems this link is dead and I can find no reference about EasyHid on their home page?

http://www.mecanique.co.uk/products/usb/easyhid.html

Seems like yesterday I was looking at it.

Thanks again,
Steve

Squibcakes
- 16th October 2007, 07:05
Hi Steve,

If your just sending serial data between the pic and virtual comport than all you need are the files in the c:\pbp\usb18\ directory. You don't need to use EasyHID or the like, microchip have done all the work for us. ;)

For starters you can follow the example at http://www.picbasic.co.uk/forum/showthread.php?t=5806 which I figure you have already seen.

If you want to get fancy and use your pic for sending 'other' data for example analog data, than using easy HID is the way to go. As for PC software - I've never been down that route but I believe VB is the most popular.

USB projects I've made include:

RS232 to USB (PBP cdc drivers)
PIC USB keyboard (Using EasyHID + USB Descriptor Tool)
PIC USB Flight Sim Pedals (Using EasyHID + USB Descriptor Tool)

For USB Descriptor tool -> http://www.usb.org/developers/hidpage/

As luck woud have it I'm just getting back into USB (been months since I played with it) and I'm having to relearn it all again... ;)

If your new to pic programming than this probably isn't the place to start.

Cheers

Normnet
- 16th October 2007, 09:59
I'm guessing EasyHid generates code that can be imported into RealBasic?

Conversion to RealBasic by bigbear of this forum.
See above post #2(not logged in) for link to post#6 for working USB terminal demo download. Code works with RealBasic free demo as well.

Norm

Steve_88
- 16th October 2007, 23:53
Hey thanks for all the input. I think for now I'll try out SquibCakes example using the CDC drivers.

Can anyone confirm that EasyHid no longer appears here?

http://www.mecanique.co.uk/products/usb/easyhid.html

Is it a dead application?

-Steve