inav icon indicating copy to clipboard operation
inav copied to clipboard

MS5611 and HMC5883 not detected in SPRacing F3 Deluxe

Open DrSensor opened this issue 9 years ago • 54 comments

In Betaflight It can Auto detected and read fine. But in Inav its not auto detected. Also, when I set manually set baro_hardware = MS5611 the CPU load rise to about 660% screenshot from 2017-04-20 19-27-23

DrSensor avatar Apr 20 '17 12:04 DrSensor

Please consider providing details of your setup, complete dump and bootlog.

digitalentity avatar Apr 21 '17 07:04 digitalentity

Just tested a SPR F3 deluxe on both 1.6.1 and 1.7.0 RC1. Both version correctly detected and use the available hardware.

rb1205 avatar Apr 24 '17 08:04 rb1205

I guess it's a hardware quality issue. The fact that sensor is being detected by Betaflight doesn't mean that it's functioning properly. INAV is much less tolerant to faulty sensors.

digitalentity avatar Apr 25 '17 02:04 digitalentity

Have same issue. Old F3 Deluxe was works fine, but with new got problem, which described by cimenx. And yes, in BF all ok - at least on graphic on "Sensors" tab magnetometer and barometer works like a charm. Interesting thing: this sensors works just about fine in iNav 1.5.0. In 1.5.1 they don't. In 1.5.0 only one issue - magnetometer randomly resets. 2017-04-25 02 49 44

dragon1020 avatar Apr 25 '17 10:04 dragon1020

Neigher Betaflight nor INAV before 1.6 have hardware failure detection. INAV 1.6 and above will detect and disable failing or unreliable sensors for safety. I would assume everybody will want to know about sensor failure before taking off.

For the record, both baro and compass work reliably on my genuine SPRacingF3 board.

digitalentity avatar Apr 25 '17 10:04 digitalentity

And why iNav 1.5.1. didn't work as well? Only 1.5.0 (and probably below). Not all of us can buy genuine F3. So we can't fly?

dragon1020 avatar Apr 25 '17 11:04 dragon1020

There is no difference in 1.5.1 and 1.5.0 regarding i2c bus operations on F3 targets (including SPRacingF3). The board should work equally good (or bad) with both firmware versions. Most likely you are experiencing random sensor failure that manifest itself on all firmwares.

Quality problems are very frequent with Chinese boards - you should contact the seller of your board for solving quality issues.

Regarding your question wether you can fly or not: in the end it's either blocking faulty boards from flying or having tons of "fly-away" reports. To me choice is pretty much obvious,.

digitalentity avatar Apr 25 '17 11:04 digitalentity

Random sensors failure should be random, right? :) But I (and one more dude, check your VK group, please) get working (almost) board at 1.5.0, and it hangs with over 600% CPU load at 1.5.1. I tested more than once. Something has done between 1.5.0 and 1.5.1.

dragon1020 avatar Apr 25 '17 11:04 dragon1020

I'm having exactly the same issue with an SPF3 board : MS5611 & HMC5883 are detected and seem to be working fine with iNav 1.5.0. In the following versions, they are not detected and if I manually select them, CPU load go up to 600%.

olivierlando avatar Apr 26 '17 11:04 olivierlando

olivierlando, welcome to the club. ;) With you I know 5 peoples with this problem. Where you bought your board?

dragon1020 avatar Apr 26 '17 12:04 dragon1020

Nothing affecting I2C and sensor detection on SPRacingF3 board was done between 1.5.0 and 1.5.1. The glitch is triggered by something else. I probably should buy one board from the same source as you guys to investigate.

digitalentity avatar Apr 26 '17 12:04 digitalentity

Konstantin, I (and other guys) is ready to help as we can. Just say what to do. :) May be this issue didn't link to I2C?

dragon1020 avatar Apr 26 '17 12:04 dragon1020

It's virtually impossible to debug remotely. I would use logic analyzer to check the activity on I2C bus to see what sensor locks up the bus.

digitalentity avatar Apr 26 '17 12:04 digitalentity

May be I will send to you my board, when I get refund for it? May be this will be faster, than order it from China?

dragon1020 avatar Apr 26 '17 12:04 dragon1020

@dragon1020 where are you located?

digitalentity avatar Apr 26 '17 12:04 digitalentity

Moscow, Russia. :)

dragon1020 avatar Apr 26 '17 12:04 dragon1020

I bought mine on Amazon : https://www.amazon.fr/gp/product/B01D8EK1YY . I've made some more search and it seems that there are often I2C issues with this version of the board. In Cleanflight the sensors are detected but I can see an lot of I2C errors... I'm going to ask for a refund. Maybe these blocking errors in iNav have saved my plane ;)

olivierlando avatar Apr 26 '17 12:04 olivierlando

That's the point of hardware failure detection - you want to know about the failure before you fly :laughing:

digitalentity avatar Apr 26 '17 12:04 digitalentity

@dragon1020 yes, it would definitely be faster than ordering from China. Ping me on VK - once I have failing hardware we'll get this squared out - maybe there is some hardware or software solution to this issue.

digitalentity avatar Apr 26 '17 12:04 digitalentity

Ok, but I bought mine on Ali, from a famous :) supplier ReadytoSky.

dragon1020 avatar Apr 26 '17 12:04 dragon1020