133 lines · plain
1======================2Linux ACM driver v0.163======================4 5Copyright (c) 1999 Vojtech Pavlik <vojtech@suse.cz>6 7Sponsored by SuSE8 90. Disclaimer10~~~~~~~~~~~~~11This program is free software; you can redistribute it and/or modify it12under the terms of the GNU General Public License as published by the Free13Software Foundation; either version 2 of the License, or (at your option)14any later version.15 16This program is distributed in the hope that it will be useful, but17WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY18or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for19more details.20 21You should have received a copy of the GNU General Public License along22with this program; if not, write to the Free Software Foundation, Inc., 5923Temple Place, Suite 330, Boston, MA 02111-1307 USA24 25Should you need to contact me, the author, you can do so either by e-mail -26mail your message to <vojtech@suse.cz>, or by paper mail: Vojtech Pavlik,27Ucitelska 1576, Prague 8, 182 00 Czech Republic28 29For your convenience, the GNU General Public License version 2 is included30in the package: See the file COPYING.31 321. Usage33~~~~~~~~34The drivers/usb/class/cdc-acm.c drivers works with USB modems and USB ISDN terminal35adapters that conform to the Universal Serial Bus Communication Device Class36Abstract Control Model (USB CDC ACM) specification.37 38Many modems do, here is a list of those I know of:39 40 - 3Com OfficeConnect 56k41 - 3Com Voice FaxModem Pro42 - 3Com Sportster43 - MultiTech MultiModem 56k44 - Zoom 2986L FaxModem45 - Compaq 56k FaxModem46 - ELSA Microlink 56k47 48I know of one ISDN TA that does work with the acm driver:49 50 - 3Com USR ISDN Pro TA51 52Some cell phones also connect via USB. I know the following phones work:53 54 - SonyEricsson K800i55 56Unfortunately many modems and most ISDN TAs use proprietary interfaces and57thus won't work with this drivers. Check for ACM compliance before buying.58 59To use the modems you need these modules loaded::60 61 usbcore.ko62 uhci-hcd.ko ohci-hcd.ko or ehci-hcd.ko63 cdc-acm.ko64 65After that, the modem[s] should be accessible. You should be able to use66minicom, ppp and mgetty with them.67 682. Verifying that it works69~~~~~~~~~~~~~~~~~~~~~~~~~~70 71The first step would be to check /sys/kernel/debug/usb/devices, it should look72like this::73 74 T: Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 275 B: Alloc= 0/900 us ( 0%), #Int= 0, #Iso= 076 D: Ver= 1.00 Cls=09(hub ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 177 P: Vendor=0000 ProdID=0000 Rev= 0.0078 S: Product=USB UHCI Root Hub79 S: SerialNumber=680080 C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr= 0mA81 I: If#= 0 Alt= 0 #EPs= 1 Cls=09(hub ) Sub=00 Prot=00 Driver=hub82 E: Ad=81(I) Atr=03(Int.) MxPS= 8 Ivl=255ms83 T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 2 Spd=12 MxCh= 084 D: Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 285 P: Vendor=04c1 ProdID=008f Rev= 2.0786 S: Manufacturer=3Com Inc.87 S: Product=3Com U.S. Robotics Pro ISDN TA88 S: SerialNumber=UFT53A49BVT789 C: #Ifs= 1 Cfg#= 1 Atr=60 MxPwr= 0mA90 I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=acm91 E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms92 E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms93 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms94 C:* #Ifs= 2 Cfg#= 2 Atr=60 MxPwr= 0mA95 I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acm96 E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms97 I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acm98 E: Ad=85(I) Atr=02(Bulk) MxPS= 64 Ivl= 0ms99 E: Ad=04(O) Atr=02(Bulk) MxPS= 64 Ivl= 0ms100 101The presence of these three lines (and the Cls= 'comm' and 'data' classes)102is important, it means it's an ACM device. The Driver=acm means the acm103driver is used for the device. If you see only Cls=ff(vend.) then you're out104of luck, you have a device with vendor specific-interface::105 106 D: Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs= 2107 I: If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acm108 I: If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acm109 110In the system log you should see::111 112 usb.c: USB new device connect, assigned device number 2113 usb.c: kmalloc IF c7691fa0, numif 1114 usb.c: kmalloc IF c7b5f3e0, numif 2115 usb.c: skipped 4 class/vendor specific interface descriptors116 usb.c: new device strings: Mfr=1, Product=2, SerialNumber=3117 usb.c: USB device number 2 default language ID 0x409118 Manufacturer: 3Com Inc.119 Product: 3Com U.S. Robotics Pro ISDN TA120 SerialNumber: UFT53A49BVT7121 acm.c: probing config 1122 acm.c: probing config 2123 ttyACM0: USB ACM device124 acm.c: acm_control_msg: rq: 0x22 val: 0x0 len: 0x0 result: 0125 acm.c: acm_control_msg: rq: 0x20 val: 0x0 len: 0x7 result: 7126 usb.c: acm driver claimed interface c7b5f3e0127 usb.c: acm driver claimed interface c7b5f3f8128 usb.c: acm driver claimed interface c7691fa0129 130If all this seems to be OK, fire up minicom and set it to talk to the ttyACM131device and try typing 'at'. If it responds with 'OK', then everything is132working.133