From: Roger B. <ro...@ro...> - 2003-04-25 23:44:33
|
I am working on adding the code. The two attempts to open comm port are in CVS now. I've got a theory that the other problems are caused by the host computer changing baud rate too quickly. However I never get comms failures myself so I can't test it. Could you please 'import time' at the top of commport.py and then at the end of setbaudrate add 'time.sleep(1)' NB this needs to be against the CVS source, not your new routines. Please tell me if this makes any difference. I would prefer it over the solution of sending stuff up to twice since that could fail in other ways (eg if the command being sent is to delete a file but the first worked but we fudged dealing with the response then we would send a second command and get a file not existing error). Roger |