On Thu, Mar 1, 2012 at 1:57 PM, Stefan Dreyer <stefan.dreyer@ddnetservice.net> wrote:
Hi,
allthough the answer is offtopic for cdc-acm-driver, i will answer, because maybe it helps other people in future.
I can tell you exactly, what is going on. If the scanner switches to ProductId=0720 (0c2e:0720) the scanner is working in Serial-Mode. If you want the scanner let work as serial device, you have to use the driver metro-usb. The manufacturer has this driver, but that one is outdatet and doesn't compile on actual Linux kernel. I found an actual driver, which compiles even with kernel 3.2 <https://gitorious.org/other/metro-usb/commits/master>
Thanks a lot for the prompt reply, this should adequately solve my problem. I am able to download the driver source and compile. However, I have run into a trivial module format error. [root@pe1800xs serial]# modinfo metro-usb.ko filename: metro-usb.ko description: Metrologic Instruments Inc. - USB-POS driver author: Aleksey Babahin <tamerlan311@gmail.com> author: Philip Nicastro license: GPL srcversion: AF4C7DDE2804EBB1578A05F alias: usb:v0C2Ep0710d*dc*dsc*dp*ic*isc*ip* alias: usb:v0C2Ep0720d*dc*dsc*dp*ic*isc*ip* depends: usbserial vermagic: 2.6.35.6-45.fc14.i686 SMP mod_unload modversions 686 parm: debug:Print debug info (bool 1=on, 0=off) (bool) parm: vendor:User specified vendor ID (ushort) (ushort) parm: product:User specified product ID (ushort) (ushort) [root@pe1800xs serial]# modprobe -f -v metro-usb insmod /lib/modules/2.6.35.6-45.fc14.i686/kernel/drivers/usb/serial/metro-usb.ko FATAL: Error inserting metro_usb (/lib/modules/2.6.35.6-45.fc14.i686/kernel/drivers/usb/serial/metro-usb.ko): Invalid module format [root@pe1800xs serial]# uname -a Linux pe1800xs 2.6.35.6-45.fc14.i686 #1 SMP Mon Oct 18 23:56:17 UTC 2010 i686 i686 i386 GNU/Linux [root@pe1800xs serial]# dmesg [84119.755750] metro_usb: version magic '2.6.35.6-45.fc14.i686 SMP mod_unload modversions 686 ' should be '2.6.35.6-45.fc14.i686 SMP mod_unload 686 ' I am running Fedora14 with "Force module loading option disabled". How can I turn it ON without recompiling the kernel. Or, since I have the souce files of the driver (attached), how can I modify the metro-usb.c file to provide suitable "module version". -- Manavendra Nath Manav