27727Re: USB Support
- Sep 2, 2005Thank you Brian (and David too). USB is one of those mysteries that
appears very formidable, until you see enough of the picture and all
the pieces necessary to get it to work. I have been reading "USB I/O
by Design" by John Hyde, so that has given me a pretty good idea on
the whole USB architecture. But that book is still pretty old and it
assumes you have lots of Visual Basic support on the host
side...something I was really trying to avoid. I still need to get a
hold of Jan Axelsons book and read that.
The idea of making my USB device CDC compatible sure sounds like the
right way to go. 90% of the problem is often knowing which direction
to start heading in. Thanks for pointing me in a good direction.
Its great to know that LB can be used with a custom USB device
programmed with CDC compatibility without any extra DLL's, etc.
--- In email@example.com, "Brian Schmalz" <brian.s@l...>
> OK, what you want to do is super easy. Download Microchip's
> firmware, compile for your board (however you design it - clocks,IOs,
> etc.) and it will work. That's what I am doing and it works great.No
> need for DLLs or complicated programming.[mailto:firstname.lastname@example.org]
> -----Original Message-----
> From: email@example.com
> On Behalf Of mikensd5464quite a
> Sent: Thursday, September 01, 2005 12:46 PM
> To: firstname.lastname@example.org
> Subject: [libertybasic] Re: USB Support
> Thanks David,
> your comments are very helpful. I figured I might be up against
> challenge if I did not have any pre-written DLL's. I guess I willlook
> at options using chips that have DLL support. Knowing that LB canat
> least support USB connectivity through DLL interfaces isencouraging. I
> guess the other option would be writting a DLL, which of coursewould
> require a lot more work, knowledge, and more expensive tools (Cfor a
> compiler, etc.)
> Thanks for making it clear what I am up against.
> If any one has a suggestion as to what chip would be a good choice
> USB device endpoint that eases the PC side sofware developmentusing LB,
> that would be appreciated. I have been considering using theMicrochip
> PIC18F2455, but I don't know how easy it will be getting that chipto
> work in a Windows XP environment, especially if I want to use LB todo
> cost considerations.controlling
> --- In email@example.com, David Speck
> <MedelecInstruments@D...> wrote:
> > Mike,
> > Other LB users have been able to use LB to talk to USB
> > like external A/D converter boards. You will need to have the
> > of how the control DLLs work, but most USB interface chip
> > provide pre-written Windows control DLLs for their USB chips. Ifneed
> > USB interface chips do not come with control DLLs, you might want
> > look at different ones that come with the necessary software, as
> > and debugging the control DLLs can be difficult. There is a fair
> bit of
> > overhead involved in initializing a USB device, and also handling
> > happens if it is unplugged while in operation.
> > There are sections in the LB conforums about DLL interfaces.
> > posts archived in this newsgroup may also be helpful. I believe
> > Alyce's eBook on LB has a section on implementing DLLs.
> > LB itself is not, I believe capable of providing native host side
> > support for custom USB devices, and I'm not sure it could be done
> in VB,
> > either. That sort of project is usually done in C or assembly.
> > Dave
> > mikensd5464 wrote:
> > >I am developing a USB peripheral device. Eventually, I will
> > >have this device communicate on a Windows XP platform. The
> > >question I have is, will I be able to use Liberty Basic tocreate
> > >application on Windows XP to provide the communication between
> > >device and Windows XP? Will I need to use (or can I use) the
> > >XP API with Liberty basic to do this? How much Windows XP API
> > >knowledge would I need to obtain to do this? I am writing the
> > >in the external USB device so I have complete control of what
> needs to
> > >be done for USB support in the device. I don't have any
> > >level DLL's on the PC host to support the USB so I am wondering
> > >extent Liberty Basic could be used to provide this interface.
> > >
> > >I suppose I could look at Visual Basic to do this but that would
> > >like over kill if Liberty Basic could do the job.
> > >
> > >Is it worth considering Liberty Basic for this? And if so,
> > >the best place to find some helpful examples or tutorials for
> > >Any pointers in the right direction on how to do this would be
> > >appreciated.
> > >
> > >Thanks,
> > >Mike
> > >
> Yahoo! Groups Links
- << Previous post in topic