Hallo!
Zur Ansteuerung eines LCDisplays an einem Parallelport habe ich mir mangels eines Parallelports einen USB-Parallel-Adapter gekauft.
Dieser wird erkannt und er legt /dev/usb/lp0 an. Damit ich das Display kontollieren kann brauche ich die Portadresse. Bei OnBoard-LPT1 wäre das z.B. 0x378 für die Datenpins.
Der Adapter müsste doch irgendeinen Bereich haben, oder nicht? Ich habe auch irgendwo gelesen, dass diese Adapter vielleicht nur einen USB-Drucker emulieren und man ihn nicht wie einen normalen Anschlu direkt ansteuern kann?!
Kann mir jemand sagen, wie man die Portadresse des Adapters herausfindet?
Viele Grüße, Markus
Hier noch ein paar Informationen:
dmesg usblp1: USB Bidirectional printer dev 5 if 0 alt 0 proto 2 vid 0x1A86 pid 0x7584
lsusb -v Bus 008 Device 005: ID 1a86:7584 Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 1.10 bDeviceClass 0 (Defined at Interface level) bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x1a86 idProduct 0x7584 bcdDevice 2.52 iManufacturer 0 iProduct 2 USB2.0-Print iSerial 0 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 96mA 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 0x0020 1x 32 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 0x0020 1x 32 bytes bInterval 0 Device Status: 0x0000 (Bus Powered)