Send connman mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.01.org/mailman/listinfo/connman
or, via email, send a message with subject or body 'help' to
        [email protected]

You can reach the person managing the list at
        [email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."


Today's Topics:

   1. Query about Connman Session (Benjamin Ioller)
   2. ConnMan and Cellular (Alexander Smirnov)
   3. cellular reconnect (Alexander Smirnov)


----------------------------------------------------------------------

Message: 1
Date: Thu, 30 Jun 2016 15:05:09 +0200 (CEST)
From: Benjamin Ioller <[email protected]>
To: [email protected]
Subject: Query about Connman Session
Message-ID:
        <972821665.257888.1467291909866.javamail.zim...@eleves.ec-nantes.fr>
Content-Type: text/plain; charset="utf-8"

Hello, 
? 
I'm?using Connman (v-1.32) on my Raspberry Pi and I wanted to try the session 
mode. 
I found quite few interesting mailings and I looked over the code (session.c, 
test-session) and the doc, but it looks like session is not really?a nowadays 
topic. 
Does someone use the Connman's session? and?for which application? Can you give 
me an?example? 
? 
So here is?what I understood so far about the session mode: 
Connman session allows the application to use specific network setting as 
selected technologies, roaming policy... 
Connman uses Iptable to do so.?Connman creates rules in the mangle table?to 
mark the packet based on the UID/GID.? 
Then rules are added to the filter table?depending on the allowed bearers, and 
other properties. 
This routing is only functional when the connman state option is ON. 
? 
Connman? proposes two ways to?create a?session : 
First, the application?creates it's own session using the method 
form?/net.connman.manager. I try to?use this method with a python script, the 
application creates a session, connects to it and sends UDP packet to a local 
host via ethernet. But I didn't manage to setup the AllowedBearers,?neither 
with 
manager.CreateSession({"AllowedBearers":Glib.Variant('s','ethernet')},notifier_path)
 
nor 
Session.Change("AllowedBeares",Glib.Variant('s','ethernet')). 
I have Variant?encoding issue. Do you have any advice or exemple? 
I was also wondering how does the?mangle table?identify the application's 
packet? (or maybe it's just the UID again?) 
? 
The second way is to use??session_policy. With this method you can mark packet 
only based on the UID or GID. I need to create UID.policy 
in?var/lib/connman/session_policy_local?which contained the different 
parameters. But when I turn?the?Connman's state session On, nothing happened... 
My pi user is still able to use wifi even if the pi.policy have only?Ethernet 
as AllowedBearers.?I suspect?the issue?comes from user rights or 
something...?Does somebody had similar issue? 
By the way,?is the session priority?only for notification hierarchy or does?the 
session priority have some effect on the network traffic (during congestion?)? 
? 
Hope these questions aren't too basic for you, and can help other. 
If you have any literature which could help, I'll take it! 
? 
Thank you, 
Benjamin 
? 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.01.org/pipermail/connman/attachments/20160630/baaba3d7/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 30 Jun 2016 18:04:05 +0300
From: Alexander Smirnov <[email protected]>
To: [email protected]
Subject: ConnMan and Cellular
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Dear all,

I'm trying to setup ConnMan to have cellular always enabled despite on 
other services state.

What I did:
  - Create oFono context with APN settings
  - Set AutoConnect=true for cellular
  - Tested manual cellular network bring up (connmanctl connect cellular...)

What I've observed:
  - If ehternet cable is plugged - cellular is in idle state
  - If I down ethernet - cellular becomes available

I've enabled debugging, and found that "auto_connect_service()" always 
return true on the ethernet service:

src/service.c:

3772:  if (service->pending ||
3773       is_connecting(service) ||
3774:      is_connected(service)) {
3775:          if (!active_count)
3776:              return true;


Is there any way to get cellular always connected?

Thank you!

-- 
With best regards,
Alexander Smirnov

ilbers GmbH
Baierbrunner Str. 28c
D-81379 M?nchen
+49 (89) 122 67 24-0
http://ilbers.de/
Commercial register Munich, HRB 214197
General manager: Baurzhan Ismagulov


------------------------------

Message: 3
Date: Thu, 30 Jun 2016 18:10:35 +0300
From: Alexander Smirnov <[email protected]>
To: [email protected]
Subject: cellular reconnect
Message-ID: <[email protected]>
Content-Type: text/plain; charset=utf-8; format=flowed

Dear all,

could you also please help me with another issue, I've observed.

What I did:

  - Connect cellular service in connmanctl (ppp0 appears in ifconfig)
  - Disconnect physical GSM antenna (ppp0 disappears)
  - Connect physical GSM antenna

After these steps I don't see cellular service (connmanctl services is 
empty) till I reset the modem.

How should I handle network strength events to automatically reconnect 
the cellular? Why I don't see cellular in connman services anymore?

Thank you in advance!

-- 
With best regards,
Alexander Smirnov

ilbers GmbH
Baierbrunner Str. 28c
D-81379 M?nchen
+49 (89) 122 67 24-0
http://ilbers.de/
Commercial register Munich, HRB 214197
General manager: Baurzhan Ismagulov


------------------------------

Subject: Digest Footer

_______________________________________________
connman mailing list
[email protected]
https://lists.01.org/mailman/listinfo/connman


------------------------------

End of connman Digest, Vol 8, Issue 34
**************************************

Reply via email to