You are here

Vesc-tool TCP Connection

2 posts / 0 new
Last post
nlabs
Offline
Last seen: 3 years 10 months ago
VESC Original
Joined: 2017-08-21 17:38
Posts: 4
Vesc-tool TCP Connection

Hi, Ben.

Previously, I used 'udp-uart-bridge' to communicate with vesc frequently. In the new vesc, There is TCP connection instead of UDP.

Could you explane how to use this TCP connection method?

 

 

Thanks,

--

Dongil Choi

milesf
Offline
Last seen: 2 years 11 months ago
Joined: 2020-11-14 22:03
Posts: 2

On your remote machine (e.g. a raspberry pi), use a USB cable to attach the VESC. Then run this socat command on that remote machine to expose the USB device as a TCP socket.

socat tcp-listen:65102,reuseaddr,fork file:/dev/serial/by-id/usb-STMicroelectronics_ChibiOS_RT_Virtual_COM_Port_304-if00,raw

Then on your local machine (e.g. your desktop PC), open VescTool, navigate to Connection>TCP, then enter the remote devices's IP address and click connect.

Note, if socat is unavailable on your remote machine, install it with something like:

sudo apt install socat