Re: Direct Wifi issues

3,161 views
Skip to first unread message

Jakob Jarosch

unread,
Jul 1, 2012, 7:47:29 AM7/1/12
to android-...@googlegroups.com
Sorry to ask again, but has really no one any idea how to solve that problem?

- Jakob

On Monday, June 25, 2012 6:35:37 PM UTC+2, Jakob Jarosch wrote:
Hey all,
currently i'm trying to get the direct wifi with the group feature working. But i've a little problem. When one device creates a group (which is successful) on the other device a requestGroupInfo will only return a null-Object in the listener. Why is that so, how can i get these information and how do i connect to the group?

Another thing is that the App should automatically find the correct group, is there any possiblity to name the created group or add some meta information?

Thanks a lot
Jakob

othy74

unread,
Jul 5, 2012, 12:23:16 PM7/5/12
to android-...@googlegroups.com, Jakob Jarosch
I have similar questions. How are non-Wifi-Direct devices supposed to
connect to a GO (running on JB)? The GO's device name shows up as AP.
But what passphrase should be used to connect from a legacy device? Is a
passphrase in all cases required?
Can the GO's device name be set upfront?

Irfan Sheriff

unread,
Jul 5, 2012, 12:34:22 PM7/5/12
to android-...@googlegroups.com, Jakob Jarosch
There are two ways that a regular STA can connect to a WifiDirect group. Only a GO can authorize the connection.

- WPS: WPS on GO can be initiated by doing a connect() with a null device address & appropriate WPS settings after group is formed. If the regular STA also initiates WPS, he should be able to join the group.

- passphrase: WifiP2pGroup includes a getPassphrase() which can be fetched after a group is formed with requestGroupInfo on the group owner.



--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.


Jakob Jarosch

unread,
Jul 5, 2012, 12:37:06 PM7/5/12
to android-...@googlegroups.com, Jakob Jarosch
Sorry to ask, but it sounds like there is no way to automatically connect a device to a group, is that correct?
To post to this group, send email to android-platform@googlegroups.com.
To unsubscribe from this group, send email to android-platform+unsubscribe@googlegroups.com.

othy74

unread,
Jul 5, 2012, 5:55:49 PM7/5/12
to android-...@googlegroups.com, Irfan Sheriff, Jakob Jarosch
On 05.07.2012 18:34, Irfan Sheriff wrote:
> getPassphrase() which can be fetched after a group is formed with
> requestGroupInfo on the group owner.

This works just fine. But to enter these randomly generated uppercase /
lowercase chars and digits is obviously painful. Why not optionally
allow the app (running the GO) to set the passphrase? Why not allow it
to also provide a more friendly AP name?

Irfan Sheriff

unread,
Jul 5, 2012, 10:30:40 PM7/5/12
to android-...@googlegroups.com, Jakob Jarosch
Wifi Direct groups are temporary today. We do not support persistence yet to re-invoke previous groups when devices come in range. Also, passphrase is generated randomly for every new group.

An example way of doing a STA join is by using android Beam API to trigger WPS on GO as well as STA from an app to have the STA join a group when bringing devices together.

To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/1TJqT-TSUO4J.

To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

Irfan Sheriff

unread,
Jul 5, 2012, 10:37:51 PM7/5/12
to othy74, android-...@googlegroups.com, Jakob Jarosch
Persistence (remembering & re-invoking previous groups) is a planned feature in the future. That should help with things. We might allow apps to set passphrase in future.

Also, the AP name is defined by Wifi Direct spec. It follows the "Direct-XY-<configurable value>" pattern. We set the configurable value to the device name to help with discoverability on the STA side.

Irfan Sheriff

unread,
Jan 8, 2013, 10:51:24 AM1/8/13
to android-...@googlegroups.com
You can requesetGroupInfo() on the device that has the auto GO created and do a getPassphrase() to fetch password


On Mon, Jan 7, 2013 at 8:04 PM, <m.f.r...@gmail.com> wrote:
Is there any update here? I'm really looking to connect legacy WIFI devices to my WIFI DIRECT AP, any work around this problem?


On Monday, June 25, 2012 9:35:37 AM UTC-7, Jakob Jarosch wrote:
Hey all,
currently i'm trying to get the direct wifi with the group feature working. But i've a little problem. When one device creates a group (which is successful) on the other device a requestGroupInfo will only return a null-Object in the listener. Why is that so, how can i get these information and how do i connect to the group?

Another thing is that the App should automatically find the correct group, is there any possiblity to name the created group or add some meta information?

Thanks a lot
Jakob

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/610-iJKipuMJ.

m.f.r...@gmail.com

unread,
Jan 8, 2013, 9:05:22 PM1/8/13
to android-...@googlegroups.com
Is there anyway to access the WifiP2pGroup object that holds the GO. The object that onGroupInfoAvailable() function receives looks like to be a copy of the GO object and not the original one. 

Irfan Sheriff

unread,
Jan 8, 2013, 10:51:19 PM1/8/13
to android-...@googlegroups.com
On Tue, Jan 8, 2013 at 6:05 PM, <m.f.r...@gmail.com> wrote:
Is there anyway to access the WifiP2pGroup object that holds the GO. The object that onGroupInfoAvailable() function receives looks like to be a copy of the GO object and not the original one. 

What do you mean by original one ?

On the GO, if you do a requestGroupInfo(), you will get the GO details on the callback
 


On Tuesday, January 8, 2013 7:51:24 AM UTC-8, Irfan Sheriff wrote:
You can requesetGroupInfo() on the device that has the auto GO created and do a getPassphrase() to fetch password


On Mon, Jan 7, 2013 at 8:04 PM, <m.f.r...@gmail.com> wrote:
Is there any update here? I'm really looking to connect legacy WIFI devices to my WIFI DIRECT AP, any work around this problem?


On Monday, June 25, 2012 9:35:37 AM UTC-7, Jakob Jarosch wrote:
Hey all,
currently i'm trying to get the direct wifi with the group feature working. But i've a little problem. When one device creates a group (which is successful) on the other device a requestGroupInfo will only return a null-Object in the listener. Why is that so, how can i get these information and how do i connect to the group?

Another thing is that the App should automatically find the correct group, is there any possiblity to name the created group or add some meta information?

Thanks a lot
Jakob

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/610-iJKipuMJ.

To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.

For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.
To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/gtxqdY09swoJ.

m.f.r...@gmail.com

unread,
Jan 8, 2013, 11:19:05 PM1/8/13
to android-...@googlegroups.com
I invoked the hidden setNetworkName() method of the group object that is received by the onGroupInfoAvailable() as parameter, and while it changes that object's SSID it doesn't change the actual created SSID, so I thought maybe the group object that is received by the onGroupInfoAvailable() would be a copy of the group object.

Irfan Sheriff

unread,
Jan 8, 2013, 11:55:20 PM1/8/13
to android-...@googlegroups.com
You cannot change the ssid, It is meant to be a read only object


To view this discussion on the web visit https://groups.google.com/d/msg/android-platform/-/35y-PTgD7VgJ.

animesh

unread,
Aug 8, 2013, 3:15:54 AM8/8/13
to android-...@googlegroups.com, Jakob Jarosch, ishe...@gmail.com
Do android support creation of persistence group for wifi-direct now?
To post to this group, send email to android-...@googlegroups.com.
To unsubscribe from this group, send email to android-platfo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-platform?hl=en.

--
You received this message because you are subscribed to the Google Groups "android-platform" group.

Jaehwan Lee

unread,
Aug 16, 2013, 3:23:09 AM8/16/13
to android-...@googlegroups.com, Jakob Jarosch, ishe...@gmail.com
I'm curious about that, too
2013년 8월 8일 목요일 오후 4시 15분 54초 UTC+9, animesh 님의 말:

Sam Kogan

unread,
Feb 12, 2016, 10:12:32 AM2/12/16
to android-platform
That is simply catch22. The device not in the group can not receive the info about the group. So to get this info you need to be a member of the group. But you cannot connect to the group without knowing the group info

Farshad Koohifar

unread,
May 2, 2016, 10:09:42 AM5/2/16
to android-platform, jakob....@gmail.com, ishe...@gmail.com
Thanks for the solutions. When I connect() with a null device address, I get this error:
java.lang.IllegalArgumentException: deviceAddress cannot be empty

Here is the code:

    WifiP2pConfig config = new WifiP2pConfig();
config.deviceAddress = null;
config.wps.pin = "00000000";
config.wps.setup = WpsInfo.PBC;

mManager.connect(mChannel, config, new WifiP2pManager.ActionListener()
{
@Override
public void onSuccess()
{
groupCallbacks.sCreateGroup();
}

@Override
public void onFailure(int reason)
{
groupCallbacks.fCreateGroup(reason);
}
});

How can I createGroup() with a pre specified PIN?
Is it even possible?

Thanks again.
Farshad
Reply all
Reply to author
Forward
0 new messages