diff options
Diffstat (limited to 'Documentation/isdn/README.gigaset')
-rw-r--r-- | Documentation/isdn/README.gigaset | 156 |
1 files changed, 115 insertions, 41 deletions
diff --git a/Documentation/isdn/README.gigaset b/Documentation/isdn/README.gigaset index f9963103ae3d..e472df842323 100644 --- a/Documentation/isdn/README.gigaset +++ b/Documentation/isdn/README.gigaset | |||
@@ -5,7 +5,7 @@ GigaSet 307x Device Driver | |||
5 | ------------ | 5 | ------------ |
6 | 1.1. Hardware | 6 | 1.1. Hardware |
7 | -------- | 7 | -------- |
8 | This release supports the connection of the Gigaset 307x/417x family of | 8 | This driver supports the connection of the Gigaset 307x/417x family of |
9 | ISDN DECT bases via Gigaset M101 Data, Gigaset M105 Data or direct USB | 9 | ISDN DECT bases via Gigaset M101 Data, Gigaset M105 Data or direct USB |
10 | connection. The following devices are reported to be compatible: | 10 | connection. The following devices are reported to be compatible: |
11 | 11 | ||
@@ -33,7 +33,7 @@ GigaSet 307x Device Driver | |||
33 | http://gigaset307x.sourceforge.net/ | 33 | http://gigaset307x.sourceforge.net/ |
34 | 34 | ||
35 | We had also reports from users of Gigaset M105 who could use the drivers | 35 | We had also reports from users of Gigaset M105 who could use the drivers |
36 | with SX 100 and CX 100 ISDN bases (only in unimodem mode, see section 2.4.) | 36 | with SX 100 and CX 100 ISDN bases (only in unimodem mode, see section 2.5.) |
37 | If you have another device that works with our driver, please let us know. | 37 | If you have another device that works with our driver, please let us know. |
38 | 38 | ||
39 | Chances of getting an USB device to work are good if the output of | 39 | Chances of getting an USB device to work are good if the output of |
@@ -49,7 +49,7 @@ GigaSet 307x Device Driver | |||
49 | -------- | 49 | -------- |
50 | The driver works with ISDN4linux and so can be used with any software | 50 | The driver works with ISDN4linux and so can be used with any software |
51 | which is able to use ISDN4linux for ISDN connections (voice or data). | 51 | which is able to use ISDN4linux for ISDN connections (voice or data). |
52 | CAPI4Linux support is planned but not yet available. | 52 | Experimental Kernel CAPI support is available as a compilation option. |
53 | 53 | ||
54 | There are some user space tools available at | 54 | There are some user space tools available at |
55 | http://sourceforge.net/projects/gigaset307x/ | 55 | http://sourceforge.net/projects/gigaset307x/ |
@@ -68,22 +68,38 @@ GigaSet 307x Device Driver | |||
68 | for troubleshooting or to pass module parameters. | 68 | for troubleshooting or to pass module parameters. |
69 | 69 | ||
70 | The module ser_gigaset provides a serial line discipline N_GIGASET_M101 | 70 | The module ser_gigaset provides a serial line discipline N_GIGASET_M101 |
71 | which drives the device through the regular serial line driver. It must | 71 | which uses the regular serial port driver to access the device, and must |
72 | be attached to the serial line to which the M101 is connected with the | 72 | therefore be attached to the serial device to which the M101 is connected. |
73 | ldattach(8) command (requires util-linux-ng release 2.14 or later), for | 73 | The ldattach(8) command (included in util-linux-ng release 2.14 or later) |
74 | example: | 74 | can be used for that purpose, for example: |
75 | ldattach GIGASET_M101 /dev/ttyS1 | 75 | ldattach GIGASET_M101 /dev/ttyS1 |
76 | This will open the device file, attach the line discipline to it, and | 76 | This will open the device file, attach the line discipline to it, and |
77 | then sleep in the background, keeping the device open so that the line | 77 | then sleep in the background, keeping the device open so that the line |
78 | discipline remains active. To deactivate it, kill the daemon, for example | 78 | discipline remains active. To deactivate it, kill the daemon, for example |
79 | with | 79 | with |
80 | killall ldattach | 80 | killall ldattach |
81 | before disconnecting the device. To have this happen automatically at | 81 | before disconnecting the device. To have this happen automatically at |
82 | system startup/shutdown on an LSB compatible system, create and activate | 82 | system startup/shutdown on an LSB compatible system, create and activate |
83 | an appropriate LSB startup script /etc/init.d/gigaset. (The init name | 83 | an appropriate LSB startup script /etc/init.d/gigaset. (The init name |
84 | 'gigaset' is officially assigned to this project by LANANA.) | 84 | 'gigaset' is officially assigned to this project by LANANA.) |
85 | Alternatively, just add the 'ldattach' command line to /etc/rc.local. | 85 | Alternatively, just add the 'ldattach' command line to /etc/rc.local. |
86 | 86 | ||
87 | The modules accept the following parameters: | ||
88 | |||
89 | Module Parameter Meaning | ||
90 | |||
91 | gigaset debug debug level (see section 3.2.) | ||
92 | |||
93 | startmode initial operation mode (see section 2.5.): | ||
94 | bas_gigaset ) 1=ISDN4linux/CAPI (default), 0=Unimodem | ||
95 | ser_gigaset ) | ||
96 | usb_gigaset ) cidmode initial Call-ID mode setting (see section | ||
97 | 2.5.): 1=on (default), 0=off | ||
98 | |||
99 | Depending on your distribution you may want to create a separate module | ||
100 | configuration file /etc/modprobe.d/gigaset for these, or add them to a | ||
101 | custom file like /etc/modprobe.conf.local. | ||
102 | |||
87 | 2.2. Device nodes for user space programs | 103 | 2.2. Device nodes for user space programs |
88 | ------------------------------------ | 104 | ------------------------------------ |
89 | The device can be accessed from user space (eg. by the user space tools | 105 | The device can be accessed from user space (eg. by the user space tools |
@@ -93,29 +109,83 @@ GigaSet 307x Device Driver | |||
93 | - /dev/ttyGU0 for M105 (USB data boxes) | 109 | - /dev/ttyGU0 for M105 (USB data boxes) |
94 | - /dev/ttyGB0 for the base driver (direct USB connection) | 110 | - /dev/ttyGB0 for the base driver (direct USB connection) |
95 | 111 | ||
96 | You can also select a "default device" which is used by the frontends when | 112 | If you connect more than one device of a type, they will get consecutive |
113 | device nodes, eg. /dev/ttyGU1 for a second M105. | ||
114 | |||
115 | You can also set a "default device" for the user space tools to use when | ||
97 | no device node is given as parameter, by creating a symlink /dev/ttyG to | 116 | no device node is given as parameter, by creating a symlink /dev/ttyG to |
98 | one of them, eg.: | 117 | one of them, eg.: |
99 | 118 | ||
100 | ln -s /dev/ttyGB0 /dev/ttyG | 119 | ln -s /dev/ttyGB0 /dev/ttyG |
120 | |||
121 | The devices accept the following device specific ioctl calls | ||
122 | (defined in gigaset_dev.h): | ||
123 | |||
124 | ioctl(int fd, GIGASET_REDIR, int *cmd); | ||
125 | If cmd==1, the device is set to be controlled exclusively through the | ||
126 | character device node; access from the ISDN subsystem is blocked. | ||
127 | If cmd==0, the device is set to be used from the ISDN subsystem and does | ||
128 | not communicate through the character device node. | ||
129 | |||
130 | ioctl(int fd, GIGASET_CONFIG, int *cmd); | ||
131 | (ser_gigaset and usb_gigaset only) | ||
132 | If cmd==1, the device is set to adapter configuration mode where commands | ||
133 | are interpreted by the M10x DECT adapter itself instead of being | ||
134 | forwarded to the base station. In this mode, the device accepts the | ||
135 | commands described in Siemens document "AT-Kommando Alignment M10x Data" | ||
136 | for setting the operation mode, associating with a base station and | ||
137 | querying parameters like field strengh and signal quality. | ||
138 | Note that there is no ioctl command for leaving adapter configuration | ||
139 | mode and returning to regular operation. In order to leave adapter | ||
140 | configuration mode, write the command ATO to the device. | ||
141 | |||
142 | ioctl(int fd, GIGASET_BRKCHARS, unsigned char brkchars[6]); | ||
143 | (usb_gigaset only) | ||
144 | Set the break characters on an M105's internal serial adapter to the six | ||
145 | bytes stored in brkchars[]. Unused bytes should be set to zero. | ||
146 | |||
147 | ioctl(int fd, GIGASET_VERSION, unsigned version[4]); | ||
148 | Retrieve version information from the driver. version[0] must be set to | ||
149 | one of: | ||
150 | - GIGVER_DRIVER: retrieve driver version | ||
151 | - GIGVER_COMPAT: retrieve interface compatibility version | ||
152 | - GIGVER_FWBASE: retrieve the firmware version of the base | ||
153 | Upon return, version[] is filled with the requested version information. | ||
101 | 154 | ||
102 | 2.3. ISDN4linux | 155 | 2.3. ISDN4linux |
103 | ---------- | 156 | ---------- |
104 | This is the "normal" mode of operation. After loading the module you can | 157 | This is the "normal" mode of operation. After loading the module you can |
105 | set up the ISDN system just as you'd do with any ISDN card. | 158 | set up the ISDN system just as you'd do with any ISDN card supported by |
106 | Your distribution should provide some configuration utility. | 159 | the ISDN4Linux subsystem. Most distributions provide some configuration |
107 | If not, you can use some HOWTOs like | 160 | utility. If not, you can use some HOWTOs like |
108 | http://www.linuxhaven.de/dlhp/HOWTO/DE-ISDN-HOWTO-5.html | 161 | http://www.linuxhaven.de/dlhp/HOWTO/DE-ISDN-HOWTO-5.html |
109 | If this doesn't work, because you have some recent device like SX100 where | 162 | If this doesn't work, because you have some device like SX100 where |
110 | debug output (see section 3.2.) shows something like this when dialing | 163 | debug output (see section 3.2.) shows something like this when dialing |
111 | CMD Received: ERROR | 164 | CMD Received: ERROR |
112 | Available Params: 0 | 165 | Available Params: 0 |
113 | Connection State: 0, Response: -1 | 166 | Connection State: 0, Response: -1 |
114 | gigaset_process_response: resp_code -1 in ConState 0 ! | 167 | gigaset_process_response: resp_code -1 in ConState 0 ! |
115 | Timeout occurred | 168 | Timeout occurred |
116 | you might need to use unimodem mode: | 169 | you probably need to use unimodem mode. (see section 2.5.) |
117 | 170 | ||
118 | 2.4. Unimodem mode | 171 | 2.4. CAPI |
172 | ---- | ||
173 | If the driver is compiled with CAPI support (kernel configuration option | ||
174 | GIGASET_CAPI, experimental) it can also be used with CAPI 2.0 kernel and | ||
175 | user space applications. For user space access, the module capi.ko must | ||
176 | be loaded. The capiinit command (included in the capi4k-utils package) | ||
177 | does this for you. | ||
178 | |||
179 | The CAPI variant of the driver supports legacy ISDN4Linux applications | ||
180 | via the capidrv compatibility driver. The kernel module capidrv.ko must | ||
181 | be loaded explicitly with the command | ||
182 | modprobe capidrv | ||
183 | if needed, and cannot be unloaded again without unloading the driver | ||
184 | first. (These are limitations of capidrv.) | ||
185 | |||
186 | The note about unimodem mode in the preceding section applies here, too. | ||
187 | |||
188 | 2.5. Unimodem mode | ||
119 | ------------- | 189 | ------------- |
120 | This is needed for some devices [e.g. SX100] as they have problems with | 190 | This is needed for some devices [e.g. SX100] as they have problems with |
121 | the "normal" commands. | 191 | the "normal" commands. |
@@ -126,9 +196,14 @@ GigaSet 307x Device Driver | |||
126 | You can switch back using | 196 | You can switch back using |
127 | gigacontr --mode isdn | 197 | gigacontr --mode isdn |
128 | 198 | ||
129 | You can also load the driver using e.g. | 199 | You can also put the driver directly into Unimodem mode when it's loaded, |
130 | modprobe usb_gigaset startmode=0 | 200 | by passing the module parameter startmode=0 to the hardware specific |
131 | to prevent the driver from starting in "isdn4linux mode". | 201 | module, e.g. |
202 | modprobe usb_gigaset startmode=0 | ||
203 | or by adding a line like | ||
204 | options usb_gigaset startmode=0 | ||
205 | to an appropriate module configuration file, like /etc/modprobe.d/gigaset | ||
206 | or /etc/modprobe.conf.local. | ||
132 | 207 | ||
133 | In this mode the device works like a modem connected to a serial port | 208 | In this mode the device works like a modem connected to a serial port |
134 | (the /dev/ttyGU0, ... mentioned above) which understands the commands | 209 | (the /dev/ttyGU0, ... mentioned above) which understands the commands |
@@ -156,11 +231,10 @@ GigaSet 307x Device Driver | |||
156 | 231 | ||
157 | options ppp_async flag_time=0 | 232 | options ppp_async flag_time=0 |
158 | 233 | ||
159 | to /etc/modprobe.conf. If your distribution has some local module | 234 | to an appropriate module configuration file, like /etc/modprobe.d/gigaset |
160 | configuration file like /etc/modprobe.conf.local, | 235 | or /etc/modprobe.conf.local. |
161 | using that should be preferred. | ||
162 | 236 | ||
163 | 2.5. Call-ID (CID) mode | 237 | 2.6. Call-ID (CID) mode |
164 | ------------------ | 238 | ------------------ |
165 | Call-IDs are numbers used to tag commands to, and responses from, the | 239 | Call-IDs are numbers used to tag commands to, and responses from, the |
166 | Gigaset base in order to support the simultaneous handling of multiple | 240 | Gigaset base in order to support the simultaneous handling of multiple |
@@ -181,14 +255,15 @@ GigaSet 307x Device Driver | |||
181 | settings (CID mode). | 255 | settings (CID mode). |
182 | - If you have several DECT data devices (M10x) which you want to use | 256 | - If you have several DECT data devices (M10x) which you want to use |
183 | in turn, select Unimodem mode by passing the parameter "cidmode=0" to | 257 | in turn, select Unimodem mode by passing the parameter "cidmode=0" to |
184 | the driver ("modprobe usb_gigaset cidmode=0" or modprobe.conf). | 258 | the appropriate driver module (ser_gigaset or usb_gigaset). |
185 | 259 | ||
186 | If you want both of these at once, you are out of luck. | 260 | If you want both of these at once, you are out of luck. |
187 | 261 | ||
188 | You can also use /sys/class/tty/ttyGxy/cidmode for changing the CID mode | 262 | You can also use the tty class parameter "cidmode" of the device to |
189 | setting (ttyGxy is ttyGU0 or ttyGB0). | 263 | change its CID mode while the driver is loaded, eg. |
264 | echo 0 > /sys/class/tty/ttyGU0/cidmode | ||
190 | 265 | ||
191 | 2.6. Unregistered Wireless Devices (M101/M105) | 266 | 2.7. Unregistered Wireless Devices (M101/M105) |
192 | ----------------------------------------- | 267 | ----------------------------------------- |
193 | The main purpose of the ser_gigaset and usb_gigaset drivers is to allow | 268 | The main purpose of the ser_gigaset and usb_gigaset drivers is to allow |
194 | the M101 and M105 wireless devices to be used as ISDN devices for ISDN | 269 | the M101 and M105 wireless devices to be used as ISDN devices for ISDN |
@@ -200,7 +275,7 @@ GigaSet 307x Device Driver | |||
200 | driver. In that situation, a restricted set of functions is available | 275 | driver. In that situation, a restricted set of functions is available |
201 | which includes, in particular, those necessary for registering the device | 276 | which includes, in particular, those necessary for registering the device |
202 | to a base or for switching it between Fixed Part and Portable Part | 277 | to a base or for switching it between Fixed Part and Portable Part |
203 | modes. | 278 | modes. See the gigacontr(8) manpage for details. |
204 | 279 | ||
205 | 3. Troubleshooting | 280 | 3. Troubleshooting |
206 | --------------- | 281 | --------------- |
@@ -214,21 +289,19 @@ GigaSet 307x Device Driver | |||
214 | 289 | ||
215 | options isdn dialtimeout=15 | 290 | options isdn dialtimeout=15 |
216 | 291 | ||
217 | to /etc/modprobe.conf. If your distribution has some local module | 292 | to /etc/modprobe.d/gigaset, /etc/modprobe.conf.local or a similar file. |
218 | configuration file like /etc/modprobe.conf.local, | ||
219 | using that should be preferred. | ||
220 | 293 | ||
221 | Problem: | 294 | Problem: |
222 | Your isdn script aborts with a message about isdnlog. | 295 | The isdnlog program emits error messages or just doesn't work. |
223 | Solution: | 296 | Solution: |
224 | Try deactivating (or commenting out) isdnlog. This driver does not | 297 | Isdnlog supports only the HiSax driver. Do not attempt to use it with |
225 | support it. | 298 | other drivers such as Gigaset. |
226 | 299 | ||
227 | Problem: | 300 | Problem: |
228 | You have two or more DECT data adapters (M101/M105) and only the | 301 | You have two or more DECT data adapters (M101/M105) and only the |
229 | first one you turn on works. | 302 | first one you turn on works. |
230 | Solution: | 303 | Solution: |
231 | Select Unimodem mode for all DECT data adapters. (see section 2.4.) | 304 | Select Unimodem mode for all DECT data adapters. (see section 2.5.) |
232 | 305 | ||
233 | Problem: | 306 | Problem: |
234 | Messages like this: | 307 | Messages like this: |
@@ -236,7 +309,7 @@ GigaSet 307x Device Driver | |||
236 | appear in your syslog. | 309 | appear in your syslog. |
237 | Solution: | 310 | Solution: |
238 | Check whether your M10x wireless device is correctly registered to the | 311 | Check whether your M10x wireless device is correctly registered to the |
239 | Gigaset base. (see section 2.6.) | 312 | Gigaset base. (see section 2.7.) |
240 | 313 | ||
241 | 3.2. Telling the driver to provide more information | 314 | 3.2. Telling the driver to provide more information |
242 | ---------------------------------------------- | 315 | ---------------------------------------------- |
@@ -248,15 +321,16 @@ GigaSet 307x Device Driver | |||
248 | writing an appropriate value to /sys/module/gigaset/parameters/debug, e.g. | 321 | writing an appropriate value to /sys/module/gigaset/parameters/debug, e.g. |
249 | echo 0 > /sys/module/gigaset/parameters/debug | 322 | echo 0 > /sys/module/gigaset/parameters/debug |
250 | switches off debugging output completely, | 323 | switches off debugging output completely, |
251 | echo 0x10a020 > /sys/module/gigaset/parameters/debug | 324 | echo 0x302020 > /sys/module/gigaset/parameters/debug |
252 | enables the standard set of debugging output messages. These values are | 325 | enables a reasonable set of debugging output messages. These values are |
253 | bit patterns where every bit controls a certain type of debugging output. | 326 | bit patterns where every bit controls a certain type of debugging output. |
254 | See the constants DEBUG_* in the source file gigaset.h for details. | 327 | See the constants DEBUG_* in the source file gigaset.h for details. |
255 | 328 | ||
256 | The initial value can be set using the debug parameter when loading the | 329 | The initial value can be set using the debug parameter when loading the |
257 | module "gigaset", e.g. by adding a line | 330 | module "gigaset", e.g. by adding a line |
258 | options gigaset debug=0 | 331 | options gigaset debug=0 |
259 | to /etc/modprobe.conf, ... | 332 | to your module configuration file, eg. /etc/modprobe.d/gigaset or |
333 | /etc/modprobe.conf.local. | ||
260 | 334 | ||
261 | Generated debugging information can be found | 335 | Generated debugging information can be found |
262 | - as output of the command | 336 | - as output of the command |