From 5d2557bb8af379789fb518ed3b075b1465ea5f45 Mon Sep 17 00:00:00 2001 From: wp Date: Sat, 9 Aug 2025 22:53:32 -0500 Subject: [PATCH] add more models --- 09220022.txt | 59 +++++++++++++++++++++++++++++++++++++++++++++++++++ src/dymo.py | 4 +++- src/dymott.py | 4 ++++ 3 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 09220022.txt diff --git a/09220022.txt b/09220022.txt new file mode 100644 index 0000000..eaab435 --- /dev/null +++ b/09220022.txt @@ -0,0 +1,59 @@ + +Bus 001 Device 016: ID 0922:0022 Dymo-CoStar Corp. DYMO LabelWriter 450 Twin Turbo +Device Descriptor: + bLength 18 + bDescriptorType 1 + bcdUSB 2.00 + bDeviceClass 0 [unknown] + bDeviceSubClass 0 [unknown] + bDeviceProtocol 0 + bMaxPacketSize0 64 + idVendor 0x0922 Dymo-CoStar Corp. + idProduct 0x0022 DYMO LabelWriter 450 Twin Turbo + bcdDevice 1.12 + iManufacturer 1 DYMO + iProduct 2 DYMO LabelWriter 450 Twin Turbo + iSerial 3 20060220302334 + bNumConfigurations 1 + Configuration Descriptor: + bLength 9 + bDescriptorType 2 + wTotalLength 0x0020 + bNumInterfaces 1 + bConfigurationValue 1 + iConfiguration 0 + bmAttributes 0xc0 + Self Powered + MaxPower 2mA + Interface Descriptor: + bLength 9 + bDescriptorType 4 + bInterfaceNumber 0 + bAlternateSetting 0 + bNumEndpoints 2 + bInterfaceClass 7 Printer + bInterfaceSubClass 1 Printer + bInterfaceProtocol 2 Bidirectional + iInterface 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x82 EP 2 IN + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 + Endpoint Descriptor: + bLength 7 + bDescriptorType 5 + bEndpointAddress 0x02 EP 2 OUT + bmAttributes 2 + Transfer Type Bulk + Synch Type None + Usage Type Data + wMaxPacketSize 0x0040 1x 64 bytes + bInterval 0 +Device Status: 0x0001 + Self Powered diff --git a/src/dymo.py b/src/dymo.py index ac6e5aa..0a27233 100644 --- a/src/dymo.py +++ b/src/dymo.py @@ -5,12 +5,14 @@ import re dymo_vid = 0x0922 # Dymo vendor ID dymo_tt_pid = 0x0018 # Dymo Twin Turbo Product ID -dymo_400_pid = 0x0019 +dymo_400_pid = 0x0019 # Dymo 400 Product ID dymo_450_pid = 0x0020 # Dymo 450 Product ID +dymo_450tt_pid = 0x0022 # Dymo 450 Twin Turbo Product ID dymo_tt = usb.core.find(idVendor=dymo_vid, idProduct=dymo_tt_pid) dymo_400 = usb.core.find(idVendor=dymo_vid, idProduct=dymo_400_pid) dymo_450 = usb.core.find(idVendor=dymo_vid, idProduct=dymo_450_pid) +dymo_450_tt = usb.core.find(idVendor=dymo_vid, idProduct=dymo_450tt_pid) #dymo_tt.serial_number # Prints device unique ID #dymo_tt.langids # Returns language IDs (1033,) for english diff --git a/src/dymott.py b/src/dymott.py index 11582a7..e9d8923 100644 --- a/src/dymott.py +++ b/src/dymott.py @@ -5,10 +5,14 @@ import re dymo_vid = 0x0922 # Dymo vendor ID dymo_tt_pid = 0x0018 # Dymo Twin Turbo Product ID +dymo_400_pid = 0x0019 # Dymo 400 Product ID dymo_450_pid = 0x0020 # Dymo 450 Product ID +dymo_450tt_pid = 0x0022 # Dymo 450 Twin Turbo Product ID dymo_tt = usb.core.find(idVendor=dymo_vid, idProduct=dymo_tt_pid) +dymo_400 = usb.core.find(idVendor=dymo_vid, idProduct=dymo_400_pid) dymo_450 = usb.core.find(idVendor=dymo_vid, idProduct=dymo_450_pid) +dymo_450_tt = usb.core.find(idVendor=dymo_vid, idProduct=dymo_450tt_pid) #dymo_tt.serial_number # Prints device unique ID #dymo_tt.langids # Returns language IDs (1033,) for english