Shop OBEX P1 Docs P2 Docs Learn Events
Sx-Key not found on com1 — Parallax Forums

Sx-Key not found on com1

JonbJonb Posts: 146
edited 2005-04-06 07:17 in General Discussion
I searched through the forum and on the web for answers to this problem and still cant get rid of it.
I plugged everything up(except resonator) and inserted the sx28 into the carrier board.Power LED lit up. Successfully ran the PWM.src(author:Parralax) program and it made an LED dimly light up on the breadboard. I only got it to work once, after this point i get errors. I am however sometimes able to read and verify.
When verifying, it sometimes passes, and sometimes fails.

By process of elimination I've done the following steps.

Checked alignment of pins on key and sx28 IC. Removed and replaced with other Sx28 IC.
Tried 3 power supplies, and 1 new·9v battery(boards gets power,4.9v·in all cases at the vss pin for the key)
Tried 2 serial cables, including the one that came with the kit on com1 and com2.
Lowered then disabled FIFO on com ports.
Plugged a BS2sx up and it programmed fine.


I also ran SXKeySerialTester.zip and it sees the SX-key on com1 and com2.

SX-Key 3.0
WinXP Home
1.4ghz Athlon

What did I miss, i've attached screenshots.


Post Edited (Jonb) : 3/3/2005 9:30:48 PM GMT
209 x 118 - 6K
194 x 122 - 5K
440 x 473 - 55K
330 x 339 - 19K
184 x 124 - 5K

Comments

  • KenMKenM Posts: 657
    edited 2005-03-03 21:03
    Do you have an older machine to try?

    If memory serves me correctly, when I have seen posts to this forum for this problem, seems to often occur on machines with XP.

    Windows 98 and Win2000 has worked well for me. Have not tried with my WinXP machine as it is not "at" my workbench.

    k
  • Jim PalmerJim Palmer Posts: 23
    edited 2005-03-03 21:45
    WinXP is working for me, but I am using SXKey 2.02 (though, I have no idea why).

    Jim
  • JonbJonb Posts: 146
    edited 2005-03-03 22:51
    I tried it on another computer, a 3ghz computer, and it worked...
    Baffles me as to why it worked for a moment then died... Perhaps it is because I have the basic stamp editor installed or maybe the .net framework...confused.gif Either way this is going to be a headache as the working computer is away from the lab. I will probably use the sxsim in the meantime and burn onto the sx28 when i'm satisfied with the results, will be hard without a debugger though. I sure hope this problem is resolved soon. This makes no sense, anyone have any ideas?

    Post Edited (Jonb) : 3/3/2005 11:51:22 PM GMT
  • JonbJonb Posts: 146
    edited 2005-03-05 00:07
    I've spent most of the day trying to determine the cause of the serial connection problem. I am quite certain that the cause is inadequate power supply to the serial port. I say this because the working computer's voltage(5v) when checked in bios is 4.998 to 5.00v but the non-working computer has a voltage of 4.91v to 4.93v. the 12v were both fine on both machines. Could this small 5v voltage difference be the cause?


    Post Edited (Jonb) : 3/5/2005 12:10:42 AM GMT
  • Paul BakerPaul Baker Posts: 6,351
    edited 2005-03-05 00:57
    highly unlikely, the SX-Key draws its power from your board, not the cable, and the voltage you mention is well within the acceptable level for being recognized by the Key as a high voltage. I would lay 99% odds that it has to do with the software your computer is running (most likely something in Windows) MS got the brilliant idea with XP to "secure" the com ports, which didn't really secure them, it just caused alot of problems with programs correctly using the port.

    Post Edited (Paul Baker) : 3/5/2005 1:01:38 AM GMT
  • JonbJonb Posts: 146
    edited 2005-03-08 03:40
    I give up, nothing I do seems to help.
    It worked once by the grace of god, but no longer. This isn't the first time I get stumped by a PC issue. Perhaps with time I will think of something.
    A weird thing I noticed running a serial analyser on com 1. Keep in mind the serial ports function properly for every device i've attached. The SXKeySerialTester.exe kindly provided by Pmonty detects the SX-Key. The problem comes when I attempt to program.

    ·Example
    Sxkey.exe Device request dump(attempting to program), COM1
    

    [color=#000000]Port opened by process "SXKey.exe" (PID: 1004)[/color]
    
    [color=#000000]Port closed[/color]
    
    [color=#000000]Port opened by process "SXKey.exe" (PID: 1004)[/color]
    
    [color=#000000][b]Request: 3/7/2005 10:20:21 PM.843750064[/b][/color]
    
    [color=#ff0000] 20 53 58 2D 4B 65 79                               SX-Key         [/color]
    
    [color=#000000][b]Answer: 3/7/2005 10:20:21 PM.843750064 (+0.0000000000 seconds)[/b][/color]
    
    [color=#0000ff] 20 53 58 2D 4B 65 79 53 58 2D 4B 65 79 05 FC 59    SX-KeySX-Key.üY[/color]
    
    [color=#000000][b]Request: 3/7/2005 10:20:21 PM.843750064 (+0.0000000000 seconds)[/b][/color]
    
    [color=#ff0000] 97                                                —               [/color]
    
    [color=#000000]Port closed[/color]
    
    [color=#000000]Port opened by process "SXKey.exe" (PID: 1004)[/color]
    
    [color=#ff0000] 20 53 58 2D 4B 65 79                               SX-Key         [/color]
    
    [color=#000000][b]Answer: 3/7/2005 10:20:22 PM.109375064 (+0.0000000000 seconds)[/b][/color]
    
    [color=#0000ff] 20 53 58 2D 4B 65 79 53 58 2D 4B 65 79 D2 DF A9    SX-KeySX-KeyÒß©[/color]
    
    [color=#000000][b]Request: 3/7/2005 10:20:22 PM.109375064 (+0.0000000000 seconds)[/b][/color]
    
    [color=#ff0000] E6 30 9B                                          æ0›             [/color]
    
    [color=#000000][b]Answer: 3/7/2005 10:20:22 PM.140625064 (+0.0000000000 seconds)[/b][/color]
    
    [color=#0000ff] E6                                                æ               [/color]
    
    [color=#000000]Port closed[/color]
    
    



    ·There is communication, but it dies at some point.
  • PJMontyPJMonty Posts: 983
    edited 2005-03-09 18:57
    Jon,

    Is it possible to take a picture of the SX-Key attached to your circuit when you try and debug it? The problem you are describing is pretty mysterious, and I'm hoping that seeing what sort of hook-up you have going might shed some light on the problem. Sorry for being so quiet up to now, it's just that I don't have any sort of handle on what cuold be causing your problem.
      Thanks, PeterM
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2005-03-09 19:37
    Something I discovered last night along this subject....

    We have 2 palms on our system at the house, one is a USB, and the other is a COM (consequently on com1)
    Since we don't use the palm connected to COM port much, I had forgotten about it, however the "HOT SYNC"
    was still monitoring the COM ports.

    In the SX software under configuration, COM1 and COM3 are selectable, so I select COM1.
    When I go to program or try to communicate with the SX, I get the error "SX-Key failed on COM1"

    By disabling the "HOT SYNC" check on the COM ports, the error goes away and I'm back in business.


    Something else I might point out. Under the SX configuration, it seems that no matter what COM port I
    select, when it comes to programming or communicating with the SX-Key the software insists on using COM1.
    I can't set this to anything else.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • JonbJonb Posts: 146
    edited 2005-03-09 19:41
    Hi Peter, the Sx-key works great, I am able to program it on my other "newer" computer. I am using it on your dev board, with nothing attached but the SX28 IC, SX-key(no external resonator) with serial cable and 9v 800ma(also tested with fresh 9v battery)wall wart. The test program was a blinking LED program that came with the package.

    To sum up:
    I am able to program a BS2sx.
    I·re-installed windows XP, and tested many times as I re-installed my software and updated, so there are no software issues that i can see. I even tried making a ghost of the other computer and it didnt work(not same hardware). This is also mysterious to me... and I have been troubleshooting PC's for 20 years! I am assuming it is my motherboard chipset, or the SX-IDE. What other info would be usefull to you?

    Lets see if this camera works...

    Pictures came out way too dark, basically, the sx-key is connected to the 4 pins(parts side up) and the pins match the pinout on the bottom of the key. No resonator is plugged in and a power jack lights up the green LED. A SX28 IC sits snugly in its DIP header. Basic setup.

    Post Edited (Jonb) : 3/9/2005 8:25:41 PM GMT
    640 x 480 - 30K
    640 x 480 - 62K
  • PJMontyPJMonty Posts: 983
    edited 2005-03-09 20:21
    Beau,

    There's a known bug in the 3.0 IDE software that causes problems when you have non-contiguous COM ports. In your case you have COM1 and COM3, but no COM2. When the IDE tries to use COM3, it actually uses COM2, and since you either don't have a COM2 or it's used already, the IDE fails to connect. This has been fixed, but the new version has not been released yet.
      Thanks, PeterM
  • PJMontyPJMonty Posts: 983
    edited 2005-03-09 20:25
    Jon,

    Weird as it sounds, have you tried booting Windows in safe mode and seeing if the SX-Key works then? I want to rule out any werid interference from other programs running in the background. If that doesn't work, then it does seem that perhaps there is something out of spec on the COM port of that machine. If the SX-Key works on your other machine fine, then we know the key and software work. That basically leaves the machine or the OS as the culprit.
      Thanks, PeterM
  • JonbJonb Posts: 146
    edited 2005-03-09 20:31
    In safe mode, the sx-key IDE states that com1 is in use by another process...How odd.
    Dont sweat it peter, I gave up on this days ago. Luckily I have a machine to program on smile.gif .

    Post Edited (Jonb) : 3/9/2005 8:42:44 PM GMT
  • PJMontyPJMonty Posts: 983
    edited 2005-03-09 20:39
    Jon,

    The SX pops up a dialog that specifically says the COM port is in use by another process? I don't even remember writing that code...

    Anyway, the SX IDe just uses standard Windows API calls to obtain the COM port. If the port is unavailable, it's because Windows told it that the port is unavailable. Given that the SXTester program sees the key just fine, then I'm really at a loss here as to why this won't work on this particular machine. That test program uses the exact same communications code as the full IDE, but it strips away everything but the limited amount of communications code needed to "ping" the SXKey. Since the key can be "seen", we know that communication is happening. Weird...

    The only other option is to try the mighty USB serial port adaptor approach, but I'm not sure that would actually work any better.
      Thanks, PeterM
  • Beau SchwabeBeau Schwabe Posts: 6,568
    edited 2005-03-09 20:43
    Jonb,

    I had this exact error as well

    Under your system devices, look around in your MODEM area.... Before I networked my computers via cat-5
    I was using DCC (Direct Cable Connection) via COM and PARALLEL ports. Check to see that you don't have
    a 'virtual modem' connected to a COM port or PARALLEL port that might still be hanging around.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe - Mask Designer III

    National Semiconductor Corporation
    (Communication Interface Division)
    500 Pinnacle Court, Suite 525
    Mail Stop GA1
    Norcross,GA 30071
  • JonbJonb Posts: 146
    edited 2005-03-09 20:44
    ^^ checking that out. Edit:Nothing there.

    I agree with you totally Peter... And no its the default windows message box.

    I cant find the·suggested adapter(FTDI) in Canada, and can't afford to import it, let alone the fact that money is tight ATM( I just spent a fortune on components). If it did not work, I'd be upset as i do not know what the actual problem is. I've always taken the serial port for granted. It works or it doesnt... I've seen blown LPT ports and serial ports but this is just silly.

    Another option I explored is to add a high speed PCI serial card to the computer(5$).

    Perhaps I will wait and see how it goes with your new IDE yeah.gif although like you, I suspect the motherboard's serial chips. If that is the case, a PCI card would be taking orders from the PCI Bus bypassing the integrated serial ports(assumption).

    I think too many hours have been spent trying to get this to work, and I've almost finished Gunther's book smilewinkgrin.gif

    If you are interested in attempting to simulate the problem, i'm using a Micro Star International K7T 266 pro2(http://www.msicomputer.com/product/p_spec.asp?model=K7T266_Pro2-RU)·Its a pretty motherboard isnt it? lol.gif·Might make my next x-mas tree ornament with it!

    Post Edited (Jonb) : 3/9/2005 9:34:54 PM GMT
  • PJMontyPJMonty Posts: 983
    edited 2005-03-09 21:34
    Jon,

    If you have the $5 and the time, stick a PCI serial card in. It would actually be preferred over a USB serial adaptor as it doesn't have the extra layers of weirdness going on.
      Thanks, PeterM
  • JonbJonb Posts: 146
    edited 2005-04-05 03:25
    SUCCESS!!!

    I installed a 1 port PCI Serial card today. This card was purchased on ebay for under 20$ canadian including shipping. It uses the Netmos chipset.·Beware the cheaper ones, which have compatibility issues.

    I can now program the SX from this computer so my productivity will go way up. Thought I would share the good news and the firm conclusion of my troubleshooting.

    The problem was definately the serial chipset on this motherboard·shakehead.gif
    By bypassing the·onboard serial, and adding another compatible one to the PCI bus, I now have a third serial port (COM3) which is able to communicate with the SX key.

    Although the USB adapter was a good idea, this is a solution which truly fixes the problem at a reduced expense. I highly suggest this method to anyone who wishes to save money, and tinker with their computer for 5 minutes.


    Jon··

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔


    Post Edited (Jonb) : 4/5/2005 4:59:19 AM GMT
  • TheDTheD Posts: 1
    edited 2005-04-05 19:16
    PJMonty said...
    Beau,

    There's a known bug in the 3.0 IDE software that causes problems when you have non-contiguous COM ports. In your case you have COM1 and COM3, but no COM2. When the IDE tries to use COM3, it actually uses COM2, and since you either don't have a COM2 or it's used already, the IDE fails to connect. This has been fixed, but the new version has not been released yet.
      Thanks, PeterM
    Anyone know when the new version will be out that fixes this bug?· I program on 3 computers and 2 of the 3 have non-consecutive com ports.·
  • PJMontyPJMonty Posts: 983
    edited 2005-04-06 07:17
    TheD,

    Hang in there. Testing is happening as we speak. It won't be forever...
      Thanks, PeterM
Sign In or Register to comment.