⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acm.txt

📁 讲述linux的初始化过程
💻 TXT
字号:
			  Linux ACM driver v0.16		 (c) 1999 Vojtech Pavlik <vojtech@suse.cz>			     Sponsored by SuSE----------------------------------------------------------------------------0. Disclaimer~~~~~~~~~~~~~  This program is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by the FreeSoftware Foundation; either version 2 of the License, or (at your option)any later version.  This program is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITYor FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License formore details.  You should have received a copy of the GNU General Public License alongwith this program; if not, write to the Free Software Foundation, Inc., 59Temple Place, Suite 330, Boston, MA 02111-1307 USA  Should you need to contact me, the author, you can do so either by e-mail- mail your message to <vojtech@suse.cz>, or by paper mail: Vojtech Pavlik,Ucitelska 1576, Prague 8, 182 00 Czech Republic  For your convenience, the GNU General Public License version 2 is includedin the package: See the file COPYING.1. Usage~~~~~~~~  The drivers/usb/acm.c drivers works with USB modems and USB ISDN terminaladapters that conform to the Universal Serial Bus Communication Device ClassAbstract Control Model (USB CDC ACM) specification.  Many modems do, here is a list of those I know of:	3Com OfficeConnect 56k	3Com Voice FaxModem Pro	3Com Sportster	MultiTech MultiModem 56k	Zoom 2986L FaxModem	Compaq 56k FaxModem	ELSA Microlink 56k  I know of one ISDN TA that does work with the acm driver:	3Com USR ISDN Pro TA  Unfortunately many modems and most ISDN TAs use proprietary interfaces andthus won't work with this drivers. Check for ACM compliance before buying.  The driver (with devfs) creates these devices in /dev/usb/acm:	crw-r--r--   1 root     root     166,   0 Apr  1 10:49 0	crw-r--r--   1 root     root     166,   1 Apr  1 10:49 1	crw-r--r--   1 root     root     166,   2 Apr  1 10:49 2  And so on, up to 31, with the limit being possible to change in acm.c to upto 256, so you can use up to 256 USB modems with one computer (you'll needthree USB cards for that, though).  If you don't use devfs, then you can create device nodes with the sameminor/major numbers anywhere you want, but either the above location or/dev/usb/ttyACM0 is preferred.  To use the modems you need these modules loaded:	usbcore.o	usb-[uo]hci.o or uhci.o	acm.o  After that, the modem[s] should be accessible. You should be able to useminicom, ppp and mgetty with them.2. Verifying that it works~~~~~~~~~~~~~~~~~~~~~~~~~~  The first step would be to check /proc/bus/usb/devices, it should looklike this:T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 2B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0D:  Ver= 1.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1P:  Vendor=0000 ProdID=0000 Rev= 0.00S:  Product=USB UHCI Root HubS:  SerialNumber=6800C:* #Ifs= 1 Cfg#= 1 Atr=40 MxPwr=  0mAI:  If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hubE:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=255msT:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=12  MxCh= 0D:  Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  2P:  Vendor=04c1 ProdID=008f Rev= 2.07S:  Manufacturer=3Com Inc.S:  Product=3Com U.S. Robotics Pro ISDN TAS:  SerialNumber=UFT53A49BVT7C:  #Ifs= 1 Cfg#= 1 Atr=60 MxPwr=  0mAI:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=acmE:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=  0msE:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=  0msE:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128msC:* #Ifs= 2 Cfg#= 2 Atr=60 MxPwr=  0mAI:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acmE:  Ad=81(I) Atr=03(Int.) MxPS=  16 Ivl=128msI:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acmE:  Ad=85(I) Atr=02(Bulk) MxPS=  64 Ivl=  0msE:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=  0msThe presence of these three lines (and the Cls= 'comm' and 'data' classes)is important, it means it's an ACM device. The Driver=acm means the acmdriver is used for the device. If you see only Cls=ff(vend.) then you're outof luck, you have a device with vendor specific-interface.D:  Ver= 1.00 Cls=02(comm.) Sub=00 Prot=00 MxPS= 8 #Cfgs=  2I:  If#= 0 Alt= 0 #EPs= 1 Cls=02(comm.) Sub=02 Prot=01 Driver=acmI:  If#= 1 Alt= 0 #EPs= 2 Cls=0a(data ) Sub=00 Prot=00 Driver=acmIn the system log you should see:usb.c: USB new device connect, assigned device number 2usb.c: kmalloc IF c7691fa0, numif 1usb.c: kmalloc IF c7b5f3e0, numif 2usb.c: skipped 4 class/vendor specific interface descriptorsusb.c: new device strings: Mfr=1, Product=2, SerialNumber=3usb.c: USB device number 2 default language ID 0x409Manufacturer: 3Com Inc.Product: 3Com U.S. Robotics Pro ISDN TASerialNumber: UFT53A49BVT7acm.c: probing config 1acm.c: probing config 2ttyACM0: USB ACM deviceacm.c: acm_control_msg: rq: 0x22 val: 0x0 len: 0x0 result: 0acm.c: acm_control_msg: rq: 0x20 val: 0x0 len: 0x7 result: 7usb.c: acm driver claimed interface c7b5f3e0usb.c: acm driver claimed interface c7b5f3f8usb.c: acm driver claimed interface c7691fa0If all this seems to be OK, fire up minicom and set it to talk to the ttyACMdevice and try typing 'at'. If it responds with 'OK', then everything isworking.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -