#Motor RPM and ESC temp not showing in motor tab when using Fettec 65A esc

1 messages · Page 1 of 1 (latest)

lethal spruce
#

Coming with his setup from bf 4.4.3 there it works

Foxeer h7 mpu6000 mini
Fettec 65a esc
Esc sensor for current and voltage works

#

Using D600

jagged flume
#

Works here, but totally different hardware.

#

Bidir DShot 300

lethal spruce
#

I did a second test wit a Tmotor F7 pro uart 4 esc telemtry wire same issue. So what is changed why Fettec esc telemtry voltage and current works on the 1 wire telemtry but motor rpm is not working

#

Reminder it works on Bf 4.4.3

jagged flume
#

Just for my information. Does the telemetry wire also provide the rpm data? (Bidir dshot does not need it.)

lethal spruce
#

What i remember Dshot send that info

whole shale
#

Main thing we need to figure out is if this issue is specific to the Foxeer H7 Mini in 4.5, or with all Fettec ESCs and 4.5. Need to mix and match FC's with ESCs to find out where the problem lies.
Maybe if title of the post said "No RPM data with Foxeer H7 Mini and Fettec ESC in 4.5", it might better attract the attention of other Foxeer H7 users

lethal spruce
#

Tmotor f7 pro same issue

#

I tested with 3 drones using fettec esc

whole shale
#

Ooohh that's unexpected. I'm confident that RPM telemetry works with that FC and other ESCs, and if the problem exists with several Fettec ESCs, it seems likely that Fettec might have some particular RPM telemetry coding that hasn't kept up with the standard. Maybe reach out to them and see if they have a firmware upgrade for the ESC?
We have recently added some documentation on ESC firmware:
http://betaflight.com/docs/wiki/getting-started/hardware/esc-firmware
Would be great if Fettec could join in, here, and advise us on what we should say about Fettec ESC firmware in relation to Dshot and Extended Dshot telemetry.

#

@SniperX keep in mind that the one-wire telemetry you're saying is still working refers to ESC Serial Telemetry, not Dshot telemetry. In your case, its the Dshot telemetry that is failing with the Fettec ESCs and 4.5.

lethal spruce
#

I have talked with Fettec, they take a look asap

viral idol
# lethal spruce

In your config you turned OFF bidirectional Dshot, which disables RPM readings. You need to turn bidirectional Dshot on to get RPM readings

lethal spruce
#

Nope, biderectional is for rpn filters not for telemtry data. We use it on 4 quads with bf 4.4.3 with no issues

#

I show tomorrow a video that it works on bf 4.4.3 withou the checkbox biderectional

viral idol
#

bidirectional Dshot is for RPM telemetry in general, not just for the RPM filter

lethal spruce
#

So tell me, why it works on bf 4.4.3?

viral idol
#

what do I know? Just turn it on to make it work

lethal spruce
#

Fettec don't support biderectional

viral idol
#

then I have no idea how they got RPM telemetry over the motor wire. sorry that I cannot help you. let's wait for Fettec's answer 🙂

lethal spruce
#

Because what i understand it is send in the Dshot data

viral idol
#

normal Dshot is only sending data from the FC to the ESC. The ESC is not able to send back data to the FC over normal Dshot. that's only possible with bidirectional Dshot. but maybe the ESC sent data back over the telemetry wire

#

maybe we have an issue with that (telemetry wire) in BF or the configurator

#

If Fettec has questions about something BF specific, let us know. We'll try to help

lethal spruce
#

Yes, i have direct contact with Felix

jagged flume
#

@lethal spruce Do change the title of this issue as suggested. Because there is no general issue with showing motor rpm.

lethal spruce
#

Motor RPM and ESC temp not showing in motor tab when using Fettec 65A esc

agile dust
#

@lethal spruce can you test with ESC_SENSOR_RPM debug mode in blackbox. Also can check on sensor tab when motor testing is enabled on motor tab.

DEBUG_SET(DEBUG_ESC_SENSOR_RPM, escSensorMotor, lrintf(erpmToRpm(escSensorData[escSensorMotor].rpm) / 10.0f)); // output actual rpm/10 to fit in 16bit signed.
#

ESC_SENSOR is using telemetry wire on the ESC one direction over UART

whole shale
#

@lethal spruce what happens when you enable DShot telemetry slider in the motors tab, save, come back to the motors tab - are all the rpm values red?

#

@lethal spruce there’s some confusion here.
ESC telemetry has two forms:

  • single wire from esc to a uart, otherwise known as serial esc telemetry. If RPM data is acquired this way it does not require DShot telemetry, is very slow, and cannot be used to operate dynamic idle or rpm based filters like dynamic notches.
  • DShot telemetry where no serial port is required and the data goes back along the DShot signal wire to the esc and then back to the FC. So we control motor by sending DShot signals one way, and then get rpm and other values back the opposite way, so that’s called DShot telemetry. It’s fast and data dense and we use it for dynamic idle and rpm based dynamic filters etc.
#

Is the problem that:

  • the serial esc telem is not working at all?
  • the serial esc telem is returning values for temp and current but not rpm?
  • the serial esc telem is working perfectly but DShot telemetry is not providing rpm values?
lethal spruce
#

ESC TEMP works

#

Current and Voltage also works

#

Bidirectional Dshot On
Motors dont' spin and ESC temp dont work anymore

#

OSD gives the same info too

#

ESC Rpm in OSD stay also on zerro

lethal spruce
lethal spruce
#

Also esc temp is gone then

lethal spruce
#

Flashed BF 4.5 RC1 same problem so it it 100% sure something is changed between 4.4.3 and 4.5 that brokes the above part

lethal spruce
#

I have talked with fettec, they send esc voltage esc current and esc/motor rpm over telemetry wire. This part works in bf 4.4.3 but not in 4.5 rc1 and 4rc2

lethal spruce
#

DEBUG RPM BLACKBOX

lethal spruce
#

if you guys want to do a quick call let me know, but i think all info is here showing no rpm data in blackbox from the motors too. So 100% something broken in the firmware 😦

whole shale
#

Ok good. So the issue is simply that:

  • the esc does not support DShot telemetry
  • it does support serial esc telemetry
  • 4.5 doesn’t support rpm data over serial esc telemetry, whereas 4.4 did
    That’s clear.
    I’m not sure why this happened but I think it was part of refactoring rpm data. Serial rpm data would need to be handled differently because it is too slow for what we use rpm data for.
    I don’t think this will be easy to fix.
lethal spruce
#

That is bad news for us. We need 4.5 for RTH safety but also RPM info from the motors

lethal spruce
#

Will do now

#

Like this?

agile dust
#

Have to put # in front of the PR number

lethal spruce
#

Error

agile dust
#

Try again?

lethal spruce
#

i am missing the pull request part on your right

#

sorry i am blind

#

found it

agile dust
#

Ah checkout zulu

#

I'm from Rotterdam

lethal spruce
#

I need to select ZULU see the diffrence, i am missing th custom part right

#

You fixt it

#

It is working

whole shale
#

@agile dust is the MAN 🤟🔥👍👍!

viral idol
#

unfortunately it stops working if USE_DSHOT is not defined. we need to refactor this a bit. the PR in its current form is a bit suboptimal

lethal spruce
#

No idear what that means 🙂

agile dust
#

When using MULTISHOT or ONESHOT for example

#

Okay did not know these also used telemetry wire - so have to scoop it out of USE_DSHOT define.

agile dust
viral idol
#

@lethal spruce haha no worries, nothing that concerns you. It works, haslinghuis found the issue. But now I am concerned about several things in the underlying code. there are dependencies between dshot and ESC telemetry that should not be there. I guess more refactoring work for us 🙂

#

btw. I was the one breaking ESC telemetry

#

so you can punch me now

lethal spruce
#

Super happy that @agile dust found a solution. Tomorrow field test

whole shale
#

Hey @lethal spruce out of curiosity, with the code you have now, are you able to enable rpm filtering, or dynamic idle? The lag from@serial telemetry would likely mean that rpm filtering would lag rapid rpm changes, but would control motor noise when motors are steady. I have a feeling that dynamic idle would be a bit of an epic fail. It has to respond quickly to the rpm changes. I’d be curious to see any logs if you can enable those things. If they can’t be enabled, probably that’s what we intended.

lethal spruce
#

What i already said @whole shale Fetec don't support that

whole shale
#

No you misunderstand me

lethal spruce
#

The esc don't talk that way what Felix told me

whole shale
#

I’m not talking about DShot telemetry

#

Once we have rpm data, we can use it

#

It doesn’t matter how we get it.

lethal spruce
#

wow the esc makes a weird noise when i acitvate that

whole shale
#

The only difference is that when we get it from serial telemetry, it is delayed, and that delay could make something like dynamic idle be unusable

#

So could you enable dynamic idle? If you could, we would want to block that.

#

Was that weird noise at idle with dynamic idle enabled?

lethal spruce
#

When i activate BIDIR the esc will not boot and makes weird noises

whole shale
#

I keep telling you DO NOT ACTIVATE BIDIR

#

DON’T

#

Bidir = DShot bidirectional telemetry

#

It is not supported on your esc!!!

lethal spruce
whole shale
#

Rpm filtering is enabled in the filters page.
Dynamic idle is enabled in the pid page

lethal spruce
whole shale
#

Yes, DO NOT turn the bidir switch on!!!!

lethal spruce
#

Indeed no rpm option avalible

#

Only after setting bdir once and then set dynamic idel the number stays when disable bdir after that

whole shale
#

Ok that’s not ideal

#

But if you just open Configurator, do a clean connect to the board, then can you enable dynamic idle and set it to a value, or is it greyed out?
And the dynamic notch filters?
Configurator may have some weirdness.

lethal spruce
#

it us greyed out

whole shale
#

No, the dynamic notch filter is not greyed out

lethal spruce
#

I mean the dynamic idle is greyed out

lethal spruce
#

So i am done for today! Hope you guys can merge it in RC3

whole shale
#

Actually my bad the dynamic notch filters are just detected by noise.
Looks like the rpm filters are not available. That’s how they should be.

lethal spruce
#

I know 🙂