vedderb / bldc

The VESC motor control firmware
2.21k stars 1.36k forks source link

How to connect to the VESC via TCP/UDP #151

Open joekeo opened 4 years ago

joekeo commented 4 years ago

hello,

I would like to know if there is any way to connect to the VESC via TCP/IP or UDP? I would like to set up a remote controlled vesc via a ethernet cable.

I know this will require extra hardware, like a SPI or a USB to RJ45. But I have not been able to find someone that has done this before.

Any pointers?

ddosoff commented 4 years ago

Here is example https://youtu.be/zpEXdvvlT0U

To achieve good latency you have to apply TCP_NODELAY option to vesc_tool client code from here: https://github.com/vedderb/vesc_tool/pull/66

On Wed, 8 Apr 2020, 19:41 Pepe, notifications@github.com wrote:

hello,

I would like to know if there is any way to connect to the VESC via TCP/IP or UDP? I would like to set up a remote controlled vesc via a ethernet cable.

I know this will require extra hardware, like a SPI or a USB to RJ45. But I have not been able to find someone that has done this before.

Any pointers?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/vedderb/bldc/issues/151, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACN5PB2PDN3IY344CJXSI3RLSDWXANCNFSM4MD7LTDQ .

ddosoff commented 4 years ago

Bridge code - https://github.com/ddosoff/vesc_esp32

joekeo commented 4 years ago

This is great, Many thanks!