README.gigaset 13 KB

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