@artale/pi-serial

Hardware/IoT interface. List serial ports, identify devices (Arduino, ESP32, 3D printers), send/receive data, monitor sessions.

Package details

extension

Install @artale/pi-serial from npm and Pi will load the resources declared by the package manifest.

$ pi install npm:@artale/pi-serial
Package
@artale/pi-serial
Version
1.0.1
Published
Mar 8, 2026
Downloads
30/mo · 6/wk
Author
artale
License
MIT
Types
extension
Size
14.7 KB
Dependencies
0 dependencies · 0 peers
Pi manifest JSON
{
  "commands": [
    "serial"
  ],
  "tools": [
    "serial_ports",
    "serial_send",
    "serial_monitor"
  ]
}

Security note

Pi packages can execute code and influence agent behavior. Review the source before installing third-party packages.

README

@artale/pi-serial

First Hardware/IoT package in the pi ecosystem.

List serial ports, identify connected devices (Arduino, ESP32, Raspberry Pi Pico, 3D printers, GPS modules), send/receive data, monitor sessions.

Install

npm install -g @artale/pi-serial

Features

  • Auto-detect serial ports — Windows (PowerShell CIM), Linux/Mac (/dev/tty*)
  • Device identification — matches USB VID/PID against 10 built-in profiles
  • Command reference — shows known commands per device (G-code for 3D printers, AT for modems)
  • Session logging — all serial activity logged to ~/.pi/serial/
  • Custom device profiles — add your own devices to ~/.pi/serial/devices.json

Tools

  • serial_ports — List available ports with device identification
  • serial_send — Generate send command for a serial port
  • serial_monitor — Generate monitor command for continuous reading

Commands

  • /serial ports — List detected serial ports
  • /serial devices — Show known device profiles
  • /serial monitor <port> [baud] — Monitor instructions
  • /serial send <port> <data> — Send data instructions
  • /serial log — Session activity log