[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[uracoli-devel] [bug #30048] Access denied for open com port on WIN XP w
From: |
Axel Wachtler |
Subject: |
[uracoli-devel] [bug #30048] Access denied for open com port on WIN XP w/ pyserial |
Date: |
Fri, 04 Jun 2010 07:04:40 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081217 SeaMonkey/1.1.14 |
URL:
<http://savannah.nongnu.org/bugs/?30048>
Summary: Access denied for open com port on WIN XP w/
pyserial
Project: µracoli
Submitted by: awachtler
Submitted on: Fri 04 Jun 2010 07:04:39 AM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
It happened that on a windows XP machine the software was able to
open the COM port once and then never again. Stefan Colditz provided a fix
for it, which was found on
http://bodybugglinux.blogspot.com/2009/07/command-line-extraction-tool.html.
A ser.close() before ser.open() has to be done for the windows
user.
--- old/ieee802154_io.py 2010-02-22 21:54:38.000000000 +0100
+++ new/ieee802154_io.py 2010-06-04 08:53:20.000000000 +0200
@@ -144,6 +144,7 @@
self.BAUDRATE = eval(baud)
self.fname = port
self.sport = serial.Serial(self.fname, self.BAUDRATE, timeout=10)
+ self.sport.close()
self.sport.open()
self.RxThread=threading.Thread(target = self.__rx__)
self.RxThread.setDaemon(1)
Arrrgghhhh ... the script code gets uglier and uglier since supporting this
OS :-(
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?30048>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [uracoli-devel] [bug #30048] Access denied for open com port on WIN XP w/ pyserial,
Axel Wachtler <=