Re: PySerial could not open port COM4: [Error 5] Access is denied- please help

2012-06-28 Thread Adam
"Roel Schroeven" wrote in message news:mailman.1618.1340910525.4697.python-l...@python.org... > Temia Eszteri schreef: >> Actually, I believe someone in an earlier thread in the newsgroup or >> elsewhere pointed out that serial ports automatically open under >> Windows. I'd have to look it back

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-28 Thread Adam
"Grant Edwards" wrote in message news:jshotj$s55$1...@reader1.panix.com... > On 2012-06-28, Adam wrote: > >> Obviously pySerial considers the serial port open > > Because it's already been opened by the Python program. > >> and will not open an already open serial port. > > Pyserial will happil

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-28 Thread Roel Schroeven
Temia Eszteri schreef: Actually, I believe someone in an earlier thread in the newsgroup or elsewhere pointed out that serial ports automatically open under Windows. I'd have to look it back up when I have the time, which I don't have at the moment, unfortunately. That doesn't have anything to

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-28 Thread Grant Edwards
On 2012-06-28, Adam wrote: > Obviously pySerial considers the serial port open Because it's already been opened by the Python program. > and will not open an already open serial port. Pyserial will happily try if you call the open() of a port that's already open, but Windows will return an err

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Grant Edwards" wrote in message news:jsg4o8$o4p$1...@reader1.panix.com... > On 2012-06-27, Adam wrote: >> >>> Actually, I believe someone in an earlier thread in the newsgroup or >>> elsewhere pointed out that serial ports automatically open under >>> Windows. I'd have to look it back up when

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Grant Edwards
On 2012-06-27, Adam wrote: > >> Actually, I believe someone in an earlier thread in the newsgroup or >> elsewhere pointed out that serial ports automatically open under >> Windows. I'd have to look it back up when I have the time, which I >> don't have at the moment, unfortunately. What they're r

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Temia Eszteri" wrote in message news:ra2nu7h75720i75ijhabg12dngrab75...@4ax.com... > On Wed, 27 Jun 2012 22:18:59 + (UTC), Grant Edwards > wrote: > >>> Can you post a small example showing what you're doing? >> >>The best way to get help is to write as small a program as possible >>that de

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Temia Eszteri
On Wed, 27 Jun 2012 22:18:59 + (UTC), Grant Edwards wrote: >> Can you post a small example showing what you're doing? > >The best way to get help is to write as small a program as possible >that demonstrates the problem, and post it. I'll help you get >started... > >Does this program work? >

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Grant Edwards
On 2012-06-27, Grant Edwards wrote: > On 2012-06-27, Adam wrote: >> "Grant Edwards" wrote: >>> Why do you need to open it a second time? >> >> As far as I can tell, the wireless hardware connected to the >> USB-to-serial converter is receiving data (which may have the serial >> port open?). I

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Grant Edwards
On 2012-06-27, Adam wrote: > "Grant Edwards" wrote: >> On 2012-06-27, Adam wrote: >> >>> The Python script needed a call to ser.close() before ser.open() in >>> order to work. >> >> IOW, the port opened OK, but when you tried to open it a second time >> without closing it first, _that's_ when th

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Grant Edwards" wrote in message news:jsftah$bb5$1...@reader1.panix.com... > On 2012-06-27, Adam wrote: > >> The Python script needed a call to ser.close() before ser.open() in >> order to work. > > IOW, the port opened OK, but when you tried to open it a second time > without closing it first,

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Grant Edwards
On 2012-06-27, Adam wrote: > The Python script needed a call to ser.close() before ser.open() in > order to work. IOW, the port opened OK, but when you tried to open it a second time without closing it first, _that's_ when the .open() call failed. That's a restriction built in to Win32. You ca

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Paul" wrote in message news:jsfhv2$ta9$1...@dont-email.me... > Adam wrote: > >> >> This is a tough one. > > Try > >handle -a > allhand.txt > > Then open the allhand.txt with Notepad and look for interesting entries. > > *** > > I tested right now, and first opened a session in HyperTerm

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Paul
Adam wrote: This is a tough one. Try handle -a > allhand.txt Then open the allhand.txt with Notepad and look for interesting entries. *** I tested right now, and first opened a session in HyperTerminal with one of my USB to serial adapters. The second serial adapter, is connect to

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Paul" wrote in message news:jsfatv$djt$1...@dont-email.me... > Adam wrote: >> "Paul" wrote in message >> news:jseu9c$sp3$1...@dont-email.me... >>> Adam wrote: "John Nagle" wrote in message news:jse604$1cq$1...@dont-email.me... > On 6/26/2012 9:12 PM, Adam wrote: >> Host OS

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Paul
Adam wrote: "Paul" wrote in message news:jseu9c$sp3$1...@dont-email.me... Adam wrote: "John Nagle" wrote in message news:jse604$1cq$1...@dont-email.me... On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Termina

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"Paul" wrote in message news:jseu9c$sp3$1...@dont-email.me... > Adam wrote: >> "John Nagle" wrote in message >> news:jse604$1cq$1...@dont-email.me... >>> On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open po

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Grant Edwards
On 2012-06-27, David H. Lipman wrote: > From: "Adam" >> "John Nagle" wrote in message >> news:jse604$1cq$1...@dont-email.me... >>> On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulato

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread David H. Lipman
From: "Adam" "John Nagle" wrote in message news:jse604$1cq$1...@dont-email.me... On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulator. So, what can cause PySerial to generate the following error

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Paul
Adam wrote: "John Nagle" wrote in message news:jse604$1cq$1...@dont-email.me... On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulator. So, what can cause PySerial to generate the following error ...

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-27 Thread Adam
"John Nagle" wrote in message news:jse604$1cq$1...@dont-email.me... > On 6/26/2012 9:12 PM, Adam wrote: >> Host OS:Ubuntu 10.04 LTS >> Guest OS:Windows XP Pro SP3 >> >> >> I am able to open port COM4 with Terminal emulator. >> >> So, what can cause PySerial to generate the following erro

Re: PySerial could not open port COM4: [Error 5] Access is denied - please help

2012-06-26 Thread John Nagle
On 6/26/2012 9:12 PM, Adam wrote: Host OS:Ubuntu 10.04 LTS Guest OS:Windows XP Pro SP3 I am able to open port COM4 with Terminal emulator. So, what can cause PySerial to generate the following error ... C:\Wattcher>python wattcher.py Traceback (most recent call last): File "wattche