Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1458463 > unrolled thread

Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

Started byAjay Garg <ajaygargnsit@gmail.com>
First post2016-08-09 09:20 +0200
Last post2016-08-10 23:00 +0200
Articles 4 — 3 participants

Back to article view | Back to linux.kernel


Contents

  Is it ok if ModemManager process is killed AFTER network-interface is  brought up and IP-Address assigned? Ajay Garg <ajaygargnsit@gmail.com> - 2016-08-09 09:20 +0200
    Re: Is it ok if ModemManager process is killed AFTER  network-interface is brought up and IP-Address assigned? Greg KH <gregkh@linuxfoundation.org> - 2016-08-09 10:40 +0200
      Re: Is it ok if ModemManager process is killed AFTER  network-interface is brought up and IP-Address assigned? Ajay Garg <ajaygargnsit@gmail.com> - 2016-08-10 06:40 +0200
      Re: Is it ok if ModemManager process is killed AFTER  network-interface is brought up and IP-Address assigned? Pavel Machek <pavel@ucw.cz> - 2016-08-10 23:00 +0200

#1458463 — Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

FromAjay Garg <ajaygargnsit@gmail.com>
Date2016-08-09 09:20 +0200
SubjectIs it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?
Message-ID<s49up-4pG-11@gated-at.bofh.it>
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.


Thanks and Regards,
Ajay

[toc] | [next] | [standalone]


#1458511 — Re: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

FromGreg KH <gregkh@linuxfoundation.org>
Date2016-08-09 10:40 +0200
SubjectRe: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?
Message-ID<s4aJQ-58q-21@gated-at.bofh.it>
In reply to#1458463
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

[toc] | [prev] | [next] | [standalone]


#1459288 — Re: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

FromAjay Garg <ajaygargnsit@gmail.com>
Date2016-08-10 06:40 +0200
SubjectRe: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?
Message-ID<s4tt7-oV-1@gated-at.bofh.it>
In reply to#1458511
Ok Greg :)

On Tue, Aug 9, 2016 at 1:44 PM, Greg KH <gregkh@linuxfoundation.org> wrote:
> 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



-- 
Regards,
Ajay

[toc] | [prev] | [next] | [standalone]


#1459913 — Re: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?

FromPavel Machek <pavel@ucw.cz>
Date2016-08-10 23:00 +0200
SubjectRe: Is it ok if ModemManager process is killed AFTER network-interface is brought up and IP-Address assigned?
Message-ID<s4ILv-1Hq-1@gated-at.bofh.it>
In reply to#1458511
Hi!

> > 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 :)

Arguably, kernel is doing its job pretty badly when it comes to modems.

1) it does not hide differences between different modems (nokia modem is network
protocol, some modems are single tty, some modems are multiple ttys, different AT
command sets...)

2) it does not allow userland applications to share a GSM modem in a reasonable way.
Being able to read signal strength while PPP is connected would be nice, for example.

Anyway, when kernel fails to do its job, there's often userland daemon that can do it.

ofono seems to be the cannonical one there, and it seems to do the job rather well.

So... I guess the original author should take a look at ofono.

										Pavel

-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web