Smartport Telemetry Not Updating on Taranis
Current Behavior
Sensor discovery slow and sensors not updating on Taranis.
Steps to Reproduce
1.Flash Matek F411 Wing and F405 Wing to 2.5.2 2.Setup Smartport on softserial 3.Discover sensors on Taranis with R9 4.Sensors are discovered randomly or not at all, any that are dicovered don't update leading to "sensor lost" alerts.
Expected behavior
Sensors should be discovered instantly, and have a heartbeat.
Suggested solution(s)
Additional context
Flashed back to 2.2.1 and discovery works. Also works on 2.3 but not later.
2.5.2
- FC Board name and vendor:Matek f411
- INAV version string:INAV/MATEKF411 2.5.2 Aug 4 2020 / 10:25:53 (faaedc7cb)
Issue-Label Bot is automatically applying the label BUG to this issue, with a confidence of 0.91. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!
Links: app homepage, dashboard and code for this bot.
After further investigation the fault appears to be related to SmartPort when used over SoftSerial on F4. I have changed my configuration to FBUS and the issue has been resolved. The issue does not seem to affect F7 FC's when using SoftSerial.
I noticed this issue too lately. Began noticing after 2.3 i had a lot more "sensor lost" warnings than normal, and in some cases smartport telemetry works for a few second but then stops completely until a reboot. I have a lot of Omnibus F4 pro's i use on smaller planes and wings, and getting f.port on these is a pain because of inversion. But worse is that since 2.4 it have started happening on my Matek 405 wing's too. Takes longer, but after 15-20 min's i get "sensor lost", and no more telemetry until i reboot. Makes using my U360GTS tracker all but impossible :(.
BTW. I believe it have nothing to do with the Taranis, happens regardless of what transmitter used. I mostly use a Horus X12S, but also a Taranis X9D, same behavior on both. And also happen on both normal 2.4 and R9.
Are we getting to the limit of F4 processors by asking to handle SoftSerial on newer builds of INAV?
Perhaps we are. But processor load do not indicate any strain. And was there really so much new functionallity from 2.2.x to 2.3 that it would overload a F4 so much that softserial is all but unusable for telemetry?
Just to be clear. This is only for a wing or a plane. I have yet to try INAV on a quad.
The same problem met with Wing FC without any SoftSerial port used, any XJT or R9 receiver and Jumper T16. I had to return to v2.3.
Same problem with Matek F765 and FrSky RX6R with SmartPort on versions 2.5.2, 2.5.1 and 2.5.0. SmartPort telemetry works as intended on version 2.4.0. Edit: Sensor loss after some time on V2.4
My problem solved by telemetry_halfduplex =OFF.
I suppose you mean "telemetry_uart_unidir"? "telemetry_halfduplex" isn't in INAV. Anyway i have both "telemetry_uart_unidir=off" and "serialrx_halfduplex=off". Always have on F4 boards.
That may be the core problem. In my 2.5.2 firmware for WingFC (and for OMNIBUS F4 PRO too) definitely IS "telemetry _halfduplex" and is NOT "telemetry_uart_unidir". I am not sure whether it helped, but before installation of the new version of configurator I deleted Windows directory of \Users...\AppData\Local\inav-configurator.
That's correct. I forgot to give my version. 2.4. Haven't bothered to upgrade to 2.5.x yet. But. it's just a name change, not different functionality: https://github.com/iNavFlight/inav/pull/5455
Telemetry_halfduplex is turned off in my case. Like recommended in the Telemetry Wiki section. (there refered as "telemetry_uart_unidir = OFF") I made a completely new install for the iNav Configurator and the problem occured immediately. I noticed telemetry sensor loss in V2.4 and V2.3 as well after some time.
I can confirm the same issue with an OmnibusF4 Pro and the Wing FC-10. No issues on 2.4.0, as soon as I go to 2.5.x smart port telemetry stops working
Although it worked for me for some time, now I am not able to get the telemetry running on WingFC+R9 Slim OTA+Jumper T16 with INAV v.2.5.2. I confirm the issue. After returning to v.2.3.0 works fine. Edited I have to revert my satatement. After another fiddling with the 2.5.2 instalation I managed to get all running without outages of telemetry. So the "telemetry_halfduplex=OFF" is the only change which I did - as far as I am aware.
I have a similar problem on a Matek F411 WSE running INAV 2.6.1 where a R9 sx is connected to the Tx2 pin configured as softserial. No FC sensors are detected on Taranis Transmitter apart from the Receiver ones. After a bit of flashing, it seems the problem was introduced in 2,5.0 as sensor detection is instantaneous in 2.4 anddoes not work at all in 2.5.0. I have looked into the commit list and it seems there has been rework on FrSky Crc algorithm between these 2 versions. Any idea whether this could be related?
I have the exact same issue as OP, it's working in 2.3 but not working in any later version, I'm using a Matek F411 WING as well.
I used the workaround of updating the firmware in my receiver with FPort and connecting the FC with the inverted signal from the receiver (had to solder in a specific point on the receiver to get the uninverted signal, you can look up the specifics online). I'm now using the latest version of inav without problem, but it's a pain.
I have the same issue on 2.5.2, Matek F411 Wing, Smartport on SoftSerial, R-XSR receiver, Taranis X9D. No sensors detected beyond receiver. Would be great if someone could investigate. Happy to help if needed on e.g. trying out a bug fix. I'm not too keen on downgrading in order to fix this.
@sergiobd007 : What INAV version are you running with Fport where everything works? I switched to Fport (what a hassle to solder...) on 2.5.2. and it seemed to work (at least when doing a quick test). Then I upgraded to latest (2.6.1.) and now the sensors are detected after some time, but they are lost quickly/are not really updating.
I did some further testing. When I reboot the FC, the sensors (beyond the 2 receiver sensors) are discovered/provide data normally after RC link is established for about 2 seconds. Around the time the startup sequence (beeps) is finished, the sensors no longer get updated ("sensors lost" warning). So to me, it seems everything is initialized correctly but then goes awry in "run" mode. I tried this many times now, consistent result every time. Ideas anyone?
Current config: INAV 2.6.1, Matek F411 Wing, FrSky R-XSR running Fport on UART 2 via uninverted smartport output, FrSky X-lite Pro.