Using a Board with an ESP32 S3 to Communicate with the Pixhawk (Heltec WiFi LoRa 32(V3))

Hello, the idea for my project is to use a LoRa board integrating an ESP32 to control a drone remotely with simple commands (like takeoff, land).

To start, I made the necessary connections from the board to the Pixhawk’s telem2 port. I believe I have configured everything correctly in QGC, but I am unable to receive MAVLink messages. Using an oscilloscope, I can see that the information is passing through the cable. I’m not sure what the issue might be. Could it be the configuration? My code? The libraries I’m using?

Do you have any suggestions?

Here this is the result of ‘mavlink status’ command

instance #0:
    GCS heartbeat valid
    mavlink chan: #0
    type:        USB CDC
    flow control: OFF
    rates:
      tx: 21618.6 B/s
      txerr: 0.0 B/s
      tx rate mult: 1.000
      tx rate max: 100000 B/s
      rx: 90.9 B/s
      rx loss: 0.1%
    Received Messages:
      sysid:  1, compid:190, Total: 551 (lost: 266)
        msgid:   47, Rate:252.5 Hz, last 3.28s ago
        msgid:   51, Rate:  0.0 Hz, last 9.29s ago
        msgid:   23, Rate:  0.0 Hz, last 9.30s ago
        msgid:   43, Rate: 47.1 Hz, last 3.29s ago
        msgid:    2, Rate:  0.0 Hz, last 9.32s ago
        msgid:   21, Rate:  0.0 Hz, last 9.37s ago
        msgid:   76, Rate: 59.6 Hz, last 0.17s ago
        msgid:  126, Rate:  0.1 Hz, last 0.04s ago
        msgid:    4, Rate:  0.9 Hz, last 0.00s ago
        msgid:    0, Rate:  0.9 Hz, last 0.23s ago
      sysid:255, compid:190, Total: 3719 (lost: 1)
    FTP enabled: YES, TX enabled: YES
    mode: Config
    Forwarding: On
    MAVLink version: 2
    transport protocol: serial (/dev/ttyACM0 @2000000)
    ping statistics:
      last: 0.51 ms
      mean: 1.72 ms
      max: 126452.73 ms
      min: 0.33 ms
      dropped packets: 1241

instance #1:
    mavlink chan: #1
    type:        GENERIC LINK OR RADIO
    flow control: ON
    rates:
      tx: 0.0 B/s
      txerr: 1483.1 B/s
      tx rate mult: 0.050
      tx rate max: 2000000 B/s
      rx: 0.0 B/s
      rx loss: nan%
    FTP enabled: YES, TX enabled: YES
    mode: Onboard
    Forwarding: Off
    MAVLink version: 2
    transport protocol: serial (/dev/ttyS2 @57600)

instance #2:
    mavlink chan: #2
    type:        GENERIC LINK OR RADIO
    flow control: ON
    rates:
      tx: 0.0 B/s
      txerr: 1533.3 B/s
      tx rate mult: 0.050
      tx rate max: 2000000 B/s
      rx: 0.0 B/s
      rx loss: 0.0%
    FTP enabled: YES, TX enabled: YES
    mode: Onboard
    Forwarding: Off
    MAVLink version: 2
    transport protocol: serial (/dev/ttyS1 @57600)
1 Like

Hi! were you able to get this to work?