acm.txt 4.8 KB

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