Skip to content

Telemetry getting stuck when there is many same subscriptions #380

Closed
@atruebin

Description

@atruebin

I need to get telemetry from multiple drones. So I start mavsdk_server for each, connect to them and trying to get telemetry. For some minor number of drones it works, but for more (approximately 10) it gets stuck (none of generators yields). So as for many same tasks for one drone.

The simpliest way to reproduce is to edit telemetry.py example like this:

for i in range(n):
  asyncio.ensure_future(print_battery(drone))

It makes no sense to make multiple identical tasks for one drone of cource, but it behaviours the same as one for each drone.

If n=8 it works, if n=12 gets stuck. But if you run one script with n=8, and one more with n=8 (for other mavsdk_server of cource), they both work. And if you use each subscription from Telemetry plugin once (there more than 12) it works as well.

So I can guess the problem is related to grpc, but don't know how to solve it. Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions