Re: Maintaining connection

On Thu, 2015-03-12 at 09:04 -0500, Alex Ferm wrote:
We use cellular modems for telemetry, and they disconnect every so 
often, and don't come back on-line on their own. I am using dbus via 
python to send Enable(False) followed by Enable(True) to reset network 
manager. This makes it reconnect to all the automatic connections that 
have been configured.

What version of NetworkManager?  I think 0.9.10 or later added WWAN
autoconnect, which should handle this better.  In any case, the Enable()
mechanism is much better than I was thinking you were going to say :)

If you're already using NM 0.9.10 or later and NM isn't attempting to
reconnect, then it would be great to see some logs from the device so we
can figure out what's going on.  One more question: do you mind if the
connection starts automatically when NM starts?  If that's OK, then
autoconnect=true + NM 0.9.10 should do what you want already unless
there's a bug.


Alex Ferm
PetroPower, LLC.
3003 E. 37th Street N.
Suite 100
Wichita, KS 67219

Phone: (316) 361-0222
Toll Free: (877) 265-6581
Fax: (316) 361-0967
On 03/11/2015 07:49 PM, Stuart D. Gathman wrote:
On Wed, 11 Mar 2015, Dan Williams wrote:

On Wed, 2015-03-11 at 15:57 -0500, Alex Ferm wrote:
Hello, I'm trying to write a python script that resets NetworkManager
when the state is not "NM_STATE_CONNECTED_GLOBAL". Does NetworkManager
time out and retry automatically during the "NM_STATE_CONNECTING" 
Also, how is the "NM_STATE_CONNECTED_GLOBAL" determined(ie: is there a
periodic ping or something?)?

What's the reason to reset NM when it reports something isn't connected?
Just to ensure always-on connectivity as hard as possible? Also, what
do you mean by "reset", what specific actions are you running to do so?

In my case, wpa_supplicant hangs every so many megabytes, and I have to
killall wpa_supplicant to restore the network connection.  I've been
wondering about a way to have NM do that automatically, since fixing
wpa_supplicant seems to be difficult.

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]