edgetx icon indicating copy to clipboard operation
edgetx copied to clipboard

External R9M ACCESS module does not transmit channel information in f.port mode (telemetry works)

Open Zaquron opened this issue 3 years ago โ€ข 66 comments

Describe the bug Coming from OTX 2.3.14, i installed EdgeTX 2.6 with externalaccessmod and RC output disappeared from the receiver. When the receiver is connected, the channel data sometimes refreshes once and stays there until turned off. Moving the sticks does not change the channel outputs. Telemetry always works fine.

To Reproduce -install EdgeTX 2.6.0

Expected behavior RC channels should work through f.port

Screenshots

General information

  • EdgeTX version 2.6.0 with externalaccessmod
  • Hardware RM TX16S with R9M 2019 module (fw 1.3.0 flex)
  • R9MX receiver (fw 1.3.2 flex)

Checked 3 times now, the whole setup works fine on OpenTX. tested with - flex mode (868MHz) with R9MX receiver - EU (LBT) mode with the same receiver I guess there is something wrong with the externalaccessmod.

*edited for clarity

Zaquron avatar Feb 12 '22 21:02 Zaquron

F.port is only a thing that happens between hf module and receiver. Hf module communication with Radio is the same as with sbus s.port configuration. Are you shure that there is nothing wrong between receiver and flightcontroller? Which FC Do you use and how have you connect the receiver with it.

brainbubblersbest avatar Feb 19 '22 19:02 brainbubblersbest

F.port is only a thing that happens between hf module and receiver. Hf module communication with Radio is the same as with sbus s.port configuration. Are you shure that there is nothing wrong between receiver and flightcontroller? Which FC Do you use and how have you connect the receiver with it.

The FC is a Mateksys F411 wing. It's connected to the R9MX receiver through a serial TX pin. I went back to OTX and everything works. There was no change in hardware or receiver side firmware in any way, that's why i think this is an EdgeTX bug.

Zaquron avatar Feb 19 '22 20:02 Zaquron

I just like to request that you double checked This. ๐Ÿ˜‰ Can you Check your Externalaccessmod wiring? This is also a clear indication for Malfunctioning Inverter. (can be possible) TX to Module Bay Pin 1. Pin 2 is for Telemetry.

You dont have a Scopemeter layin around somewhere? Or an old Accst Module and Receiver? ๐Ÿ˜…

brainbubblersbest avatar Feb 19 '22 20:02 brainbubblersbest

I'll recheck wiring tomorrow, but pretty sure it wouldn't work on OTX if it was a hardware issue. I happen to have an oscilloscope, but no serial analizer. What should i check? I could flash the module with ACCST but i don't have a compatible receiver so i can't test that.

Zaquron avatar Feb 19 '22 20:02 Zaquron

You need no Serial analyzer. Oscilloscope is enough. Check rx tx Pins in the Bay. (With r9m connected and running.) Signal should Look clean and sharp. Maybe there isnt even a Signal on tx. (pin1)

Every measurement thats done is good for bugtracking ๐Ÿ˜‰

brainbubblersbest avatar Feb 20 '22 02:02 brainbubblersbest

I did a few measurements. If by pin1 you mean the top pin, then there is a signal on that one. (running OTX or EdgeTX) It does not look clean and sharp, but looks just like the signal i measured under OTX IMG_20220220_104915 .

Zaquron avatar Feb 20 '22 10:02 Zaquron

That looks horrible. The levels are not consistant. Try a higher sample if available on scope

scooper1 avatar Feb 20 '22 10:02 scooper1

pin5 (the bottom one right under GND) looks like this: IMG_20220220_104750

Zaquron avatar Feb 20 '22 10:02 Zaquron

well, it's a very basic and cheap scope... Why does it work on OpenTX though?

Zaquron avatar Feb 20 '22 11:02 Zaquron

The s.port Signal Looks good. The Signal on pin1 does not. Idk why it works with opentx. Maybe @rotorman can say something about that. (different processing or else) I wouldnt Trust that it will work reliable with opentx for long time. You can change module type to ppm to Check if you can Pick up a good Signal here. And you can compare the Signal on pin2 with pin 1 to figure out if it's a speed limit issue of your scope

Another idea would be to solder in an external inverter like on x10/x12. These are tested on 400k Baudrates.

brainbubblersbest avatar Feb 20 '22 13:02 brainbubblersbest

@Zaquron can you show some pics of your hw-mod you did? The waveform in https://github.com/EdgeTX/edgetx/issues/1585#issuecomment-1046208365 looks pretty distorted to me.

rotorman avatar Feb 20 '22 13:02 rotorman

hwmod Connections look ok to me, but there is definitely a hardware issue here. When i connect the probe to pin1, the module loses telemetry even on OpenTX. Now i have no idea how to fix this. :(
Changing mainboard is beyond my budget.

Zaquron avatar Feb 20 '22 16:02 Zaquron

BTW just came back from the field where i had 2 flights on OpenTX. Not a single glitch,

Zaquron avatar Feb 20 '22 16:02 Zaquron

On the USART3 header to the left of main STM32F4, I cannot clearly see from the image if the TX and RX wires connect or not - also flux should be washed off with PCB cleaner, as it is not only corrosive, but also lightly conductive.

Nevertheless, if with the same radio OpenTX firmware works OK, then there must be a software issue somewhere. I do not have R9M myself to test though.

Can you measure the top pin (PPM/SBUS of JR-bay) once more under OpenTX and under EdgeTX to see if you can spot a difference in the waveform?

rotorman avatar Feb 20 '22 17:02 rotorman

Resoldered and cleaned off flux: hwmodcleanedup

Waveform on EdgeTX edgetx

Waveform on OpenTX opentx

Zaquron avatar Feb 20 '22 18:02 Zaquron

Your solder job looks good, the waveforms look the same on OpenTX and EdgeTX, although both have very rounded corners. Hmm... would you have a logic analyzer, like Saleae, to check if the data stream from the radio is also similar?

rotorman avatar Feb 20 '22 18:02 rotorman

Sorry, i don't have a logic analyzer.

Zaquron avatar Feb 20 '22 19:02 Zaquron

Did anyone ever measure this with an oscilloscope? Maybe it's the same mess in every transmitter.

Zaquron avatar Feb 20 '22 19:02 Zaquron

I had a look at TX16S schematics and accessmod and I think it might work better without the following two highlighted components - remove only if you are adventurous enough:

grafik

grafik

rotorman avatar Feb 20 '22 19:02 rotorman

I have a damaged mainboard (battery charge control circuit went up in smoke) so i might give this a try. Does this affect anything else?

Zaquron avatar Feb 20 '22 19:02 Zaquron

Did anyone ever measure this with an oscilloscope? Maybe it's the same mess in every transmitter.

I only measured the waveform with th external Inverters on x12s. And ive done that with a fluke/philips pm97

brainbubblersbest avatar Feb 20 '22 19:02 brainbubblersbest

Does this affect anything else?

Removing the two components listed affects only the external RF-module.

rotorman avatar Feb 20 '22 20:02 rotorman

I did a little experiment. Changed the main PCB to the old one and did the suggested modification. Signal still looks like this:

oldPCB

IMHO this is a software problem. Can someone please take a look at the code?

Zaquron avatar Feb 21 '22 17:02 Zaquron

I have the same problem: T18 radio with R9M, which works fine in OpenTX, but it doesn't work in EdgeTX (only telemetry is transmitted.)

ViorelX avatar Feb 23 '22 20:02 ViorelX

Is there any chance someone with the skills will take a look at this? Please?

Zaquron avatar Mar 03 '22 11:03 Zaquron

I would Do this. But I dont have access to a RM TX16S.

brainbubblersbest avatar Mar 03 '22 11:03 brainbubblersbest

The problem might be not specific to RM TX16s. I have Radioking T18.

ViorelX avatar Mar 03 '22 12:03 ViorelX

Yes. First Post was rmtx16s. I only have a X12s with additional Inverters. And for me everything works.

brainbubblersbest avatar Mar 03 '22 22:03 brainbubblersbest

@Zaquron is that only with F.PORT output, or in general with this module? @brainbubblersbest can you please confirm: your R9M ACCESS works properly on the X12S with external access mod & edgetx?

raphaelcoeffic avatar Mar 22 '22 22:03 raphaelcoeffic

I will Look into that this evening.

Raphael Coeffic @.***> schrieb am Di., 22. Mรคrz 2022, 23:47:

@Zaquron https://github.com/Zaquron is that only with F.PORT output, or in general with this module? @brainbubblersbest https://github.com/brainbubblersbest can you please confirm: your R9M ACCESS works properly on the X12S with external access mod & edgetx?

โ€” Reply to this email directly, view it on GitHub https://github.com/EdgeTX/edgetx/issues/1585#issuecomment-1075726017, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALPVHWMWXVVAJT6MESPSMYTVBJEYLANCNFSM5OHQYAKA . You are receiving this because you were mentioned.Message ID: @.***>

brainbubblersbest avatar Mar 23 '22 17:03 brainbubblersbest