inav icon indicating copy to clipboard operation
inav copied to clipboard

Matek F411-Wing: 2 soft serial ports....please!

Open Wcallahan01 opened this issue 8 years ago • 50 comments

Current Behavior

Matek F411 target only allows for 1 soft serial port. This applies to both the Matek F411 mini and the F411-Wing boards...same issue with both boards in Inav. In BF the user can resource map and get 2 soft serial ports. FRsky Sport users really need the extra serial port so they can have GPS, Sbus, Sport & Smart audio connections.

The current target mapping typically requires choosing between Sport and Smart audio when configuring. This sacrifice doesn’t seem necessary if BF allows for mapping of 2 soft serial ports. I’m not an expert, but it seems possible if the 2nd soft serial was mapped to a pinout like they do in BF.

Desired Behavior

Add target with support for 2 soft serial ports (this is possible using resource mapping in BF already)

Suggested Solution

Add target with support for 2 soft serial ports (this is possible using resource mapping in BF already.)

Maybe remap to have Soft Serial 1 on ST1 and the extra soft serial 2 on the S7 pad? The S7 pad might be an ideal option since all plane and quad configurations are possible without it. It’s only needed if the user is doing a pan/tilt or similar function. Besides if your doing pan/tilt, flaps or similar you’d likely want the F405-Wing board anyways. The F411-Wing seems to be primarily installed on smaller flying wings anyways.

Who does this impact? Who is this for?

All F411 users and the F411-Wing board is becoming very popular lately!

Additional context

Wcallahan01 avatar Oct 10 '18 18:10 Wcallahan01

I am using this board and am able to get all of the above by using frsky fport firmware. Fport on TX 1 GPS on uart 2 and then I still have serialport I could use for smartaudio

ReganGTX avatar Oct 10 '18 18:10 ReganGTX

I guess you can make your own firmware with a second softserial like I did on my SpeedyBee AIO FC.

datamann avatar Oct 10 '18 18:10 datamann

I do have one setup the same way with R9 Fport, but I’ve been having some weird RSSI behavior. So I’m not trusting it too much yet.

There is a lot of frustration out there with just the 3 UARTS available. Check out the Matek F411/405 Facebook group.

I just happened to build a wing with the F411 mini 20x20 board before the wing version was released and noticed they give resource mapping to get 2 soft serials in BF. Seems like it might be possible in Inav too with this board becoming so popular lately.

I’m not savvy enough to create my own custom firmware...I’m mainly a nuts and bolts mechanical engineer by day. But I was reading the wiki stuff in how to do it. I’d love to take a crack at it but I’m just way out of date on programming like this.

Wes

On Oct 10, 2018, at 2:26 PM, Stig Sivertsen [email protected] wrote:

I guess you can make your own firmware with a second softserial like I did on my SpeedyBee AIO FC.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Wcallahan01 avatar Oct 11 '18 01:10 Wcallahan01

Yeah, I guess I can't speak for the RSSI as I haven't maiden it yet. I'm with you on the nuts and bolts. This f411-wing really needs a RSSI pad and one more uart, In my opinion. I have the F411-wing in the AR Wing 600 and I have the Matek F7 in the AR Wing 900.

ReganGTX avatar Oct 11 '18 01:10 ReganGTX

Haha I’ve got the same model and 411 board setup. I’m wanting to go back to sbus/sport firmware on the R9 but didn’t want to give up the smart audio.

On Oct 10, 2018, at 9:38 PM, ReganGTX [email protected] wrote:

Yeah, I guess I can't speak for the RSSI as I haven't maiden it yet. I'm with you on the nuts and bolts. This f411-wing really needs a RSSI pad and one more uart, In my opinion. I have the F411-wing in the AR Wing 600 and I have the Matek F7 in the AR Wing 900.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Wcallahan01 avatar Oct 11 '18 02:10 Wcallahan01

Nice, share time! https://www.dropbox.com/sh/oy06c7rm6p2uhf2/AABHRXaZ45OUzNpIn0pcpfmha?dl=0

ReganGTX avatar Oct 11 '18 02:10 ReganGTX

I created an iNav 2.0 hex with a second softserial port on the LED pin. Never used LEDs on any of my planes, so seemed a logical choice. I use that for Smart Audio now.

https://drive.google.com/open?id=1C1SQ1iQM9oZJ6rUg_CsunBCY_b7BasFl

cmenard avatar Oct 12 '18 16:10 cmenard

How do I get s copy of this hex file???? LED pad works for me. We

On Oct 12, 2018, at 12:33 PM, Curtis Menard [email protected] wrote:

I created an iNav 2.0 hex with a second softserial port on the LED pin. Never used LEDs on any of my planes, so seemed a logical choice. I use that for Smart Audio now.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Wcallahan01 avatar Oct 12 '18 19:10 Wcallahan01

The link in the previous comment

cmenard avatar Oct 14 '18 20:10 cmenard

Thank you very much! Just googled "F411-mini two softserials" and this popped up.

Alejandro-pucci avatar Oct 14 '18 21:10 Alejandro-pucci

Thanks for making softserial 2 for this fc. Hoping to test fly soon.

P-I-Engineer avatar Oct 30 '18 21:10 P-I-Engineer

Is this version going to be added as a supported target in future releases? Thanks

On Oct 30, 2018, at 5:15 PM, P-I-Engineer [email protected] wrote:

Thanks for making softserial 2 for this fc. Hoping to test fly soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Wcallahan01 avatar Oct 31 '18 14:10 Wcallahan01

It will be available in iNav 2.1. Until then here is a link for a 2.01 build that has the recent GPS fixes in it.

https://drive.google.com/file/d/1MKkmMg1P8BFyMYkoHgo4U1JT4sI-__zO/view?usp=sharing

cmenard avatar Nov 03 '18 01:11 cmenard

Awesome!!! Thank you Sir!

On Nov 2, 2018, at 9:43 PM, Curtis Menard [email protected] wrote:

It will be available in iNav 2.1. Until then here is a link for a 2.01 build that has the recent GPS fixes in it.

https://drive.google.com/file/d/1MKkmMg1P8BFyMYkoHgo4U1JT4sI-__zO/view?usp=sharing

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

Wcallahan01 avatar Nov 03 '18 11:11 Wcallahan01

@cmenard would this may also be a solution path to map analog RSSI to the LED pad ? I am lost in my build to get an RSSI indication using a L9R long range receiver from FrSky.

Daniel-1276 avatar Nov 04 '18 05:11 Daniel-1276

looks like softserial1 is using the 3rd adc channel (pin PA0). Using it as a adc is commented out. You'd need to do a custom build for rssi to work.

P-I-Engineer avatar Nov 05 '18 21:11 P-I-Engineer

@P-I-Engineer many thanks for the hint !! So i have quickly checked the MATEKF411 target about the pin assignment. Taking your comment into account I would see the following changes in target.h:

-> comment out SOFTSERIAL section

#define USE_SOFTSERIAL1         //Frsky SmartPort on rssi pad
#define SOFTSERIAL_1_TX_PIN      PA0
#define SOFTSERIAL_1_RX_PIN      PA0

-> uncomment

//#define ADC_CHANNEL_3_PIN           PA0
//#define RSSI_ADC_CHANNEL            ADC_CHN_3

...and most probably comment out timer config in line 35 in target.c

{ TIM5, IO_TAG(PA0),    TIM_Channel_1, 0, IOCFG_AF_PP_PD, GPIO_AF_TIM5, TIM_USE_PPM },  //use rssi pad for PPM/softserial_tx1

OK, so now the github-noob question, how do I compile my newly created "MATEKF411_RSSI" target with latest stable release of INAV ? Checked build instructions But unsure if master branch is only containing latest "stable" changes or if I have to somehow choose branches for released versions. Any help highly appreciated :)

Daniel-1276 avatar Nov 06 '18 10:11 Daniel-1276

just tested @cmenard 2.01 firmware, so far so good. I have smart port running on the led pad thanks

P-I-Engineer avatar Nov 09 '18 04:11 P-I-Engineer

@Daniel-1276 A new target will be available in version 2.1: MATEKF411_RSSI with RSSI input on ST1 pad and softserial port on the LED pad (#3996).

Please test with this build of 2.0.1: inav_2.0.1_MATEKF411_RSSI.hex.zip

shellixyz avatar Nov 09 '18 14:11 shellixyz

@shellixyz many thanks, that's very kind of you ! Will test it by end of next week and provide feedback.

Daniel-1276 avatar Nov 09 '18 15:11 Daniel-1276