Matek F411 Wing full soft serial 2 port (RX/TX) on S2/S7
Current Behavior
The Matek F411 Wing with SFTSRL2 Firmare has 2x Softserial but just 2x TX no RX/TX
Desired Behavior
It would be better to have a third "full" serial with RX TX as Serial 2 and leave Serial 1 as TX only.
Suggested Solution
The most unused connections on a Matek F411 Wing are S2/S7 solder Pads (PB5/PA15). I don't know if a additional adjustment for the timer needed (S2/S7 are actual on different timer) ? - i just test this with defined S5/S6 (same timer) as Soft Serial 2 RX/TX and it worked great (tested with a GPS connected).
#if defined(MATEKF411_SFTSRL2)
#define USE_SOFTSERIAL1
#define SOFTSERIAL_1_TX_PIN PA0 // ST1 pad
#define SOFTSERIAL_1_RX_PIN PA0
#define USE_SOFTSERIAL2
#define SOFTSERIAL_2_TX_PIN PB5 // S2
#define SOFTSERIAL_2_RX_PIN PA15 // S7
#define SERIAL_PORT_COUNT 5
Who does this impact? Who is this for?
Additional CPU based serial port on Matek F411 for example to use ESP32 LORA INavRadar - when UART 1/2 is in use for CRSF/GPS.
DEF_TIM(TIM3, CH1, PB4, TIM_USE_MC_MOTOR | TIM_USE_FW_MOTOR, 0, 0), // S1_OUT DEF_TIM(TIM3, CH2, PB5, TIM_USE_MC_MOTOR | TIM_USE_FW_MOTOR, 0, 0), // S2_OUT DEF_TIM(TIM4, CH1, PB6, TIM_USE_MC_MOTOR | TIM_USE_FW_SERVO, 0, 0), // S3_OUT DEF_TIM(TIM4, CH2, PB7, TIM_USE_MC_MOTOR | TIM_USE_FW_SERVO, 0, 0), // S4_OUT DEF_TIM(TIM2, CH2, PB3, TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S5 DEF_TIM(TIM2, CH3, PB10, TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S6 DEF_TIM(TIM2, CH1, PA15, TIM_USE_MC_SERVO | TIM_USE_FW_SERVO, 0, 0), // S7 DEF_TIM(TIM1, CH1, PA8, TIM_USE_ANY, 0, 0), //softserial_tx2 - 2812LED TIM_USE_LED DEF_TIM(TIM5, CH1, PA0, TIM_USE_PPM, 0, 0), //use rssi pad for PPM/softserial_tx1
Any changes here needed when PB5 and PA15 are should used as RX/TX?
Maybe this #4567
Hi Snappy,
I am also interested in an extra "full" softserial port. Are you saying you have built a working binary with softserial1 tx on ST1/RSSI pad and softserial2 rx/tx on S5/S6? If so, could you please share it? :) Thanks,
Alejandro
Is it technically possible to get another RX/TX interface? I could need it for two F411-Wing builds (FX-61 and Twinstar) that I would like to upgrade with iNav radar but lacking one UART for the ESP32 board (UARTs used by GPS and CRSF).
Many thanks in advance, Konrad
has this been made into a firmware build or anything? Kind of new to this but want to hook up CSRF for bluetooth connectivitely, only to find out today it needs another uart since i use both gps and csrf. If so, does anyone have the file?
You can try this build with a full-duplex softserial on ST1(TX)/LED(RX): inav_2.1.0_MATEKF411_FD_SFTSRL.hex.zip
We could use S3/S4 for softserial but then we will need to change stuff in the firmware/configurator so that the displayed output mapping is correct.
i tried s2/led but it doesnt work only on s5/s6 (servo 3/4) i think there must be changes in timer also - for s5/s6 timer are the same in code
Using S2 is a bad idea because it uses the same timer as S1. We can't change the timers they are bound to pins and there is only one available per pin for the pins used by this board on this MCU.
You can try this build with a full-duplex softserial on ST1(TX)/LED(RX): inav_2.1.0_MATEKF411_FD_SFTSRL.hex.zip
Please add this as a default asset for future inav releases. Thanks.
Is it available for 2.2.0 yet? I would like to use it with Inav radar. Uart 1 = crsf, uart 2= msp on ESP32 and softserial = GPS. This should work?
Thanks, Konrad
Dronek [email protected] schrieb am Mo., 27. Mai 2019, 06:48:
You can try this build with a full-duplex softserial on ST1(TX)/LED(RX): inav_2.1.0_MATEKF411_FD_SFTSRL.hex.zip https://github.com/iNavFlight/inav/files/3124046/inav_2.1.0_MATEKF411_FD_SFTSRL.hex.zip
Please add this as a default asset for future inav releases. Thanks.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/4611?email_source=notifications&email_token=AHGHZ5VG2FVVHW56GBEDBRDPXNRYZA5CNFSM4HF2XECKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWIYKAA#issuecomment-496076032, or mute the thread https://github.com/notifications/unsubscribe-auth/AHGHZ5TIMXCV24DH3WU44STPXNRYZANCNFSM4HF2XECA .
@konraddi @Dronek It is not available yet. I will make a PR for 2.2-RC2
Should it be possible to use the software serial for MSP over CRSF? I am using it at 57600 bauds (I also tried 19200 but absolutely nothing happens) and the communication stops after receiving the MultiWii API version 2.3.0. Then I get the 10s timeout and that's it.
I guess soft serial can do GPS but not crsf. Just use an uart for the crsf receiver, and plug your GPS on soft serial. That should work in theory, did that some time ago on a F1 or F3 board...
Matthias Hryniszak [email protected] schrieb am So., 2. Juni 2019, 11:29:
Should it be possible to use the software serial for MSP over CRSF? I am using it at 57600 bauds (I also tried 19200 but absolutely nothing happens) and the communication stops after receiving the MultiWii API version 2.3.0. Then I get the 10s timeout and that's it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/iNavFlight/inav/issues/4611?email_source=notifications&email_token=AHGHZ5R562TNRWEZBHXEXRTPYOHHHA5CNFSM4HF2XECKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWXRUKY#issuecomment-498014763, or mute the thread https://github.com/notifications/unsubscribe-auth/AHGHZ5RY32ZLMJ3AOAXRU3LPYOHHHANCNFSM4HF2XECA .
Well.. the CRSF receiver is on UART1 and I guess what I was aiming for is to put the CRSF bridge to SoftSerial1 while using GPS on UART2. So I guess the bridged serial over CRSF (not the CRSF connection itself) won't work with SoftSerial1. I'll try what you suggested though.
So... on that FC GPS on SoftSerial1 works only in NEMA mode :( and with lots of timeouts. I am using BN-880 GPS. Compass works OK on I2C and the GPS starts without any problems on harware UART in UBLOX7 mode. Any hints on how to configure it to make it stable (and possibly in UBLOX7 mode, please)?
hello
i am trying to understand how to map s5 or s6 on my matek f411 mini se fc to the soft serial rx .. but i cannot understand who is who on the resource list.
is there a map for this ? somewhere ?
how can i tell what is the soldering pad for A03 ?
thanks.
resource
IO:
A00: FREE A01: FREE A02: FREE A03: SERIAL2 UART RX A04: MPU CS A05: SPI1 SCK A06: SPI1 MISO A07: SPI1 MOSI A08: MOTOR2 OUT A09: MOTOR3 OUT A10: FREE A11: USB IN A12: USB OUT A13: PINIO1 OUT A14: MPU EXTI A15: SERIAL1 UART TX B00: ADC CH1 B01: ADC CH2 B02: BEEPER OUT B03: SERIAL1 UART RX B04: MOTOR1 OUT B05: FREE B06: I2C1 SCL B07: I2C1 SDA B08: FREE B09: SOFTSERIAL1 UART TX B10: FREE B11: FREE B12: OSD CS B13: SPI2 SCK B14: SPI2 MISO B15: SPI2 MOSI C00: FREE C01: FREE C02: FREE C03: FREE C04: FREE C05: FREE C06: FREE C07: FREE C08: FREE C09: FREE C10: FREE C11: FREE C12: FREE C13: LED1 OUT C14: LED2 OUT C15: FREE D02: FREE
i am trying to understand how to map s5 or s6 on my matek f411 mini se fc to the soft serial rx .. but i cannot understand who is who on the resource list.
iNav does not have resource mapping like Betaflight. The softserial pins are in dedicated location.
Thank you
So how to know this dedicated location?
Guy A
On 27 Oct 2020, at 2:31, Jetrell [email protected] wrote:
i am trying to understand how to map s5 or s6 on my matek f411 mini se fc to the soft serial rx .. but i cannot understand who is who on the resource list.
iNav does not have resource mapping like Betaflight. The softserial pins are in dedicated location.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.
Thank you So how to know this dedicated location? Guy A
From the Matek manual. http://www.mateksys.com/?portfolio=f411-minise#tab-id-3