bugµracoli - Bugs: bug #30048, Access denied for open com port on...

 
 

bug #30048: Access denied for open com port on WIN XP w/ pyserial

Submitter:  Axel Wachtler <awachtler>
Submitted:  Fri 04 Jun 2010 07:04:39 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Status:  None
Assigned to:  awachtler Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 04 Jun 2010 07:04:39 AM UTC, original submission:  

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 :-(

Axel Wachtler <awachtler>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by awachtler (Submitted the item)
  • -email is unavailable- added by awachtler
  •  

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-04 awachtler Assigned toNone awachtler
    2010-06-04 awachtler Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code