inav icon indicating copy to clipboard operation
inav copied to clipboard

Smartport telemetry

Open VA3WK opened this issue 8 years ago • 97 comments

If your issue looks like a hardware fault or a configuration problem please don't raise an issue here.

Please consider using other user support options such as asking the manufacturer of the hardware you are using, RCGroups, Slack or other user support forums & groups (e.g. facebook).

Board and Version

_Board name goes here. If you have a link where you've purchased the board - please include it Matek fc F405-wing Version of INAV used goes here 1.9.1 Use CLI command version and put its output here INAV/MATEKF405SE 1.9.1 APR 21 2018 /13:46:07 (03a5c1922) If it's a custom-compiled firmware please mention this

Behavior

  • Describe the problem Smartport telemetry stops working anytime after 10-30min. (does not do it with 1.9.0).It also does it with a Spracing F3 FC again 1.9.0 works fine.

  • Steps needed to reproduce the problem just let it run

  • Expected Results

  • Actual Results

Is this a new feature request? No

Blackbox logs/Config (.ZIP) where problem occurs

_Go to CLI, execute dump command copy its output to PasteBin and provide a link to a paste here.

Upload a zipped blackbox log (if available)

VA3WK avatar May 26 '18 20:05 VA3WK

@VA3WK I've had this problem due to heat. When my receiver gets too hot, it stops sending telemetry. My VTx was generating too much heat and too close to my Rx, which caused the problem on hot days. I've had this happen on a couple different receivers and different versions of INAV.

I could get telemetry to start working again by simply blowing on the Rx, moving it away from the VTX, or pointing a fan towards my quad. It's never happened when flying, as with a quad there's lots of natural cooling when flying.

I'd seriously look into an overheating issue, as what you're describing sounds exactly like what I've experienced.

teckel12 avatar Jun 01 '18 17:06 teckel12

It works fine with 1.9.0 ,so i don't think its the problem. I tried several boards spracing F3, matek f4-wing Thank for your reply.

VA3WK avatar Jun 01 '18 19:06 VA3WK

@VA3WK Meh. It's warmer now, so... I thought this was a problem with last summer's version, till I realized it was just summer causing it. I'm having no lost telemetry issues with 1.9.1, even when on the bench for a very long time.

teckel12 avatar Jun 02 '18 22:06 teckel12

well you are lucky then, i just tested a omnibus f4 pro and after about 10min plus it stops responding to telemetry request from the receiver.(a brand new X8R.) on 1.9.1, re flashed with 1.9.0 and it works fine.

VA3WK avatar Jun 02 '18 22:06 VA3WK

@VA3WK I'll try it with an Omnibus F4 Pro today and get back with you. I'l running a 2.0 development build, so there could be some differences.

Oh, do all the FC/based telemetry stop at the same time, or is it a few, then worsens till they all stop? Also, does the X8R telemetry still send when they stop from the FC? Like is RSSI still sending?

teckel12 avatar Jun 03 '18 12:06 teckel12

@VA3WK I did get it to fail eventually after over 30 minutes. I also couldn't get it to recover (ever after putting the quad in the freezer).

I'll need to test this again on a couple different quads and see if I can duplicate it and if there's any similarities to try and isolate the problem.

teckel12 avatar Jun 04 '18 14:06 teckel12

Yes sometimes is goes faster i have seen it as short as 9min . I don't think temp makes a difference. i don't know yet why and under what circumstances it stops' if you put a scope to it you see that the receiver is still trying to communicate. My feeling is that there is some kind of a buffer overrun ,but i am not a programmer so i have to leave that up to the experts. i can see that the telemetry gets slower and slower and the horus first reports "sensor last" and then more and more sensors quit and eventually it reports "telemetry last".

VA3WK avatar Jun 04 '18 15:06 VA3WK

The RSSI and receiver voltage still work after that.

VA3WK avatar Jun 04 '18 15:06 VA3WK

Just a "me too" for this problem. Inav 1.9.1. I have smartport telemetry coming out of an Omnibus F4 Pro V3 into my Taranis radio via an X8R receiver. My flight began at 19:14:07. At 19:26:02 the smartport telemetry in my logs all froze at the same values. All of the other things - switch positions, sticks, RSSI continued to update. I was just looking into this and ran into this bug report.

I can't imagine heat is an issue. My receiver is on out on one wing, the VTX is on the other, FC is in the middle. This is on a FX-79 Buffalo, so there is about 2 1/2 feet of separation between components.

kd2eat avatar Jun 16 '18 23:06 kd2eat

@kd2eat I've been able to simulate it too, and it's not the issue I've had with an overheating TX like I've had in the past. The overheating symptoms are different, the sensors go in and out one by one, not all totally off at the same time like this problem.

This is a bug, not sure what's causing it though.

teckel12 avatar Jun 17 '18 22:06 teckel12

Just tried Inav 2.0.rc1 on a matek F405-wing and still the same problem i had hoped they would have fixed it but no luck.

VA3WK avatar Jun 27 '18 14:06 VA3WK

Ya this one is driving me nuts, too. I may go onto github and do some "diffs" between 1.9.0 and 1.9.1 to see if I see what they wiggled. Thanks for the heads-up on the 2.0.rc1.

kd2eat avatar Jun 27 '18 14:06 kd2eat

I've spotted a couple of places in the smartport driver that could be problematic. I'll post some binaries here to make it easier. Which targets would you guys need to test?

fiam avatar Jun 27 '18 15:06 fiam

Alberto, I'm running OMNIBUSF4PRO_LEDSTRIPM5. I'd be happy to test a build for you.

Mike

kd2eat avatar Jun 27 '18 15:06 kd2eat

@kd2eat Please, use the hex attached to this message. @VA3WK You mentioned you have a MATEK F405-WING so I also added a build for you just in case.

inav_2.0.0_MATEKF405SE_FIX_3282.hex.zip inav_2.0.0_OMNIBUSF4PRO_LEDSTRIPM5_FIX_3282.hex.zip

fiam avatar Jun 27 '18 16:06 fiam

ok thanks i will try it and let you know.

VA3WK avatar Jun 27 '18 16:06 VA3WK

I am on iNave 1.9.1 + matek f405 wing + R9 slim plus (upgraded fw to non-eu v180329) I also try R9 min, same problem.

test at home, I put the plane near the window, it got 9 satellite, the temperature is about 30 degree c. I can see all 18 sensor on my x9d plus, rssi is 100 after 6 minute, I get it back to the air con room 25 degree c, the gps sensor lost. 10 min pass, "inactivity alarm" 26 min, I put it back to the window, gps found again. go do sth, 43 min pass, and now all sensor in the telemetry screen lost (leaving only first 2 rssi and rxbat)

I am not sure this is problem or not. I recently try to get the gps show on the map, so I use opentx 2.2.1, enable smart port mirror in serial port x9d+ battery bay. I then connect the x9d serial port tx to a smart port inverter (IN), then (OUT) to bluetooth hc-06 rx (57600 baud rate) I then use EZ-GUI, and in android cat log, search keyword: frsky I can see many decode frsky crc error.

according to this https://www.jochen-scheib.de/understanding-the-frsky-smartport-protocol/ the telemetry frame is 10 Byte. and in the cat log, the crc error shows the frame only contain 2 Byte like 7E 16 or 7E B7 or 7E 39 or 7E xx always start with 7E the correct frame show on cat log are like 10 7E 1B , they are start with 10

after the telemetry sensor gone, I go back to the cat log, only the rssi and rx bat is parser correctly. other are all 2 Byte crc checksum error like before.

will test @fiam build now, report back later.

david-ng-hk avatar Jun 27 '18 16:06 david-ng-hk

@fiam sorry to report but it failed after 19 min , again all telemetry gone except A2,rssi and rxbat. i think these come from the receiver directly.

VA3WK avatar Jun 27 '18 17:06 VA3WK

@VA3WK Thanks for testing it. I’ll take another look at the code and see if I can spot anything else.

fiam avatar Jun 27 '18 17:06 fiam

I am still testing, so far so good, plane near window, 30 degree c. x9d inside air con, 25 degree c. btw, I can not change the plane to "flying wing" using @fiam 's build, no matter what I change, it always show quadcopter.

david-ng-hk avatar Jun 27 '18 17:06 david-ng-hk