I’m having a ground device (RPI 4) using the Wifi of the drone. The drone streams video. I’m controlling the flight from the PI.
Both devices - the PI and the drone - are apart by max 3 m air. However, the connection seems to be very instable: The video shown on the PI is full of artefacts, medium latency, bad quality (using the YUV callback on the PI).
And then out of the sudden:
022-08-11 11:14:49,500 [ERROR] ulog - pomp - read(fd=26) err=104(Connection reset by peer)
2022-08-11 11:14:50,378 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:51,379 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:51,503 [ERROR] olympe.pdraw.ANAFI-G134295 - destroy - Pdraw.destroy() timedout
2022-08-11 11:14:52,379 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:53,382 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:54,380 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:54,505 [ERROR] olympe.pdraw.ANAFI-G134295 - _video_sink_flush_impl - video sink flush id 3 timeout
2022-08-11 11:14:54,513 [ERROR] ulog - rtsp_client - rtsp_client_pomp_timer_cb:274: send_keep_alive err=16(Device or resource busy)
2022-08-11 11:14:54,515 [ERROR] ulog - pomp - idle entry cb=0x7fb29e2fc0 userdata=0x7f78002760 still in the loop
2022-08-11 11:14:54,515 [ERROR] ulog - pomp - idle entry cb=0x7fb29e2fc0 userdata=0x7f78002760 still in the loop
2022-08-11 11:14:54,516 [ERROR] ulog - pomp - idle entry cb=0x7fb29fe950 userdata=0x7f78001380 still in the loop
2022-08-11 11:14:54,516 [ERROR] ulog - pomp - idle entry cb=0x7fb29e2fc0 userdata=0x7f78002760 still in the loop
2022-08-11 11:14:54,516 [ERROR] ulog - pomp - idle entry cb=0x7fb29df330 userdata=0x7f78002760 still in the loop
2022-08-11 11:14:54,516 [ERROR] ulog - pomp - fd=30, cb=0x7fb2dc8070 still in loop
2022-08-11 11:14:54,516 [ERROR] ulog - pomp - fd=46, cb=0x7fb2dc8070 still in loop
2022-08-11 11:14:54,517 [ERROR] ulog - pomp - fd=50, cb=0x7fb29de190 still in loop
2022-08-11 11:14:54,517 [ERROR] ulog - pomp - fd=48, cb=0x7fb2dc8070 still in loop
2022-08-11 11:14:54,518 [ERROR] ulog - pomp - fd=54, cb=0x7fb26687c0 still in loop
2022-08-11 11:14:54,518 [ERROR] ulog - pomp - fd=52, cb=0x7fb2dc8070 still in loop
2022-08-11 11:14:54,518 [ERROR] ulog - pomp - fd=56, cb=0x7fb2dc4660 still in loop
2022-08-11 11:14:54,518 [ERROR] ulog - pomp - fd=47, cb=0x7fb2dbcf70 still in loop
2022-08-11 11:14:54,518 [ERROR] ulog - pomp - fd=45, cb=0x7fb2dc8070 still in loop
2022-08-11 11:14:54,518 [ERROR] ulog - pomp - fd=49, cb=0x7fb29ddf90 still in loop
2022-08-11 11:14:54,518 [ERROR] olympe.pdraw.ANAFI-G134295 - _destroy_pomp_loop - Error while destroying pomp loop: -16
2022-08-11 11:14:55,381 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:56,383 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:14:57,382 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
Q: Is this “connection reset by the peer” what I think? A loss of connectivity between drone and PI?
Bad thing: The local video stream problems on the PI block everything. While the PI before that situation perfectly did show lat, lng and alt, these functions return nothing anymore. I do not even have a chance to fire a “land” command. I need to restart my script in order to land.
Please elaborate.
EDIT: Also observed:
022-08-11 11:12:22,433 [INFO] pltest.py: state: Hovering, lat: MYLAT, lng: MYLNG, alt: MYALT
2022-08-11 11:12:23,434 [INFO] pltest.py: state: Hovering, lat: MYLAT, lng: MYLNG, alt: MYALT
2022-08-11 11:12:24,437 [INFO] pltest.py: state: Hovering, lat: MYLAT, lng: MYLNG, alt: MYALT
2022-08-11 11:12:24,983 [ERROR] ulog - pomp - read(fd=26) err=104(Connection reset by peer)
2022-08-11 11:12:24,987 [ERROR] ulog - pdraw_dmxstrm - stop:1168: StreamDemuxerNet#1: rtsp_client_teardown err=16(Device or resource busy)
2022-08-11 11:12:24,989 [ERROR] ulog - rtsp_client - request_complete: session not found
2022-08-11 11:12:24,990 [ERROR] ulog - rtsp_client - rtsp_client_pomp_event_cb:736: request_complete err=2(No such file or directory)
2022-08-11 11:12:24,994 [ERROR] ulog - pdraw_dmxstrm - idleRtspDisconnect:1034: StreamDemuxerNet#1: rtsp_client_disconnect err=71(Protocol error)
2022-08-11 11:12:25,434 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:26,434 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:26,988 [ERROR] olympe.pdraw.ANAFI-G134295 - destroy - Pdraw.destroy() timedout
2022-08-11 11:12:27,438 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:28,435 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:29,436 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:29,998 [ERROR] olympe.pdraw.ANAFI-G134295 - _video_sink_flush_impl - video sink flush id 3 timeout
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - idle entry cb=0x7f99680fc0 userdata=0x7f5c002540 still in the loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - idle entry cb=0x7f9969c950 userdata=0x7f5c001160 still in the loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - idle entry cb=0x7f99680fc0 userdata=0x7f5c002540 still in the loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - idle entry cb=0x7f99680fc0 userdata=0x7f5c002540 still in the loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - fd=46, cb=0x7f99a66070 still in loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - fd=50, cb=0x7f9967bf90 still in loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - fd=48, cb=0x7f99a66070 still in loop
2022-08-11 11:12:30,022 [ERROR] ulog - pomp - fd=54, cb=0x7f993067c0 still in loop
2022-08-11 11:12:30,023 [ERROR] ulog - pomp - fd=56, cb=0x7f99a62660 still in loop
2022-08-11 11:12:30,023 [ERROR] ulog - pomp - fd=45, cb=0x7f99a66070 still in loop
2022-08-11 11:12:30,023 [ERROR] ulog - pomp - fd=51, cb=0x7f9967c190 still in loop
2022-08-11 11:12:30,023 [ERROR] ulog - pomp - fd=49, cb=0x7f99a66070 still in loop
2022-08-11 11:12:30,023 [ERROR] ulog - pomp - fd=53, cb=0x7f99a66070 still in loop
2022-08-11 11:12:30,023 [ERROR] olympe.pdraw.ANAFI-G134295 - _destroy_pomp_loop - Error while destroying pomp loop: -16
2022-08-11 11:12:30,438 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:31,438 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??
2022-08-11 11:12:32,439 [INFO] pltest.py: state: ??, lat: ??, lng: ??, alt: ??