Lines Matching +full:modem +full:- +full:control +full:- +full:line +full:- +full:ports
7 This line discipline implements the GSM 07.10 multiplexing protocol
10 https://www.3gpp.org/ftp/Specs/archive/07_series/07.10/0710-720.zip
19 ----------------
21 #. Initialize the modem in 0710 mux mode (usually ``AT+CMUX=`` command) through
22 its serial port. Depending on the modem used, you can pass more or less
25 #. Switch the serial line to using the n_gsm line discipline by using
32 #. Configure DLCs using ``GSMIOC_GETCONF_DLCI``/``GSMIOC_SETCONF_DLCI`` ioctl for non-defaults.
37 (a good starting point is util-linux-ng/sys-utils/ldattach.c)::
54 /* open the serial port connected to the modem */
57 /* configure the serial port : speed, flow control ... */
59 /* send the AT commands to switch the modem to CMUX mode
68 /* use n_gsm line discipline */
73 /* use keep-alive once every 5s for modem connection supervision */
82 /* our modem defaults to a maximum size of 127 bytes */
96 printf("first muxed line: /dev/gsmtty%i\n", first);
98 /* and wait for ever to keep the line discipline enabled */
102 #. Use these devices as plain serial ports.
106 - to use *gnokii* to send / receive SMS on ``ttygsm1``
107 - to use *ppp* to establish a datalink on ``ttygsm2``
109 #. First close all virtual ports before closing the physical port.
111 Note that after closing the physical port the modem is still in multiplexing
112 mode. This may prevent a successful re-opening of the port later. To avoid
113 this situation either reset the modem if your hardware allows that or send
120 ----------------
125 #. Switch the serial line to using the *n_gsm* line discipline by using
133 #. Configure DLCs using ``GSMIOC_GETCONF_DLCI``/``GSMIOC_SETCONF_DLCI`` ioctl for non-defaults.
154 /* configure the serial port : speed, flow control ... */
158 /* use n_gsm line discipline */
163 /* use keep-alive once every 5s for peer connection supervision */
172 /* our modem defaults to a maximum size of 127 bytes */
186 printf("first muxed line: /dev/gsmtty%i\n", first);
188 /* and wait for ever to keep the line discipline enabled */
192 11-03-08 - Eric Bénard - <[email protected]>