1*4882a593Smuzhiyun====================== 2*4882a593SmuzhiyunLinux ACM driver v0.16 3*4882a593Smuzhiyun====================== 4*4882a593Smuzhiyun 5*4882a593SmuzhiyunCopyright (c) 1999 Vojtech Pavlik <vojtech@suse.cz> 6*4882a593Smuzhiyun 7*4882a593SmuzhiyunSponsored by SuSE 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun0. Disclaimer 10*4882a593Smuzhiyun~~~~~~~~~~~~~ 11*4882a593SmuzhiyunThis program is free software; you can redistribute it and/or modify it 12*4882a593Smuzhiyununder the terms of the GNU General Public License as published by the Free 13*4882a593SmuzhiyunSoftware Foundation; either version 2 of the License, or (at your option) 14*4882a593Smuzhiyunany later version. 15*4882a593Smuzhiyun 16*4882a593SmuzhiyunThis program is distributed in the hope that it will be useful, but 17*4882a593SmuzhiyunWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 18*4882a593Smuzhiyunor FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 19*4882a593Smuzhiyunmore details. 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunYou should have received a copy of the GNU General Public License along 22*4882a593Smuzhiyunwith this program; if not, write to the Free Software Foundation, Inc., 59 23*4882a593SmuzhiyunTemple Place, Suite 330, Boston, MA 02111-1307 USA 24*4882a593Smuzhiyun 25*4882a593SmuzhiyunShould you need to contact me, the author, you can do so either by e-mail - 26*4882a593Smuzhiyunmail your message to <vojtech@suse.cz>, or by paper mail: Vojtech Pavlik, 27*4882a593SmuzhiyunUcitelska 1576, Prague 8, 182 00 Czech Republic 28*4882a593Smuzhiyun 29*4882a593SmuzhiyunFor your convenience, the GNU General Public License version 2 is included 30*4882a593Smuzhiyunin the package: See the file COPYING. 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun1. Usage 33*4882a593Smuzhiyun~~~~~~~~ 34*4882a593SmuzhiyunThe drivers/usb/class/cdc-acm.c drivers works with USB modems and USB ISDN terminal 35*4882a593Smuzhiyunadapters that conform to the Universal Serial Bus Communication Device Class 36*4882a593SmuzhiyunAbstract Control Model (USB CDC ACM) specification. 37*4882a593Smuzhiyun 38*4882a593SmuzhiyunMany modems do, here is a list of those I know of: 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun - 3Com OfficeConnect 56k 41*4882a593Smuzhiyun - 3Com Voice FaxModem Pro 42*4882a593Smuzhiyun - 3Com Sportster 43*4882a593Smuzhiyun - MultiTech MultiModem 56k 44*4882a593Smuzhiyun - Zoom 2986L FaxModem 45*4882a593Smuzhiyun - Compaq 56k FaxModem 46*4882a593Smuzhiyun - ELSA Microlink 56k 47*4882a593Smuzhiyun 48*4882a593SmuzhiyunI know of one ISDN TA that does work with the acm driver: 49*4882a593Smuzhiyun 50*4882a593Smuzhiyun - 3Com USR ISDN Pro TA 51*4882a593Smuzhiyun 52*4882a593SmuzhiyunSome cell phones also connect via USB. I know the following phones work: 53*4882a593Smuzhiyun 54*4882a593Smuzhiyun - SonyEricsson K800i 55*4882a593Smuzhiyun 56*4882a593SmuzhiyunUnfortunately many modems and most ISDN TAs use proprietary interfaces and 57*4882a593Smuzhiyunthus won't work with this drivers. Check for ACM compliance before buying. 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunTo use the modems you need these modules loaded:: 60*4882a593Smuzhiyun 61*4882a593Smuzhiyun usbcore.ko 62*4882a593Smuzhiyun uhci-hcd.ko ohci-hcd.ko or ehci-hcd.ko 63*4882a593Smuzhiyun cdc-acm.ko 64*4882a593Smuzhiyun 65*4882a593SmuzhiyunAfter that, the modem[s] should be accessible. You should be able to use 66*4882a593Smuzhiyunminicom, ppp and mgetty with them. 67*4882a593Smuzhiyun 68*4882a593Smuzhiyun2. Verifying that it works 69*4882a593Smuzhiyun~~~~~~~~~~~~~~~~~~~~~~~~~~ 70*4882a593Smuzhiyun 71*4882a593SmuzhiyunThe first step would be to check /sys/kernel/debug/usb/devices, it should look 72*4882a593Smuzhiyunlike this:: 73*4882a593Smuzhiyun 74*4882a593Smuzhiyun T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2 75*4882a593Smuzhiyun B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 0 76*4882a593Smuzhiyun D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 77*4882a593Smuzhiyun P: Vendor=0000 ProdID=0000 Rev= 0.00 78*4882a593Smuzhiyun S: Product=USB UHCI Root Hub 79*4882a593Smuzhiyun S: SerialNumber=6800 80*4882a593Smuzhiyun C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA 81*4882a593Smuzhiyun I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub 82*4882a593Smuzhiyun E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms 83*4882a593Smuzhiyun T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 0 84*4882a593Smuzhiyun D: Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 2 85*4882a593Smuzhiyun P: Vendor=04c1 ProdID=008f Rev= 2.07 86*4882a593Smuzhiyun S: Manufacturer=3Com Inc. 87*4882a593Smuzhiyun S: Product=3Com U.S. Robotics Pro ISDN TA 88*4882a593Smuzhiyun S: SerialNumber=UFT53A49BVT7 89*4882a593Smuzhiyun C: #Ifs= 1 Cfg#= 1 Atr=60 MxPwr= 0mA 90*4882a593Smuzhiyun I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=acm 91*4882a593Smuzhiyun E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms 92*4882a593Smuzhiyun E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms 93*4882a593Smuzhiyun E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms 94*4882a593Smuzhiyun C:* #Ifs= 2 Cfg#= 2 Atr=60 MxPwr= 0mA 95*4882a593Smuzhiyun I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acm 96*4882a593Smuzhiyun E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms 97*4882a593Smuzhiyun I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acm 98*4882a593Smuzhiyun E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms 99*4882a593Smuzhiyun E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms 100*4882a593Smuzhiyun 101*4882a593SmuzhiyunThe presence of these three lines (and the Cls= 'comm' and 'data' classes) 102*4882a593Smuzhiyunis important, it means it's an ACM device. The Driver=acm means the acm 103*4882a593Smuzhiyundriver is used for the device. If you see only Cls=ff(vend.) then you're out 104*4882a593Smuzhiyunof luck, you have a device with vendor specific-interface:: 105*4882a593Smuzhiyun 106*4882a593Smuzhiyun D: Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 2 107*4882a593Smuzhiyun I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acm 108*4882a593Smuzhiyun I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acm 109*4882a593Smuzhiyun 110*4882a593SmuzhiyunIn the system log you should see:: 111*4882a593Smuzhiyun 112*4882a593Smuzhiyun usb.c: USB new device connect, assigned device number 2 113*4882a593Smuzhiyun usb.c: kmalloc IF c7691fa0, numif 1 114*4882a593Smuzhiyun usb.c: kmalloc IF c7b5f3e0, numif 2 115*4882a593Smuzhiyun usb.c: skipped 4 class/vendor specific interface descriptors 116*4882a593Smuzhiyun usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3 117*4882a593Smuzhiyun usb.c: USB device number 2 default language ID 0x409 118*4882a593Smuzhiyun Manufacturer: 3Com Inc. 119*4882a593Smuzhiyun Product: 3Com U.S. Robotics Pro ISDN TA 120*4882a593Smuzhiyun SerialNumber: UFT53A49BVT7 121*4882a593Smuzhiyun acm.c: probing config 1 122*4882a593Smuzhiyun acm.c: probing config 2 123*4882a593Smuzhiyun ttyACM0: USB ACM device 124*4882a593Smuzhiyun acm.c: acm_control_msg: rq: 0x22 val: 0x0 len: 0x0 result: 0 125*4882a593Smuzhiyun acm.c: acm_control_msg: rq: 0x20 val: 0x0 len: 0x7 result: 7 126*4882a593Smuzhiyun usb.c: acm driver claimed interface c7b5f3e0 127*4882a593Smuzhiyun usb.c: acm driver claimed interface c7b5f3f8 128*4882a593Smuzhiyun usb.c: acm driver claimed interface c7691fa0 129*4882a593Smuzhiyun 130*4882a593SmuzhiyunIf all this seems to be OK, fire up minicom and set it to talk to the ttyACM 131*4882a593Smuzhiyundevice and try typing 'at'. If it responds with 'OK', then everything is 132*4882a593Smuzhiyunworking. 133