DroneBridge / ESP32

DroneBridge for ESP32. A secure & transparent telemetry link with support for WiFi and ESP-NOW. Supporting MAVLink, MSP, LTM or any other protocol
Apache License 2.0
340 stars 102 forks source link

The flight control board with the ESP32-C3 cannot connect to QGroundControl properly #66

Closed YangChen1234 closed 3 months ago

YangChen1234 commented 3 months ago

I don't know how much to fill in the UART TX Pin and UART RX Ping on the DroneBridge page,I tried UART TX Pin = 3, UART RX Pin = 2 according to the schematic, but this did not connect to the ground station cc7ebf06f1c81bcc46ce4abe0b700f5

ae4bfa3e907206e0ce1694bb14448ca

829e67fc2d72abdee0dde552788e6d6

QQ浏览器截图20240311144525

seeul8er commented 3 months ago

Try switching them up: TX = 2 & RX = 3. The the web interface must show UART data being received. Otherwise QGroundControl will not be able to see anything.

YangChen1234 commented 3 months ago

I just tried to change the order and still can't connect to the ground station. How can I check the data from the serial port? thank you. However, I connected an esp32-c3 development board outside the flight control to connect to the ground station normally 微信图片_20240311163759 c152e3ed2dbcbd4af8b7c309036b690

YangChen1234 commented 3 months ago

Because I want to achieve the ESP32-C3 directly welded to the flight control board, without having to attach an external development board

seeul8er commented 3 months ago

What flight controller exactly are you using (is there more documentation)? Based on the schematic I cannot tell how the onboard ESP32C3 is supposed to receive the telemetry from the flight controller chip.

YangChen1234 commented 3 months ago

Could you please help me check and confirm what to fill in for UART RX Pin and UART TX Pin.Thank you very much.

YangChen1234 commented 3 months ago

QQ浏览器截图20240311162758 This is my configuration on Mission Planner.

YangChen1234 commented 3 months ago

QQ浏览器截图20240311184114 QQ浏览器截图20240311184103

seeul8er commented 3 months ago

I used AOCODARC STM32F405V3 flight control This is the schematic, which connects BT-RX of the ESP32-C3 to TX5(PC12) of the stm32 BT-TX to RX5 (PD2) of the stm32

You are right according to the schematic your first configuration should be correct: RX=2 & TX=3. If configured correctly the ESP32 should be able to receive data from the FC. This is indicated by a growing number displayed as "UART received bytes" in the top left corner of the web interface. If that number remains 0 the ESP32 is not receiving anything (and therefore is not forwarding anything to QGroundControl). This could mean the pins are not configured correctly or the FC is not sending any data because of his configuration.

So first things first: Is the "UART received bytes" indicator showing any data in the web interface?

lida2003 commented 3 months ago

I used AOCODARC STM32F405V3 flight control This is the schematic, which connects BT-RX of the ESP32-C3 to TX5(PC12) of the stm32 BT-TX to RX5 (PD2) of the stm32

You are right according to the schematic your first configuration should be correct: RX=2 & TX=3. If configured correctly the ESP32 should be able to receive data from the FC. This is indicated by a growing number displayed as "UART received bytes" in the top left corner of the web interface. If that number remains 0 the ESP32 is not receiving anything (and therefore is not forwarding anything to QGroundControl). This could mean the pins are not configured correctly or the FC is not sending any data because of his configuration.

So first things first: Is the "UART received bytes" indicator showing any data in the web interface?

@seeul8er I think GPIO2 & 3 should be working.

And please help us to remove the link of F405V3BLE-20231113.pdf, as it's NOT a public file, thanks!

图片

4O6FPV commented 3 months ago

I think there is something more going on here as my uart received bytes stops as soon as I try and connect via UDP. this is probably the same as my issue opened .

lida2003 commented 3 months ago

I think there is something more going on here as my uart received bytes stops as soon as I try and connect via UDP. this is probably the same as my issue opened .

Thanks for the info. Is there any links about the issue? as we are going to test the link below, which we think it's passthough tunnel. seiral tool ---- serial adapter ---- udp ---- udp tool

4O6FPV commented 3 months ago

I think there is something more going on here as my uart received bytes stops as soon as I try and connect via UDP. this is probably the same as my issue opened .

Thanks for the info. Is there any links about the issue? as we are going to test the link below, which we think it's passthough tunnel. seiral tool ---- serial adapter ---- udp ---- udp tool

Mine was my own fault having cts/rts pins swapped which you do not even have enabled. do you have a link to the board you have looks very close to the waveshare one I have?

lida2003 commented 3 months ago

do you have a link to the board you have looks very close to the waveshare one I have?

Do you mean our AOCODARC F405 V3 board?

It's just on the market, and bf/inav supported, and ardupilot is good to go.

Anyway, it has ESP32-C3 onboard, so we are trying to use for close range wireless parameter settings.

YangChen1234 commented 3 months ago

Thank you for your help. I have replaced a flight controller that can connect to the ground station.UART RX Pin =2 & UART TX Pin =3,this is fine. 微信图片_20240312094614

微信图片_20240312094610