dzhu / myo-raw

MIT License
218 stars 115 forks source link

could no open port: "PermissionError(13, 'The device connected to the system is not functioning.', None, 31) in the AT script #36

Open GljTest opened 2 years ago

GljTest commented 2 years ago

When I run the AT test script, an exception is thrown when opening the AT serial port: could no open port: "PermissionError(13, 'The device connected to the system is not functioning.', None, 31)" I get this message. I don't know whats wrong, please help!

Below is my code : try: self.controller = serial.Serial(self.com, self.rate) rev_threa = threading.Thread(target=self.receive_msg_from_port_thread_py3) rev_threa.setDaemon(True) self.log('open serial') rev_threa.start() except Exception as ex: self.log("SUMMARY:SUB SERVICE:%s,%s" % ("NA", "AT Port Exception")) self.log('[%s]serial_open [%s, %d], ERROR:%s' % (self.module_name, self.com, int(self.rate), str(ex)))

Oskimark commented 1 year ago

just install ch341 driver version3.4 and RESTART. sure your uart chip is counterfeit