README.gigaset 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287
  1. GigaSet 307x Device Driver
  2. ==========================
  3. 1. Requirements
  4. ------------
  5. 1.1. Hardware
  6. --------
  7. This release supports the connection of the Gigaset 307x/417x family of
  8. ISDN DECT bases via Gigaset M101 Data, Gigaset M105 Data or direct USB
  9. connection. The following devices are reported to be compatible:
  10. 307x/417x:
  11. Gigaset SX255isdn
  12. Gigaset SX353isdn
  13. Sinus 45 [AB] isdn (Deutsche Telekom)
  14. Sinus 721X/XA
  15. Vox Chicago 390 ISDN (KPN Telecom)
  16. M101:
  17. Sinus 45 Data 1 (Telekom)
  18. M105:
  19. Gigaset USB Adapter DECT
  20. Sinus 45 Data 2 (Telekom)
  21. Sinus 721 data
  22. Chicago 390 USB (KPN)
  23. See also http://www.erbze.info/sinus_gigaset.htm and
  24. http://gigaset307x.sourceforge.net/
  25. We had also reports from users of Gigaset M105 who could use the drivers
  26. with SX 100 and CX 100 ISDN bases (only in unimodem mode, see section 2.4.)
  27. If you have another device that works with our driver, please let us know.
  28. For example, Gigaset SX205isdn/Sinus 721 X SE and Gigaset SX303isdn bases
  29. are just versions without answering machine of models known to work, so
  30. they should work just as well; but so far we are lacking positive reports
  31. on these.
  32. Chances of getting an USB device to work are good if the output of
  33. lsusb
  34. at the command line contains one of the following:
  35. ID 0681:0001
  36. ID 0681:0002
  37. ID 0681:0009
  38. ID 0681:0021
  39. ID 0681:0022
  40. 1.2. Software
  41. --------
  42. The driver works with ISDN4linux and so can be used with any software
  43. which is able to use ISDN4linux for ISDN connections (voice or data).
  44. CAPI4Linux support is planned but not yet available.
  45. There are some user space tools available at
  46. http://sourceforge.net/projects/gigaset307x/
  47. which provide access to additional device specific functions like SMS,
  48. phonebook or call journal.
  49. 2. How to use the driver
  50. ---------------------
  51. 2.1. Modules
  52. -------
  53. To get the device working, you have to load the proper kernel module. You
  54. can do this using
  55. modprobe modulename
  56. where modulename is usb_gigaset (M105) or bas_gigaset (direct USB
  57. connection to the base).
  58. 2.2. Device nodes for user space programs
  59. ------------------------------------
  60. The device can be accessed from user space (eg. by the user space tools
  61. mentioned in 1.2.) through the device nodes:
  62. - /dev/ttyGU0 for M105 (USB data boxes)
  63. - /dev/ttyGB0 for the base driver (direct USB connection)
  64. You can also select a "default device" which is used by the frontends when
  65. no device node is given as parameter, by creating a symlink /dev/ttyG to
  66. one of them, eg.:
  67. ln -s /dev/ttyGB0 /dev/ttyG
  68. 2.3. ISDN4linux
  69. ----------
  70. This is the "normal" mode of operation. After loading the module you can
  71. set up the ISDN system just as you'd do with any ISDN card.
  72. Your distribution should provide some configuration utility.
  73. If not, you can use some HOWTOs like
  74. http://www.linuxhaven.de/dlhp/HOWTO/DE-ISDN-HOWTO-5.html
  75. If this doesn't work, because you have some recent device like SX100 where
  76. debug output (see section 3.2.) shows something like this when dialing
  77. CMD Received: ERROR
  78. Available Params: 0
  79. Connection State: 0, Response: -1
  80. gigaset_process_response: resp_code -1 in ConState 0 !
  81. Timeout occurred
  82. you might need to use unimodem mode:
  83. 2.4. Unimodem mode
  84. -------------
  85. This is needed for some devices [e.g. SX100] as they have problems with
  86. the "normal" commands.
  87. If you have installed the command line tool gigacontr, you can enter
  88. unimodem mode using
  89. gigacontr --mode unimodem
  90. You can switch back using
  91. gigacontr --mode isdn
  92. You can also load the driver using e.g.
  93. modprobe usb_gigaset startmode=0
  94. to prevent the driver from starting in "isdn4linux mode".
  95. In this mode the device works like a modem connected to a serial port
  96. (the /dev/ttyGU0, ... mentioned above) which understands the commands
  97. ATZ init, reset
  98. => OK or ERROR
  99. ATD
  100. ATDT dial
  101. => OK, CONNECT,
  102. BUSY,
  103. NO DIAL TONE,
  104. NO CARRIER,
  105. NO ANSWER
  106. <pause>+++<pause> change to command mode when connected
  107. ATH hangup
  108. You can use some configuration tool of your distribution to configure this
  109. "modem" or configure pppd/wvdial manually. There are some example ppp
  110. configuration files and chat scripts in the gigaset-VERSION/ppp directory
  111. in the driver packages from http://sourceforge.net/projects/gigaset307x/.
  112. Please note that the USB drivers are not able to change the state of the
  113. control lines (the M105 driver can be configured to use some undocumented
  114. control requests, if you really need the control lines, though). This means
  115. you must use "Stupid Mode" if you are using wvdial or you should use the
  116. nocrtscts option of pppd.
  117. You must also assure that the ppp_async module is loaded with the parameter
  118. flag_time=0. You can do this e.g. by adding a line like
  119. options ppp_async flag_time=0
  120. to /etc/modprobe.conf. If your distribution has some local module
  121. configuration file like /etc/modprobe.conf.local,
  122. using that should be preferred.
  123. 2.5. Call-ID (CID) mode
  124. ------------------
  125. Call-IDs are numbers used to tag commands to, and responses from, the
  126. Gigaset base in order to support the simultaneous handling of multiple
  127. ISDN calls. Their use can be enabled ("CID mode") or disabled ("Unimodem
  128. mode"). Without Call-IDs (in Unimodem mode), only a very limited set of
  129. functions is available. It allows outgoing data connections only, but
  130. does not signal incoming calls or other base events.
  131. DECT cordless data devices (M10x) permanently occupy the cordless
  132. connection to the base while Call-IDs are activated. As the Gigaset
  133. bases only support one DECT data connection at a time, this prevents
  134. other DECT cordless data devices from accessing the base.
  135. During active operation, the driver switches to the necessary mode
  136. automatically. However, for the reasons above, the mode chosen when
  137. the device is not in use (idle) can be selected by the user.
  138. - If you want to receive incoming calls, you can use the default
  139. settings (CID mode).
  140. - If you have several DECT data devices (M10x) which you want to use
  141. in turn, select Unimodem mode by passing the parameter "cidmode=0" to
  142. the driver ("modprobe usb_gigaset cidmode=0" or modprobe.conf).
  143. If you want both of these at once, you are out of luck.
  144. You can also use /sys/class/tty/ttyGxy/cidmode for changing the CID mode
  145. setting (ttyGxy is ttyGU0 or ttyGB0).
  146. 3. Troubleshooting
  147. ---------------
  148. 3.1. Solutions to frequently reported problems
  149. -----------------------------------------
  150. Problem:
  151. You have a slow provider and isdn4linux gives up dialing too early.
  152. Solution:
  153. Load the isdn module using the dialtimeout option. You can do this e.g.
  154. by adding a line like
  155. options isdn dialtimeout=15
  156. to /etc/modprobe.conf. If your distribution has some local module
  157. configuration file like /etc/modprobe.conf.local,
  158. using that should be preferred.
  159. Problem:
  160. Your isdn script aborts with a message about isdnlog.
  161. Solution:
  162. Try deactivating (or commenting out) isdnlog. This driver does not
  163. support it.
  164. Problem:
  165. You have two or more DECT data adapters (M101/M105) and only the
  166. first one you turn on works.
  167. Solution:
  168. Select Unimodem mode for all DECT data adapters. (see section 2.4.)
  169. 3.2. Telling the driver to provide more information
  170. ----------------------------------------------
  171. Building the driver with the "Gigaset debugging" kernel configuration
  172. option (CONFIG_GIGASET_DEBUG) gives it the ability to produce additional
  173. information useful for debugging.
  174. You can control the amount of debugging information the driver produces by
  175. writing an appropriate value to /sys/module/gigaset/parameters/debug, e.g.
  176. echo 0 > /sys/module/gigaset/parameters/debug
  177. switches off debugging output completely,
  178. echo 0x10a020 > /sys/module/gigaset/parameters/debug
  179. enables the standard set of debugging output messages. These values are
  180. bit patterns where every bit controls a certain type of debugging output.
  181. See the constants DEBUG_* in the source file gigaset.h for details.
  182. The initial value can be set using the debug parameter when loading the
  183. module "gigaset", e.g. by adding a line
  184. options gigaset debug=0
  185. to /etc/modprobe.conf, ...
  186. Generated debugging information can be found
  187. - as output of the command
  188. dmesg
  189. - in system log files written by your syslog daemon, usually
  190. in /var/log/, e.g. /var/log/messages.
  191. 3.3. Reporting problems and bugs
  192. ---------------------------
  193. If you can't solve problems with the driver on your own, feel free to
  194. use one of the forums, bug trackers, or mailing lists on
  195. http://sourceforge.net/projects/gigaset307x
  196. or write an electronic mail to the maintainers.
  197. Try to provide as much information as possible, such as
  198. - distribution
  199. - kernel version (uname -r)
  200. - gcc version (gcc --version)
  201. - hardware architecture (uname -m, ...)
  202. - type and firmware version of your device (base and wireless module,
  203. if any)
  204. - output of "lsusb -v" (if using an USB device)
  205. - error messages
  206. - relevant system log messages (it would help if you activate debug
  207. output as described in 3.2.)
  208. For help with general configuration problems not specific to our driver,
  209. such as isdn4linux and network configuration issues, please refer to the
  210. appropriate forums and newsgroups.
  211. 3.4. Reporting problem solutions
  212. ---------------------------
  213. If you solved a problem with our drivers, wrote startup scripts for your
  214. distribution, ... feel free to contact us (using one of the places
  215. mentioned in 3.3.). We'd like to add scripts, hints, documentation
  216. to the driver and/or the project web page.
  217. 4. Links, other software
  218. ---------------------
  219. - Sourceforge project developing this driver and associated tools
  220. http://sourceforge.net/projects/gigaset307x
  221. - Yahoo! Group on the Siemens Gigaset family of devices
  222. http://de.groups.yahoo.com/group/Siemens-Gigaset
  223. - Siemens Gigaset/T-Sinus compatibility table
  224. http://www.erbze.info/sinus_gigaset.htm
  225. 5. Credits
  226. -------
  227. Thanks to
  228. Karsten Keil
  229. for his help with isdn4linux
  230. Deti Fliegl
  231. for his base driver code
  232. Dennis Dietrich
  233. for his kernel 2.6 patches
  234. Andreas Rummel
  235. for his work and logs to get unimodem mode working
  236. Andreas Degert
  237. for his logs and patches to get cx 100 working
  238. Dietrich Feist
  239. for his generous donation of one M105 and two M101 cordless adapters
  240. Christoph Schweers
  241. for his generous donation of a M34 device
  242. and all the other people who sent logs and other information.