View Single Post
Posts: 36 | Thanked: 19 times | Joined on Feb 2011
#72
EDIT: posted before your file. will test now.

i don't think that only timeouts will sort this...
i have tried to remove the second resultreading and extend the timeouts below, but no luck:

Code:
       self.send_command("0100")
             time.sleep(2)
             ready = self.get_result()
             print ready
             time.sleep(2)
             wx.PostEvent(self._notify_window, DebugEvent([2,"0100 response1:" + ready]))


#UNABLE TO CONNECT
#SEARCHING...............


             if ready=="SEARCHING...":
                time.sleep(2)
it reads consequentially, so the SEARCHING... is still in the buffer, or not? So we have to skip it... alghout i would think that this is exactly what happens in the if ready="SEARCHING..."