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:  Severity: 
Priority: 5 - Normal Status: 
Assigned to: awachtler Open/Closed: Open
Summary:  *
* Mandatory Fields

Add a New Comment (Rich Markup)
   

Comment Type & Canned Response:
        No canned response available   (Or define a new Canned Response)

 

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>
Project AdministratorIn charge of this item.

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Search an item (to fill a dependency against):
   
Of     of  

Depends on the following items: None found

Items that depend on this one: None found

 

(Note: for Savannah users, you can use their login name rather than their email addresses.)


      

   

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 s.colditz@agilion.de

    Back to the top


    Powered by Savane 3.5