inav icon indicating copy to clipboard operation
inav copied to clipboard

Omnibus F4Pro SBUS not working (Inav Problem?)

Open MaFel opened this issue 8 years ago • 44 comments

I´m using the omnibus F4Pro (the one with SD slot) and I can´t get a connection from my FrSky receiver via SBUS to the flight controller.

With Betaflight the same setup is working fine (same serial rx activated) and also Inav is getting connection to the receiver when I´m using SPEKTRUM2048 and move the sticks of my transmitter the bars also moving in Inav and failsafe is off. If I switch back to SBUS, failsafe (at the top on Inav) turns on and all bars are at 1500.

Does anyone know how I can fix the problem? Already tried to turn on/off the sbus conversation in the cli To the FC it´s the Omnibus F4 V2.1 from Banggood, Betaflight version 1.8 stable.

MaFel avatar Dec 09 '17 00:12 MaFel

What target do you use to flash? Clones often require either OMNIBUSF4PRO or OMNIBUSF4V3 targets. They mostly differ in a way how S.Bus inverter is connected.

digitalentity avatar Dec 09 '17 01:12 digitalentity

I'm flashing OMNIBUSF4PRO, all other OMNIBUS___ are not working on the FC. Also Just 1.8 is working, the Versions before aren't. On betaflight I'm flashing OMNIBUSF4SD wich ist working fine with SBUS.

MaFel avatar Dec 09 '17 07:12 MaFel

@MaFel If I understand correctly you said everything is working if instead of choosing S.BUS as receiver type you select SPEKTRUM2048 ?

shellixyz avatar Dec 09 '17 15:12 shellixyz

Yes thats right. Of course the Bars are showing wrong values but if I move a stick in the Taranis the Bars are moving in INav (4 at the same time or so)

MaFel avatar Dec 09 '17 15:12 MaFel

@MaFel OK so you get something but it is not good. I thought it could be an issue with the configurator but it doesn't look like it. Is your S.BUS receiver on UART3 ?

shellixyz avatar Dec 09 '17 15:12 shellixyz

It's on UART6 I checked it with betaflight where SBUS is working. It might be a problem with the board because other buyers on BG are talking about similar issues

MaFel avatar Dec 09 '17 16:12 MaFel

Please try this build: inav_1.8.0_OMNIBUSF4PRO.hex

shellixyz avatar Dec 09 '17 17:12 shellixyz

OMG it´s working can´t believe it! Thank you so much!!! I was trying days to fix it... I will share this on the Banggood you helped a lot of people!

MaFel avatar Dec 09 '17 18:12 MaFel

@MaFel You should try the OMNIBUSF4V3 target to see if it works. I think it should work fine and that it is the one you should use.

Do you know if your board has an inverter on UART3 ?

shellixyz avatar Dec 09 '17 20:12 shellixyz

OF4V3 is not working. The board is not connecting to the computer anymore. The only Version that was working is F4Pro and F4Pro Led. I dont think there is a second Inverter. I checked with the multimeter the SBus Pin on the FC ist connected to UART6. My GPS ist running in UART3

MaFel avatar Dec 09 '17 21:12 MaFel

@MaFel OK thanks. Please reopen the issue as a proper fix has not been found and merged yet.

shellixyz avatar Dec 09 '17 22:12 shellixyz

But the .hex you send me works fine!

MaFel avatar Dec 09 '17 22:12 MaFel

Yes but I don't know if we need to add another target or what to allow the fix to be made in the source code for everybody. For the moment people using the configurator can't flash a working version directly.

shellixyz avatar Dec 09 '17 22:12 shellixyz

@digitalentity This looks like a bug. It looks like OMNIBUSF4PRO or OMNIBUSF4V3 can't be used on this board. Should a new target be created ? The fix consisted in adding the inverter line for UART6 in the OMNIBUSF4PRO target.

shellixyz avatar Dec 09 '17 22:12 shellixyz

ok, here is a corrected pinout from the comments. The resistance between the the SBUS-pin UART6 0.7ohm so the might be a inverter inbetween.

f4 2

MaFel avatar Dec 09 '17 22:12 MaFel

@MaFel I doubt it because 0.7ohm is a dead short. It is probably what you get when touching the probes of your multimeter together.

shellixyz avatar Dec 09 '17 22:12 shellixyz

@shellixyz what did you change to buid that hex?

digitalentity avatar Dec 10 '17 00:12 digitalentity

@digitalentity I did this https://github.com/shellixyz/inav/commit/31d1aa94e2792398821af6c18910bbd17d5d8c79

shellixyz avatar Dec 10 '17 00:12 shellixyz

Aha, so there is another option for SBUS - UART3. Crap, this is yet another board variant.

digitalentity avatar Dec 10 '17 01:12 digitalentity

Yes, we probably need another target for this - with removed I2C (which is shared with UART3 and is unusable on that board due to inverter). This board is probably based on OmnibusF4 Pro Corner schematics...

digitalentity avatar Dec 10 '17 01:12 digitalentity