inav icon indicating copy to clipboard operation
inav copied to clipboard

Smartport Telemetry Not Updating on Taranis

Open Davierooker opened this issue 6 years ago • 30 comments


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)

Davierooker avatar Aug 16 '20 19:08 Davierooker

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.

issue-label-bot[bot] avatar Aug 16 '20 19:08 issue-label-bot[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.

Davierooker avatar Aug 17 '20 11:08 Davierooker

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.

janmj avatar Sep 02 '20 05:09 janmj

Are we getting to the limit of F4 processors by asking to handle SoftSerial on newer builds of INAV?

Davierooker avatar Sep 08 '20 14:09 Davierooker

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?

janmj avatar Sep 08 '20 16:09 janmj

Just to be clear. This is only for a wing or a plane. I have yet to try INAV on a quad.

janmj avatar Sep 08 '20 16:09 janmj

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.

j1r1 avatar Sep 09 '20 08:09 j1r1

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

Quadropus avatar Sep 10 '20 23:09 Quadropus

My problem solved by telemetry_halfduplex =OFF.

j1r1 avatar Sep 11 '20 06:09 j1r1

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.

janmj avatar Sep 11 '20 08:09 janmj

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.

j1r1 avatar Sep 11 '20 08:09 j1r1

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

janmj avatar Sep 11 '20 08:09 janmj

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.

Quadropus avatar Sep 11 '20 09:09 Quadropus

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

IdefixRC avatar Sep 13 '20 07:09 IdefixRC

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.

j1r1 avatar Sep 14 '20 07:09 j1r1

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?

ehubin avatar Jan 28 '21 14:01 ehubin

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.

sergiobd007 avatar Feb 06 '21 13:02 sergiobd007

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.

stsa64 avatar Mar 05 '21 12:03 stsa64

@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.

stsa64 avatar Mar 15 '21 22:03 stsa64

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.

stsa64 avatar Mar 16 '21 20:03 stsa64