How to block other communication ways

Hello,

I want to disable other communication protocols if one communication protocol is active. For example, if my board is connected via serial communication, it must not connect via Bluetooth or any other communication protocol.

Please suggest if there is a way to achieve this.

Thank you.

What would impose such limitation?
Ardupilot is capable of supporting multiple GCSs at once.

I just want to restrict with one communication.
Is there any way to do this?

Other than setting ports you don’t want to support MAVLink to None and having exactly one configured MAVLink port there are none.

If attacker has physical access to your device it already is over, and for all practical purposes being in Bluetooth range constitutes physical access.

1 Like

hello,
I just want to tell them if it is already connected to other gcs by sending alert msg.
Is it possible?

like if drone connected by bluetooth and if i tried to connect serially then on first gcs i will send msg that it is already connected by BT protocol.

Thank You

is there any way with the help of driver code?