Serial to USB cable - varying results


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Nov 2006
    Posts
    70

    Default Serial to USB cable - varying results

    I would like to use a Serial to USB cable to communicate with a PiC16F688 which is running through an RS232 type level converter (actually an ICL2323). If I do straight serial communication with a com port on an older PC, everything works fine all the time. I can also communicate with a palm pilot, no problem. So I've established that straight serial works fine. But when I try serial to USB cables, the results vary from device to device. My first attempts failed utterly--I only got some periodic gibberish on the PC. A colleauge working with the same PIC-driven device also failed to establish communication, but then she tried a different (newer) PC and got it to work. I'm at a loss to see why there should be these discrepancies--serial to usb ought to be pretty simple right? Anyway, I was wondering if you had any insights because I have several people who will be using these devices, and I need to be able to recommend communication setups that work.

    One possible clue is flow control. I tried setting up serial communication between a palm pilot and the PC using the serial to USB cable, and I could not get it to work until I messed around with the flow controls. Flow control is not necessary when doing straight serial communication between the same palm and PC.

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


    Did you find this post helpful? Yes | No

    Default

    The converters I find most reliable are
    U209-000-R from Tripp Lite. They seem to be pretty close to RS232.
    Belkins are not reliable, does not have the voltage swing needed by some things.
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Default end to end delays in USB/RS232 adapters

    Bootloaders seem very time sensitive to the variable delays when using USB to RS232 converters. Colleagues and I have tried at least half a dozen different looking adapters with netbooks, laptops notebooks and desk PCs. NONE gave 100% reliable results. Some mostly work, some never work. They are all Chinese and are generally fine for dumb ASCII communications but whenever accurate timing between sending a character and getting a reply is needed then it's back to an old PC with dedicated RS-232 DB9 connectors.

    It was my design practice to always fit an RS-232/TTL port to every design and use the MCSP bootloader for field bugfixes. I have abandoned that now and use the MeLabs U2 USB programmer for all code programming and updates. I have requested Mecanique to have a look at relaxing the timing on the MCSP bootloader but that message sank without trace.

    HTH
    Brian

  4. #4
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    brid0030, I only use the products from FTDI and have had no issues using them with bootloaders or normal programming serial communications. We deal with lot's of different inferfaces here at work and the FTDI seems to be one of the best I have found. The bootloading seems to be a bit slower but never fails....

    Dave Purola,
    N8NTA

  5. #5
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    MCLoader does have some issues - especially with USB-serial. I made it work much better by disassembling it, adding a 16 bit delay after the 1st jump vector and before the loader actually started executing and then re-assembling it. I now have something that works all the time. I use only a two-wire connection (I don't control MCLR). It still loads slowly, but at least it always gets started when I turn power on.
    Charles Linquist

  6. #6
    Join Date
    Nov 2006
    Posts
    70


    Did you find this post helpful? Yes | No

    Default cables ordered

    Well, I'm not attempting bootloading, just serin and serout. I'm just gonna buy a few cables and see what works. The option I will put forth to users first is to get a PC card with a com port....or just dust off that old laptop from 6 years ago.

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