Skip to content
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

Application does not detect networked printer #116

Open
jayjayseal opened this issue Mar 24, 2024 · 8 comments
Open

Application does not detect networked printer #116

jayjayseal opened this issue Mar 24, 2024 · 8 comments

Comments

@jayjayseal
Copy link

jayjayseal commented Mar 24, 2024

Hi,

I have an issue with the application. If i try to print via USB, this works. But i want to use this using a RPI on a network.
I can print to the printer using printf "lol" | lp -o landscape and this works by printing from a remote laptop to CUPS (Dymo 550) connected on a RPI (USB).

But the application (CLI or GUI) cannot find this printer and error's out with the following error.
`$ dymoprint -qr qrencoded "qr_txt"
No Dymo devices found (expected vendor 0x922)

  • Vendor ID: 0x1d6b Product ID: 0x3
  • Vendor ID: 0x46d Product ID: 0xc52b
  • Vendor ID: 0x8087 Product ID: 0x26
  • Vendor ID: 0x5986 Product ID: 0x211c
  • Vendor ID: 0x1d6b Product ID: 0x2
    Unable to open device.
    Traceback (most recent call last):
    File "/home/user/.local/bin/dymoprint", line 8, in
    sys.exit(main())
    File "/home/user/.local/pipx/venvs/dymoprint/lib/python3.10/site-packages/dymoprint/command_line.py", line 265, in main
    print_label(label_bitmap, margin_px=args.m, tape_size_mm=args.t)
    File "/home/user/.local/pipx/venvs/dymoprint/lib/python3.10/site-packages/dymoprint/dymo_print_engines.py", line 324, in print_label
    detected_device = detect_device()
    File "/home/user/.local/pipx/venvs/dymoprint/lib/python3.10/site-packages/dymoprint/detect.py", line 60, in detect_device
    die("Unable to open device.")
    File "/home/user/.local/pipx/venvs/dymoprint/lib/python3.10/site-packages/dymoprint/utils.py", line 19, in die
    raise RuntimeError(message)
    RuntimeError: Unable to open device.
    `
@maresb
Copy link
Collaborator

maresb commented Mar 24, 2024

Ya, currently only printing via USB is supported. However thanks to the recent work of @tomers I think we're getting close to being able to work with networked printers.

If i try to print via USB, this works.

Does it work for you with dymoprint, lp, or both? I'm asking because we don't have confirmation that the 550 is compatible. See #44.

@jayjayseal
Copy link
Author

The Dymo SDK is a mess. But you can get it working with this SDK. Will post details later.

@jayjayseal
Copy link
Author

OK, here i go. (I have the lablelwriter 500 (usb only)

The reason behind me telling the SDK is a mess is the following:

  • The SDK (according to Dymo support) is here: https://github.com/dymosoftware/Drivers
  • The LW4xx Linux folder contains the ppd files for the Lablewriter 500 (someone already made a post about this here LW4xx zip is actually LW5xx dymosoftware/Drivers#2
  • The installer does not compile correctly. For some users they have an error during compiling.
  • The installer "forgets" to do a simple file copy for the raster/filter file.Copy the file (/LW4xx Linux/Linux/src/lw/raster2dymolw_v2) from the ZIP file to /usr/lib/cups/filter/

It will work for printing then.

@jayjayseal
Copy link
Author

jayjayseal commented Mar 26, 2024

Does it work for you with dymoprint, lp, or both? I'm asking because we don't have confirmation that the 550 is compatible. See #44.

If i use lp it works for printing, if i print a test page it also fit's it nicely on 1 label. dymoprint or dymoprint_gui gives the same error not being able to find the printer.

@maresb
Copy link
Collaborator

maresb commented Mar 26, 2024

Dymoprint without modification won't recognize the 550 since it's not registered in our list of supported products.

You can do a development install and add it yourself. To get the device id which is the key in the dict, just run lsusb and you should see a line like:

Bus 001 Device 012: ID 0922:1001 Dymo-CoStar Corp. LabelManager PnP

Here 0922 is the vendor ID of Dymo, and 1001 is the device id for the LabelManager PnP.

@jayjayseal
Copy link
Author

Bus 001 Device 006: ID 0922:0028 Dymo-CoStar Corp. DYMO LabelWriter 550

For anyone referring in the future

@tomers
Copy link

tomers commented Mar 26, 2024

@jayjayseal, I recently got A DYMO LavelWriter 550 printer, and hopefully I will be able to add support for that model in the near future.

@melroy89
Copy link

melroy89 commented Jul 1, 2024

@jayjayseal, I recently got A DYMO LavelWriter 550 printer, and hopefully I will be able to add support for that model in the near future.

I'm actually planning to buy a LabelPrinter 550. I hope there is support already.

In the meanwhile there is an official driver from Dymo themselves: https://github.com/dymosoftware/Drivers

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

4 participants