You are here

Raspberry Pi as TCP Hub/VESC Express

2 posts / 0 new
Last post
wittrup
Offline
Last seen: 1 week 7 hours ago
VESC Free
Joined: 2023-08-16 15:25
Posts: 2
Raspberry Pi as TCP Hub/VESC Express

Hello

I have a Raspberry Pi with a CAN interface connected to VESC 6.
Is there any way I can have that Raspberry Pi show up in VESC tool, and than use the Raspberry Pi as a bridge to configure the VESC?
I.e. more or less the same way a VESC Express would work.

wittrup
Offline
Last seen: 1 week 7 hours ago
VESC Free
Joined: 2023-08-16 15:25
Posts: 2

Made topology drawing
Untitled Diagram.drawio.png

And here some information from Raspberry Pi:

ubuntu@ubuntu:~$ for iface in eth0 can0 wlan0; do ip addr show "$iface"; done
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000
    link/ether 2c:cf:67:24:38:15 brd ff:ff:ff:ff:ff:ff
3: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UP group default qlen 10
    link/can
4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 2c:cf:67:24:38:16 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.120/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 85001sec preferred_lft 85001sec
    inet6 fe80::2ecf:67ff:fe38:1624/64 scope link
       valid_lft forever preferred_lft forever

ubuntu@ubuntu:~$ candump can0 | grep 0C | grep -v '00C '
  can0  00001B0C   [8]  FF FF DB 57 00 7C 00 00
  can0  00003A0C   [8]  01 32 01 3C 01 32 00 00
  can0  0000090C   [8]  00 00 00 00 FF FD 00 00
  can0  00000E0C   [8]  00 00 00 10 00 00 00 00
  can0  00000F0C   [8]  00 00 00 D3 00 00 00 00
  can0  00001B0C   [8]  FF FF DB 57 00 7C 00 00
  can0  00003A0C   [8]  01 32 01 3D 01 32 00 00
  can0  0000090C   [8]  00 00 00 00 00 01 00 00
  can0  00000E0C   [8]  00 00 00 10 00 00 00 00
  can0  00000F0C   [8]  00 00 00 D3 00 00 00 00
  can0  00001B0C   [8]  FF FF DB 57 00 7C 00 00
  can0  00003A0C   [8]  01 37 01 41 01 37 00 00
  can0  0000090C   [8]  00 00 00 00 FF FE 00 00
  can0  00000E0C   [8]  00 00 00 10 00 00 00 00
  can0  00000F0C   [8]  00 00 00 D3 00 00 00 00
  can0  00001B0C   [8]  FF FF DB 57 00 7C 00 00
  can0  00003A0C   [8]  01 39 01 47 01 39 00 00
  can0  0000090C   [8]  00 00 00 00 00 02 00 00

Where 0C is a VESC on the CAN bus with ID 12.