Closed Kakcalu13 closed 5 months ago
If you want to use a PC to control 280 Pi, you need to use Socket communication. PC cannot directly control 280Pi through USB.
You need to execute the Server.py file in a 280Pi system, open the server, and then use MyCobotSocket on the PC to connect to the client and control the robot
Sorry for the delay!
I'm confused, I've been controlling the mycobot through USB on PC for almost a year now. It's just that MAC doesn't work. So Mac needs to be the one to connect with the server? How come it worked on Linux, but not Mac?
Also thank you for your time too!
I'm curious, how did you implement the PC to communicate with the 280 Pi if you didn't use the Socket method? Only the M5 series mycobot can use USB to communicate with PC. The type-c port on the 280 Pi is not used for communication. If you want to use a MAC computer to control the 280 Pi, you can only use Socket.
I made a reproducible the bug. See here:
I added more simple code. The issue is that
set_encoder
does not work well on Mac M1 for some reason. It does not give any error either. I ran the exact same code above on linux except the different port name which is/dev/USB0
and it worked.Mac and Linux used the same version of mycobot.
On Mac information: Pymycobot Version: 3.0.6 Mac CPU: Apple M1 Mac OS: Version 13.6.4 (22G513) Python version: Python 3.11.3
On my Linux: Pymycobot Version: 3.0.6 Linux CPU: Intel i7 CPU Linux OS: 20.04 Python version: Python 3.8.10
My mycobot arm version is mycobot pi 280