Re: Usage of the n_gsm line discipline

From: Alan Cox
Date: Fri Mar 04 2011 - 10:25:15 EST


> So, maybe I misconfigured n_gsm, or I didn't understand how to use it.
> Would it be possible to have a few details on how it is supposed to be
> used ? I haven't been able to find any userspace code that currently
> makes use of n_gsm. Is it available somewhere ?

Check dmesg but if your modem doesn't start up in multiplex mode you
will need to issue an AT+CMUX command first. So the usual sequence is

write AT+CMUXblah [see GSM spec/modem command info]
TIOCSETD
GSMIOC_GETCONF
[modify anything needed]
GSMIOC_SETCONF

The defaults uses are the T1/T2/N2 from the spec, we are not the
initiator, and using encoding 1 (ie HDLC/LAP like), 64byte MRU/MTU.

So at the very least you'll want to set initiator to 1 so that we start
issuing SABM messages at the modem to enter mux mode.

> If I can get it to work, I am willing to contribute a
> Documentation/n_gsm.txt document.

That would be good.

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/