droneprojetsn2 / ardupilot-mega

Automatically exported from code.google.com/p/ardupilot-mega
0 stars 0 forks source link

Arduplane V2.33 loaded from planner won't connect. #619

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Allow planner to update itself to 1.1.77
2.plug in target APM1 using USB.
3.Upload Arduplane V2.33 from the FW tab.
4.Attempt to connect.

What is the expected output? What do you see instead?
I expect it to connect, as it did with V2.32.
Instead it times out on connecting.
Transcript shown in comment.

What version of the product are you using? On what operating system?

Please provide any additional information below.
All works OK if I build and load V2.33 onto target using Arduino.

Original issue reported on code.google.com by philcole...@gmail.com on 2 May 2012 at 4:48

GoogleCodeExporter commented 8 years ago
Failed connection attempt copied from transcript window using V2.33 loaded from 
Planner FW tab.

Init ArduPlane V2.33

Free RAM: 4008
load_all took 9932us
bps 0 loss 0 left 0 mem 36.8388671875
INFO ArdupilotMega.MAVLink - lost 0 pktslost 256
INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:37 PM No dataflash card inserted

Press ENTER 3 times to start interactive setup

INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:37 PM <startup_ground> GROUND START
INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:37 PM Demo Servos!
bps 177 loss 1 left 19 mem 36.9248046875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:38 PM Warming up ADC...
bps 89 loss 1 left 19 mem 36.9482421875
INFO ArdupilotMega.MAVLink - ID sys 1 comp 1 ver2
INFO ArdupilotMega.MAVLink - lost 7 pktslost 260
INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:39 PM Demo Servos!
bps 89 loss 2 left 19 mem 37.0029296875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:40 PM Demo Servos!
bps 89 loss 2 left 2 mem 37.0263671875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:41 PM Beginning IMU calibration; do 
not move plane
bps 89 loss 2 left 19 mem 37.0419921875
Init GyroINFO ArdupilotMega.MAVLink - MAVLINK: S wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: 
Timeout
   at ArdupilotMega.MAVLink.readPacket() in C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\MAVLink.cs:line 2036
bps 30 loss 2 left 0 mem 36.8349609375
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 
-1
INFO ArdupilotMega.MAVLink - getParamList Retry 6 sys 1 comp 1
INFO ArdupilotMega.MAVLink - MAVLINK: S wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: 
Timeout
   at ArdupilotMega.MAVLink.readPacket() in C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\MAVLink.cs:line 2036
bps 0 loss 2 left 0 mem 36.828125
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 
-1
INFO ArdupilotMega.MAVLink - MAVLINK: S wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: 
Timeout
   at ArdupilotMega.MAVLink.readPacket() in C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\MAVLink.cs:line 2036
bps 0 loss 2 left 0 mem 36.828125
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 
-1
INFO ArdupilotMega.MAVLink - MAVLINK: S wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: 
Timeout
   at ArdupilotMega.MAVLink.readPacket() in C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\MAVLink.cs:line 2036
bps 0 loss 2 left 0 mem 36.828125
INFO ArdupilotMega.MAVLink - Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 
-1
INFO ArdupilotMega.MAVLink - MAVLINK: S wait time out btr 0 len 0
INFO ArdupilotMega.MAVLink - MAVLink readpacket read error: System.Exception: 
Timeout
   at ArdupilotMega.MAVLink.readPacket() in C:\Users\hog\Documents\Visual Studio 2010\Projects\ArdupilotMega\ArdupilotMega\MAVLink.cs:line 2036
bps 0 loss 2 left 0 mem 36.828125

Original comment by philcole...@gmail.com on 2 May 2012 at 4:50

GoogleCodeExporter commented 8 years ago
Goes OK if I build using the latest source code:

Init ArduPlane V2.33

Free RAM: 3916
load_all took 9772us
bps 68 loss 3 left 59 mem 36.8701171875
INFO ArdupilotMega.MAVLink - lost 0 pktslost 372
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:26 PM <startup_ground> GROUND START
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:26 PM Demo Servos!
bps 118 loss 4 left 19 mem 36.9169921875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:27 PM Warming up ADC...
bps 89 loss 4 left 19 mem 36.9404296875
INFO ArdupilotMega.MAVLink - ID sys 1 comp 1 ver2
INFO ArdupilotMega.MAVLink - lost 6 pktslost 376
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:28 PM Demo Servos!
bps 89 loss 5 left 19 mem 37.0576171875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:29 PM Demo Servos!
bps 89 loss 5 left 19 mem 37.0810546875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:30 PM Beginning IMU calibration; do 
not move plane
bps 89 loss 5 left 19 mem 37.0966796875
Init Gyrobps 30 loss 5 left 19 mem 37.1123046875
INFO ArdupilotMega.MAVLink - getParamList Retry 6 sys 1 comp 1
*bps 30 loss 5 left 12 mem 37.1279296875
*bps 30 loss 5 left 19 mem 37.1748046875
bps 30 loss 5 left 19 mem 37.1904296875
abs_pressure 101021
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:35 PM barometer calibration complete.
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:35 PM <startup_ground> zero airspeed 
calibrated
G ublox OK
bps 148 loss 5 left 0 mem 37.2216796875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:36 PM Demo Servos!
INFO ArdupilotMega.MAVLink - getParamList Retry 5 sys 1 comp 1
bps 89 loss 5 left 0 mem 37.287109375
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:37 PM Demo Servos!
bps 89 loss 5 left 0 mem 37.310546875
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:38 PM Demo Servos!
bps 89 loss 5 left 0 mem 37.333984375
INFO ArdupilotMega.MAVLink - 5/1/2012 9:53:39 PM

 Ready to FLY.
INFO ArdupilotMega.MAVLink - 84 got param 0 of 179 name: FORMAT_VERSION
INFO ArdupilotMega.MAVLink - 131 got param 1 of 179 name: SYSID_SW_TYPE
INFO ArdupilotMega.MAVLink - 162 got param 2 of 179 name: SYSID_THISMAV
INFO ArdupilotMega.MAVLink - 209 got param 3 of 179 name: SYSID_MYGCS
INFO ArdupilotMega.MAVLink - 241 got param 4 of 179 name: SERIAL3_BAUD
INFO ArdupilotMega.MAVLink - 287 got param 5 of 179 name: KFF_PTCHCOMP
INFO ArdupilotMega.MAVLink - 319 got param 6 of 179 name: KFF_RDDRMIX
INFO ArdupilotMega.MAVLink - 366 got param 7 of 179 name: KFF_PTCH2THR
INFO ArdupilotMega.MAVLink - 397 got param 8 of 179 name: KFF_THR2PTCH

etc. etc.

Original comment by philcole...@gmail.com on 2 May 2012 at 4:59

GoogleCodeExporter commented 8 years ago
I also tried building from the V2.33 tag. This works OK too.

Original comment by philcole...@gmail.com on 2 May 2012 at 5:03

GoogleCodeExporter commented 8 years ago
PS:
building using Arduino 022 relaxpatch.

Original comment by philcole...@gmail.com on 2 May 2012 at 5:05

GoogleCodeExporter commented 8 years ago
which apm board do you have? 1280 or 2560, i just tested a 2560 and it apears 
fine.

Original comment by Meee...@gmail.com on 2 May 2012 at 11:14

GoogleCodeExporter commented 8 years ago
It's a 2560.
I'm using a uBlox GPS and there is a mag installed. It all works about like 
you'd expect once I do get connected.

Looking through the transcript, I see

INFO ArdupilotMega.MAVLink - 5/1/2012 9:37:37 PM No dataflash card inserted

in the failed attempt. 
Is there some way an APM1 can be mistaken for an APM2?

I was able to get into the CLI, but I didn't take much notice of what it did 
apart from noting that if the CLI worked all the serial related HW was OK and 
there was image loaded that did appear to be running.

Original comment by philcole...@gmail.com on 2 May 2012 at 2:55

GoogleCodeExporter commented 8 years ago
at the same time did you have apm 2 plugged in? that would cause it. ie apm1 
2560 and a apm2 plugged in via usb?

Original comment by Meee...@gmail.com on 3 May 2012 at 5:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Yes I do have an APM2 on an unselected port.
I unplugged it, restarted Planner then tried the download again. Still won't 
connect. I guess that means Planner is downloading the wrong stuff.

Original comment by philcole...@gmail.com on 3 May 2012 at 6:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I have APM1_2560 and also observed same problem, see the video;
http://www.youtube.com/watch?v=5gc4-xU_Pds

Original comment by narpat...@gmail.com on 4 May 2012 at 1:50

GoogleCodeExporter commented 8 years ago
can you please try the latest planner. this should prevent miss reporting about 
a apm1 2560 and a apm2. it looks for the usb device id and serial port name to 
verify

Original comment by Meee...@gmail.com on 4 May 2012 at 5:53

GoogleCodeExporter commented 8 years ago
on the firmware upload screen note what "board type" is displayed.
it should be
1280 - apm1
2560 - apm 1
2560-2 - apm 2

Original comment by Meee...@gmail.com on 4 May 2012 at 5:55

GoogleCodeExporter commented 8 years ago
I have all three APM types plugged in.
I can now download each as desired.
Thanks.

Original comment by philcole...@gmail.com on 6 May 2012 at 8:59

GoogleCodeExporter commented 8 years ago

Original comment by Meee...@gmail.com on 9 May 2012 at 12:37