inav-configurator icon indicating copy to clipboard operation
inav-configurator copied to clipboard

When a UART column is set, gray out the other ones

Open laurentopia opened this issue 6 years ago • 8 comments

Current Behavior

When toggling UART2 RX to Serial RX I can still set Telemetry or Sensor or Peripherals, which shouldn't happen since a UART can only have one, but upon save and reboot that gets reset.

Desired Behavior

gray out the column of the UART when one of them is alocated

Suggested Solution

As soon as something in telemetry,rx, sensor or peripheral is set, gray out and disable input event from the other columns

Who does this impact? Who is this for?

Everyone who starts in RC, and also I am sure sleep deprived veterans. I am starting in RC and it took me 2 days of fumbling around before I stumbled on some archived post where one of the least upvoted answer explained as an afterthought that a UART can only do one RX or one TX at a time, not both. I was lucky to find that, and seeing the amount of posts trying to figure out telemetry on sbus, it's a common problem.

laurentopia avatar Feb 11 '19 03:02 laurentopia

@laurentopia Move to configurator repo, not INAV.

teckel12 avatar Feb 11 '19 04:02 teckel12

It is not as easy because more than one protocol can be enabled on a port (port sharing) but I guess once serial RX is enabled on a port nothing else can so we could disable the other things in this case.

shellixyz avatar Mar 24 '19 16:03 shellixyz

It is not as easy because more than one protocol can be enabled on a port (port sharing) but I guess once serial RX is enabled on a port nothing else can so we could disable the other things in this case.

I have FlySky telemetry on the same port with the receiver. And I do not know how it is with the FPort on FrSky. I think that the desired rule can be applied only to devices using both Tx and Rx of the UART, like i.e. GPS.

Tygrys-1 avatar Mar 24 '19 16:03 Tygrys-1

IMHO UARTS can do both input and output at the same time, but they share all the settings like the baud rate and parity ect. SPort telemetry uses different baud rate then the SBus, so this might be OP problem.

Tygrys-1 avatar Mar 24 '19 16:03 Tygrys-1

I have FlySky telemetry on the same port with the receiver

Ok then it is not possible.

And I do not know how it is with the FPort on FrSky

IIRC you just need Serial RX enabled and FPort serial_rx protocol selected

SPort telemetry uses different baud rate then the SBus

SBus and SPort can definitely not be used on the same UART

shellixyz avatar Mar 24 '19 17:03 shellixyz

SBus and SPort can definitely not be used on the same UART

Yes, they cannot. [OT] There is a trick with the softserial and on Matek F405 there can be the SBus receiver on RX2 pad and SPort on TX2 pad. Resource-wise deign. And no inverter needed.

Tygrys-1 avatar Mar 24 '19 17:03 Tygrys-1

Ok but then it is not technically the same UART

shellixyz avatar Mar 24 '19 22:03 shellixyz

Ok but then it is not technically the same UART

Internally not. But from the outside it looks like ;-)

Tygrys-1 avatar Mar 25 '19 07:03 Tygrys-1

I have FlySky telemetry on the same port with the receiver

Ok then it is not possible.

This closes the issue. Additional item needed on the same port as Serial RX with FlySky.

MrD-RC avatar Nov 26 '22 10:11 MrD-RC