libserialport
« Back to VersTracker
Description:
Cross-platform serial port C library
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c-library serial-port hardware embedded cross-platform
Install: brew install libserialport
About:
Libserialport is a lightweight, cross-platform C library designed to simplify access to serial ports. It provides a consistent API for enumerating ports and performing full-duplex serial communication, abstracting away platform-specific complexities. This makes it an ideal foundation for applications that need to interface with hardware like microcontrollers, GPS units, or industrial equipment.
Key Features:
  • Cross-platform API for Windows, Linux, macOS, and BSD
  • Simplified port enumeration and device discovery
  • Full control over serial port parameters (baud rate, parity, flow control)
  • Minimal dependencies and small footprint
Use Cases:
  • Interfacing with microcontrollers and embedded devices from a PC
  • Reading data from GPS receivers or scientific instruments
  • Building custom firmware flashers or communication utilities
Alternatives:
  • Boost.Asio – A much heavier C++ library that includes serial port support as part of a larger I/O framework.
  • Platform-specific APIs (Win32, termios) – More complex and requires writing conditional code for each operating system.
Version History
Detected Version Rev Change Commit
Sep 11, 2025 9:12am 0 VERSION_BUMP 6fe8f530
Sep 13, 2024 1:32pm 0 VERSION_BUMP f96d77ac