README.avmb1 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. Driver for active AVM Controller.
  2. The driver provides a kernel capi2.0 Interface (kernelcapi) and
  3. on top of this a User-Level-CAPI2.0-interface (capi)
  4. and a driver to connect isdn4linux with CAPI2.0 (capidrv).
  5. The lowlevel interface can be used to implement a CAPI2.0
  6. also for passive cards since July 1999.
  7. The author can be reached at calle@calle.in-berlin.de.
  8. The command avmcapictrl is part of the isdn4k-utils.
  9. t4-files can be found at ftp://ftp.avm.de/cardware/b1/linux/firmware
  10. Currently supported cards:
  11. B1 ISA (all versions)
  12. B1 PCI
  13. T1/T1B (HEMA card)
  14. M1
  15. M2
  16. B1 PCMCIA
  17. Installing
  18. ----------
  19. You need at least /dev/capi20 to load the firmware.
  20. mknod /dev/capi20 c 68 0
  21. mknod /dev/capi20.00 c 68 1
  22. mknod /dev/capi20.01 c 68 2
  23. .
  24. .
  25. .
  26. mknod /dev/capi20.19 c 68 20
  27. Running
  28. -------
  29. To use the card you need the t4-files to download the firmware.
  30. AVM GmbH provides several t4-files for the different D-channel
  31. protocols (b1.t4 for Euro-ISDN). Install these file in /lib/isdn.
  32. if you configure as modules load the modules this way:
  33. insmod /lib/modules/current/misc/capiutil.o
  34. insmod /lib/modules/current/misc/b1.o
  35. insmod /lib/modules/current/misc/kernelcapi.o
  36. insmod /lib/modules/current/misc/capidrv.o
  37. insmod /lib/modules/current/misc/capi.o
  38. if you have an B1-PCI card load the module b1pci.o
  39. insmod /lib/modules/current/misc/b1pci.o
  40. and load the firmware with
  41. avmcapictrl load /lib/isdn/b1.t4 1
  42. if you have an B1-ISA card load the module b1isa.o
  43. and add the card by calling
  44. avmcapictrl add 0x150 15
  45. and load the firmware by calling
  46. avmcapictrl load /lib/isdn/b1.t4 1
  47. if you have an T1-ISA card load the module t1isa.o
  48. and add the card by calling
  49. avmcapictrl add 0x450 15 T1 0
  50. and load the firmware by calling
  51. avmcapictrl load /lib/isdn/t1.t4 1
  52. if you have an PCMCIA card (B1/M1/M2) load the module b1pcmcia.o
  53. before you insert the card.
  54. Leased Lines with B1
  55. --------------------
  56. Init card and load firmware.
  57. For an D64S use "FV: 1" as phone number
  58. For an D64S2 use "FV: 1" and "FV: 2" for multilink
  59. or "FV: 1,2" to use CAPI channel bundling.
  60. /proc-Interface
  61. -----------------
  62. /proc/capi:
  63. dr-xr-xr-x 2 root root 0 Jul 1 14:03 .
  64. dr-xr-xr-x 82 root root 0 Jun 30 19:08 ..
  65. -r--r--r-- 1 root root 0 Jul 1 14:03 applications
  66. -r--r--r-- 1 root root 0 Jul 1 14:03 applstats
  67. -r--r--r-- 1 root root 0 Jul 1 14:03 capi20
  68. -r--r--r-- 1 root root 0 Jul 1 14:03 capidrv
  69. -r--r--r-- 1 root root 0 Jul 1 14:03 controller
  70. -r--r--r-- 1 root root 0 Jul 1 14:03 contrstats
  71. -r--r--r-- 1 root root 0 Jul 1 14:03 driver
  72. -r--r--r-- 1 root root 0 Jul 1 14:03 ncci
  73. -r--r--r-- 1 root root 0 Jul 1 14:03 users
  74. /proc/capi/applications:
  75. applid level3cnt datablkcnt datablklen ncci-cnt recvqueuelen
  76. level3cnt: capi_register parameter
  77. datablkcnt: capi_register parameter
  78. ncci-cnt: current number of nccis (connections)
  79. recvqueuelen: number of messages on receive queue
  80. for example:
  81. 1 -2 16 2048 1 0
  82. 2 2 7 2048 1 0
  83. /proc/capi/applstats:
  84. applid recvctlmsg nrecvdatamsg nsentctlmsg nsentdatamsg
  85. recvctlmsg: capi messages received without DATA_B3_IND
  86. recvdatamsg: capi DATA_B3_IND received
  87. sentctlmsg: capi messages sent without DATA_B3_REQ
  88. sentdatamsg: capi DATA_B3_REQ sent
  89. for example:
  90. 1 2057 1699 1721 1699
  91. /proc/capi/capi20: statistics of capi.o (/dev/capi20)
  92. minor nopen nrecvdropmsg nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg
  93. minor: minor device number of capi device
  94. nopen: number of calls to devices open
  95. nrecvdropmsg: capi messages dropped (messages in recvqueue in close)
  96. nrecvctlmsg: capi messages received without DATA_B3_IND
  97. nrecvdatamsg: capi DATA_B3_IND received
  98. nsentctlmsg: capi messages sent without DATA_B3_REQ
  99. nsentdatamsg: capi DATA_B3_REQ sent
  100. for example:
  101. 1 2 18 0 16 2
  102. /proc/capi/capidrv: statistics of capidrv.o (capi messages)
  103. nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg
  104. nrecvctlmsg: capi messages received without DATA_B3_IND
  105. nrecvdatamsg: capi DATA_B3_IND received
  106. nsentctlmsg: capi messages sent without DATA_B3_REQ
  107. nsentdatamsg: capi DATA_B3_REQ sent
  108. for example:
  109. 2780 2226 2256 2226
  110. /proc/capi/controller:
  111. controller drivername state cardname controllerinfo
  112. for example:
  113. 1 b1pci running b1pci-e000 B1 3.07-01 0xe000 19
  114. 2 t1isa running t1isa-450 B1 3.07-01 0x450 11 0
  115. 3 b1pcmcia running m2-150 B1 3.07-01 0x150 5
  116. /proc/capi/contrstats:
  117. controller nrecvctlmsg nrecvdatamsg sentctlmsg sentdatamsg
  118. nrecvctlmsg: capi messages received without DATA_B3_IND
  119. nrecvdatamsg: capi DATA_B3_IND received
  120. nsentctlmsg: capi messages sent without DATA_B3_REQ
  121. nsentdatamsg: capi DATA_B3_REQ sent
  122. for example:
  123. 1 2845 2272 2310 2274
  124. 2 2 0 2 0
  125. 3 2 0 2 0
  126. /proc/capi/driver:
  127. drivername ncontroller
  128. for example:
  129. b1pci 1
  130. t1isa 1
  131. b1pcmcia 1
  132. b1isa 0
  133. /proc/capi/ncci:
  134. apllid ncci winsize sendwindow
  135. for example:
  136. 1 0x10101 8 0
  137. /proc/capi/users: kernelmodules that use the kernelcapi.
  138. name
  139. for example:
  140. capidrv
  141. capi20
  142. Questions
  143. ---------
  144. Check out the FAQ (ftp.isdn4linux.de) or subscribe to the
  145. linux-avmb1@calle.in-berlin.de mailing list by sending
  146. a mail to majordomo@calle.in-berlin.de with
  147. subscribe linux-avmb1
  148. in the body.
  149. German documentation and several scripts can be found at
  150. ftp://ftp.avm.de/cardware/b1/linux/
  151. Bugs
  152. ----
  153. If you find any please let me know.
  154. Enjoy,
  155. Carsten Paeth (calle@calle.in-berlin.de)