Thank you very much and sorry for the delayed answer. Life is a bitch.
With the help of Gemini, and several hours, I manage to get the printer working, the problem is that the printer doesn´t handle very well the drivers when I want to print via USB. The workaround is to print via wifi.
For further reference here is the summary that I have done and why and why not works (it was made with IAgen so take it with a grain of salt).
📋 Summary: Configuring Canon PIXMA TS3450 on FreeBSD
❌ Part 1: Why the USB Connection Methods Failed
We attempted several methods to make the printer work directly via a USB cable (/dev/usb/0.3.0 or /dev/ugen0.3). They all failed due to explicit architectural limitations in FreeBSD and the printer's modern firmware:
1. Traditional Driver Approach (Gutenprint PPDs)
- What we tried: Assigning the
Canon PIXMA TS3400 Series - CUPS+Gutenprint driver.
- Why it failed: The jobs disappeared silently. Modern Canon TS-series printers do not support traditional raster/postscript languages used by older Unix drivers; they rely exclusively on driverless protocols.
2. Driverless USB emulation (ipp-usb daemon)
- What we tried: Routing the USB printer as a local network loopback interface using the ipp-usb package.
- Why it failed: CUPS's scanner backend (
/usr/local/libexec/cups/backend/usb) got stuck during libusb_get_device_list. FreeBSD's kernel enforces aggressive device-locking policies on active USB buses, which blocked libusb from querying the hardware descriptors.
3. Direct UNIX Pipe writing (echo > /dev/ugen0.3.0)
- What we tried: Forcing text data directly to the raw device node via terminal redirection.
- Why it failed: Threw an
Operation not supported error. In modern FreeBSD, /dev/usb/X.Y.Z nodes are structured binary control endpoints managed by the kernel, not virtual terminal character files that accept plain text streams.
4. Forcing Raw Binary Pipelines (DeviceURI usb://0x04a9/0x18b7)
- What we tried: Bypassing detection and feeding a processed PDF directly to the specific hardware Vendor/Product ID (
18b7).
- Why it failed: CUPS successfully marked the job as "completed," but the physical machine stayed silent. When a modern printer's memory buffer receives incompatible test data (like plain text or raw postscript from previous attempts), the onboard firmware crashes or freezes the stack, ignoring all subsequent valid data until a full hardware cold boot is performed.
✅ Part 2: Why the Wi-Fi Connection Method Succeeded
The Internet Printing Protocol (IPP Everywhere / Wi-Fi) method is the only native and stable way to operate this printer class on an open-source OS without proprietary binaries.
- Why it worked:
- It completely bypassed the FreeBSD USB hardware abstraction layer and
libusb permission subsystem.
- Data was encapsulated into standard TCP/IP network packets (
ipp:// or socket://) which FreeBSD transmits transparently.
- The printer processed a Generic IPP Everywhere workflow, meaning CUPS rendered the PDF into a clean PWG/Apple Raster image payload that the printer's hardware understands natively.
🛠️ Step-by-Step Production Guide (The Working Solution)
Follow this exact blueprint if you ever need to reconfigure the setup cleanly over your local network:
Step 1: Connect the Printer to your Wireless Router
- Method A (WPS): Press and hold the Wireless Connect button (smartphone/antenna icon) on the printer panel until the LED flashes, then press the WPS button on your home router within 2 minutes.
- Method B (Manual): Check the IP address assigned by printing the network status sheet: Press the Information (i) button on the printer panel. Look for the line labeled IPv4 Address (e.g.,
192.168.1.45).
Step 2: Prepare the FreeBSD Print Environment
Open your terminal as root and ensure the CUPS network printing environment is fully cleared and activated:
bash
# Clear any remaining corrupt print queues
cancel -a
# Ensure the CUPS daemon is running
service cupsd restart
Step 3: Register the Printer via the CUPS Web Interface
- Launch your web browser and navigate to
http://localhost:631.
- Go to the Administration tab, click Add Printer, and authenticate with your FreeBSD
root credentials.
- Under Other Network Printers, select Internet Printing Protocol (ipp).
- In the Connection field, input the precise network address using your printer's IP:
ipp://YOUR_PRINTER_IP/ipp/print
_(Example: `ipp://192.168.1.45/ipp/print`)_
- Click Continue. Name it clearly (e.g.,
Canon_TS3450_Network).
- Under Make, choose Generic. Click Continue.
- Under Model, select strictly: Generic IPP Everywhere Printer (or Generic PWG Raster Printer).
- Click Add Printer to confirm.
Step 4: Set as Default and Print
Enforce this destination across the system via the command line:
bash
# Mark it as the default printer for the entire system
lpadmin -d Canon_TS3450_Network
# Test printing a real PDF document
lp /HOME/USER/PATH/document.pdf