On Thu, 2003-09-04 at 00:01, James Courtier-Dutton wrote:
>
> That output told me that the cash drawer was closed!
> Was it?
Yes
> Please find the usb.ids file on your system, and replace it with the one
> I attach.
Done
> The lsusb -v will be more descriptive then.
>
> Try opening the cash draw,
The drawer is open
> and do lspci -v again, and see what changes.
> A 2 should change to a 1
[EMAIL PROTECTED] root]# lsusb -v
Unknown line at line 3340
Unknown line at line 3341
Unknown line at line 3342
Unknown line at line 3343
Unknown line at line 3344
Unknown line at line 3345
Unknown line at line 3346
Unknown line at line 3347
Unknown line at line 3348
Unknown line at line 3349
Unknown line at line 3350
Unknown line at line 3351
Unknown line at line 3352
Unknown line at line 3353
Unknown line at line 3354
Unknown line at line 3355
Unknown line at line 3356
Unknown line at line 3357
Unknown line at line 3358
Unknown line at line 3359
Unknown line at line 3360
Unknown line at line 3361
Unknown line at line 3362
Unknown line at line 3363
Unknown line at line 3364
Unknown line at line 3365
Unknown line at line 3366
Unknown line at line 3367
Unknown line at line 3368
Unknown line at line 3369
Unknown line at line 3370
Unknown line at line 3371
Unknown line at line 3372
Unknown line at line 3373
Unknown line at line 3374
Unknown line at line 3375
Unknown line at line 3376
Unknown line at line 3377
Unknown line at line 3378
Unknown line at line 3379
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 ec00
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDs: (length=4)
0000 (null)((null))
Bus 001 Device 002: ID 07c5:0500 APG Cash Drawer
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x07c5 APG Cash Drawer
idProduct 0x0500
bcdDevice 0.00
iManufacturer 1 APG Cash Drawer
iProduct 2 554 HID USBPro(tm)II Interface
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 63
Report Descriptor: (length is 63)
Item(Global): Usage Page, data= [ 0xf0 ] 240
Cash Device
Item(Local ): Usage, data= [ 0xf1 ] 241
Cash Drawer
Item(Main ): Collection, data= [ 0x01 ] 1
Application
Item(Global): Usage Page, data= [ 0xf0 ] 240
Cash Device
Item(Local ): Usage, data= [ 0xf4 ] 244
Cash Drawer Status
Item(Global): Logical Minimum, data= [ 0x01 ] 1
Item(Global): Logical Maximum, data= [ 0x03 ] 3
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x03 ] 3
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x05 ] 5
Item(Main ): Input, data= [ 0x01 ] 1
Constant Array Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Local ): Usage, data= [ 0xf2 ] 242
Cash Drawer Number
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Global): Logical Minimum, data= [ 0x01 ] 1
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Main ): Input, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Local ): Usage, data= [ 0xf2 ] 242
Cash Drawer Number
Item(Global): Logical Minimum, data= [ 0x01 ] 1
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Local ): Usage, data= [ 0xf3 ] 243
Cash Drawer Set
Item(Global): Logical Minimum, data= [ 0x01 ] 1
Item(Global): Logical Maximum, data= [ 0x01 ] 1
Item(Global): Report Count, data= [ 0x01 ] 1
Item(Global): Report Size, data= [ 0x08 ] 8
Item(Main ): Output, data= [ 0x02 ] 2
Data Variable Absolute No_Wrap Linear
Preferred_State No_Null_Position Non_Volatile Bitfield
Item(Main ): End Collection, data=none
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 4
bInterval 100
Language IDs: (length=4)
0409 English(US)
> If we get that far, we should be able to write a small program to just
> display the status of the cash drawer.
I have a driver in the working that I am not sure if it will be needed
or not. When using usbview the cash drawer data shows up in red. When I
load the driver it turns to black, and the name of the driver appears as
part of the output for that device.
Also when I load the driver it changes the output of lsusb -v
[EMAIL PROTECTED] apg]# lsmod
Module Size Used by Not tainted
apgusbproII 6944 0 (unused)
keybdev 2912 0 (unused)
mousedev 5428 0 (unused)
hid 21924 0 (unused)
input 5824 0 [keybdev mousedev hid]
usb-uhci 25996 0 (unused)
usbcore 77344 1 [apgusbproII hid usb-uhci]
[EMAIL PROTECTED] apg]# lsusb -v
Unknown line at line 3340
Unknown line at line 3341
Unknown line at line 3342
Unknown line at line 3343
Unknown line at line 3344
Unknown line at line 3345
Unknown line at line 3346
Unknown line at line 3347
Unknown line at line 3348
Unknown line at line 3349
Unknown line at line 3350
Unknown line at line 3351
Unknown line at line 3352
Unknown line at line 3353
Unknown line at line 3354
Unknown line at line 3355
Unknown line at line 3356
Unknown line at line 3357
Unknown line at line 3358
Unknown line at line 3359
Unknown line at line 3360
Unknown line at line 3361
Unknown line at line 3362
Unknown line at line 3363
Unknown line at line 3364
Unknown line at line 3365
Unknown line at line 3366
Unknown line at line 3367
Unknown line at line 3368
Unknown line at line 3369
Unknown line at line 3370
Unknown line at line 3371
Unknown line at line 3372
Unknown line at line 3373
Unknown line at line 3374
Unknown line at line 3375
Unknown line at line 3376
Unknown line at line 3377
Unknown line at line 3378
Unknown line at line 3379
Bus 001 Device 001: ID 0000:0000
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.00
bDeviceClass 9 Hub
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0000
idProduct 0x0000
bcdDevice 0.00
iManufacturer 0
iProduct 2 USB UHCI Root Hub
iSerial 1 ec00
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 25
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x40
Self Powered
MaxPower 0mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 9 Hub
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 8
bInterval 255
Language IDs: (length=4)
0000 (null)((null))
Bus 001 Device 002: ID 07c5:0500 APG Cash Drawer
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 Interface
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x07c5 APG Cash Drawer
idProduct 0x0500
bcdDevice 0.00
iManufacturer 1 APG Cash Drawer
iProduct 2 554 HID USBPro(tm)II Interface
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.00
bCountryCode 0
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 63
cannot get report descriptor
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type none
wMaxPacketSize 4
bInterval 100
Language IDs: (length=4)
0409 English(US)
The module is apgusbproII and I can send you the source if your are
interested.
However a user space program to check state and open the drawer is good
enough for me.
> Once we have that, we can add commands to open the draw to it.
Great I am getting excited.
--
Sincerely,
William L. Thomson Jr.
Support Group
Obsidian-Studios, Inc.
http://www.obsidian-studios.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel