Skip to content

Add needed support bits for the Meshstick#9042

Merged
jp-bennett merged 3 commits into
developfrom
meshstick
Jan 8, 2026
Merged

Add needed support bits for the Meshstick#9042
jp-bennett merged 3 commits into
developfrom
meshstick

Conversation

@jp-bennett

Copy link
Copy Markdown
Collaborator

This should get auto-detection working with the meshstick, as well as gives us a way to pull a DeviceID from those devices.

@jp-bennett jp-bennett added hardware-support Hardware related: new devices or modules, problems specific to hardware linux-native related to running meshtastic as daemon on native linux labels Dec 22, 2025
@thebentern thebentern requested a review from Copilot December 22, 2025 11:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for Meshstick device auto-detection and device ID extraction. The changes enable the system to detect Meshstick hardware via USB and extract a unique device ID from the CH341 USB chip's product string.

  • Modified the product string retrieval to use memcpy instead of strncpy
  • Added logic to extract a 16-byte device ID from data following the null terminator in the CH341 product string
  • Added YAML configuration file for the Meshstick-1262 hardware variant

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/platform/portduino/USBHal.h Changed strncpy to memcpy in getProductString() method
src/platform/portduino/PortduinoGlue.cpp Added device ID extraction logic for CH341-based devices by reading 16 bytes after the product string's null terminator
bin/config.d/lora-usb-meshstick-1262.yaml New configuration file defining hardware parameters for Meshstick with SX1262 radio module

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/platform/portduino/USBHal.h
Comment thread src/platform/portduino/PortduinoGlue.cpp Outdated
@jp-bennett jp-bennett merged commit fb7af18 into develop Jan 8, 2026
75 checks passed
@jp-bennett jp-bennett deleted the meshstick branch January 8, 2026 05:04
vicliu624 pushed a commit to vicliu624/firmware that referenced this pull request Jan 13, 2026
* Add needed support bits for the Meshstick

* Portduino: Reduce allowed length by one byte to prevent possible overflow
jeek pushed a commit to jeek/Meshtastic-Exploiteers-Hacker-Pager that referenced this pull request Jun 30, 2026
* Add needed support bits for the Meshstick

* Portduino: Reduce allowed length by one byte to prevent possible overflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hardware-support Hardware related: new devices or modules, problems specific to hardware linux-native related to running meshtastic as daemon on native linux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants