Skip to content

Add SerialDualInterface that allows ble companions to be used over usb while ble is disconnected - #1779

Closed
alexsporn wants to merge 4 commits into
meshcore-dev:devfrom
alexsporn:feat/dual-serial-interface
Closed

Add SerialDualInterface that allows ble companions to be used over usb while ble is disconnected#1779
alexsporn wants to merge 4 commits into
meshcore-dev:devfrom
alexsporn:feat/dual-serial-interface

Conversation

@alexsporn

Copy link
Copy Markdown

Right now when the BLE firmware is used there is no way to connect the companion over USB.

This change introduces a SerialDualInterface that supports connecting to both BLE and USB. As soon as BLE is connected, the USB serial connection is disabled. When BLE is disconnected USB becomes available again.

This was tested on the nRF52 platform with a T1000-E.

@JDat

JDat commented Feb 21, 2026

Copy link
Copy Markdown

Interesting idea! Sometimes I want that my RP2040 can work both on USB Serial and on "real" serial using GPIO pins...

@alexsporn

alexsporn commented Feb 22, 2026

Copy link
Copy Markdown
Author

Added proper detection of USB serial connection on nrf52 and esp32 platforms so that devices with display properly show Connected or the BLE pin.

Tested successfully on:

  • NRF52:
    • SenseCap T1000-E
    • Wio Tracker L1 Pro
    • Heltec T114v2 with display
  • ESP32:
    • Heltec V4 with display

@alexsporn

Copy link
Copy Markdown
Author

Toggling BLE in the UI only disables BLE connection. I also changed ui-new to not show the BLE pin if the connection is disabled.

@liamcottle

Copy link
Copy Markdown
Member

Superseded by #3049

@liamcottle liamcottle closed this Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants