Studio does not start #277
Replies: 4 comments 2 replies
-
Hi @beesjot ! This error means that Tinymovr Studio is unable to detect a CAN bus interface. Upon startup, Studio tries to auto-detect a limited number of interface types, namely slcan and canine. For any other type, it needs to be specified as a command line argument (the bustype parameter), using the python-can compatible interface name. For instance:
So you will need to find the python-can compatible interface name for your adapter first. Once you do that, you can pass it as an argument. If it is still not detected, it means that the python-can driver does not support channel auto-detection, and you will need to supply that as well, for instance:
your chan parameter depends both on the OS as well as the device itself. For instance, in Windows, it is common to have a COM port as a channel:
I hope this helps. I am converting this to a discussion as it is not an issue of studio. Please feel free to continue the discussion here. |
Beta Was this translation helpful? Give feedback.
-
It seems the first message is related to the robotell interface: https://github.com/hardbyte/python-can/blob/631f7bea71134e1bc8c1af9d6a87f1b75985ff7c/can/interfaces/robotell.py#L216 , from a first glance it seems the robotel interface is not compatible. The second set of exceptions seem to suggest that the slcan interface times out when reading from the device. I would suggest to find out/ask Waveshare if their adapter is compatible with python-can, and which driver should be used. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
Hi, What is the error you are getting? In the meantime, I tried the code in the link you pasted:
And it seems to cause the python interpreter to hang. It seems there is an issue with this driver. If you are able to use linux, I would suggest using socketcan if you can. This approach is much more reliable. The candlelight-based adapter should be compatible with socketcan (our CANine using candlelight is) |
Beta Was this translation helpful? Give feedback.
-
Hello
I've successfuly installed tinymovr[GUI] (by use command pip3 install "Tinymover[GUI]") but when I try to start Tinymovr, I can see next messages:
C:\Users\beesj>tinymovr
Traceback (most recent call last):
File "C:\Users\beesj\AppData\Local\Programs\Python\Python311\Lib\site-packages\tinymovr\config\config.py", line 55, in get_bus_config
return configs[0]
~~~~~~~^^^
IndexError: list index out of range
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\beesj\AppData\Local\Programs\Python\Python311\Scripts\tinymovr.exe_main.py", line 7, in
File "C:\Users\beesj\AppData\Local\Programs\Python\Python311\Lib\site-packages\tinymovr\gui\gui.py", line 48, in spawn
w = MainWindow(app, arguments)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\beesj\AppData\Local\Programs\Python\Python311\Lib\site-packages\tinymovr\gui\window.py", line 139, in init
params = get_bus_config(buses)
^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\beesj\AppData\Local\Programs\Python\Python311\Lib\site-packages\tinymovr\config\config.py", line 57, in get_bus_config
raise can.CanInitializationError("No active interface found") from exc
can.exceptions.CanInitializationError: No active interface found
Can You help me in this problem?
System is Win10, Python v3.11.4. Tinymovr rev5.2 is conneceted two ways to PC: via Serial port, and via USB-CAN-A (Waveshare). Each interface is operating, but it is to little to change configuration of Tinymovr. My target is in control device via Serial port, and use internal motor Hall sensors.
Regards
beesjot
Beta Was this translation helpful? Give feedback.
All reactions