Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Mar 29, 2022 · 1 comment

Comments

@GljTest
Copy link

GljTest commented Mar 29, 2022

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants