Specifications

TH230/TH230+ Programmers Guide
235
USB Interface
The Universal Serial Bus (USB) is a peripheral bus for personal computers that was first
released in January 1996.
The TH230 supports the USB Printer Class.
USB Descriptors
When plugging in an USB device the USB enumeration process starts and the device
reports their attributes using descriptors. A descriptor is a data structure with a defined
format.
Device Descriptor
A device descriptor describes general information about an USB device. It includes
information that applies globally to the device and all of the device’s configurations. An
USB device has only one device descriptor.
Offset Field Size Value Description
0 bLength 1 12h Size of this descriptor, in bytes
1 bDescriptorType 1 01h DEVICE descriptor type
2 bcdUSB 2 0200h USB specification release number in binary coded
decimal (2.0)
4 bDeviceClass 1 00h Class code
5 bDeviceSubClass 1 00h Subclass code
6 bDeviceProtocol 1 00h Protocol code
7 bMaxPacketSize0 1 08h Maximum packet size for endpoint zero
8 idVendor 2 0AA7h WN Vendor ID
10 idProduct 2 0304h
Product ID
12 bcdDevice 2 XXh
Device release number in binary coded decimal
14 iManufacture 1 Index Index of string descriptor (see 1.1.1)
15 iProduct 1 Index Index of string descriptor (see 1.1.1)
16 iSerialNumber 1 00h Index of string descriptor (see 1.1.1)
17 bNumConfiguration 1 01h Number of configurations