Skip to content

Comments

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

Open
alexsporn wants to merge 4 commits intomeshcore-dev:devfrom
alexsporn:feat/dual-serial-interface
Open

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

Conversation

@alexsporn
Copy link

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
Copy link

JDat commented Feb 21, 2026

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

@alexsporn
Copy link
Author

alexsporn commented Feb 22, 2026

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
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.

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.

2 participants