<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Topics tagged with mavlink-server]]></title><description><![CDATA[A list of topics that have been tagged with mavlink-server]]></description><link>https://forum.modalai.com/tags/mavlink-server</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 23:27:33 GMT</lastBuildDate><atom:link href="https://forum.modalai.com/tags/mavlink-server.rss" rel="self" type="application/rss+xml"/><pubDate>Invalid Date</pubDate><ttl>60</ttl><item><title><![CDATA[Can&#x27;t connect to drone from laptop using MAVSDK]]></title><description><![CDATA[UPDATE
<p dir="auto">I've simplified my snippet and I'm now able to "connect" to the VOXL2 via MAVSDK. It's still now working as I would expect it to, but first, here's my new script:</p>
#!/usr/bin/env python3

import asyncio
from mavsdk import System

target_ip="192.168.1.187"
target_port=14550

async def connect_to_drone():
    print("Connecting to VOXL2...")
    
    # Create a System object with specific system ID and component ID
    # These match the IDs we're using in the heartbeat sender
    print("Creating System object...")
    drone = System()
    
    # Different connection string formats to try
    print("Connecting to drone...")
    await drone.connect(system_address=f"udp://{target_ip}:{target_port}")
    
    print("Waiting for drone to connect...")
    timeout = 60  # Extended timeout
    start_time = asyncio.get_event_loop().time()
    
    try:
        async for state in drone.core.connection_state():
            print(f"Connection state: {state}")
            
            if state.is_connected:
                print(f"Connected to drone!")
                return drone
            
            # Check if we've timed out
            current_time = asyncio.get_event_loop().time()
            if current_time - start_time &gt; timeout:
                print(f"Connection timed out after {timeout} seconds")
                break
                
            await asyncio.sleep(1)
            
    except Exception as e:
        print(f"Connection error: {e}")
    
    return None

async def main():
    # Try to connect to the drone
    drone = await connect_to_drone()
    
    # If connected, do something with the drone
    if drone and drone.core:
        try:
            # Print basic information
            info = await drone.info.get_version()
            print(f"Version Info: {info}")
        except Exception as e:
            print(f"Could not get info: {e}")

if __name__ == "__main__":
    # Run the asyncio loop
    asyncio.run(main())

<p dir="auto">When I run this script I see only 3 logs:</p>
Connecting to VOXL2...
Creating System object...
Connecting to drone...

<p dir="auto">When I adb shell and run voxl-inspect-mavlink mavlink_from_gcs I now see that the VOXL2 is receiving a heartbeat:</p>



ID
Mavlink MSG Name
Counter
Hz




0
heartbeat
5
1.1



<p dir="auto">But like I mentioned above, the code doesn't execute past await drone.connect(system_address=f"udp://{target_ip}:{target_port}").</p>
<p dir="auto">I've tried udpout and nothing changes.</p>
]]></description><link>https://forum.modalai.com/topic/4313/can-t-connect-to-drone-from-laptop-using-mavsdk</link><guid isPermaLink="true">https://forum.modalai.com/topic/4313/can-t-connect-to-drone-from-laptop-using-mavsdk</guid><dc:creator><![CDATA[luisdelavega]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[Unable to initiate MAVlink through UART on VOXL2 ttyHS1]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/1016">@I_Dwyer</a> <a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/3">@Chad-Sweet</a> Hello all, has this issue been solved in and particular version, we too are facing the same issue, on HS1 the voxl-mavlink server is initiating but we are not able to see any data from this port. We are right now on the 1.5.3 build. Pls provided more info on the same.</p>
]]></description><link>https://forum.modalai.com/topic/2089/unable-to-initiate-mavlink-through-uart-on-voxl2-ttyhs1</link><guid isPermaLink="true">https://forum.modalai.com/topic/2089/unable-to-initiate-mavlink-through-uart-on-voxl2-ttyhs1</guid><dc:creator><![CDATA[vipul.kadam]]></dc:creator><pubDate>Invalid Date</pubDate></item><item><title><![CDATA[volx-mavlink-server PX4 Disconnected From UART]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.modalai.com/uid/1230">@zkern5254</a> I'll see if I can get any other ideas from the team.</p>
]]></description><link>https://forum.modalai.com/topic/1558/volx-mavlink-server-px4-disconnected-from-uart</link><guid isPermaLink="true">https://forum.modalai.com/topic/1558/volx-mavlink-server-px4-disconnected-from-uart</guid><dc:creator><![CDATA[tom]]></dc:creator><pubDate>Invalid Date</pubDate></item></channel></rss>