I recently got myself a Dymo LabelManager PnP printer, that is this one:
http://global.dymo.com/ieIE/Products/La ... r_PnP.html
Out of the box, this printer shows up as a HID and a Storage device on Linux,
while on Windows, with driver installed, you also get, in addition to the HID
and Storage, a printer device.
But by following the instructions given at
http://www.draisberghof.de/usb_modeswitch/
and M. Ziesmers description given at
http://blogger.ziesemer.com/2008/10/all ... buntu.html
I kind of "accidentally" managed, after many trials, to produce a working
"usb_modeswitch" configuration for the printer. The final configuration looks like
this:
Code: Select all
# Dymo LabelManager PnP
DefaultVendor= 0x0922
DefaultProduct=0x1001
TargetVendor= 0x0922
TargetProduct= 0x1002
MessageEndpoint= 0x01
ResponseEndpoint=0x01
MessageContent="1b5a01"
Just to complete the description, I also did the following steps in order
make the printer work on my Ubuntu box with the above configuration:
1. Put the "usb_modeswitch" configuration into the file:
/etc/usb_modeswitch.d/dymo-labelmanager-pnp.conf
2. Created a file
/etc/udev/rules.d/91-dymo-labelmanager-pnp.rules
with the content:
# DYMO LabelManager PNP
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="1001", \
RUN+="/usr/sbin/usb_modeswitch -c /etc/usb_modeswitch.d/dymo-labelmanager-pnp.conf"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0922", ATTRS{idProduct}=="1002", MODE="0660", GROUP="plugdev"
(The last line is really uneccessary but adds the device to the "plugdev"
group, which gives users read/write access to the device on Ubuntu.)
3. Restarted "udev" with:
# restart udev
Now when plugging in the Dymo printer its VID/PID values changes from 0922:1001
to 0922:1002 and all the three "devices" becomes available (that is the HID,
Storage and Printer).
As the "disk" only contains a Windows application and some documentation, it is not
all that interesting on linux. One way of "disabling" the disk is to create a file:
/etc/modprobe.d/blacklist-usb-storage.conf
with the content:
# Ignore DYMO LabelManager PNP built in storage
# (contains Windows and Mac apps, has no function on linux)
options usb-storage quirks=0922:1001:i,0922:1002:i
(note that just to be sure, both VID/PID values are marked as "ignored") and
"activate" the configuration with the commands:
# depmod -a
# rmmod usb-storage
Now the device is still there but is "blocked" from becoming visible as a disk.
The "cups" files for the printer (and other Dymo printers) can be found at:
http://download.dymo.com/Software/Linux ... 4.0.tar.gz
For more about the "cups" files, see:
http://dymodevelopers.wordpress.com/201 ... for-linux/
An another option that I came accross while searching for information about how
to best use this printer, is S. Bronner "dymoprint" script:
http://www.sbronner.com/dymoprint/
This script accesses the HID device directly and makes it really easy to write
labels from the command line. (Note that the "DEV_PRODUCT" value at the top of
the script should be changed from "1001" to "1002", if the above
"usb_modeswitch" setup is used.)
As I only have tested the one printer that I have on one the one computer that I
have, I cannot say that this setup will work for others. But it would be
interesting to hear if others with the same printer are able to get it to work
using the above description.
br,
kmm
PS! There does not seems to be a way to post "plain text" messages here, so
the indentation in the text unfortunately became destroyed. But hopefully
the text is still readable. becomes available (that is the HID,
Storage and Printer).
As the