All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Ajay Garg <ajaygargnsit@gmail.com>
Cc: linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?
Date: Tue, 9 Aug 2016 10:14:29 +0200	[thread overview]
Message-ID: <20160809081429.GA10196@kroah.com> (raw)
In-Reply-To: <CAHP4M8XfO=tX1qJiu_fbQ9OaTbqwtRyA0jj6JpGmroVN-B3LZg@mail.gmail.com>

On Tue, Aug 09, 2016 at 12:48:12PM +0530, Ajay Garg wrote:
> Hi All.
> 
> We are using Sierra's USB-to-WWAN driver on Ubuntu-14 for Sierra's
> MC8090 modem, and we have a requirement wherein we need to have access
> to the modem-serial-port (from our user-application that is).
> 
> Right now, we see that /usr/sbin/ModemManager is always connected to
> /dev/ttyUSB3 (which means we cannot connect to the port from our
> application at the same time, or even if we can, received-data will be
> at best inconsistent).
> 
> 
> We are thinking of the following ::
> 
> * Initially, let nmcli and ModemManager do their work, and let them
> bring the WWAN interface up.
> 
> * Once this happens, we permanently-down the ModemManager from our
> application-binary, thereby freeing up /dev/ttyUSB3.
> 
> * Thereafter, we are free to connect to /dev/ttyUSB3 from our
> application, thereby using features like SMS-notification (+CMTI),
> signal-strength (+CSQ), etc.
> 
> 
> 
> Does our approach make sense?
> We will be grateful to any help.

Why not ask the modem manager team about this?  The kernel doesn't care
what you do with the device links :)

thanks,

greg k-h

  reply	other threads:[~2016-08-09  8:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-09  7:18 Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned? Ajay Garg
2016-08-09  8:14 ` Greg KH [this message]
2016-08-10  4:30   ` Ajay Garg
2016-08-10 20:53   ` Pavel Machek

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=20160809081429.GA10196@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=ajaygargnsit@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /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.