[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20110304150205.7805f406@bob.linux.org.uk>
Date: Fri, 4 Mar 2011 15:02:05 +0000
From: Alan Cox <alan@...ux.intel.com>
To: Thomas Petazzoni <thomas.petazzoni@...e-electrons.com>
Cc: Ken Mills <ken.k.mills@...el.com>,
Greg Kroah-Hartman <gregkh@...e.de>,
linux-kernel@...r.kernel.org
Subject: Re: Usage of the n_gsm line discipline
> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists