Closed rohithanaydy closed 2 years ago
Hello @rohithanaydy
I created a new binary for you. Let me know whether or not it works and we can take it from there: acc_module_server.zip
Dear @vackraetraed Thank you for your response. I tried with this code, still it is not connected to the server !
Baud Rate - 115200 Data Bits - 8 Parity - none StopBit - 1 Flowcontrol - Hardware...
_Traceback (most recent call last): File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\acconeer\exptool\app\app.py", line 1562, in connect_to_server info = self.client.connect() File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\acconeer\exptool\a111_clients\client.py", line 75, in connect return self.subclient.connect() File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\acconeer\exptool\a111_clients\base.py", line 36, in connect info = self._connect() File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\acconeer\exptool\a111_clients\reg\client.py", line 203, in _connect self._link.baudrate = baudrate File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\acconeer\exptool\a111_clients\links.py", line 202, in baudrate self._ser.baudrate = new_baudrate File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\serial\serialutil.py", line 299, in baudrate self._reconfigure_port() File "C:\Users\rohit\Downloads\portable_exploration_tool (1)\tools\python-3.9.10-embed-amd64\lib\site-packages\serial\serialwin32.py", line 222, in _reconfigureport raise SerialException( serial.serialutil.SerialException: Cannot configure port, something went wrong. Original message: OSError(22, 'The parameter is incorrect.', None, 87)
Is there any mistake in my uart config ?
Thanks Rohith R
Hello @rohithanaydy
I do not see anything particular wrong with the setting you are stating. However, the error seems to refer to some error within the Windows/Python environment itself.
Have you made any alterations to the exploration tool?
Could you perhaps try to run the example "module_software_example.py" that is delivered together with the "acc_module_software.bin"? What happens if you run "module_software_example.py"?
@rohithanaydy
Also, which version of the exp tool are you running? And which version of pyserial do you have installed?
Hello again @rohithanaydy
Considering the pyserial code seems to call Windows DLL libraries, I am now kind of suspecting that there are drivers missing for the USB to UART converter. What type of USB to UART converter are you using? What brand? For example if it is an FTDI then perhaps this link would be good: https://ftdichip.com/drivers/vcp-drivers/
Dear @vackraetraed
Thank for your reply. I cant load the module_software_example.py
using stm32 st link utility.
The USB to UART converter I am using is Silicon Labs CP210 USB to UART Bridge.
I downloaded the exploration tool with reference to (https://github.com/acconeer/acconeer-python-exploration#quickstart-for-windows) . The version is 4.2.0 .
Thank you
Rohith R
Hello @rohithanaydy
module_software_example.py is a python script you run on your PC that communicates over serial with the module software flashed on XM132. But if you are using Silicon labs CP210 USB to UART Bridge then you probably need to install the VCP drivers that can be found here: https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers Have you tried installing these drivers? If you go into device manager, does Silicon labs CP210 USB to UART show up as a Virtual COM port when you connect the USB?
Dear @vackraetraed Currently the device manager is not showing CP210 USB to UART show up as a Virtual COM port. currently The driver running is silabser.sys I have downloaded https://www.silabs.com/documents/public/software/VCP_WinCE60.zip . Is it enough? I am doubt in installing it ! Is Py Serial is necessary for to run Exploration Tool
Hello @rohithanaydy
Yes, pyserial is needed to run Exploration Tool since it communicates by serial in python. The firmware you downloaded does not seem to be quite correct. My guess is that you would need to install this: https://www.silabs.com/documents/public/software/CP210x_Windows_Drivers.zip
Dear @vackraetraed Installed the driver CP210xVCPInstaller_x64, py serial- 3.5 , keeping the UART Config same, But still the device is not connected to Exploration Tool. I am using windows 11, is there any problem ?
Hello @rohithanaydy
I will close this issue on github, since you have an open ticket in our freshdesk regarding the same issue. I have provided Ola with the information given in the comments here.
Hello, This is not a bug. This is a problem I am facing. I am trying to use the Exploration tool with XM132 Module alone. I am not using XE132 EVK.
acc module server.bin
is flashed on the module using stm32 utility link and connected to the Exploration Tool using USB to UART converter with BaudRate = 115200, and Hardware Flow control enabled. But it shows Could not connect to the server . What will be the reason ? Anyone please tell me to solve the issueThanks