Everything displays but nothing saves on 1.0.1 - R-XSR
Hello,
This is not how I like to write issues but I have no real indication on how to reproduce the issue.
I was using v0.3 absolutely fine until next week, on betaflight 3.2.2. The other day, I decided to upgrade the lua to 1.0.1 and betaflight to 3.2.3 on my 4 quads.
All 4 have the same flight controller (hobbywing f4 - target omnibusf4sd). One runs on crossfire and is working fine, one has a FrSky XSR and works fine.
I have problems with the two quads on R-XSR and FusiousFPV Stealth Race. Nothing saves, not even the PIDs and rates, so I'm assuming the issue doesn't stem from the Stealth and must be related to the receiver. They both run the latest firmware 171103 on the r-xsr (one potentially has the previous 171009 version). Reading the values works fine and I can see information in all tabs of the lua, I have the F000 sensor. Only when I hit "save page", the page reloads and displays the old values again. I tried refreshing the page several times but to no avail. The vTX page doesn't work either and displays the "Retrying" message every time.
Is is worth noting that I did the inverter mod on both those receivers, because the Hobbywing F4 doesn't have an inverter for s.port. I am not 100% sure that saving the values did work on 0.3 either with these 2 specific quads, so maybe the problem is not exactly related to 1.0.1.
Any idea? Thanks
Additionally, a friend of mine also has the issue with his modded r-xsr, but no issue with the non modded one. The mod that we both did is basically soldering a wire to the "P" pad and routing this to the TX of an uart : https://oscarliang.com/ctt/uploads/2017/10/frsky_r-xsr_rx_receiver_smartport_sbus_inverted_uninverted_pin.jpg
In a private message discussion in RCgroups, frsky confirmed the issue, and we both verified that it only happens on Betaflight 3.2.x. So this issue is probably related to Betaflight and not the script.
Was this raised to the BF devs yet? I’m encountering same issue.
Sorry just saw you posted in BF issues. Never mind.
Actually no, I didn't post since the guys from FrSky were apparently already in contact. But in the end the suggested to add a 4.7K to 10K resistor between the S.port (I assumed the uninverted "P") and GND pins on the R-XSR to solve it. The other alternative is to wait for FPort to be available and do everything, including telemetry, via a single wire, rendering the smartport mod unnecessary.
@beeb: FPort for r-XSR is in the works and should be ready soon, according to FrSky. We'll have to test again when it is available, but it will use the SmartPort pin on the RX, and if there indeed is an electrical problem (with the 'uninverted' pad from what you are describing), then using the pull down resistor might be required with FPort as well. (But then, that's not really a big issue, and can probably be fixed by FrSky in a future hardware revision.)
@mikeller Thank for your reply. Doesn't the fact that this new protocol is uninverted remove the need for the hardware mod on the R-XSR? In such a case, we could use the normal SmartPort pin again, thus removing the problem right? The pull-down resistor is only needed on the "P" pad.
@beeb: Since the inversion on existing RX is done in hardware, it is not possible to change the inversion with a firmware upgrade to FPort. Only yet-to-be-released new RX hardware that is specifically designed for FPort will be uninverted.
@mikeller OK gotcha! Weird that FrSky suggested FPort as an alternative solution to the pull-down resistor. Couldn't we use an sbus port on the FC with dedicated inverter for this Fport, and use the normal inverted pin on the RX?
[URL=http://s893.photobucket.com/user/HJcrick/media/8F44C3A4-D339-4A27-ABD0-389BA2853956.jpg.html][IMG]http://i893.photobucket.com/albums/ac140/HJcrick/8F44C3A4-D339-4A27-ABD0-389BA2853956.jpg[/IMG][/URL]
Weird that FrSky suggested FPort as an alternative solution to the pull-down resistor.
I can't comment on that as I don't have the hardware. But if it needs a pull-down resistor for SmartPort, then it will need one for FPort as well in all likelyhood.
Couldn't we use an sbus port on the FC with dedicated inverter for this Fport, and use the normal inverted pin on the RX?
Yes that is definitely an option. You will need a bidirectional inverter for this though, like so:

Perhaps (hopefully) frsky will release a firmware update that fixes the telemetry issue as well as enables fport. The sPort solder tab has to be used for fPort because it is uninverted and bidirectional, similarly the sbus rx chip on the FC is not bidirectional so a standard uninverted (or a nice inverted) uart will be required.
Back on topic, I have telemetry writing from my QX7 via LUA after a rx firmware update although it is very unreliable, I continue to get drop outs. I consider this a frsky issue and I will try the pull down resistor next week when I get to a store. This could be fixed in firmware by refining the values for high/low.
I’ve tried the pull down resistor in 4k7, 7k5 & 10k 0.5w resistors. The 7k5 was most reliable although it was still unreliable (fail to write after arm). It did reduce the amount of drop outs over a 10 minute period significantly. I will note that all functions will work at some point in time and that is usually after rx and tx restart.
Sbus remained rock solid. FC is DYS F4 Pro. Radio is QX7S
I also tried a brand new rxsr flashed with latest fcc firmware and all the same findings were reproduced. The greatest chance of failure seems to occur with arming.
I also tested with a Matek F405 OSD FC and the results were replicated.
I’m sure BF could do something to work with the reciever but co soldering these issues do not occur with other frsky x rx’s I think it is safe to conclude this is a rxsr issue.
I’ll post a video later.
The fact that arming changes something here is weird - arming should not change anything to do with the serial connections between RX and flight controller, and the RX does not even know if the flight controller is armed or not. Do you use stick arming or switch arming?
I think it’s a noise issue more than anything, I should probably try a cap to clean it also.
I use a sticky logic switch between H & F
@mikeller thanks for your previous answer about the hardware inverter. I'm not sure if most F4 boards have bidirectional inverters on the SBUS pin, but I kinda doubt it. Do you know if this is common practice or if all F4 boards with hardware inverters on the SBUS pin are unidirectional?
@Clynikal @mikeller what I'm still wondering is why this issue does NOT happen on 3.1.7. Both myself and FrSky confirmed we had working MSP saving with the modded R-XSR (no pull-down resistor) and BF 3.1.7. I downgraded one of my problematic quads and sure enough it did work.
@beeb: Often the inverters for SBus are unidirectional. But some boards have a bidirectional inverter on the port that is designated for SmartPort.
The timing of SmartPort packets was changed between 3.1.7 and 3.2 as a side effect of some unrelated changes. 3.3 includes a fix (betaflight/betaflight#4863) that ensures that the timing is acceptable for all RX. Maybe you should try 3.3?
@mikeller nice merge. I really hope you’re right, I’m tempted to try 3.3 just for this, likely on my thrasher tomorrow. I’ll report back.
Thanks @Clynikal. I was made aware of this by a FrSky engineer, and he's tested the change (on an r-XSR), so this should hopefully fix it.