Shop OBEX P1 Docs P2 Docs Learn Events
IDE-0022 message after successful Identify and Test Connection — Parallax Forums

IDE-0022 message after successful Identify and Test Connection

Code WarriorCode Warrior Posts: 5
edited 2008-02-03 06:54 in General Discussion
I am using a USB-Serial adapter to connect my BOE rev C to my laptop (HP Pavilion DV4000, no hardware serial ports), and can get the Javelin IDE (2.0.3) to "talk" to the Javelin... I do a "Identify" and then "Test Connection" and it seems to work. When I try to load a program into the Stamp, it starts off okay... The IDE displays a Progress dialog box which says, "Restting Javelin", then "Downloading Program" but then I see the message "[noparse][[/noparse]Error IDE-0022] Error reading from the serial port (timeout)".

I have a Dynex DX-UBDB9 adapter, and have installed the drivers (called, for some reason "Prolific") in Windows (XP Home, 2002, SP 2) to get it to work. It seems to want to assign itself to COM8 (but what do I care... or should I). I've tried to assign the adapter to COM2, COM3, but no luck. Same message.

Has anyone had this problem? I read the post on USB issues, but it was pretty far over my head. I just want to plug it in and program it.

If my USB adapter is the problem, I'll get a new one. Someone just tell me one that works with BOE, rev-C, Javelin and Javelin IDE 2.0.3 and I'll pony up.

Thanks for any help!

Comments

  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-17 03:57
    Make sure the com port that is assigned to your usb2ser cable (eg. com8 as you said),
    is listed in the edit port·list.
    In the Javelin IDE, go to menu Project->Global Options, select tab debugger, click on the
    ... button and add the number for the usb2ser com port.
    (it looks the port was found but do check).

    Go to windows device manager for your usb2ser cable. There should be a setting latency.
    Set this to minimum.

    If you then still have problems let us know.

    regards peter
  • Code WarriorCode Warrior Posts: 5
    edited 2008-01-17 04:30
    Thanks for the quick reply, Peter. I followed all your instructions, but one... I don't see "setting latency" or anything like it in the hardware manager for my cable. I go into Device Manager -> Prolific USB-to-Serial Comm Port (COM8) -> Port Settings, and all I see is (values in parens)

    Bits per second (9600)
    Data bits (8)
    Parity (none)
    Stop bits (1)
    Flow Control (none)

    Clicking the Advanced button, I see a checkbox "Use FIFO buffers (requires 16550 compatible UART)" with two slide switches "Receive Buffer" and "Transmit Buffer" with min/max settings of 1/14 and 1/16, respectively. I tried setting these both to 1 thinking this may be the latency you mentioned, but still no luck.

    Thanks again for your help.
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-17 04:36
    It is possible there is no latency setting for your driver. I know there is
    one for FTDI chipsets.
    I have a usb2ser cable using a prolific chipset myself and that has no latency setting either.
    The supplied driver for my cable didn't work either so I downloaded the driver from the
    prolific website:
    http://www.prolific.com.tw/eng/downloads.asp?ID=31
    Assuming your prolific chip is the PL2303H, you need the first driver on that page.
    That did the trick for me.

    regards peter
  • Code WarriorCode Warrior Posts: 5
    edited 2008-01-17 14:02
    I updated the driver with the one you said, using the link from your reply. Still no luck. Same error message.

    I guess what I don't fully understand is that the IDE can communicate with the Javelin, but not really... ??? Is there a way to see what is going on under the hood? Maybe some diagnostics I can turn on to see what exactly is happening? I don't want to just chuck my BOE out the Window because it can't communicate using a USB-to-Serial cable...
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-01-17 14:13
    Many usb2ser cables won't work with javelin and basic stamps due to
    timing requirements. Just get this one:
    http://www.parallax.com/Store/Accessories/CablesConverters/tabid/166/CategoryID/40/List/0/Level/a/ProductID/379/Default.aspx?SortField=ProductName%2cProductName

    and you will have no trouble. Your board is not the problem.

    regards peter
  • Code WarriorCode Warrior Posts: 5
    edited 2008-01-17 14:27
    I just ordered the adapter with cable. Thanks for your help, Peter!
  • Code WarriorCode Warrior Posts: 5
    edited 2008-01-23 00:19
    I got my USB to Serial adapter and cable today.· It arrived promptly and works great.· Thanks again!
  • HueyHuey Posts: 23
    edited 2008-02-03 02:08
    I am getting that same error, only I am just using a basic Serial cable to connect to my Javelin Stamp w/ the Javelin Stamp Development Board.

    There are two serial ports on the board, one marked 'COM Port' and the other marked 'JIDE Port'. I have the serial cable connected to the JIDE Port and same as Code Warrior, I get the 'reseting Javelin' then downloading program and then te same error.

    Please, any help would be great.
    (Struggling college student w/ his Senior Project on the line)
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-02-03 02:27
    When you say, basic serial cable, you mean a cable connected
    from your PC serial port to the JIDE port on the javelin board?

    Please specify which OS (win98,winXP,Vista) you are running.

    Please specify the vendor and type of your PC or notebook/laptop.

    regards peter
  • HueyHuey Posts: 23
    edited 2008-02-03 04:43
    Yeah, just the regular serial cable.

    Running Windows XP

    XPS 700 Dell

    sry

    when i first got the javelin stamp, i first downloaded one of the tutorial files 'TerminalTest.java' which downloaded fine (i think)· but the debug screen won't allow any keyboard entry like the program says.

    i'm hoping that my stamp, board, and comp is ok.

    Post Edited (micro) : 2/3/2008 5:57:26 AM GMT
  • Peter VerkaikPeter Verkaik Posts: 3,956
    edited 2008-02-03 06:23
    You are the 3rd user in the last two weeks that is having trouble
    using the onboard serial port of a Dell PC (dell 810 and dell 390, now dell 700).
    See these thread
    http://forums.parallax.com/showthread.php?p=701614

    for things you can try.

    If all that does not resolve your issue,
    just·get yourself a usb2ser cable with FTDI chipset like
    the ones Parallax sells. These are guaranteed to work with all
    products Parallax sells and these support Vista.
    http://www.parallax.com/Store/Accessories/CablesConverters/tabid/166/CategoryID/40/List/0/Level/a/ProductID/379/Default.aspx?SortField=ProductName%2cProductName

    regards peter

    Post Edited (Peter Verkaik) : 2/3/2008 6:28:35 AM GMT
  • HueyHuey Posts: 23
    edited 2008-02-03 06:54
    Thank You very much for your speedy response.
    I will try these and report back with my status

    thanx again.
Sign In or Register to comment.