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

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

Add a New Comment (Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


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

--- 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.RxThread=threading.Thread(target = self.__rx__)

Arrrgghhhh ... the script code gets uglier and uglier since supporting this OS :-(

Axel Wachtler <awachtler>
Project AdministratorIn charge of this item.


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

Attach Files:

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.7