Skip to content

Conversation

@jp-bennett
Copy link
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
Copy link
Contributor

Copilot AI left a comment

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.

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