Failed to open COM port on windows 7

Support and development for logic analyzer client software used with the Logic Sniffer.

Failed to open COM port on windows 7

Postby alexbb » Sun Nov 13, 2011 5:47 pm

Hi,

I'm using the latest stable release of the LogicSniffer client 3.08, and it's unable to connect to the open bench logic sniffer, displaying
"Capture aborted! Failed to open/use COM2! Possible reason: No such port!"

I've tried changing the COM port in the device manager, Enabling/disabling the device to no avail. Any help would be appreciated.
alexbb
Newbie
Newbie
 
Posts: 2
Joined: Sun Nov 13, 2011 5:43 pm

Re: Failed to open COM port on windows 7

Postby ian » Mon Nov 14, 2011 3:40 am

Hi Alex,

What is the operating system? Do you have your own copy of Java 7 installed? Those are two issues that cropped up lately.

Have you updated the Logic Sniffer hardware with the latest 3.08 firmware/bitstream?
User avatar
ian
Crew
Crew
 
Posts: 10538
Joined: Mon Jul 06, 2009 6:14 am

Re: Failed to open COM port on windows 7

Postby jawi » Mon Nov 14, 2011 3:42 am

Does it work on any other platform, like Windows Vista/XP or Linux (presumed you've got such a platform at your disposal)?

Otherwise: did you upgrade to the latest firmware, and can you run the firmware-selftest routines with success (see http://dangerousprototypes.com/docs/Log ... er_utility)?

[edit]drats, Ian, you were quicker than me :)[/edit]
User avatar
jawi
Developer
Developer
 
Posts: 566
Joined: Thu May 27, 2010 2:54 am
Location: The Netherlands

Re: Failed to open COM port on windows 7

Postby alexbb » Mon Nov 14, 2011 11:05 am

Hey guys,

I've tried it in a Ubuntu 11.10 through VirtualBox, the same problem. In both Windows 7 and Ubuntu it will work at first, I'm able to capture and it displays correctly, but after a few times of hitting "Begin capture", I get the "Failed to open..." error. The Logic sniffer has the latest Demon core bitstream on it, and the PIC's firmware has been updated. I'm at work right now, once I'm home I'll try the firmware-selftest routines.

Also, note worthy, I'm using the ols full versions, with the JRE included in the archive.
alexbb
Newbie
Newbie
 
Posts: 2
Joined: Sun Nov 13, 2011 5:43 pm

Re: Failed to open COM port on windows 7

Postby Bruggen » Sat Dec 17, 2011 8:15 am

Hi Folks,

I just got my sniffer yesterday and started capturing data. After about an hour or so I started getting the same error. Device manager recognizes the sniffer and can enable and disable it, but the L A Client doesen't see it.
Bruggen
Newbie
Newbie
 
Posts: 1
Joined: Sat Dec 17, 2011 8:02 am

Re: Failed to open COM port on windows 7

Postby ian » Sat Dec 17, 2011 10:08 am

Hi Bruggen - I'm sorry about the problem with the OLS. You're on Windows 7, and it did work for a while but later stopped?
User avatar
ian
Crew
Crew
 
Posts: 10538
Joined: Mon Jul 06, 2009 6:14 am

Re: Failed to open COM port on windows 7

Postby sherman111 » Wed Apr 11, 2012 10:55 pm

Any progress on this issue? I have the same problem running win7 64 bit. COM port driver fails randomly, BUT fails consistently when I plug in another device. The only fix I have found is to reboot and restart everything, being sure that OLS is the last thing I plug in. The OLS is running off a powered hub and getting a solid 5V, but I wonder if there could be a transient when I plug in another device. I'll try a massive cap across the power pins and see what happens.
Another, I think related issue, is the driver sometimes shows up on COM9, sometimes COM10, sometimes both but only one works, and sometimes hops from one to the other. Very strange. Any ideas appreciated,
Sherman
sherman111
Newbie
Newbie
 
Posts: 2
Joined: Wed Apr 11, 2012 10:37 pm

Re: Failed to open COM port on windows 7

Postby AndThen » Fri Apr 13, 2012 6:46 pm

The changes between ports are what happens when a device resets faster than windows can remove the prior device. If it's randomly hopping ports It is likely being reset(brown out maybe). For manual resets it is helpful to have the device manager open so you see when to release the switch.

I know it is windows but you really shouldn't need a computer restart. If you close the client and disconnect the OLS does the device/port remove it's self?
AndThen
Full Member
Full Member
 
Posts: 180
Joined: Tue Dec 06, 2011 10:14 am

Quick and Quack treatment

Postby arupbsk » Sat Apr 14, 2012 1:16 am

Run the program with administrative rights by right clicking and selecting "Run as Administrator". It should be able to access the port then.
Still learning
-Arup
User avatar
arupbsk
Sr. Member
Sr. Member
 
Posts: 385
Joined: Fri Aug 12, 2011 6:12 am
Location: Gopalganj, India

Re: Failed to open COM port on windows 7

Postby sherman111 » Sun Apr 15, 2012 1:03 am

Thanks for the suggestions.

AndThen - yes. brownout was my theory but I run it off a powered hub with a stiff 4A power supply. i tacked a 330uf cap across the USB power pins on OLS and the problem persists. I'm not sure I follow the "resets faster than windows can remove the prior device." Why should there be a device to remove? Does OLS reset, then reasserts itself, trying to claim a resource windoze hasn't freed yet? Sounds like an OLS bug if it is resetting rapidly when first plugged in. The 2 ports appear when I first connect the device. It loses the port sometime after it's connected and I cannot restore it. Removing/reconnecting OLS does not work. windows reports the port as operational after the failure. I suppose there are things i could do as admin...

Arupbsk - yes, I should run it as admin so I can poke around more effectively. Strange that I so often forget that I can do that.

If I'm careful I am able to get an hour or two of debugging before losing the port, so it's a relatively minor annoyance, except when i have gone to a lot of effort to set up a test and it decides then is the time to choke. Regardless, it is the best $50 LA I have used and gets the job done. If I could afford Tektronix I would have it :-)

Please keep the ideas flowing. Is there any FPGA guy out there able to put edge triggering on a few inputs? That would be so nice.

Thanks,
Sherman
sherman111
Newbie
Newbie
 
Posts: 2
Joined: Wed Apr 11, 2012 10:37 pm

Re: Failed to open COM port on windows 7

Postby Qwlciguk » Sun Apr 15, 2012 2:33 am

I don't have any comment about the port issues that you're encountering, but edge triggering is already possible via trigger sequence. Just define the first state as low and the second as high and you'll have a positive edge trigger. It's a bit of a pain by comparison to commercial logic analyzers that offer a direct edge trigger selection, but it's better than nothing. I suppose the client could offer an automatic sequence selection for edge trigger mode. No change to the hardware is needed.

B.B.
Qwlciguk
Jr. Member
Jr. Member
 
Posts: 90
Joined: Sat Nov 19, 2011 7:48 pm

Re: Failed to open COM port on windows 7

Postby ian » Tue Apr 17, 2012 9:43 am

I'm sorry, so far I have not been able to reproduce the bug here. You are running through a hub, which has caused some issues in the past, does it also happen consistently without the hub?
User avatar
ian
Crew
Crew
 
Posts: 10538
Joined: Mon Jul 06, 2009 6:14 am

Re: Failed to open COM port on windows 7

Postby gotchalt » Fri Dec 07, 2012 11:46 am

Hi folks,
any progress concerning that topic?

got my OLS yesterday from Watterott and I am also struck with that issue.

I'm running W7-64-Ultimate,
PIC FW is 3.0
FPGA is 3.07-demon

I can do several captures but then the status bar also shows "...no such port found"

the device itsef is present in the device manager and vanishes if OLS is unplugged (and of course reappers on replug)

no way out, the machine has to be rebooted to solve the problem

Does someone have an Idea?
BoB
gotchalt
Newbie
Newbie
 
Posts: 5
Joined: Fri Dec 07, 2012 11:26 am

Re: Failed to open COM port on windows 7

Postby ian » Sat Dec 08, 2012 3:34 am

Hi gotchalt,

I'm sorry about the problem. I'm running the exact same system and have never had an issue. Are you using a hub by any chance? USB 3.0 port?

After the error, can you close the OLS client, and then open a serial terminal to the COM port? This would let us know if it is a system or Java related error.
User avatar
ian
Crew
Crew
 
Posts: 10538
Joined: Mon Jul 06, 2009 6:14 am

Re: Failed to open COM port on windows 7

Postby gotchalt » Sun Dec 09, 2012 6:21 am

Good morning...

I tried out several things.
First of all, the COM-Port keeps "blocked by another application", as my Terminal-Program tells me...

I found out how to bring the whole situation up: start a capture and select cancel capture while waiting for trigger-event. The status bar still displays, "Capturing...".

A restart of capture usually brings up that type of error: "No such port"

I suppose that the Problem is the Windows driver for USB-PIC interfacing.

Any help appreciated

Greetz
BoB
gotchalt
Newbie
Newbie
 
Posts: 5
Joined: Fri Dec 07, 2012 11:26 am

Next

Return to Client software