← 返回
未分类

Brother DCP-T426W Printer

Brother DCP-T426W network printer skill — IPP + driverless (primary), TCP direct (fallback for text-only, no sudo).
Brother DCP‑T426W 网络打印机技能 — IPP + 免驱动(主要),TCP直连(仅文本后备,无需 sudo)
yardfarmer
未分类 clawhub v5.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 283
下载
💾 0
安装
1
版本
#latest

概述

Brother DCP-T426W Printer Skill

When to Use

  • When you need to print text, images, or PDFs to a Brother DCP-T426W from a CLI or script
  • When you're on a NAS, Linux, or macOS machine with CUPS and want driverless IPP printing
  • When you need a text-only fallback on a headless or no-root system (TCP direct, no CUPS)
  • When you want to check printer status or print a test page programmatically

How It Works

Printing to a Brother DCP-T426W inkjet printer via two methods:

  1. IPP + driverless PPD (primary) — Full support: text, images, PDFs. Requires CUPS with driverless.
  2. TCP direct (fallback) — Text only, no CUPS, no sudo required.

Supported platforms: Any device with CUPS + driverless (NAS, Linux, macOS) or Python 3 with TCP access (fallback).

Printer Info

FieldValue
--------------
ModelBrother DCP-T426W
IP192.168.50.232
ProtocolIPP (ipp://192.168.50.232:631/ipp/print) — primary; TCP 9100 fallback
TypeColor Inkjet MFP (Print / Scan / Copy)
Max Resolution4800 x 1200 dpi
PaperA4, Letter, A5, A6, Photo (10x15cm), Envelopes

Quick Start

# Print a text string (CUPS IPP)
python scripts/print.py --text "Hello World"

# Print a file (text, image, PDF — CUPS handles conversion)
python scripts/print.py --file document.txt
python scripts/print.py --file photo.jpg
python scripts/print.py --file report.pdf

# Print a receipt-style text
python scripts/print.py --text "Invoice #123\nTotal: $42.00" --mode receipt

# Print a test page
python scripts/print.py --test

# Check printer status
python scripts/print.py --status

# Fallback: TCP direct (text only, no CUPS needed)
python scripts/print.py --text "Hello" --method tcp

Architecture

broder-printer/
├── SKILL.md                    # This file
├── CLAUDE.md                   # Project documentation
├── Brother_DCP-T426W/          # Brother driver files (backup only)
│   ├── drivers/
│   │   ├── Brother_DCP-T426W.ppd
│   │   └── Brother DCP-T426W CUPS.gz
│   └── readme.md
├── requirements.txt
└── scripts/
    └── print.py                # Main print CLI (IPP/CUPS primary, TCP fallback)

Setup (One-Time)

Step 1: Install CUPS + driverless

# Linux (Debian/Ubuntu)
sudo apt install cups cups-filters ipp-usb
sudo systemctl enable --now cups

# macOS — CUPS is built-in, skip this step

Step 2: Generate driverless PPD and add printer

# Generate PPD from printer's IPP capabilities
driverless "ipp://192.168.50.232:631/ipp/print" > ~/brother.ppd

# Add printer to CUPS
sudo lpadmin -p Brother_DCP-T426W \
  -v "ipp://192.168.50.232:631/ipp/print" \
  -E \
  -P ~/brother.ppd

sudo lpadmin -p Brother_DCP-T426W -o printer-is-shared=false

# Verify
lpstat -p Brother_DCP-T426W -l

Step 3: Test

echo "Hello" | lp -d Brother_DCP-T426W

How It Works

IPP + driverless (default):

  1. Script calls CUPS lp command
  2. CUPS converts input (text/image/PDF) to PWG-raster using the driverless PPD
  3. Data sent to printer via IPP protocol
  4. Printer renders and prints

TCP direct (fallback, --method tcp):

  1. Script opens TCP socket to printer port 9100
  2. Wraps text in PJL (Printer Job Language) commands
  3. Sends data directly to printer
  4. Text only — images/PDFs need CUPS conversion

IPP vs TCP

FeatureIPP + driverlessTCP Direct
--------------------------------------
SetupCUPS + driverlessNone
sudo requiredSetup only (once)No
Text printingYesYes
Image printingYes (PWG-raster)No (raw bytes only)
PDF printingYesNo
Print queueYesNo
Use caseNAS, desktop, full featuresHeadless, no-root, text-only

Direct CUPS Commands

# Print any file CUPS understands
lp -d Brother_DCP-T426W file.txt

# Print with options
lp -d Brother_DCP-T426W -o media=A4 -o sides=one-sided document.pdf

# Check jobs
lpstat -o Brother_DCP-T426W

# Cancel jobs
cancel Brother_DCP-T426W

Troubleshooting

IssueSolution
-----------------
driverless: command not foundsudo apt install cups-filters ipp-usb
IPP connection refusedVerify printer supports IPP: driverless (list available IPP printers)
No paper outputCheck paper tray, ink levels, printer not in error state
TCP prints garbled textPrinter may not support PJL PLAINTEXT — use IPP method
CUPS printer not foundlpstat -p to list printers; re-run lpadmin setup
lp command not foundsudo apt install cups-client

版本历史

共 1 个版本

  • v5.0.0 当前
    2026-05-07 22:32 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 267,084
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,709
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,364 📥 319,334