-
Notifications
You must be signed in to change notification settings - Fork 61
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
dobot is connect with windows laptop #33
Comments
is this exception happening when using the basic example? can you please update to version 1.3.0 (just released) and confirm if it still happens? thanks |
Issue still occures as of now, using the latest release. |
Hi, I'm also trying to get this working on windows and have the same error. Just installed pydoboy with pip install, I'm using python 3.7. Dobot connects fine to Dobot Studio but I'd prefer using just python. Any support much appreciated 😊 |
@jKostet Please report you version of windows, version of pydobot (latest probably), the program which fails to function (connect to the robot) and the error message you see (the same as saravanakumarBalakrishnan?). |
@jonascj Windows 10 Enterprise, latest pydobot latest / 1.3.2. I'm trying to run the example in the README. In addition I have the Dobot DLLs from the latest official Dobot 64bit python demo copied to where my python.exe is located. Here is the full error msg:
|
@jKostet Thank you. I've just tried the example from the readme on Windows 10 Home and it works without installing Dobot Studio and without installing additional drivers[1]. This library does not communicate with the Dobot via the DLL-files as the official Python example, this library communicates with the Dobot directly over the serial-over-usb connection. I notice that you have two available COM-ports, COM3 and COM5. Could it be that you (the readme example really) are using the wrong port? You could try this change to the example:
Or try this instead, it lets you choose COM-port:
[1] https://www.silabs.com/developers/usb-to-uart-bridge-vcp-drivers#software This driver might be necessary, if Windows does not have a serial-over-usb driver installed already. |
@MikeMikeHHN Thank you for reporting the issue as well. Would you provide your Windows version, pydobot version (1.3.2 probably), the python program which fails (the readme example?) and the exact error message you are seeing? |
@jonascj COM5 is what I use with Dobot Studio. Also if the Dobot Studio is connected to the robot, pydobot will give the appropriate error, something like "Dobot is reserved". I'll try COM3 as well, sometimes the ports work a bit weird. I got pydobot working on a raspberry pi, which will be the actual device I'll be running the Dobot from, so that's good. Getting it working on Windows would be great for easier development though. 😃 |
@jonascj Anything else I can do to help? |
pydobot: COM3 open
pydobot: >> AAAA:18:81:3:00004843000048430000484300004843:128
pydobot: >> AAAA:10:83:3:0000484300004843:148
Traceback (most recent call last):
File "", line 1, in
File "C:\python3\lib\site-packages\pydobot\dobot.py", line 47, in init
self._set_ptp_common_params(velocity=200.0, acceleration=200.0)
File "C:\python3\lib\site-packages\pydobot\dobot.py", line 132, in _set_ptp_common_params
return self._send_command(msg)
File "C:\python3\lib\site-packages\pydobot\dobot.py", line 66, in _send_command
response = self._read_message()
File "C:\python3\lib\site-packages\pydobot\dobot.py", line 80, in _read_message
msg = Message(b)
File "C:\python3\lib\site-packages\pydobot\message.py", line 11, in init
self.len = b[2]
IndexError: index out of range
The text was updated successfully, but these errors were encountered: