You may have already done these, but it must be mentioned.
*Make sure/verify (I would set it in your APM_config.h) the APM is configured to the baud rate of your xbees, or vise-versa.
*Make sure to reset the EEPROM and reset factory settings.
In Arduino, or any other serial terminal configured to the correct baud rate of the APM's USB port, what is the output? Is it consistent using this method? Is it just the MAVLink connection that's being a pain?
Thanks- let us know.
seems that I've the same problems.
Same MAVlink errors like Steven.
CLI Mode over USB works error free. so setup was done very quick.
But after switching to flightmode (and repower the system) MAVlink comm errors (over USB).
Default Firmware AC2 with + configuration APM2560
I used the the AC2Setup of the Mission Planer.
In Setupmode all ok, in Sensor mode error messages like steven.
So baudrate shouldn't be the problem.
Maybe the flightmode is the problem. maybe one of the busses (i2c,spi) working not well
in our configuration and slow down the software so much that mavlink will produce timeouts?
I am switching to 115200 for USB and attempting to do the same for XBee. USB works with the errors that Steven mentioned. I (and I believe many others) are getting the same result. I've tried otehr baud rates and resetting and reloading. I've put 30 hours into this in the past four days. I'm never getting to the GCS as I'm not completing setup becasue of the communications problem. The mavlink program errors out about every 15 minutes, requiring reset. This is happening on three different machines similarly (xp and windows 7).
I realize it's hard to diagnose if you can't duplicate the prblem. I'd be happy to send screen prints, diagrams, blood tests ;), or whatever else may help you.
I'm having the same problem with Arducopter 2.0 Beta 3. First I had problems with Xbee, so putting that aside I tried using the USB connection.
I changed GCS_PORT to 0 in APM_config.h (and commented out the 3 lines between ifndef in config.h that set the GCS_port to 3 based on Chris's comments above those lines).
When I start up ArdupilotMegaPlanner, it works on ArduCopter Initial Setup. The CLI on Initial Settings also works.
Then I click on "Raw Sensor". It asks me to move the slider <away from rc connections>.
Then MAVLink opening fails and I see "MAVLink readpacket read error: NetSerial timeout on read" and eventually a CommsServer Shutdown.
I restart ArdupilotMegaPlanner and go to Initial Settings and verify that the CLI still works.
I get the same MAVLink timeout on GCS MAVLink and PID Config - AC2.
So it appears that I can't get MAVLink to work on USB. I verified that (a) Baud rate on the USB COM port is 115200 and and matches the settings in "Options" on APM planner (b) "Set RTS on Close" is turned on in the Advanced port settings in Device Manager.
Anything else I can try?