Failed to open COM port on windows 7

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

Re: Failed to open COM port on windows 7

Postby jadew » Sun Dec 09, 2012 7:05 am

When this happens, try the following:

1) close the app that has used the port
2) unplug the OLS
3) plug it back
4) unplug again
5) plug and start using it.

If it works, it means that either the port doesn't get gracefully closed or that it fails on the hardware side. I experienced this behavior when unplugging a device that I was connected to. Had to go trough this steps in order to be able to connect again.
jadew
Newbie
Newbie
 
Posts: 44
Joined: Sat Oct 20, 2012 1:49 am

Re: Failed to open COM port on windows 7

Postby gotchalt » Sun Dec 09, 2012 7:25 am

Nope, doesn't help.
Only a system reboot solves the problem.

I think it's very sad for the OLS project but behaving that way, the tool is almost of no use!
gotchalt
Newbie
Newbie
 
Posts: 5
Joined: Fri Dec 07, 2012 11:26 am

Re: Failed to open COM port on windows 7

Postby jadew » Sun Dec 09, 2012 7:42 am

I'm not very familiar with the hardware or the firmware, however, I would try a few things in the hope that it might shed some light on the issue:

1) connect and disconnect with putty (or any other serial client) several times, see if it stops working.
2) capture some data, close the program, open it again, capture, close, open it, capture close, etc (see if you get better results).
3) try some of the other clients and see if you get similar behavior.
jadew
Newbie
Newbie
 
Posts: 44
Joined: Sat Oct 20, 2012 1:49 am

Re: Failed to open COM port on windows 7

Postby gotchalt » Mon Dec 10, 2012 1:54 pm

And now...

tested it on some other machines, running different OS... same problem!

Using the original SUMP Client everything works - at least for the last 50 tries...
That's crap, the OLS-Client is much more handy.

Maybe I should try to reinstall my JAva!?
gotchalt
Newbie
Newbie
 
Posts: 5
Joined: Fri Dec 07, 2012 11:26 am

Re: Failed to open COM port on windows 7

Postby jawi » Mon Dec 10, 2012 4:09 pm

Hi, seems I missed this topic until now...

Sorry to hear that the client does not work properly for you. Am I right that the client no longer works after you've cancelled an ongoing acquisition (until you reboot your system)? In that case the bug is probably in the used serial library, which might already have been fixed in an upstream version.

Fortunately, I've got a Win7 64 machine at my disposal for some other testing tasks (I normally work on OSX), so I try to reproduce this myself, and see whether a new version of the serial library fixes the issue. Let me get back to you about this...

PS: it shouldn't be necessary to reinstall Java because of this...
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 gotchalt » Tue Dec 11, 2012 12:28 pm

Hi,
yes in fact. Cancelling a pending Capture seems to be the reason.

Update of JRE aswell as RXTX didn't help.

Quite desperate by now...
gotchalt
Newbie
Newbie
 
Posts: 5
Joined: Fri Dec 07, 2012 11:26 am

Re: Failed to open COM port on windows 7

Postby jawi » Tue Dec 11, 2012 3:25 pm

Don't despair, I'm working on it already :)
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 Aeroengineer1 » Wed Jan 30, 2013 9:16 pm

I too am having this problem. I find that once it gets started, I cannot use even the original client, so I am not so sure that it is a client issue. I have found that it usually happens when I tell it to stop a capture. I could get it to work by switching to another USB port, but once that port gets an issue, then I am hosed My other USB ports are too far away to try to use to see if I get functionality back. I am using the USB port that is on the side of my Dell monitor. I have a PICKit also plugged in. I have gon into the device manager and deleted the device on the com port while it is plugged in, then unplug it and plug it back in and have it reinstall the driver. This did not work. I am going to try a reboot to see if it comes back. I am running Win 7-64 Pro.

Adam
Aeroengineer1
Newbie
Newbie
 
Posts: 25
Joined: Mon Jun 18, 2012 1:28 pm

Re: Failed to open COM port on windows 7

Postby Aeroengineer1 » Wed Jan 30, 2013 9:19 pm

A restart allows me to use the device again in both clients.
OLS v1.01
OLS firmware is 3.07
Adam
Aeroengineer1
Newbie
Newbie
 
Posts: 25
Joined: Mon Jun 18, 2012 1:28 pm

Re: Failed to open COM port on windows 7

Postby jadew » Thu Jan 31, 2013 2:53 pm

Hi Aeroengineer1,

Could you please specify which is the other client you're having issues with?

Thanks
jadew
Newbie
Newbie
 
Posts: 44
Joined: Sat Oct 20, 2012 1:49 am

Re: Failed to open COM port on windows 7

Postby Aeroengineer1 » Thu Jan 31, 2013 4:14 pm

It is the SUMP client. I do not remember which version.

Adam
Aeroengineer1
Newbie
Newbie
 
Posts: 25
Joined: Mon Jun 18, 2012 1:28 pm

Re: Failed to open COM port on windows 7

Postby jadew » Thu Jan 31, 2013 4:51 pm

Adam,

Would you mind trying it out with this client: viewtopic.php?f=57&t=4670

It's one that I wrote and I'd like to know if my client is susceptible to this issue as well.

Thank you
jadew
Newbie
Newbie
 
Posts: 44
Joined: Sat Oct 20, 2012 1:49 am

Re: Failed to open COM port on windows 7

Postby Aeroengineer1 » Thu Jan 31, 2013 9:06 pm

No problem, I will give it a go. I will first attempt to get it to fail with one of the other clients. I have been avoiding using the stop capture button lately and it has not had the issue. After I get it to fail, I will switch to your client.

Adam
Aeroengineer1
Newbie
Newbie
 
Posts: 25
Joined: Mon Jun 18, 2012 1:28 pm

Re: Failed to open COM port on windows 7

Postby jawi » Fri Feb 01, 2013 2:39 am

@Areoengineer1: are you using the latest version of OLS client from <http://ols.lxtreme.nl/>, or did you download the Windows-installer from GadgetFactory? In case of the latter, could you try the latest version of the OLS client to see whether that resolves your issue?
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 Aeroengineer1 » Fri Feb 01, 2013 10:04 am

I am running the latest release from the link that you had posted above. It is 9.6.1 if I remember correctly.

I am wondering if this has nothing to do with the Client, but with the fact that it is going through a USB hub. I will not have much time this weekend, but I will see if I can dig out a USB extension cable and go right into a USB port in the back of the computer and see if the behavior is the same. If it is different, then perhaps we can say that going through a hub is a probable cause.

Adam
Aeroengineer1
Newbie
Newbie
 
Posts: 25
Joined: Mon Jun 18, 2012 1:28 pm

Previous

Return to Client software