RE: Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Lamsoge, Abhijit
Thanks Patrick.
That pretty much clears the confusion.

Abhijit

From: connman [connman-boun...@connman.net] on behalf of Patrik Flykt 
[patrik.fl...@linux.intel.com]
Sent: Tuesday, September 08, 2015 6:27 PM
To: connman@connman.net
Subject: Re: Why do we really need Agent in ConnmanCtl ?

Hi,

On Tue, 2015-09-08 at 11:58 +, Lamsoge, Abhijit wrote:
> But If I don't have a configuration file, and I do not do "agent on",
> then connmanctl does not allow me to connect to any found access point
> (The standard NOT registered error)?

Yes.

> What I see from config-format.txt, is how we can configure our basic,
> network settings, like names and passphrases.(Probably, because we
> don't have to enter them manually all the time ?? )

This is called provisioning, just as Peter pointed out. With a
provisioning file all details about the network is known a priori, and
no details can be changed as the provisioning information will always be
100% correct (or updated out-of-band as soon as a change is needed).

> So if we  provide this file, does it eliminate the need for "agent on"
> before connecting to an AP ?

If the AP is known from the provisioning file or uses WPA-EAP, then yes.
For stumbling into a friends apartment and asking for a WPA2 passphrase
there isn't anything better than the excellent Agent API and
RequestInput method call.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Patrik Flykt

Hi,

On Tue, 2015-09-08 at 11:58 +, Lamsoge, Abhijit wrote:
> But If I don't have a configuration file, and I do not do "agent on",
> then connmanctl does not allow me to connect to any found access point
> (The standard NOT registered error)?

Yes.

> What I see from config-format.txt, is how we can configure our basic,
> network settings, like names and passphrases.(Probably, because we
> don't have to enter them manually all the time ?? )

This is called provisioning, just as Peter pointed out. With a
provisioning file all details about the network is known a priori, and
no details can be changed as the provisioning information will always be
100% correct (or updated out-of-band as soon as a change is needed).

> So if we  provide this file, does it eliminate the need for "agent on"
> before connecting to an AP ?

If the AP is known from the provisioning file or uses WPA-EAP, then yes.
For stumbling into a friends apartment and asking for a WPA2 passphrase
there isn't anything better than the excellent Agent API and
RequestInput method call.

Cheers,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Patrik Flykt
On Tue, 2015-09-08 at 13:40 +0200, Sven Schwedas wrote:
> Is there a reason why "agent on" is not enabled by default in
> connmanctl, though? I can see why other front-ends will need their own
> agents, but -ctl is only used standalone, is it not?

There are many other uses for interactive connmanctl that don't want
Agent input to mess up things; e.g. monitoring in one terminal, querying
service properties in another while dedicating a third for Agent
input/output for example.

HTH,

Patrik

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


RE: Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Lamsoge, Abhijit
Hi Peter,
But If I don't have a configuration file, and I do not do "agent on", then 
connmanctl does not allow me to connect to any found access point (The standard 
NOT registered error)?
What I see from config-format.txt, is how we can configure our basic, network 
settings, like names and passphrases.(Probably, because we don't have to enter 
them manually all the time ?? )

So if we  provide this file, does it eliminate the need for "agent on" before 
connecting to an AP ?

Abhijit

From: connman [connman-boun...@connman.net] on behalf of Sven Schwedas 
[sven.schwe...@tao.at]
Sent: Tuesday, September 08, 2015 5:10 PM
To: connman@connman.net
Subject: Re: Why do we really need Agent in ConnmanCtl ?

On 2015-09-08 13:33, Peter Meerwald wrote:
> Hello Abhijit,
>
>> Just wanted some information on, why there is a need to have agent in 
>> between connmanctl and connman.
>> For prompting input for user, but why can't we feed the connman directly 
>> with inputs like "passphrase" etc. ?
>
> the concept is called provisioning in connman's terms, see
> doc/config-format.txt: you can pre-configure a passphrase for a given SSID
> for example

Is there a reason why "agent on" is not enabled by default in
connmanctl, though? I can see why other front-ends will need their own
agents, but -ctl is only used standalone, is it not?

--
Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas
Systemadministrator
TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz
Mail/XMPP: sven.schwe...@tao.at | +43 (0)680 301 7167
http://software.tao.at

___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Re: Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Sven Schwedas
On 2015-09-08 13:33, Peter Meerwald wrote:
> Hello Abhijit,
> 
>> Just wanted some information on, why there is a need to have agent in 
>> between connmanctl and connman.
>> For prompting input for user, but why can't we feed the connman directly 
>> with inputs like "passphrase" etc. ?
> 
> the concept is called provisioning in connman's terms, see 
> doc/config-format.txt: you can pre-configure a passphrase for a given SSID 
> for example

Is there a reason why "agent on" is not enabled by default in
connmanctl, though? I can see why other front-ends will need their own
agents, but -ctl is only used standalone, is it not?

-- 
Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas
Systemadministrator
TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz
Mail/XMPP: sven.schwe...@tao.at | +43 (0)680 301 7167
http://software.tao.at



signature.asc
Description: OpenPGP digital signature
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman

Re: Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Peter Meerwald
Hello Abhijit,

> Just wanted some information on, why there is a need to have agent in between 
> connmanctl and connman.
> For prompting input for user, but why can't we feed the connman directly with 
> inputs like "passphrase" etc. ?

the concept is called provisioning in connman's terms, see 
doc/config-format.txt: you can pre-configure a passphrase for a given SSID 
for example

regards, p.

-- 

Peter Meerwald
+43-664-218 (mobile)
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman


Why do we really need Agent in ConnmanCtl ?

2015-09-08 Thread Lamsoge, Abhijit
Hi Patrick,
Just wanted some information on, why there is a need to have agent in between 
connmanctl and connman.
For prompting input for user, but why can't we feed the connman directly with 
inputs like "passphrase" etc. ?

Abhijit
___
connman mailing list
connman@connman.net
https://lists.connman.net/mailman/listinfo/connman