Skip to content

Is there any way to get Emulated printer to show up in USB devices #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
saudiqbal opened this issue May 2, 2025 · 2 comments
Open

Comments

@saudiqbal
Copy link

Is there any way for CUPS to detect the emulated printer as a local printer?

@Raspberryy
Copy link
Owner

Great question! I would assume it can. The USB Protocol should be OS-independent, therefore any USB Host should be able to detect the Emulated USB-Printer. I know from Windows that it will always detect the Emulated USB Printer, but when a) the emulation is not started (modprobe g_printer idVendor=0x1234 idProduct=0x1234 pnp_string="MFG:;CMD:;CLS:PRINTER;") or b) the Windows host does not have drivers for the emulated model it will not show the Raspberry PI as a printer but as an unknown device instead.

I would therefore recommend emulating a printer that you know CUPS detects. If you have a printer but don't know the parameters you can follow these steps (Windows only unfortunately) to retrieve it by connecting it to your PC and reading the logs. If you want to contribute to this project, please then share the parameters you found :)

@saudiqbal
Copy link
Author

What I meant was to detect the printer on the local Raspberry pi by CUPS server, Emulated printer and CUPS are running on the same Raspberry Pi. I wanted to connect a retro Computer to a emulated printer on a raspberry pi and email the print by CUPS server sent by the Computer. I just wanted Emulated printer to show up in lsusb so that CUPS and see there is a printer there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants