Firmware Version: 1.14.1
Approach: Subclassing & Separate Examples Status: Production Ready - 228/228 Tests Passing
The BitChat integration enables MeshCore devices to communicate with the BitChat Android app through a bridge layer that translates between BitChat protocol and MeshCore mesh networking. This is an additive feature that preserves all existing MeshCore functionality while adding BitChat compatibility.
- Additive, Not Substitutive: BitChat support is added alongside MeshCore, not replacing it
- No Infrastructure Changes: Repeaters and room servers require no modifications
- Encapsulation Strategy: BitChat messages are encapsulated in standard MeshCore packets
- Backward Compatible: Existing MeshCore nodes continue to work normally
- Isolated Implementation: BitChat logic in separate classes for easy future updates
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β MeshCore Device β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββββββ β
β β WITH DISPLAY (Menu) β β BUTTON-ONLY (T1000-E) β β
β β βββββββββββββββββββββββ β β ββββββββββββββββββββββββββ β β
β β β BITCHAT Page β β β β 5x Button Press β β β
β β β βββββββ βββββββ β β β β (Quintuple) β β β
β β β β M β β B β β β β β ββββββββββββββββββββ β β β
β β β βMesh β βBitC β β β β β β LED: 3 blinks β β β β
β β β ββββ¬βββ ββββ¬βββ β β β β β Buzzer: tone β β β β
β β β ββββββ¬ββββ β β β β ββββββββββ¬ββββββββββ β β β
β β ββββββββββββΌβββββββββββ β β βββββββββββββΌβββββββββββββ β β
β ββββββββββββββββΌβββββββββββββββ βββββββββββββββββΌβββββββββββββββββ β
β β β β
β βββββββββββββββββββββ¬ββββββββββββββββ β
β βΌ β
β ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β SerialBLEInterface β β
β β β’ MeshCore UART Service (6E400001-B5A3-F393-E0A9-E50E24DCCA9E) β β
β β β’ BitChat Service (F47B5E2D-4A9E-4C5A-9B3F-8E1D2C3A4B5C) β β
β β β’ Only ONE service advertised at a time β β
β β β’ Auto-disconnects clients on mode switch β β
β β β’ PIN auth (MeshCore) / Open access (BitChat) β β
β ββββββββββββββββββββββββββββββββββ¬ββββββββββββββββββββββββββββββββββββ β
β β β
β βββββββββββββΌβββββββββββββ β
β β BitchatBridge β β
β β β’ Encapsulate ββββΊ MeshCore GRP/TXT β
β β β’ Decapsulate ββββ BC magic header β
β β β’ Loop prevention β β
β βββββββββββββ¬βββββββββββββ β
β β β
β βββββββββββββΌβββββββββββββ β
β β MyMesh β β
β β (MeshCore) β β
β βββββββββββββ¬βββββββββββββ β
β β β
β βββββββββββββΌβββββββββββββ β
β β LoRa Radio β β
β β (SX1262/etc) β β
β ββββββββββββββββββββββββββ β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
This version uses Subclassing Architecture for cleaner integration:
βββββββββββββββββββ
β BaseChatMesh β (MeshCore Core - unchanged)
ββββββββββ¬βββββββββ
β
ββββββββββΌβββββββββ βββββββββββββββββββ
β BitchatMesh βββββββ€ BitchatBridge β (BitChat Extensions)
ββββββββββ¬βββββββββ βββββββββββββββββββ
β
ββββββββββΌβββββββββ
β MyMesh β (Application Layer)
βββββββββββββββββββ
Benefits:
- Only 2 core files modified (backward-compatible additions)
- Easy migration to future MeshCore versions (1.15.0, etc.)
- Comprehensive test suite (228 tests)
- Zero merge conflicts
| Feature | nRF52 | ESP32 |
|---|---|---|
| Menu-based BLE mode switching | β | β |
| Button-based BLE mode switching | β | β |
| Visual mode indicator (M/B) | β | β |
| LED/buzzer feedback (button-only) | β | β |
| BitChat BLE service | β | β |
| MeshCore UART service | β | β |
| PIN authentication (MeshCore mode) | β | β |
| Open access (BitChat mode) | β | β |
Navigate to the BITCHAT page and press ENTER to toggle between modes. Display shows large M (MeshCore) or B (BitChat).
Press the user button 5 times rapidly (within ~3 seconds) to toggle modes. See Button-Based Mode Switching for details.
| Document | Description |
|---|---|
| Build Configuration | ENABLE_BITCHAT flag, build options, compilation settings |
| Device Compatibility | Complete list of compatible/incompatible devices |
| Button-Based Mode Switching | T1000-E and button-only device guide |
| Protocol Specification | BitChat wire protocol format |
| Encapsulation Format | MeshCore encapsulation header and format |
| Payloads | BitChat payload types and structures |
| BLE Service | BLE GATT service specification |
| Architecture | Component architecture and data flow |
| Document | Description |
|---|---|
| Integration Guide (1.14.1) | Complete integration guide for developers |
| Code Review Report | Code review findings and security analysis |
| Migration Guide | Porting to new MeshCore versions |
Add to your platformio.ini:
build_flags =
-D ENABLE_BITCHAT=1
-D BLE_MODE_SWITCHING=1# Build for Wio Tracker L1
pio run -e seeed-wio-tracker-l1
# Run test suite
pio test -e native_bitchatBitChat mode is controlled on-device via the UI or button presses:
With Display:
- Navigate to BITCHAT page using LEFT/RIGHT buttons
- Press ENTER to toggle between MeshCore and BitChat modes
- Display shows large M (MeshCore) or B (BitChat)
Button-Only (T1000-E):
- Press user button 5 times rapidly (within ~3 seconds)
- LED blinks 3 times (fast=Bitchat 150ms, slow=MeshCore 500ms)
- Buzzer plays acknowledgment tone (if available)
Note: The device always boots in MeshCore mode. Mode is not persisted across reboots.
- BitChat app sends MESSAGE via BLE to
#meshchannel BitchatBLEServicereceives and parses messageBitchatBridgeformats for MeshCore withπ±prefix- Message sent as
PAYLOAD_TYPE_GRP_TXTvia mesh on#meshchannel
- MeshCore receives group message on
#meshchannel BitchatBridgeverifies channel secret matchesSHA256("#mesh")BitchatBridgedetects non-BitChat origin (noπ±prefix)- Message formatted as BitChat MESSAGE with TLV payload
- Sent to BitChat app via BLE notification for
#meshchannel
The #mesh hashtag channel is the primary interoperability channel between BitChat and MeshCore.
#mesh secret = first_16_bytes(SHA256("#mesh"))
= 0x5B664CDE0B08B220612113DB980650F3
The channel secret is the first 16 bytes of the SHA256 hash of the UTF-8 encoded channel name string (including the # prefix).
Both BitChat Android app and MeshCore firmware derive the same channel secret using this mechanism, enabling seamless group messaging.
| Issue | Status | Workaround |
|---|---|---|
| BLE Notification Freeze | MeshCoreβBitChat notifications currently disabled on nRF52 | |
| Channel Hash Mismatch | β Fixed | #mesh channel verified by full 32-byte secret |
| Simultaneous BLE Services | β HW Limit | Menu-based switching (both nRF52 and ESP32) |
| DM Support | π§ Planned | Basic infrastructure in place |
| Multiple Hashtag Channels | π§ Planned | Currently #mesh only |
| Component | Compatibility |
|---|---|
| MeshCore Android App | β Full (when in MeshCore BLE mode) |
| BitChat Android App | β Full (when in BitChat BLE mode) |
| MeshCore Repeaters | β No changes required |
| MeshCore Room Servers | β No changes required |
| Other MeshCore Nodes | β Backward compatible |
Devices without displays or buttons may receive BitChat support through:
- CLI Configuration:
bitchat enablecommand via serial - Startup Mode: Default to BitChat mode on boot
- Companion App: Configure via USB/BLE from phone
Planned for future releases. Priority will be given to popular devices like:
- Xiao series
- Heltec Mesh Solar
If you have any of the build-verified devices above, please test and report your results:
- Flash the firmware to your device
- Test core functionality:
- BLE pairing with BitChat app
- Sending/receiving messages
- Display navigation (if applicable)
- Button controls
- Report results in GitHub Issues
Your feedback helps move devices from "build-verified" to "real-world tested"!
MeshCore is a lightweight, portable C++ library that enables multi-hop packet routing for embedded projects using LoRa and other packet radios. It is designed for developers who want to create resilient, decentralized communication networks that work without the internet.
MeshCore provides the ability to create wireless mesh networks, similar to Meshtastic and Reticulum but with a focus on lightweight multi-hop packet routing for embedded projects. Unlike Meshtastic, which is tailored for casual LoRa communication, or Reticulum, which offers advanced networking, MeshCore balances simplicity with scalability, making it ideal for custom embedded solutions., where devices (nodes) can communicate over long distances by relaying messages through intermediate nodes. This is especially useful in off-grid, emergency, or tactical situations where traditional communication infrastructure is unavailable.
- Multi-Hop Packet Routing
- Devices can forward messages across multiple nodes, extending range beyond a single radio's reach.
- Supports up to a configurable number of hops to balance network efficiency and prevent excessive traffic.
- Nodes use fixed roles where "Companion" nodes are not repeating messages at all to prevent adverse routing paths from being used.
- Supports LoRa Radios β Works with Heltec, RAK Wireless, and other LoRa-based hardware.
- Decentralized & Resilient β No central server or internet required; the network is self-healing.
- Low Power Consumption β Ideal for battery-powered or solar-powered devices.
- Simple to Deploy β Pre-built example applications make it easy to get started.
- Off-Grid Communication: Stay connected even in remote areas.
- Emergency Response & Disaster Recovery: Set up instant networks where infrastructure is down.
- Outdoor Activities: Hiking, camping, and adventure racing communication.
- Tactical & Security Applications: Military, law enforcement, and private security use cases.
- IoT & Sensor Networks: Collect data from remote sensors and relay it back to a central location.
- Watch the MeshCore Intro Video by Andy Kirby.
- Watch the MeshCore Technical Presentation by Liam Cottle.
- Read through our Frequently Asked Questions and Documentation.
- Flash the MeshCore firmware on a supported device.
- Connect with a supported client.
For developers;
- Install PlatformIO in Visual Studio Code.
- Clone and open the MeshCore repository in Visual Studio Code.
- See the example applications you can modify and run:
- Companion Radio - For use with an external chat app, over BLE, USB or WiFi.
- KISS Modem - Serial KISS protocol bridge for host applications. (protocol docs)
- Simple Repeater - Extends network coverage by relaying messages.
- Simple Room Server - A simple BBS server for shared Posts.
- Simple Secure Chat - Secure terminal based text communication between devices.
- Simple Sensor - Remote sensor node with telemetry and alerting.
The Simple Secure Chat example can be interacted with through the Serial Monitor in Visual Studio Code, or with a Serial USB Terminal on Android.
We have prebuilt firmware ready to flash on supported devices.
- Launch https://meshcore.io/flasher
- Select a supported device
- Flash one of the firmware types:
- Companion, Repeater or Room Server
- Once flashing is complete, you can connect with one of the MeshCore clients below.
Companion Firmware
The companion firmware can be connected to via BLE, USB or WiFi depending on the firmware type you flashed.
- Web: https://app.meshcore.nz
- Android: https://play.google.com/store/apps/details?id=com.liamcottle.meshcore.android
- iOS: https://apps.apple.com/us/app/meshcore/id6742354151?platform=iphone
- NodeJS: https://github.com/liamcottle/meshcore.js
- Python: https://github.com/fdlamotte/meshcore-cli
Repeater and Room Server Firmware
The repeater and room server firmwares can be setup via USB in the web config tool.
They can also be managed via LoRa in the mobile app by using the Remote Management feature.
MeshCore is designed for devices listed in the MeshCore Flasher
MeshCore is open-source software released under the MIT License. You are free to use, modify, and distribute it for personal and commercial projects.
Please submit PR's using 'dev' as the base branch! For minor changes just submit your PR and we'll try to review it, but for anything more 'impactful' please open an Issue first and start a discussion. Is better to sound out what it is you want to achieve first, and try to come to a consensus on what the best approach is, especially when it impacts the structure or architecture of this codebase.
Here are some general principals you should try to adhere to:
- Keep it simple. Please, don't think like a high-level lang programmer. Think embedded, and keep code concise, without any unnecessary layers.
- No dynamic memory allocation, except during setup/begin functions.
- Use the same brace and indenting style that's in the core source modules. (A .clang-format is prob going to be added soon, but please do NOT retroactively re-format existing code. This just creates unnecessary diffs that make finding problems harder)
Help us prioritize! Please react with thumbs-up to issues/PRs you care about most. We look at reaction counts when planning work.
There are a number of fairly major features in the pipeline, with no particular time-frames attached yet. In very rough chronological order:
- Companion radio: UI redesign
- Repeater + Room Server: add ACL's (like Sensor Node has)
- Standardise Bridge mode for repeaters
- BitChat integration: BLE bridge for BitChat app compatibility (1.14.1 - Subclassing Architecture)
- Repeater/Bridge: Standardise the Transport Codes for zoning/filtering
- Core + Repeater: enhanced zero-hop neighbour discovery
- Core: round-trip manual path support
- Companion + Apps: support for multiple sub-meshes (and 'off-grid' client repeat mode)
- Core + Apps: support for LZW message compression
- Core: dynamic CR (Coding Rate) for weak vs strong hops
- Core: new framework for hosting multiple virtual nodes on one physical device
- V2 protocol spec: discussion and consensus around V2 packet protocol, including path hashes, new encryption specs, etc
- Report bugs and request features on the GitHub Issues page.
- Find additional guides and components on MeshCore Documentation.
- Join MeshCore Discord to chat with the developers and get help from the community.
Version: 1.14.1
Approach: Subclassing Architecture
Test Status: 228/228 passing
Last Updated: April 2026