Skip to content

Failing to open a serial connection ("no such file or directory") #249

Closed
@21shrinit

Description

@21shrinit

But since I have to manually specify the connection address when i start mavsdk_server
the second line doesn't do anything?

Good question. You always need both lines, but if mavsdk_server_address is specified in the first one, then system_address is ignored in the second one. In your case it would mean:

drone = System(mavsdk_server_address='localhost', port=50051)
await drone.connect()

And mavsdk_server is started manually on 'localhost' with:

./mavsdk_server -p 50051 serial:///dev/ttyACM0:57600

Originally posted by @JonasVautherin in #189 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions