All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alan Cox <alan@linux.intel.com>
To: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Cc: Ken Mills <ken.k.mills@intel.com>,
	Greg Kroah-Hartman <gregkh@suse.de>,
	linux-kernel@vger.kernel.org
Subject: Re: Usage of the n_gsm line discipline
Date: Fri, 4 Mar 2011 15:02:05 +0000	[thread overview]
Message-ID: <20110304150205.7805f406@bob.linux.org.uk> (raw)
In-Reply-To: <20110304152348.5d03c8ef@surf>

> 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

      reply	other threads:[~2011-03-04 15:25 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-04 14:23 Usage of the n_gsm line discipline Thomas Petazzoni
2011-03-04 15:02 ` Alan Cox [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20110304150205.7805f406@bob.linux.org.uk \
    --to=alan@linux.intel.com \
    --cc=gregkh@suse.de \
    --cc=ken.k.mills@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=thomas.petazzoni@free-electrons.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.