Hi there,

I can’t get the APM Planner 1.0.55 to connect via the MAVLink all weekend. I’m running APM V2.22 firmware. Running Windows 7 64 bit.

What I’ve done so far to try and troubleshoot this issue:

 

1.)    With IMU switch in position 0 (toward the servo pins) I’ve ran the GPS test using the CLI. I have GPS lock (running MediaTek 1.6 GPS) and checked the coordinates. The coordinates are accurate (my house).

2.)    I moved the switch back to position 1 toward the GPS port and made sure the baud rate is 115200. Unplugged USB cable and plugged it back in and tried to connect via MAV Link. 30 seconds pass and I get the time out message.  (My first test demonstrates I have the GPS plugged into the right port and have an accurate GPS lock.)

3.)    I’ve reinstalled the com port, reloaded the firmware, and updated my planner.

4.)    Made sure “Set RTS on Close” is checked under the com port properties.

5.)    Downloaded FTDI Drivers and attempted to update drivers but my Windows 7 says the best driver is already installed.

6.)    I’ve tried plugging in my LiPo battery first, waiting for GPS lock and then connecting.

7.)    I’ve download the Happy Kilmore GCS and tried to connect. The status read “Connected on COM4 at 115200 but the GPS Type reads “0.00%”. It never moves past this point.

8.)    I’ve read other posts on this forum to see what other people did in the past and I’ve spent many hours trying to get this working and I just can’t get it to work.

 

What is working at this point?

1.)    CLI connection in switch position 0 works every time.

2.)    Radio communication works

3.)    IMU sensors are working (gyros, pressure, accelerometers, gps).

4.)    Modes work. Running on battery power alone I can switch to different modes and see APM take over and move the servos, engine, ect.

 

Any ideas on how to get APM Planner to connect via MAVLink at this point are more than welcome.

 

Thank You,

 

Jeff Johnson

Views: 10425

Reply to This

Replies to This Discussion

Turn on the monitor window (check box on help tab), restart the MP and post a screenshot of what it says when you're trying to connect.

 

I assume you loaded the code via the MP?

Jeff, can you post a screenshot of the terminal screen while in "fly" mode
and also the tlog file from the connect attempt, which should be in the "logs" directory where the main planner exe is.

 

Michael

Hi,
Have you tried turning down the telemetry rates in the planner tab under config? Also, I had trouble with the Mavlink connecting popup while connecting after enabling video in the HUD with .55. The popup wouldn't countdown or go away.

Thank You for the quick replies. I’ve attached the screenshots Chris and Michael asked for. The tlog files all appear to be empty. There is one that is 1KB in size but it just a few random characters in the file.

 

Chris - Yes I've loaded the coded from MP but I've also tried using Arduino. The last load I did was from MP though.

 

John – I did try adjusting the telemetry rates you mentioned but it did seem to have any effect.

Thanks again for helping me figure this out.

 

Jeff

Attachments:

in the terminal screenshot the gps is not detected. whats also odd is that it puts ?G, it should be !G. this makes me think its a serial related problem. do you have an ftdi cable to hook to the telem port or directly to the APM without the oilpan

I see what you mean about the GPS missing. I tried it again this morning and this time I do see the GPS. I’m not sure where you are seeing the ?G though. Do you mean where it reads ??***UL right after the Init Accel part?

 

Also, if I go under the show settings while in setup mode switch position 0 and run show settings, the 010 IMU_SENSOR_CAL reads “:??”. Not sure if there is any correlation but figured I mention it.

 

I don’t have an FTDI cable but I’ll see if I can pick one up from the local radio shack. If not I’ll get one on order from the web.

 

Jeff

 

Attachments:

Well, fortunately I was able to rule out the APM Hardware and APM Planner as potential sources of this problem. I moved my desktop PC into a part of my house that allowed my APM board to get a GPS lock and I can connect via the MAVLink and use the APM Planner via my desktop just fine.

 

So the problem is with my laptop… but I still can’t figure out what it is. Given this information does anyone have any suggestions? I’ve already spent a few more hours fooling with the drivers and settings. I’ve basically mirrored them to my desktop’s settings but it hasn’t produced a fix.

 

Jeff Johnson

 

Mavlink is now mysteriously working. I wish I could share some specific fix for other who may run into this but it just started working on my laptop for some reason. I don’t know why or how long it will last… So at this point I’m attaching updating screenshots for what Chris asked for and the tlog file that Michael asked for previously. Not sure if this is useful information at this point but at any rate here it is…

Attachments:
Hello. I have a similar problem. I can upload firmware with APM and use the terminal mode just fine. But when I try to connect to see things in the GUI I get and error about not finding the heartbeat not being found. I have also checked the RTS box in advanced settings.

I am running Windows 7 64 bit.

Any ideas?

Could be a corrupt FTDI driver. Try another PC. Also check your baud rate (should be 115k)

Baud rate is 115k.

 

I just installed a new FDTI driver - an updated beta one from FDTI's website - still the same.

 

Why would APM "talk" ok to the board for firmware upload and verification, and aloow me to use terminal commands with a corrupt driver?  Seems like nothing should work.

 

The yellow LED (b) is lit on the IMU and when I try to connect it goes out and X1 (red) flashes a bit then after it fails it appears the board resets, both red & green (A&B) alternate flashing, then it goes back to one solid yellow LED.

 

Here is a copy of the terminal window log during the connect attempt.

 

Index: 2, Color: 32 (8888), Depth: 24, Stencil: 8, Samples: 0, Accum: 0 (0000),
Buffers: 2, Stereo: False
Vendor: ATI Technologies Inc.
Version: 4.1.10750 Compatibility Profile Context
Device: ATI Radeon HD 5800 Series
Listening for client - 1 client at a time
HUD 1 hz drawtime 0
myview width 1920 height 1062
this   width 1936 height 1176
HUD 1 hz drawtime 468
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0
Mavlink Bad Packet (crc fail) len 0 crc 65535 pkno 0
MAv Data: len 0 btr 0
Not a 1280
Valid eeprom contents

You did move your CLI slider switch to flight mode, right? Mavlink won't work if you don't. 

Reply to Discussion

RSS

Groups

Season Two of the Trust Time Trial (T3) Contest 
A list of all T3 contests is here. The current round, the Vertical Horizontal one, is here

© 2019   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service