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: NoneSeverity: 3 - Normal
Priority: 5 - NormalStatus: None
Assigned to: Axel Wachtler <awachtler>Open/Closed: Open

Add a New Comment (Rich MarkupRich 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
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 04 Jun 2010 07:05:08 AM UTCawachtlerAssigned toNone=>awachtler
    Fri 04 Jun 2010 07:04:39 AM UTCawachtlerCarbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup