Skip to content

dronekit.APIException: Timeout in initializing connection #1142

@harryhancock

Description

@harryhancock

Hi,

Trying to run the vehicle_state example code on a Raspberry Pi 3B+ connected to a Pixhawk 4 from USB to TELEM2 port. I configured the TELEM2 port for serial as described at the end of this page https://docs.px4.io/master/en/peripherals/mavlink_peripherals.html

I'm using the connection string = "/dev/ttyUSB0" with a baud rate of 921600 and I get the following output on terminal: WARNING: dronekit: Link timeout, no heartbeat for last 5 seconds. The connection string with ACM0 or AMA0 doesn't work either.

Not sure where I'm going wrong. Whether its the connection string, baud rate or if the hardware connection?
Also not sure how I can verify whether Pixhawk 4 is sending the Mavlink messages over serial.

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