acconeer / acconeer-python-exploration

Acconeer Exploration Tool
https://docs.acconeer.com
Other
171 stars 62 forks source link

Could Not Open Port : PermissionError 'Access is denied' #120

Closed JCJC7 closed 1 year ago

JCJC7 commented 1 year ago

Hi, I've recently purchased the Acconeer XE132 kit and try some of its functions. I have tried the GUI to get the basic idea of the radar services. I also successfully run the python scripts for the basic services as guided in the github page (except IQ services as it shows that IQ mode is not supported). However, when I try to run the python code for sparse_fft which I downloaded from github, it pops out this error. Here I would like to seek for solution to this error in the below figure. Thank you in advance.

2022-11-03_14-30-52

stijnb1234 commented 1 year ago

(Your Windows username is still visible)

Make sure the module is connected to COM8 and that COM8 is not used by anything else.

JCJC7 commented 1 year ago

Hi, thank you for the reply. Yes, I'm sure that the module is connected to COM8. This is the figure for envelope python script. image

If I run the sparse_fft main.py script, the same error still occurs. I tried with other algorithm python scripts, it is all showing the same error. Did I do something wrong or I need to do something before running these scripts?

path : ...\github-acconeer-python-exploration-master\src\acconeer\exptool\a111\algo image

vackraetraed commented 1 year ago

Hello,

It seems to work fine for me to run these algo examples on Linux, however, when running the same code on Windows I get the same error as you. So might be some Windows specific permission that is not granted when running the algorithms standalone like this. Perhaps there is some clue in the differences when establishing a UART connection in the standalone examples vs the standalone algo ones.

vackraetraed commented 1 year ago

Could you try running the firmware from the algo map with the following command: python -m sparse_fft -u COM8

vackraetraed commented 1 year ago

Perhaps I meant the sparse_fft map :D

vackraetraed commented 1 year ago

Sorry, I questioned myself too much. You should write the command in the algo folder, I was correct the first time.

vackraetraed commented 1 year ago

You can also try: python -m acconeer.exptool.a111.algo.sparse_fft -u COM8

From any folder if you have installed the package.

JCJC7 commented 1 year ago

Thank you for your support! The final command works!

whole_file

Truly appreciate your time and effort. Thank you!