RoboDK Custom Driver- Printable Version +- RoboDK Forum (//www.sinclairbody.com/forum) +-- Forum: RoboDK (EN) (//www.sinclairbody.com/forum/Forum-RoboDK-EN) + - - -论坛:通用RoboDK问题(//www.sinclairbody.com/forum/Forum-General-questions-about-RoboDK) +---Thread: RoboDK Custom Driver (/Thread-RoboDK-Custom-Driver) |
RoboDK Custom Driver-niekas-05-09-2019 Hello, I have coded a custom driver for RoboDK to connect to Arduino. From RoboDK GUI, connection works and I am able to send commands (from buttons & program) without any issue. Though, when I want to use Python API and callsetConnectionParamsmethod, I get the error below.
Code:
File "/venv/lib/python3.7/site-packages/robolink/robolink.py", line 4017, in setConnectionParams
Here is the connect function from my custom driver:
Code:
def connect(self, host: str, baudrate: int):
This seems to happen during setting of params. Thus, I am kinda lost where to start debugging. Any help is much appreciated. RE: RoboDK Custom Driver-Albert-05-09-2019 Can you provide some example code where you set the connection parameters? If you customized your robot driver you may not need any of the parameters required by default (such as the IP, FTP remote path and FTP credentials). RE: RoboDK Custom Driver-niekas-05-10-2019 Here is how I set connection parameters:
Code:
self.rdk_link.setConnectionParams('/dev/cu.usbmodem14201', 9600, '/', 'anonymous', '')
Inside driver, since this is a serial connection, I use port in RoboDK as baudrate. RE: RoboDK Custom Driver-niekas-05-19-2019 Albert, you won't believe how I fixed this issue. I changed name of robot (in RoboDK). Now everything is fine. :) Seems for some reason RoboDK didn't like the name i gave. RE: RoboDK Custom Driver-Albert-05-20-2019 Thank you for letting us know. This is a strange issue though. What name did you change? |