elmachin has asked for the wisdom of the Perl Monks concerning the following question:

I am using Eli Bendersky's serial port monitor. I have an embedded linux device attached to the COM port. First I use WIN32::TieRegistry to retrieve the open ports and then I send a ls to each open port and see who responds.

It seems to work the first time through and then it breaks the second time. In the broken state I can't open teraterm on the correct port and the only error that Eli's program gives is c **** Error opening port \\.\COM3: 5

If I hit CTRL-C while the program is running, then the program will work again 1 time. Is there a way to find out what is holding up the COM port and shut it down prior to running the code?

I already tried a shutdown 2 and close on the 2 ports Eli uses 14441 and 14442 with no luck.

Thanks

Replies are listed 'Best First'.
Re: Serial Port Scan funk
by Anonymous Monk on Aug 01, 2014 at 02:44 UTC