olliw42 / mLRS

2.4 GHz & 915/868 MHz & 433 MHz/70 cm LoRa based telemetry and radio link for remote controlled vehicles
GNU General Public License v3.0
279 stars 58 forks source link

rx-R9MM: only sbus output #144

Closed twistedwings closed 7 months ago

twistedwings commented 7 months ago

rx-R9MM-f103rb-elrs-bl-v1.1.01-@19066cb.elrs

receiver outputs sbus instead of crsf.

mLRS.lua: Edit Rx: Out Mode is fixed to sbus (disabled).

olliw42 commented 7 months ago

R9MM's hardware allows to only do sbus. See also docs: https://github.com/olliw42/mLRS-docu/blob/master/docs/FRSKY_R9.md#r9-mm--r9-mini-receiver

closing since no issue :)

arg7 commented 6 months ago

Sorry, does it means that R9MM will not be able to transmit mavlink telemetry?

Since mLRS Rx Module Setup tells to set Rx Out Mode = crsf.

I'm trying to setup mLRS on R9M TX and R9MM RX and getting no output on R9M TX serial port (checked with osciloscope, and left dip switch is up).

Thanks, Andrey

twistedwings commented 6 months ago

no, it means that RC output is sbus only, no crsf. Mentioned in the doc, overlooked that as I created the issue. Works quite well.

olliw42 commented 6 months ago

as @twistedwings already said, you get both, the rc data and the mavlink data. All it means is that you do not get the rc data as CRSF but as sbus. But you sure still get the mavlink. In the wiring diagram in the docs you see three wires: two green wires for the (mavlink) and one yellow wire for the rc (=sbus) data. Pl ensure that your wiring is ok, and also ensure that you have done all teh settings as described in the docs, e.g., the "CRSF Telemetry and Yaapu Telemetry App" doc if this is what you want

arg7 commented 6 months ago

Thanks for prompt reply, I have double checked wiring to the RX, I see mavlink messages incoming on CH4 of R9MM and outcoming messages on CH3.

In mission planner I see that radio transmission works, in radio calibration panel gauges are moving.

But on the radio (RadioMaster TX16S, OpenEdge 2.8.4), the serial line of R9M TX module is silent and Yaapoo widget shows "no telemetry data".

What could be wrong with my setup?

Thanks in advance, Andrey

PS: same setup work perfectly with ELRS TX and RX.

olliw42 commented 6 months ago

my first guess would be that you may have to upgrade EdgeTx, 2.8.4 is pretty old

does the CLI work? maybe some settings are wrong

does the mLRS lua script work for you?

did you select the dip switches correctly?

carefully go through the docs again

arg7 commented 6 months ago

Thanks for your support, I have done OpenEdge upgrade, without success, and checked and rechecked wiring, switches and so on. And finally I have found the cause: I wanted to test first 19hz mode and set "Rx Ser Baudrate" to 38400. Also in Mission Planner I have set same baud rate. But I didn't noticed that it reverts to it default value 57600. This looks like a bug.

Since the baud rates on flight controller and RX didn't match, I was getting no telemetry.

Once I set 57600 on FC, it began works properly.

By the way, your project is amazing. Looking to contribute to it in the near future.

Best regards, Andrey

olliw42 commented 6 months ago

I wanted to test first 19hz mode and set "Rx Ser Baudrate" to 38400. Also in Mission Planner I have set same baud rate. But I didn't noticed that it reverts to it default value 57600. This looks like a bug.

thx for reporting. Could you give me a recipe which I can follow to reproduce the bug? You may imagine that I do change parameter settings kind of every day, and it works, so it seems to happen only under certain conditions, which I may not easily catch.

Does this reset happen only upon firmware flashing/upgrading, or are you saying you can't change the settings with the CLI or the Lua script?

EDIT: I have just double checked for both my R9MM and R9MX with latest firmware, I can change the rx ser baudrate via the Lua script just fine (is stored and kept permanently)

Did you maybe forgot to save/store? In the cli it would be the command store;

arg7 commented 6 months ago

Did you maybe forgot to save/store? In the cli it would be the command store;

Yes, you are exactly right. I didn't notice "Save" button in main screen, my fault.

Best regards, Andrey

olliw42 commented 6 months ago

don't worry, no problem. It tells though we shoudl improve the docs a bit to mention this So, I read this to mean that it's working fine now for you, great.