|
Hi Tomas,
Am Freitag, 11. November 2022, 06:54:36 CET schrieb tomas@tuxteam.de: > On Thu, Nov 10, 2022 at 11:21:21PM +0100, Claudia Neumann wrote: > > Hi all, > > > > I programmed a library to read german electronic health cards from special > > devices certified in Germany. > > > > After an update from Debian 10 to Debian 11 one of these card readers > > reads only 64 bytes using /dev/ttyACM0. It should read 256 Bytes which it > > did from 2010 on. > > > > Something must have changed from Debian 10 to Debian 11. Is there a > > configuration where I can change this behaviour? I don't know which > > package to blame for the change und what kind of Information I should > > give you. > > Hm. Where to start? > > Do you have access to one Debian 10 and one Debian 11 installation to > compare things?
Yes, parallel installation on the same computer as well as installations on different computers.
> The "ttyACM" is a hint that the device ends up as a "modem" (this is not to > be taken too seriously). Does that happen in both installations?
Yes. Modemmanager is deinstalled.
> One main suspect is, of course, the kernel (mainly the USB modules). Can you > compare the output of "lsusb" in both installations, perhaps before and > after inserting the device?
Okay, sse attachments.
> Another hint would be the output of `lsusb -vvv'. Can you identify the > device in question? Any differences between Debian 10 and 11?
See attachments. The output of lsusb before and after inserting the device and the output of lsusb -vvv. I can not see any real difference. ??
As I said the library can read 256 Bytes from the device on Debian 10. On Debian 11 it can only read 64 Bytes and breaks the transmission.
Best regards
Claudia
> Cheers and good luck > > (NOTE: I kept you in CC because I don't know whether you are subscribed, > if you prefer, I can drop that)
Yes please keep CC.
|
Before:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 8087:0a2a Intel Corp. Bluetooth wireless interface
Bus 001 Device 005: ID 0bda:57da Realtek Semiconductor Corp. Built-In Video Camera
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 006: ID 413c:2106 Dell Computer Corp. QuietKey Keyboard
Bus 001 Device 004: ID 1ea7:0064 SHARKOON Technologies GmbH 2.4GHz Wireless rechargeable vertical mouse [More&Better]
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 8087:0a2a Intel Corp. Bluetooth wireless interface
Bus 001 Device 005: ID 0bda:57da Realtek Semiconductor Corp. Built-In Video Camera
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 008: ID 1f61:0001 Flexocard GmbH VML-GK2 (USB)
Bus 001 Device 006: ID 413c:2106 Dell Computer Corp. QuietKey Keyboard
Bus 001 Device 004: ID 1ea7:0064 SHARKOON Technologies GmbH 2.4GHz Wireless rechargeable vertical mouse [More&Better]
Bus 001 Device 002: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -vvv -d 1f61:0001
Bus 001 Device 008: ID 1f61:0001 Flexocard GmbH VML-GK2 (USB)
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1f61
idProduct 0x0001
bcdDevice 1.07
iManufacturer 1 Flexocard GmbH
iProduct 2 VML-GK2 (USB)
iSerial 3 2009002
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0043
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 490mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 32
CDC Header:
bcdCDC 1.10
CDC ACM:
bmCapabilities 0x00
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC Call Management:
bmCapabilities 0x00
bDataInterface 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
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 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0
Before:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 8087:0a2a Intel Corp.
Bus 001 Device 005: ID 0bda:57da Realtek Semiconductor Corp. Built-In Video Camera
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 011: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 001 Device 010: ID 1ea7:0064 SHARKOON Technologies GmbH
Bus 001 Device 009: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
After:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 007: ID 8087:0a2a Intel Corp.
Bus 001 Device 005: ID 0bda:57da Realtek Semiconductor Corp. Built-In Video Camera
Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 014: ID 1f61:0001
Bus 001 Device 011: ID 413c:2106 Dell Computer Corp. Dell QuietKey Keyboard
Bus 001 Device 010: ID 1ea7:0064 SHARKOON Technologies GmbH
Bus 001 Device 009: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
lsusb -vvv -d 1f61:0001
Bus 001 Device 014: ID 1f61:0001
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 2 Communications
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x1f61
idProduct 0x0001
bcdDevice 1.07
iManufacturer 1
iProduct 2
iSerial 3
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x0043
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 490mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 2 Communications
bInterfaceSubClass 2 Abstract (modem)
bInterfaceProtocol 1 AT-commands (v.25ter)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 32
CDC Header:
bcdCDC 1.10
CDC ACM:
bmCapabilities 0x00
CDC Union:
bMasterInterface 0
bSlaveInterface 1
CDC Call Management:
bmCapabilities 0x00
bDataInterface 1
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 10 CDC Data
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
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 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 0