mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.27k stars 3.59k forks source link

Purple Cube (Slim/Mini) Not autoconnecting with 3.5.0 or latest Daily builds #7261

Open kklemens opened 5 years ago

kklemens commented 5 years ago

Expected Behavior

Purple Cube should autoconnect to QGC without having to manually connect through the connection manager.

Current Behavior

Purple Cube is not autoconnecting to v3.5.0 or latest Daily builds of QGC. Can only connect by going into Comm Links -> Add -> Serial -> Connect.

Steps to Reproduce:

Please provide an unambiguous set of steps to reproduce the current behavior

  1. Loaded latest version of ArduRover (v3.5.0) onto Purple Cube from Mission Planner (unable to load from QGC)
  2. Plugged USB cable directly into computer and Purple Cube.
  3. Unable to connect.

System Information

Detailed Description

N/A

Log Files and Screenshots

https://discuss.cubepilot.org/t/autoconnect-issue-with-cube-mini-purple/181/9

DonLakeFlyer commented 5 years ago

Looks like there are new Windows USB Drivers which need to be installed. New Mission Planner beta has them I beleieve. QGC does not yet have them. I'll fix that.

If you have those already installed can you turn on logging for LinkManagerVerboseLog (https://docs.qgroundcontrol.com/en/SettingsView/console_logging.html). And then attach the output for connecting to the board here.

DonLakeFlyer commented 5 years ago

Nope, this is just busted. Hopefully fixed in pull.

DonLakeFlyer commented 5 years ago

@kklemens Can you try tomorrow's daily buils and let me know how it works.

kklemens commented 5 years ago

Will do! I'll get you a report of everything I run through.

kklemens commented 5 years ago

@DonLakeFlyer Tried the most recent build for today and no luck. No autoconnect with a pre-loaded ChibiOS firmware and unable to load a new firmware. Screenshot attached when I tried. 2019-03-29_1209 Also, log from the console: Console Log with Slim Cube 3-29-19.txt

DonLakeFlyer commented 5 years ago

The screenshot is from flashing the bootloader not firmware flashing. That error means that the firmware you are running doesn't support the command to flash the bootloader.

DonLakeFlyer commented 5 years ago

@tridge How come this board is not showing up with correct USB information:

[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:523 - "portName:           "COM7""
[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:524 - "systemLocation:     "\\\\.\\COM7""
[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:525 - "description:        "USB Serial Device""
[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:526 - "manufacturer:       "Microsoft""
[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:527 - "serialNumber:       "270054000751383034343237""
[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:528 - "vendorIdentifier:   11694"
[D] at C:\projects\qgroundcontrol\src\comm\LinkManager.cc:529 - "productIdentifier:  4117"
DonLakeFlyer commented 5 years ago

I string match on Manufacturer as a fallback but it is not showing up as "Hex/ProfiCNC"

DonLakeFlyer commented 5 years ago

@kklemens Can you try tomorrow's daily build and see how it works?

kklemens commented 5 years ago

Thanks Don! I'm out of the office for the next week, but I'll give it a try when I get back.

kklemens commented 5 years ago

@DonLakeFlyer Connection Success! It worked with the latest Plane v3.9.7. I wiped the board and installed the firmware from QGC. It seems to work with the only error being "Check BRD_TYPE: Unable to detect board". In checking the BRD_TYPE it sets the parameter to AUTO.

I also installed the latest MP .msi so that may have had the drivers too.

DonLakeFlyer commented 5 years ago

@kklemens Thanks for letting me know. I'll take a look at that BRD_TYPE thing.

DonLakeFlyer commented 5 years ago

@kklemens When you flash the Purple Cube, in the status text for the flashing in the ui. Can you tell me what firmware file it is lading? It should be listed there. Want to make sure it flashed the Purple specific firmware.

kklemens commented 5 years ago

2019-04-19_1311

DonLakeFlyer commented 5 years ago

Nope. That is the generic FMU V3 firmware as opposed to the specific Purple firmware. This still isn't working correctly.

mjisted commented 5 years ago

Just bought a batch of Purple Cubes - unable to install PX4 firmware on nearly all of them. Here's where I am at:

I have one Purple Cube that does work - QGC reports firmware as 'Unknown' (bit it's in HTL mode).

DonLakeFlyer commented 5 years ago
  • QGC warns of device not responding.

Where are you getting this warning?

DonLakeFlyer commented 5 years ago

Also follow the instructions here: https://docs.qgroundcontrol.com/en/SettingsView/console_logging.html and turn on LinkManagerVerboseLog and attach/link the output.