You are here

UART CAN forwarding

6 posts / 0 new
Last post
frankus
Offline
Last seen: 1 month 4 days ago
Joined: 2018-10-31 03:33
Posts: 2
UART CAN forwarding

I have a two-VESC longboard that I want to control via UART. 

Setup:

  • Master VESC has ID of 0
  • Slave VESC has ID of 1
  • In VESCTool, forwarding over CAN lets me configure/control the slave VESC
  • Slave VESC is set to No App
  • Slave VESC Send CAN Status is set to True (false for master)
  • https://github.com/bastianraschke/ESP8266VESC library for controlling VESC from an Arduino UNO clone
  • I modified the above GitHub link to insert the COMM_FORWARD_CAN and slave VESC ID (1) bytes and increase the payload size by two to make room.

What works:

  • I can spin up the master motor by sending a current command over UART
  • I can spin up either motor in VESC tool by checking/unchecking the CAN forwarding feature

What doesn't work:

  • When I try to spin up the slave motor via UART it doesn't move. 

Here's what I'm sending to the master VESC over UART:

2 5 6 0 0 11 184 55 172 3 (set current to 3A)
2 7 33 1 6 0 0 11 184 164 155 3 (forward to VESC 1 and set current to 3A -- UPDATED)

If I just send the first line repeatedly, the master motor spins up nicely. If I send just the second line, or both, nothing happens. 

EDIT 2: I had an error in my packet assembly code. It looks like I have the right CRC and everything now, but it's still not working. 

 

magnushedin
Offline
Last seen: 1 month 12 hours ago
VESC Free
Joined: 2019-09-01 19:32
Posts: 1

I have  exactly the same problem.

When I use PPM as input both motors spin, but with UART only the first motor spins.

Did you find any solution to this problem?

Elmerchwartz
Offline
Last seen: 8 months 1 week ago
Joined: 2020-02-14 07:48
Posts: 1

UART can forwarding setup with some solutions. To get solutions which forward all personal statement writing service details with you. Everything which just come through these solutions are important and also valid which we give to you.

Barry E. Palmer
Offline
Last seen: 6 months 1 week ago
Joined: 2020-03-24 07:39
Posts: 3

It is in fact a wonderful solution to forward  UART files,  I never tried this method but I would love to try it because it is so easy and take less time to forward files. I played 

free online pokies nz  to have fun online. Thanks for sharing this amazing method with us.

v8-rt@web.de
Offline
Last seen: 2 weeks 4 days ago
Joined: 2020-03-13 21:14
Posts: 2

Did you find any solution for this?

ZoeDenver
Offline
Last seen: 4 hours 8 min ago
Joined: 2020-10-21 21:00
Posts: 1

You need to forward UART files. Hope you have solved your problem. Ιf you are searching for the best free betting tips, you’re in safe hands. Our Spanish football experts analyze every possible  detail before selecting their tips, while checking the bookmaker odds. It’s hard to get better and more accurate information! Check https://betandslots.com/category/bet-of-the-day/primera-division/ and have your winning odds elevated. We analyze the team and player statistics, their form and every trend in order to give you the best tips. Everything deeply and in detail analyzed.