inav icon indicating copy to clipboard operation
inav copied to clipboard

Full duplex softserial-1 for Matek F411-WSE

Open Target0815 opened this issue 5 years ago • 26 comments

Current Behavior

Softserial-1 is currently only a TX.

Desired Behavior

Softserial-1 should be fullduplex RX/TX

Suggested Solution

Fullduplex Softwareserial-1 as this is also generated by default as a target for Matek F411-Wing. Only a small change is necessary:

So far: #define USE_SOFTSERIAL1 #define SOFTSERIAL_1_TX_PIN PB9 // ST1 pad #define SOFTSERIAL_1_RX_PIN PB9

New: #define USE_SOFTSERIAL1 #define SOFTSERIAL_1_TX_PIN PB9 // ST1 pad #define SOFTSERIAL_1_RX_PIN PB10 // LED pad

This would give us 2 full UARTS (GPS, CRSF) and 1 Softserial e.g. for the DJI FPV System (OSD).

Who does this impact? Who is this for?

All users with DJI FPV system on copters and plane. Or of course all users who need a 3rd serial port.

Target0815 avatar Jul 12 '20 21:07 Target0815

Issue-Label Bot is automatically applying the label Feature request to this issue, with a confidence of 0.73. 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 Jul 12 '20 21:07 issue-label-bot[bot]

would be nice to Control camera device although.

Sepp

satsepp avatar Jul 13 '20 05:07 satsepp

Full ack! For use of gps/crossfire/dji air unit it's neccessary to have a softserial with fullduplex RX/TX!

fchansa avatar Jul 13 '20 09:07 fchansa

Does anyone have a build with this enabled? I found one at https://fpv-community.de/threads/matek-f411-wse-softserial.85747/ but I'm unable to download.

gregm412 avatar Jul 19 '20 06:07 gregm412

Download from this post: https://fpv-community.de/threads/matek-f411-wse-softserial.85747/post-1051752 (may be, that you have to be registered at the forum).

Target0815 avatar Jul 19 '20 07:07 Target0815

Here: 2.5.1

Feldsalat avatar Jul 19 '20 07:07 Feldsalat

Please do it!

tobiasbischoff avatar Aug 02 '20 17:08 tobiasbischoff

My F411WSE is also waiting to be used with GPS + Smartport + Caddx Vista. Would highly appreciate this feature!

dl1bg avatar Aug 10 '20 20:08 dl1bg

@Feldsalat Tested, works fine. I do not have enough knowledge to make a pull request by my own. But if anyone does, I will be happy to test it, brew the coffee or spend a beer.

dl1bg avatar Oct 22 '20 20:10 dl1bg

Is this a new firmware that I can flash in INAV? I need to use my Caddx vista

alexvazquez avatar Nov 15 '20 13:11 alexvazquez

My F411WSE is also waiting to be used with GPS + Smartport + Caddx Vista. Would highly appreciate this feature!

Did you make it work? Appreciate it

alexvazquez avatar Nov 27 '20 13:11 alexvazquez

i need this for dji vtx

chr0mcom avatar Nov 27 '20 19:11 chr0mcom

My EFX Racer plane works very nice with INAV; automatic flaps, RTH on failsafe and OSD is really usefull. Unfortunately, there is no space for a bigger flight controller than the F411, so I can use this one or nothing.

UART1: GPS (RTH, speed measurement) UART2: Receiver (FPORT in my case) SOFTSERIAL1: DJI FPV system I do not really think that someone would buy full color LED for the price of DJI OSD or ESC telemetry.

Still using the build from @Feldsalat, but it would be really kind if someone could spend the time to make a pull request. As stated above, I would be happy to brew him the coffee or spend a beer.

dl1bg avatar Nov 30 '20 21:11 dl1bg

My EFX Racer plane works very nice with INAV; automatic flaps, RTH on failsafe and OSD is really usefull. Unfortunately, there is no space for a bigger flight controller than the F411, so I can use this one or nothing.

UART1: GPS (RTH, speed measurement) UART2: Receiver (FPORT in my case) SOFTSERIAL1: DJI FPV system I do not really think that someone would buy full color LED for the price of DJI OSD or ESC telemetry.

Still using the build from @Feldsalat, but it would be really kind if someone could spend the time to make a pull request. As stated above, I would be happy to brew him the coffee or spend a beer.

Nice, basically same build I need, where did you connected the DJI FPV RX and TX? Led pin and what other?

alexvazquez avatar Dec 04 '20 04:12 alexvazquez

@alexvazquez RX from DJI (Caddx Vista in this case): ST1 RT from DJI (Caddx Vista in this case): LED

dl1bg avatar Dec 20 '20 08:12 dl1bg

@alexvazquez RX from DJI (Caddx Vista in this case): ST1 RT from DJI (Caddx Vista in this case): LED

@dl1bg Does the firmware is available to flash via INAV or I have to download from someplace the HEX file? Appreciate it

alexvazquez avatar Dec 20 '20 14:12 alexvazquez

I would like this too! This board is great for small builds with gps/xfire/dji

thedoble avatar Jan 10 '21 10:01 thedoble

This seems fixed, isn’t it?

https://github.com/iNavFlight/inav/pull/6353

jstoeffler avatar Apr 29 '21 09:04 jstoeffler

Does anyone know where to get the firmware MATEKF411SE_FD_SFTSRL1 ? Appreciate so much

alexvazquez avatar May 13 '21 14:05 alexvazquez

This seems fixed, isn’t it?

#6353

Hi, did you get the HEX in order to test that OSD works on ST1 and LED pins?

Firmware 2.5.1 works great, based on the #6353 it was merged into master but I flashed firmware 2.6.1 and I can confirm that is not working. Only 2.5.1

alexvazquez avatar May 13 '21 15:05 alexvazquez

I've tried with the V3.0-rc1: https://github.com/iNavFlight/inav/releases/tag/3.0.0 – inav_3.0.0_MATEKF411SE_FD_SFTSRL1.hex

And I can confirm it works

jstoeffler avatar May 24 '21 09:05 jstoeffler

I've tried with the V3.0-rc1: https://github.com/iNavFlight/inav/releases/tag/3.0.0 – inav_3.0.0_MATEKF411SE_FD_SFTSRL1.hex

And I can confirm it works

I just flashed with V3.0. What pin is for Tx and what is Rx? Thanks

baddb1 avatar Apr 29 '22 00:04 baddb1

I've tried with the V3.0-rc1: https://github.com/iNavFlight/inav/releases/tag/3.0.0 – inav_3.0.0_MATEKF411SE_FD_SFTSRL1.hex And I can confirm it works

I just flashed with V3.0. What pin is for Tx and what is Rx? Thanks

@baddb1 If you read this thread you will find this information:

RX from DJI (Caddx Vista in this case): ST1
RT from DJI (Caddx Vista in this case): LED

jstoeffler avatar Apr 29 '22 09:04 jstoeffler

Does this work for HDZero? I can't seem to get it to work.

bnmoore avatar May 26 '22 20:05 bnmoore

Does this work for HDZero? I can't seem to get it to work.

No, HDZero needs an actual UART, not SoftSerial.

MrD-RC avatar May 26 '22 20:05 MrD-RC

Confirmed. HDZero worked on an actual UART. Is this a hard limit or just something that iNav or HDZero enforces due to performance?

bnmoore avatar May 27 '22 01:05 bnmoore