RepositoryJavaESSpain
FE

felHR85/UsbSerial

Usb serial controller for Android

2.0kstars
635forks
129issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: usb-serial-adapters

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: ftdi-device

#1 Repository Của Tuần

1
TINIX TRENDING·Chủ đề: serialport

#1 Repository Của Tuần

📱 UsbSerial: Giao tiếp USB-Serial trên Android dễ dàng và mạnh mẽ

Thư viện Java mở nguồn hỗ trợ giao tiếp với nhiều loại chip USB-Serial phổ biến trên thiết bị Android.

UsbSerial là một dự án mã nguồn mở bằng Java, cho phép điều khiển các thiết bị USB-Serial trực tiếp từ Android mà không cần driver hệ thống. Nó hỗ trợ đa dạng chip như CP210x, FTDI, CDC, PL2303, CH34x và cả giao thức SPI thông qua CP2130. Phù hợp cho các dự án IoT, công cụ động cơ hắt nạp hay môi trường công nghiệp cần kết nối phần cứng qua cổng serial.

✨ Điểm nổi bật

  • Hỗ trợ nhiều loại chip USB-Serial: Bao gồm CP210x, FTDI, CDC, PL2303, CH34x với cấu hình mặc định khác nhau.
  • API đồng bộ và bất đồng bộ: Cung cấp cả hai phương pháp giao tiếp linh hoạt tùy nhu cầu sử dụng.
  • Callback nhận dữ liệu không cần polling: Sử dụng UsbReadCallback để xử lý dữ liệu đến một cách thời gian thực.
  • Hỗ trợ dòng truyền CTS/DSR và điều khiển RTS/DTR: Cho phép giám sát và điều khiển tín hiệu điều khiển bên ngoài.
  • Giao thức SPI (beta): Hỗ trợ giao tiếp với thiết bị SPI thông qua chip CP2130.
  • Dễ tích hợp: Chỉ cần một vài dòng code để khởi tạo và sử dụng thiết bị USB-Serial.
  • Tài liệu hướng dẫn chi tiết: Có wiki hướng dẫn từng bước cài đặt và sử dụng.

💡 Vì sao đáng chú ý

UsbSerial khác biệt so với cách truyền thống là không phụ thuộc vào driver hệ thống, giúp giảm thiểu cấu hình và tăng tính tương thích với nhiều thiết bị Android. Đặc biệt phù hợp cho các ứng dụng cần kết nối phần cứng thời gian thực như công cụ đo lường, thiết bị y tế hoặc phần mềm điều khiển robot. Tuy nhiên, cần lưu ý tránh sử dụng trên Android 5.1.1 do lỗi hệ thống.


#Android #USBSerial #Hardware #Java #OpenSource #TiniX

Similar Projects

Discover other similar projects and AI models.

RepositoryC
networkupstools/nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!

4.5k
Nov 23, 2026
RepositoryC++
x-tools-author/x-tools

xTools: Qt-SerialPort-HID-BLE-UDP-TCP-WebSocket-Modbus-CANBus-MQTT-CoAP-TFTP-mDNS debugging tool, which support custom lua, javascript, chart view and data transmitting...

1.1k
Nov 21, 2026
RepositoryC++
itas109/CSerialPort

CSerialPort - lightweight cross-platform serial port library and protocol parsing for C++/C/C#/Java/Python/Node.js/Electron/Rust

911
Jun 19, 2026
RepositoryRust
serialport/serialport-rs

A cross-platform serial port library in Rust. Provides a blocking I/O interface and port enumeration including USB device information.

761
Nov 23, 2026
RepositoryC++
szieke/ScriptCommunicator_serial-terminal

Scriptable cross-platform data terminal which supports: serial port, UDP, TCP, SPI, I2C and CAN.

761
Jan 29, 2026
RepositoryC
afska/gba-remote-play

📡 Stream Raspberry Pi games to a GBA via Link Cable.

469
Oct 30, 2026
RepositoryC++
afska/gba-link-connection

🔗 A set of Game Boy Advance (GBA) C++ libraries to interact with the Serial Port. Its main purpose is to provide multiplayer support to homebrew games.

302
Oct 29, 2026
RepositoryC++
KangLin/SerialPortAssistant

This project is a cross-platform serial port assistant. It can run on WINDOWS, linux、android、macos system.

237
Oct 10, 2026
RepositoryPython
PowerBroker2/pySerialTransfer

Python package to transfer data in a fast, reliable, and packetized form

167
Feb 13, 2025