MissionPlanner icon indicating copy to clipboard operation
MissionPlanner copied to clipboard

No devices listed in SLCan mode

Open dlech opened this issue 4 years ago • 14 comments
trafficstars

Issue details

Trying to connect in SLCan mode to upgrade Here 3 GPS firmware. I've done this before, so I'm not sure why it is no longer working. The only difference is that I have updated MissionPlanner. After enabling SLCan, nothing pops up in the list. In the past, I was able to fix the issue by restarting both the flight controller and MissionPlanner. But now I can't get it to ever work.

image

Version

image

Platform

[ ] All [ ] AntennaTracker [ x ] Copter [ ] Plane [ ] Rover [ ] Sub

Airframe type

What type of airframe (flying wing, glider, hex, Y6, octa etc)

Hardware type

Cube Orange

Logs

Here is the .can log. How do you decode this?

2021-10-11 17-31-10.zip

dlech avatar Oct 11 '21 22:10 dlech

double check the CPORT is set correctly for the port you have it connected too

meee1 avatar Oct 11 '21 22:10 meee1

ok question, how did you get that .CAN log?

there appears to be a mix of mavlink and can traffic in the same file, this is not normal

meee1 avatar Oct 11 '21 22:10 meee1

CAN traffic looks like this T0001557F88E000000000000DF T0001557F88E000000000000DF

whereas that logfile has alot of binary data that should not be there. i would guess either a AP issue, or some bad config issue

meee1 avatar Oct 11 '21 22:10 meee1

ok question, how did you get that .CAN log?

I just checked the log box on the UAVCAN page.

dlech avatar Oct 11 '21 23:10 dlech

double check the CPORT is set correctly for the port you have it connected too

I tried both CAN1 and CAN2 both on the AP and in the software.

dlech avatar Oct 11 '21 23:10 dlech

whereas that logfile has alot of binary data that should not be there. i would guess either a AP issue, or some bad config issue

Where would I check for bad config?

dlech avatar Oct 11 '21 23:10 dlech

I tried deleting the Documents\Mission Planner folder (where config.xml is) and reinstalled Mission Planner, but no change. Still get corrupted logs.

dlech avatar Oct 11 '21 23:10 dlech

I finally got it to connect by not connecting MAVLINK first.

  • If you have been to the UAVCAN screen already, restart Mission Planner, otherwise it is in a bad state and won't be able to connect
  • Go to the UAVCAN screen
  • Select the SLCan com port at the top-right of the screen
  • Click the SCCan Mode CAN1 button
  • It gives an error message about not being connected and to make the SLCan COM port is selected
  • Click OK
  • It connects and lists the Here 3 GPS

dlech avatar Oct 11 '21 23:10 dlech

agh ok, you never mention what hardware you are using, but if its a cube orange, never connect to mavlink ,and go direct using the slcan serial port. sounds like a bug in the CAN over the mavlink port bug, so an ardupilot issue

meee1 avatar Oct 12 '21 01:10 meee1

FWIW, I did mention it 😉

Hardware type

Cube Orange

dlech avatar Oct 12 '21 01:10 dlech

must have missed that :)

meee1 avatar Oct 12 '21 01:10 meee1

No worries, I do that too.

dlech avatar Oct 12 '21 01:10 dlech

@dlech Thanks for the workaround!

phamelin avatar Apr 14 '22 11:04 phamelin

@tridge ... is this an ardupilot bug like @meee1 suggested it might be?

davidbuzz avatar Apr 18 '22 07:04 davidbuzz