MavLink not working when GPS is connected

My udrones ArduCopter arrived today. There seems to be something wrong with my board. The MavLink connection only works if I don't connect the GPS. CLI mode seems to be OK as I can see sensor vales from the test options.

I have a friend with a working ArduPilot and we tested with all components exchanged (power supplies, PCs, GPS modules, cables, firmware versions). The result is always the same once a GPS is connected to my board the MavLink/serial connection does not work anymore:

MAVLink readpacket read error: The operation has timed out.
bps 0 loss 0 left 0


Full log with GPS:

myview width 1008 height 1062
this   width 1024 height 1176
myview width 1916 height 1062
this   width 1932 height 1176
myview width 1920 height 1062
this   width 1936 height 1176
Index: 14, Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 0, Accum: 64 (16161
616), Buffers: 2, Stereo: False
Vendor: NVIDIA Corporation
Version: 2.1.2
Device: GeForce 8400M GS/PCI/SSE2
Listening for client - 1 client at a time
HUD 1 hz drawtime 98 gl True
HUD 1 hz drawtime 3 gl True
HUD 1 hz drawtime 18 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 3 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 3 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True


Init ArduPlane V2.24

Free RAM: 2510
load_all took 2724us
using 2653 bytes of memory (30 resets)
HUD 1 hz drawtime 5 gl True
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
HUD 1 hz drawtime 4 gl True
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
HUD 1 hz drawtime 3 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 7 gl True
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
HUD 1 hz drawtime 16 gl True
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
HUD 1 hz drawtime 9 gl True
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
HUD 1 hz drawtime 2 gl True
MAv Data: len 0 btr 0
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 4 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 3 gl True
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
HUD 1 hz drawtime 11 gl True
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
HUD 1 hz drawtime 0 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 3 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 4 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 3 gl True
HUD 1 hz drawtime 4 gl True
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
HUD 1 hz drawtime 3 gl True
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
HUD 1 hz drawtime 3 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 2 gl True
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
HUD 1 hz drawtime 3 gl True
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
HUD 1 hz drawtime 1 gl True
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



Full log without GPS:

myview width 1008 height 662
this   width 1024 height 776
myview width 1280 height 662
this   width 1296 height 776
myview width 1920 height 1062
this   width 1936 height 1176
Index: 14, Color: 32 (8888), Depth: 24, Stencil: 0, Samples: 0, Accum: 64 (16161
616), Buffers: 2, Stereo: False
Vendor: NVIDIA Corporation
Version: 2.1.2
Device: GeForce 8400M GS/PCI/SSE2
Listening for client - 1 client at a time
HUD 1 hz drawtime 110 gl True
HUD 1 hz drawtime 1 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 3 gl True
HUD 1 hz drawtime 5 gl True
HUD 1 hz drawtime 4 gl True
HUD 1 hz drawtime 3 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 22 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 2 gl True
HUD 1 hz drawtime 1 gl True
HUD 1 hz drawtime 2 gl True


Init ArduPlane V2.24

Free RAM: 2510
load_all took 2724us
using 2653 bytes of memory (26 resets)
bps 0 loss 0 left 28
lost 0 pkts 256
bps 457 loss 1 left 28
bps 1407 loss 1 left 28
MAv Data: len 11 btr 10
ID sys 1 comp 1 ver2
lost 74 pkts 300
790 got param 0 of 144
822 got param 1 of 144
838 got param 2 of 144
854 got param 3 of 144
bps 949 loss 2 left 0
47 got param 4 of 144
78 got param 5 of 144
94 got param 6 of 144
110 got param 7 of 144
141 got param 8 of 144
158 got param 9 of 144
174 got param 10 of 144
206 got param 11 of 144
222 got param 12 of 144
237 got param 13 of 144
269 got param 14 of 144
285 got param 15 of 144
301 got param 16 of 144
333 got param 17 of 144
349 got param 18 of 144
365 got param 19 of 144
397 got param 20 of 144
413 got param 21 of 144
429 got param 22 of 144
461 got param 23 of 144
477 got param 24 of 144
493 got param 25 of 144
527 got param 26 of 144
555 got param 27 of 144
568 got param 28 of 144
583 got param 29 of 144
599 got param 30 of 144
632 got param 31 of 144
647 got param 32 of 144
664 got param 33 of 144
696 got param 34 of 144
712 got param 35 of 144
728 got param 36 of 144
761 got param 37 of 144
777 got param 38 of 144
793 got param 39 of 144
824 got param 40 of 144
841 got param 41 of 144
858 got param 42 of 144
890 got param 43 of 144
908 got param 44 of 144
921 got param 45 of 144
953 got param 46 of 144
969 got param 47 of 144
985 got param 48 of 144
bps 1520 loss 2 left 0
17 got param 49 of 144
33 got param 50 of 144
49 got param 51 of 144
81 got param 52 of 144
97 got param 53 of 144
113 got param 54 of 144
145 got param 55 of 144
161 got param 56 of 144
177 got param 57 of 144
209 got param 58 of 144
225 got param 59 of 144
241 got param 60 of 144
274 got param 61 of 144
289 got param 62 of 144
305 got param 63 of 144
337 got param 64 of 144
353 got param 65 of 144
369 got param 66 of 144
401 got param 67 of 144
417 got param 68 of 144
433 got param 69 of 144
481 got param 70 of 144
497 got param 71 of 144
513 got param 72 of 144
553 got param 73 of 144
566 got param 74 of 144
582 got param 75 of 144
614 got param 76 of 144
630 got param 77 of 144
646 got param 78 of 144
678 got param 79 of 144
693 got param 80 of 144
709 got param 81 of 144
742 got param 82 of 144
759 got param 83 of 144
775 got param 84 of 144
791 got param 85 of 144
822 got param 86 of 144
870 got param 87 of 144
886 got param 88 of 144
902 got param 89 of 144
933 got param 90 of 144
950 got param 91 of 144
966 got param 92 of 144
998 got param 93 of 144
bps 1485 loss 2 left 0
14 got param 94 of 144
30 got param 95 of 144
62 got param 96 of 144
78 got param 97 of 144
94 got param 98 of 144
126 got param 99 of 144
141 got param 100 of 144
158 got param 101 of 144
174 got param 102 of 144
206 got param 103 of 144
222 got param 104 of 144
254 got param 105 of 144
270 got param 106 of 144
286 got param 107 of 144
301 got param 108 of 144
334 got param 109 of 144
349 got param 110 of 144
382 got param 111 of 144
398 got param 112 of 144
413 got param 113 of 144
429 got param 114 of 144
461 got param 115 of 144
477 got param 116 of 144
510 got param 117 of 144
526 got param 118 of 144
543 got param 119 of 144
558 got param 120 of 144
Init Gyro593 got param 121 of 144
606 got param 122 of 144
622 got param 123 of 144
654 got param 124 of 144
670 got param 125 of 144
685 got param 126 of 144
717 got param 127 of 144
733 got param 128 of 144
749 got param 129 of 144
781 got param 130 of 144
797 got param 131 of 144
813 got param 132 of 144
845 got param 133 of 144
861 got param 134 of 144
877 got param 135 of 144
909 got param 136 of 144
925 got param 137 of 144
942 got param 138 of 144
974 got param 139 of 144
990 got param 140 of 144
bps 1468 loss 2 left 0
6 got param 141 of 144
38 got param 142 of 144
54 got param 143 of 144
70 got param 144 of 144
remote lost 0
REQ streams - flightdata
Done open 1 1
Request stream MAV_DATA_STREAM_EXTENDED_STATUS at 1 hz : currently 0
Request stream MAV_DATA_STREAM_POSITION at 3 hz : currently 0
Request stream MAV_DATA_STREAM_EXTRA1 at 10 hz : currently 4.84124962482101
Request stream MAV_DATA_STREAM_EXTRA2 at 10 hz : currently 3.86498960572238
Request stream MAV_DATA_STREAM_RAW_SENSORS at 3 hz : currently 0
Request stream MAV_DATA_STREAM_RC_CHANNELS at 3 hz : currently 0
HUD 1 hz drawtime 44 gl True
**remote lost 12700
bps 1503 loss 2 left 0
***bps 1367 loss 2 left 28
remote lost 872
****remote lost 54580
bps 1407 loss 2 left 9
*remote lost 39614
bps 1407 loss 2 left 28
Init Accel****remote lost 56961
*bps 1407 loss 2 left 28
**remote lost 23073
bps 1475 loss 2 left 28
***remote lost 52940
bps 1339 loss 2 left 71
 abs_pressure 100710
Gremote lost 2144
bps 1475 loss 2 left 28
REQ streams - flightdata
remote lost 10118
bps 1264 loss 2 left 117
!Gremote lost 41744
bps 1414 loss 2 left 96
!Gbps 1475 loss 2 left 28
remote lost 10460
!Gbps 525 loss 2 left 1737
remote lost 10460
!Gremote lost 39688
bps 2289 loss 2 left 3
!Gremote lost 39802
bps 1407 loss 2 left 28
remote lost 8518
bps 1339 loss 2 left 96
!Gremote lost 42770
bps 1543 loss 2 left 28
REQ streams - flightdata
!Request stream MAV_DATA_STREAM_EXTENDED_STATUS at 1 hz : currently 5.4090761828
7561
Gbps 389 loss 2 left 1503
remote lost 42770
!Gremote lost 56242
bps 2425 loss 2 left 28
!Gremote lost 58982
bps 1407 loss 2 left 28
!Gbps 1379 loss 2 left 0
remote lost 25072
remote lost 54072
bps 1292 loss 2 left 117
!Gremote lost 20162
bps 1414 loss 2 left 96
!remote lost 46896
bps 1475 loss 2 left 19
remote lost 37193
bps 1407 loss 2 left 28



Thanks, Andreas

You need to be a member of diydrones to add comments!

Join diydrones

Replies are closed for this discussion.

Replies

  • Board went back to udrones. At first udrones support thought that it all looked normal. I then sent a YT video demonstrating the issue. They called me back and repeated my test with Planner. First support claimed that xbee had to be connected for MavLink to work, not just plain USB  ;)

    Good news is that now support was able to reproduce the connection issue. After switching to a new GPS they see it working. I hope that this is the solution. Just very odd that Mark's GPS did not work either when we tested that combination.

     

     

  • The pins look fine and in CLI mode I get values from the GPS. Just MavLink does not work. Also the CLI switch behavior is a bit odd. What I tried today:

     

    1) Power on and leave outside until GPS has lock.

    2) Connect to PC and start APM Planner

    3) Attempt mav link connection  -> CRC errors

    4) Switch to CLI mode and terminal tab

    5) Test GPS-> a few errors at first, but then coordinates appear

    6) Here is one more odd behavior. If I leave the switch in CLI mode, I'm able to connect using MavLink. See output #3 below. However the UI never renders any sensor values.

     

     

    ## Errors when trying to connect MavLink with switch in correct position (this works when GPS is not connected)

     

    Free RAM: 2510
    load_all took 2724us
    using 2653 bytes of memory (37 resets)
    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

     

    ### CLI Screenshot ################################

     

    3692293524?profile=original

     

     

    # Output when connecting MavLink with switch in CLI position ########################################

     

    340 got param 141 of 144
    372 got param 142 of 144
    420 got param 143 of 144
    452 got param 144 of 144
    REQ streams - flightdata
    Done open 1 1
    remote lost 0
    Request stream MAV_DATA_STREAM_EXTENDED_STATUS at 1 hz : currently 0
    Request stream MAV_DATA_STREAM_POSITION at 3 hz : currently 0
    Request stream MAV_DATA_STREAM_EXTRA1 at 10 hz : currently 0
    Request stream MAV_DATA_STREAM_EXTRA2 at 10 hz : currently 0
    Request stream MAV_DATA_STREAM_RAW_SENSORS at 3 hz : currently 0
    Request stream MAV_DATA_STREAM_RC_CHANNELS at 3 hz : currently 0
    HUD 1 hz drawtime 14 gl True
    remote lost 0
    bps 1213 loss 2 left 47
    remote lost 0
    bps 1427 loss 2 left 10
    remote lost 0
    bps 1441 loss 2 left 48
    remote lost 0
    bps 1400 loss 2 left 47
    remote lost 0
    bps 1400 loss 2 left 3
    remote lost 0
    bps 1458 loss 2 left 30
    remote lost 0
    bps 1468 loss 2 left 26
    remote lost 0
    bps 1400 loss 2 left 107
    REQ streams - flightdata
    Request stream MAV_DATA_STREAM_EXTENDED_STATUS at 1 hz : currently 3.18181178177
    585
    Request stream MAV_DATA_STREAM_RC_CHANNELS at 3 hz : currently 0
    remote lost 0
    bps 1522 loss 2 left 10
    remote lost 0
    bps 1466 loss 2 left 31

  • 3D Robotics

    Are you sure you're plugging the GPS into the right port? NOT the one that says "no GPS!"

     

    If so, check for a bent pin in the GPS connectors.

     

    Is the blue GPS blinking or solid?

This reply was deleted.

Activity

Hiroki Tanaka liked Hiroki Tanaka's profile
Oct 13
Derrick Davies liked lisa TDrones's profile
Sep 23
More…