USB confused (running out of hair)


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB confused (running out of hair)

    Thanks Dave. Yes the FTDI route is by far the easiest. In fact I even have some chips for that. But sometimes, giving up board space for a chip seems crazy, if nut just impractical.

    Now if CDC is the equalvalient to usb->serial, but done in the PC, well that gets closer, even close enough for me.

    Oh, and thanks for the toupee link, I may need it soon

    My analogy to FTDI:

    120Vac->12Vdc output battery charger->12Vdc battery->inverter (120Vac output)->PC powersupply->12Vdc output for MOBO.

    To build a UPS, would it not be easiest to go from battery to MOBO?
    Last edited by cncmachineguy; - 22nd May 2011 at 17:42.
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #2
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: USB confused (running out of hair)

    Quote Originally Posted by cncmachineguy View Post
    Now if CDC is the equalvalient to usb->serial, but done in the PC, well that gets closer, even close enough for me.
    Well, according to AN1164 you can do that but a quick scan of the first few pages convinces me that USB-serial chips (onboard or external) are still the best choice, by far.

  3. #3
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default Re: USB confused (running out of hair)

    If you really insist on pure USB, there have been threads here on that. Jan Axelson's web site is also quite helpful. There are methods for interfacing under Windows but you are pretty much on your own for Linux and OSX.

    The second one is a real must

    AAwwww come on guy, don't be lazy, leave the FTDI for students.... there's everything you need to do real USB here.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  4. #4
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: USB confused (running out of hair)

    Quote Originally Posted by mister_e View Post
    AAwwww come on guy, don't be lazy, leave the FTDI for students.... there's everything you need to do real USB here.
    Au contraire - USB is for the students who need to learn the nitty gritty. I've made it to 70 with all my hair by taking the easy way out.

    I bought Jan Axelson's USB Complete when she first released it and quickly decided I would avoid real USB forevermore.

    I develop for Windows, Linux & OSX and the USB-serial chips (or external adapters) are the only practical way to handle all three.

  5. #5
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB confused (running out of hair)

    Steve, I agree, sort of. Everything to do USB is here for the PIC side. As for the PC side, maybe everything is here. If one wants to develop in C of VB, I think everything is prolly here. Well, If I want to work in C, "I" prolly wouldn't be here. So if thats needed, then its not all here. And VB? well what flavor?? 6 and .net? Maybe I am just too stubborn, but as a hobby, I have NO plans to buy anything from them guys. Nor am I going to get the exppress version (which may not work).

    It seems I need to look further into CDC. but NOT for pic32 as the app note Dave linked would suggest.

    If I find the energy to keep persuing this, I will hop back on the CDC for dummies thread and ask zillions of questions there. In the mean time, How does 1 go about accessing the "port"from their app if using CDC? I know it will be app specific, but whats the process? Does it become COMx and just use regular serial commands to use it?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default Re: USB confused (running out of hair)

    With CDC the PC will think it is talking to a "regular" com port. COMxx

    Here is another example that might be of use...
    http://www.picbasic.co.uk/forum/cont...USB-SD-LOGGING
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869

    Default Re: USB confused (running out of hair)

    Dave, that is a great example of both USB and sd card reading/writing. So can I assume there is a LB part also?
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  8. #8
    Join Date
    Dec 2005
    Posts
    1,073

    Default Re: USB confused (running out of hair)

    Quote Originally Posted by mister_e View Post
    .... there's everything you need to do real USB here.
    How about the modem control signals (DTR, RTS, etc.) with CDC?

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts