lkml.org 
[lkml]   [2011]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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


\
 
 \ /
  Last update: 2011-03-06 12:41    [W:0.023 / U:9.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site