Hi Zhang,
I confirm that you can merge your patches in connman as they add the
multi-user support expected in first phase (see
https://wiki.tizen.org/wiki/Multi-user_WINET).
Concerning the two issues I told in my previous mail, only the first one
is fixed.
The second one may be fixed in winet-service but we must find if it has
a real impact since first one is fixed.
I found another issue: when capi-wifi-test is used UserB cannot connect
to a service if this service has favorite property and UserA is favorite
user of this service.
The root cause of this issue is that, in CAPI wifi implementation,
passphrase is not given to winet agent in that case (see functions
wifi_ap_is_passphrase_required and _wifi_libnet_open_profile).
This issue is not reproduced using connmanctl.
Furthermore, I remind you that, to be integrated in Common/IVI, WINET
must provide the same features that net-config.
That is WiNet should update same VCONF than net-config or CAPI
connection should be adapted to use WINET instead of libnet-client.
Regards,
Nicolas
Le 12/11/2014 03:25, Zhang, Zhengguang a écrit :
Hi, Nicolas
Thanks for your efforts to review our WiNet multi-user patches, after several rounds of
review, we optimized our patches, and I found that you have added "+1" on our
patches, so I will merge them soon, and before that I want to confirm with you:
By your verification, the 2 issues you mentioned in your previous mail are
fixed now, right?
Regards,
Zhang Zhengguang
-----Original Message-----
From: Nicolas Guyomard [mailto:[email protected]]
Sent: Thursday, November 6, 2014 11:15 PM
To: Zhang, Zhengguang
Cc: [email protected]
Subject: Re: [Dev] winet multi-user feature
Hi Zhang,
As Dominig told you I can connect to a wifi service using connmanctl.
But I need to enter the passphrase two times !
You will find in attachments two Connman logs:
connman_capi-wifi-test.log correspond to the use of capi-wifi-test where
connection fails and connman_connmanctl.log correspond to the use of
connmantctl where connection succeed.
This time I did not forget to activate debug in connman. ;-)
As you can see in the logs, in both cases the passphrase is requested to the
agent two times whereas the agent return the correct passphrase on the
first request.
When winet service is used, second request return an error because winet
removed the service from its list of known services after it answered to the
first request.
So there is two issues here:
1. Connman ask two times the passphrase to the agent; 2. Winet agent does
not handle correctly multiple requests.
Regards,
Nicolas
Le 06/11/2014 14:12, Dominig ar Foll a écrit :
Zhang,
could you please confirm that you can join a Wifi network with the
test program provided with the package which use the CAPI.
Obviously it works with direct Conman command but that is not the
objective.
Please provide the configuration that has allowed you to positively
run the tests via the CAPI.
regards
Dominig
Le 06/11/2014 09:48, Zhang, Zhengguang a écrit :
Hi, Nicolas
Thanks for your review to the patches.
I tried to reproduce the issue you mentioned in you previous mail,
but I can’t reproduce it.
Besides, it seems the ConnMan log you attached is not complete, so
there is no valuable info in it.
So my suggestion is:
Could you verify it through ConnMan by command line? Which means that
you can use connmanctl to register agent to input passphrase, so that
it can make clear whether it is a ConnMan issue or an upper layer
issue. If it is an upper layer issue, we will fix it later after the
patches are merged.
Thanks,
Zhang Zhengguang
*From:*Nicolas Guyomard
[mailto:[email protected]]
*Sent:* Wednesday, November 5, 2014 10:18 PM
*To:* Zhang, Zhengguang
*Cc:* [email protected]
*Subject:* Re: [Dev] winet multi-user feature
Hi Zhang Zhengguang,
As I told you in review https://review.tizen.org/gerrit/#/c/29712/ I
cannot connect to an AP using your patches adding multi-user support
in connman.
I use tizen-common_20141104.3 image on VTC1010.
I uninstalled net-config, updated connman and installed
capi-network-wifi, capi-network-wifi-test, connman-lib, winet and
winet-lib.
Then I connect as user alice, launch
/usr/lib64/winet-capi-test/capi-wifi-test and perform the following
actions in this application:
1 (Wi-Fi init and set callbacks)
Event received from stdin
Wifi init succeeded
Operation finished!
5 (Is Wi-Fi activated?)
Event received from stdin
Success to get Wi-Fi device state : TRUE Operation finished!
6 (Get connection state)
Event received from stdin
Success to get connection state : Disconnected Operation finished!
7 (Scan request)
Event received from stdin
Scan request succeeded
Operation finished!
b (Get AP list)
Event received from stdin
AP name : 0104
AP BSSID : e0:46:9a:08:8e:db, state : Disconnected AP name :
EUROGICIEL AP BSSID : 04:a1:51:83:f5:d0, state : Disconnected AP name
: DIRECT-GO-wfd-eurogiciel AP BSSID : 62:02:b4:07:87:5e, state :
Disconnected AP name : FreeWifi AP BSSID : f4:ca:e5:c4:b0:1d, state :
Disconnected AP name : Livebox-0ee9 AP BSSID : 00:19:70:74:90:e3,
state : Disconnected AP name : Wifi_Breitinfo AP BSSID :
50:67:f0:39:23:3e, state : Disconnected Get AP list finished
Operation finished!
c (Connect)
Event received from stdin
Input a BSSID to connect : 04:a1:51:83:f5:d0
get AP ap_bssid_input 04:a1:51:83:f5:d0, BSSID [e0:46:9a:08:8e:db]
get AP ap_bssid_input 04:a1:51:83:f5:d0, BSSID [04:a1:51:83:f5:d0]
Input passphrase for 04:a1:51:83:f5:d0 : ************ Success to
connection request [04:a1:51:83:f5:d0] Connection step finished
Operation finished!
Wi-Fi Connection Failed! error : OPERATION_FAILEDEvent received from
stdin
6 (Get connection state)
Event received from stdin
Success to get connection state : Disconnected Operation finished!
a (Get Connected AP)
Event received from stdin
Fail to get essid [INVALID_PARAMETER] Operation failed!
You will find the connman log in attachment.
If I apply the patch in attachment to connman, I can connect to the AP.
Regards,
Nicolas Guyomard
Le 28/10/2014 01:59, Zhang, Zhengguang a écrit :
Hi, All
WiNet multi-user solution related patches have been updated and
optimized, please help to review it again, thanks in advance!
https://review.tizen.org/gerrit/#/c/28918/
https://review.tizen.org/gerrit/#/c/28921/
https://review.tizen.org/gerrit/#/c/28922/
https://review.tizen.org/gerrit/#/c/28923/
https://review.tizen.org/gerrit/#/c/28924/
Regards,
Zhang Zhengguang
-----Original Message-----
From: Von Dentz, Luiz [mailto:[email protected]]
Sent: Friday, October 17, 2014 3:32 PM
To: Zhang, Zhengguang
Cc: Dominig ar Foll (Intel OTC); Nicolas Guyomard;
[email protected] <mailto:[email protected]>; Liu,
Bingwei
Subject: Re: [Dev] winet multi-user feature
Hi,
Apparently you guys are not synchronizing with Bluetooth,
anyway this looks
better but if you are doing a blocking call to
GetConnectionUnixUser perhaps
it is better to use dbus_bus_get_unix_user since it is
probably doing the same
thing anyway.
On Fri, Oct 17, 2014 at 9:22 AM, Zhang, Zhengguang
<[email protected]>
<mailto:[email protected]> wrote:
Hi, Dominique
We have finished the phrase 1 source code in ConnMan to
meet WiNet
multi-user requirements, and submitted them to gerrit:
https://review.tizen.org/gerrit/#/c/28918/
https://review.tizen.org/gerrit/#/c/28921/
https://review.tizen.org/gerrit/#/c/28922/
https://review.tizen.org/gerrit/#/c/28923/
https://review.tizen.org/gerrit/#/c/28924/
I have verified the solution and found it can meet the
requirements,
please help to review the patches and any suggestions,
feel free to
let me know, thanks in advance!
Regards,
Zhang Zhengguang
From: Dev [mailto:[email protected]] On
Behalf
Of Dominig ar
Foll (Intel OTC)
Sent: Wednesday, October 8, 2014 4:30 PM
Cc: [email protected] <mailto:[email protected]>
Subject: Re: [Dev] winet multi-user feature
Zhang,
happy to see that you have plan to deliver the required
feature.
When will we see the code ?
"Nicolas Guyomard"
<[email protected]>
<mailto:[email protected]> will be the
engineer in charge of the integration in Common once
your code is ready.
He is present on this list.
Regards
Dominig ar Foll
Senior Software Architect
Open Source Technology Centre
Intel SSG
Le 08/10/2014 10:03, Zhang, Zhengguang a écrit :
Hi, Dominique
After our investigation about how to implement WiNet
multi-user
requirements, we found that it’s the right way to
implement it in
ConnMan, the reason is described below:
1. ConnMan is the real connection manager
daemon, and it should
handle
multi-user related stuff logically. WiNet service daemon
is only a
slim daemon which is designed to make some background
operations, such
as trigger periodically scan, tethering data statistics and
son on.
2. ConnMan has already supported a feature
“Session” which can
be used
to implement multi-user, but we found that it’s not
mature enough and
a little too complicated, after a balance about the
schedule and the
solution, our proposal solution is:
1). At the first phrase, add ConnMan patches ourselves
to implement
multi-user and maintain them in Tizen ConnMan, by our
investigation,
we only need less than 5 patches to implement the
requirement. It’s
not a problem to maintain the related patches in Tizen
and not submit
them to upstream, actually, we have already maintained
more than 20
patches in Tizen ConnMan to meet Samsung specific
requirements, which
can’t be merged into ConnMan upstream. So Tizen
ConnMan
is a little
different with upstream Connman:
upstream ConnMan is common to every platform, but
Tizen
ConnMan is
specific for Tizen platform.
2). At the second phrase, when multi-user requirements
is nailed down
completely and ConnMan session is mature, we will
continue to
investigate it and try to switch the solution to ConnMan
session.
Currently at the first stage, we will submit the related
patches to
gerrit, we will add you guys as the reviewers, any
suggestions about
it, feel free to let me know, thanks!
Regards,
Zhang Zhengguang
_______________________________________________
Dev mailing list
[email protected] <mailto:[email protected]>
https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev
_______________________________________________
Dev mailing list
[email protected]
https://lists.tizen.org/listinfo/dev