However, from a certain point on (often rather quickly) the callee
device will stop responding to wifiP2pManager.connect() requests. When
this happens, the wifi broadcast receiver on the called device will not
receive CONNECTION_CHANGED_ACTION events anymore and the logs of _both_
devices show something like this:
E/WifiP2pService( 149): Unhandled message { what=147486 when=-332ms
obj=network: null
E/WifiP2pService( 149): isGO: true
E/WifiP2pService( 149): GO: null
E/WifiP2pService( 149): interface: p2p-wlan0-2 }
Nothing I can do in code then seems to be able to fix this. Restarting
the apps has no positive effect. Disabling and re-enabling wifi direct
does not help. Even rebooting either device individually does not
resolve the issue. Only when I reboot _both_ devices do I get to
establish Wifi Direct connections again.
Looks like the onChannelDisconnected() method in WiFiDirectDemo seems to
be aware of the issue. It contains this error message: "Severe! Channel
is probably lost premanently. Try Disable/Re-Enable P2P."
Anyone else experiencing this?
--
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.
Hi,
I'm not "sending ip2p-wlan0-2". I just see this in logcat. I'm using
the documented API's only. Nothing beyond what WiFiDirectDemo does.
I upgraded my devices from 4.0.2 to 4.0.3 AOSP master (radio XXKK6).
Issue is still there. Everything is working for a while and really
well... but then bang, the callee just won't "pick up" anymore. For
completeness: I'm getting status=2 (failed) from onPeersAvailable()
just before WifiP2pService reports "isGO: false / GO: null /
interface: p2p-wlan0-3".
JBQ
> --
> 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.
>
--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.
Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.
> (start 3rd session...)
> A: wifiP2pManager.connect()
> B: WifiP2pService: isGO: true / GO: null / interface: p2p-wlan0-3
> A: WifiP2pService: isGO: true / GO: null / interface: p2p-wlan0-3
> A: huh?
The wifi chip comes with a built-in default firmware, so it can be
used as-is with the functionality that is supported by that firmware.
Consumer system images include an updated version of that firmware
which is expected to work better. That firmware is loaded at each boot
and doesn't survive reboots.
Images built from AOSP don't include any updated firmware and use the
default firmware instead, so it's likely that there will be
differences between a consumer system and an AOSP system built from
the same platform source.
JBQ
JBQ
It would be great if you (Irfan Sheriff or JBQ) could tell us where to
check when these issues are resolved.
Is it resolve in the 4.0.4 firmware images published today?
Regards,
Dirk
Hi,
I would like to know if there will be an update about a refresh of Wi-Fi Direct API soon. If so, in which release is it planned for?
Thanks.
--
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/-/mIB2yZh2M-sJ.
Hello,
Are the API updates required for fixing the instability issue? Or will
the existing demo app just work with the next release and the new API's
are for added functionality?
Will it be possible to use AP Wifi and Wifi Direct together? And if not,
is this a fundamental problem, or more of a shortcoming with the current
hardware and/or software?
On 23.06.2012 07:00, Irfan Sheriff wrote:Is Wi-Fi Direct on GNex devices running JB supposed to be stable? I'm
>
> The instability has nothing to do with API. It will just work with the
> update.
probably doing it wrong somehow, but while trying to connect two GNex
4.1 devices, using only the new Wi-Fi Direct system popup menu, I can
quickly raise this NPE in WifiP2pService.java:
>Since JB has been released, maybe you can elaborate a bit on this. What
>
>> Will it be possible to use AP Wifi and Wifi Direct together? And if not,
>> is this a fundamental problem, or more of a shortcoming with the current
>> hardware and/or software?
>>
>
> It will be possible. Its a limitation of current s/w & in some cases h/w
>
h/w is supposed to provide trouble free Wi-Fi Direct functionality? What
h/w may provide limitations
On 02.07.2012 18:46, Irfan Sheriff wrote:After the NPE is raised, on the device where the connect request is
>
> Can you pull in a full bugreport with "adb bugreport" for me from the
> device showing the exception ?
being accepted, the device will immediately reboot. Just now, I got
three reboots on three successive connect attempts. To be fair, I
sometimes also see it working three times in a row.
This feels so much like Wi-Fi Direct on 4.0. Can it be, I'm using the
wrong radio maybe? My baseband = XXLF1, JB build = JRN84D.
What about BCM 4329 devices like Nexus S and Xoom?
> As for the nexus devices, WiFi direct is supported on nexus 7 & galaxy
> nexus (BCM 4330 based).
>> My baseband = XXLF1, JB build = JRN84D.JB/GNex. Please, what is the correct radio/baseband for this to work?
>
> What device is this on ?
I'm unable to generate a bugreport in the split moment between the NPE
> And I would have to look at the bugreport to see
> what is going on with your setup.
and the reboot.
> tapestry<https://play.google.com/store/apps/details?id=com.ekatasystems.apps.tapestry&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5la2F0YXN5c3RlbXMuYXBwcy50YXBlc3RyeSJd>&
> On galaxy nexus & nexus 7, we had two external apps test out the API (
> opengarden<https://play.google.com/store/apps/details?id=com.opengarden.android.MeshClient&feature=search_result#?t=W251bGwsMSwxLDEsImNvbS5vcGVuZ2FyZGVuLmFuZHJvaWQuTWVzaENsaWVudCJd>)
> without the issues you describe. You could check with how tapestry runs forSo far I'm not using apps. My issue is with the on board WiFi direct
> comparison.
connect functionality.
There must be technical reasons for this, I assume?
>> What about BCM 4329 devices like Nexus S and Xoom?
>>
>
> They are not going to support it.
On 03.07.2012 02:15, Irfan Sheriff wrote:Just curious: how does wifi firmware get updated then?
>
> The baseband radio should not affect wifi direct behavior.
Yes! I had a newline right before the device name. Tsss, must have
entered it via the phone GUI. Well, removing it let's me connect
*without* device booting. Great!
One other thing: In *some* cases, after manually disconnecting a direct
connection, the device names do not come back (to be shown as Available
again). Normally they do, but sometimes they don't. Going back and forth
between the views may eventually bring them back. But this can take a
relly long time. Sometimes only one device re-appears. This may sound
like a minor problem, but can be super annoying in real life situations.
Just saying.
This http://www.ifixit.com/Teardown/Nexus-7-Teardown/9623/2 describes
> Yes, both N7 & GN use the same chip with a firmware difference being
> that N7 does not support 11a for regular wifi operation.
the N7 wifi as "AzureWave AW-NH665". Is this a BCM 4330 under a
different name only?
Finally, I found the new service discovery API's. I assume a more
prosaic documentation will be made available soon? Looking forward.
Thank you.
Ran across this thread through a link in the bug report on Android Bug Reports. This seems to match what I'm seeing on the Galaxy Nexus phones using wifi direct, both the demo app and my own attempts. One of the final log messages is indeed the start of a direct wireless network and cuts off. But I am not sure I understand the prescribed solution.
Is there a way I can fix the devices to not crash without rooting them? What exactly do I have to set and how do I go about setting it? Can it be done through ADB or other tools?
--
You received this message because you are subscribed to the Google Groups "android-platform" group.
On 07.07.2012 18:09, Irfan Sheriff wrote:No AP-STA on both devices. This seems to be part of the problem.
> Ah, you seem to mention no AP-STA connection was active. Was this case on
> both the devices ?
A WiFI Direct link was established, similar to how WiFiDirectDemo would
do it. Data is being exchanged, no problems. Then a 3rd-party app is
started, using the active WiFI Direct link. The app communicates with
the other client just fine. But after a while it looks as if the app is
trying to activate AP-WiFi, and by doing so it is killing the active
WiFi Direct link. (This seems wrong. But it is not the root problem.)
I don't think Jelly Bean is out yet on Samsung's international version Galaxy Nexus phones.Model Number:
Galaxy Nexus
Android Version:
4.0.2
Baseband Version:
I9250XXKK6
Kernel Version:
3.0.8-gaaa2611
android-build@apa28 #1
Build Number
ICL53F.I9250XWKL2
We have Galaxy's and Nexus's as well as a few tablets, also. But the Galaxy Nexuses looked like they would have the best wifi direct support.
--
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/-/xqWiroUI5yYJ.
As far as I am aware, nothing in this thread actually got fixed. I can't connect my N7 4.2.1, Galaxy Nexus 4.1.2, or LG Mach 4.0.4 reliably at all to each other. In fact, the devices reboot often on first connect, and accepting an invite typically locks the entire system up.
On Monday, December 17, 2012 12:14:41 PM UTC-7, David Smith wrote:Has this issue been resolved? After reading over the replies, it is not clear the root cause of the Wi-Fi direct failures, or how to fix it.
I am observing the Wi-Fi Direct crash reported in this thread. To reproduce, I am using a Galaxy S3 to connect with a non-android device that supports Wi-Fi Direct. I find that the Galaxy S3 running 4.1.1 will crash during the connection. However, a Galaxy S2 running 4.0.4 will not crash and will establish a connection correctly. The SSID of the non-android device is DIRECT-IBTest, which should not lead to parsing issues.
Here is the log of the WI-Fi Direct connection up to the crash on a Galaxy S3:
/WifiP2pService( 2165): InactiveState{ what=139271 }
I/p2p_supplicant( 1641): [wpa_supplicant_ctrl_iface_process] : P2P_STOP_FIND
I/p2p_supplicant( 1641): p2p0: P2P-FIND-STOPPED
D/WifiP2pService( 2165): InactiveState sending connect
D/WifiP2pService( 2165): Sending join to GO
I/p2p_supplicant( 1641): [wpa_supplicant_ctrl_iface_process] : P2P_CONNECT b7:8a pbc join
I/p2p_supplicant( 1641): SS: Go oper channel is = [0]
D/WifiStateMachine( 2165): WifiManager.SEC_COMMAND_ID_SET_WIFI_ENABLED_WITH_P2P mSkipScanAssoc : true
D/WifiNative( 2165): callSECApiBoolean - ID [13]
D/WifiP2pService( 2165): GroupCreatingState
D/WifiP2pService( 2165): GroupNegotiationState
D/WifiService( 2165): WiFi Enabled with p2p -> Stop Scan, Stop Assoc
D/WifiP2pService( 2165): GroupNegotiationState{ what=147493 }
D/WifiP2pService( 2165): GroupCreatingState{ what=147493 }
D/WifiP2pService( 2165): P2pEnabledState{ what=147493 }
D/WifiP2pSettings( 2335): connect success
D/WifiP2pService( 2165): GroupNegotiationState{ what=139283 }
D/WifiP2pService( 2165): GroupCreatingState{ what=139283 }
D/WifiP2pService( 2165): P2pEnabledState{ what=139283 }
D/WifiP2pService( 2165): DefaultState{ what=139283 }
D/WifiP2pSettings( 2335): setScanTimer - scan : false, listen : false
E/WifiP2pStateTracker( 2165): getNetworkInfo : NetworkInfo: type: WIFI_P2P[], state: UNKNOWN/IDLE, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
D/lights ( 2165): button : 0 +
D/lights ( 2165): button : 0 -
W/PowerManagerService( 2165): Timer 0x7->0x3|0x0
I/PowerManagerService( 2165): Ulight 0x7->0x3|0x0
D/LightsService( 2165): setLightLocked is called
E/SMD ( 180): DCD ON
D/Tethering( 2165): interfaceAdded p2p-wlan0-0
D/Tethering( 2165): p2p-wlan0-0 is not a tetherable iface, ignoring
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, false
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, false
I/p2p_supplicant( 1641): rfkill: Cannot open RFKILL control device
D/Tethering( 2165): interfaceLinkStateChanged p2p0, true
D/Tethering( 2165): interfaceStatusChanged p2p0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
I/wpa_supplicant( 1602): Skip scan -> bUseNetwork false !!!!!!!!!!!!!!!!!!!!!
E/Sensors ( 2165): accelHandler -0.449066 5.888155 7.370673
E/SMD ( 180): DCD ON
W/SignalStrength( 2165): getGsmLevel=3
W/SignalStrength( 2165): getLevel=3 (SignalStrength: 10 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 0x3)
W/SignalStrength( 2277): getGsmLevel=3
W/SignalStrength( 2277): getLevel=3 (SignalStrength: 10 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 0x3)
W/SignalStrength( 2277): getGsmLevel=3
W/SignalStrength( 2277): getLevel=3 (SignalStrength: 10 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 0x3)
D/STATUSBAR-NetworkController( 2277): onSignalStrengthsChanged signalStrength=SignalStrength: 10 0 -120 -160 -120 -1 -1 99 2147483647 2147483647 2147483647 2147483647 gsm|lte 0x3 level=3
W/AlarmManager( 2165): FACTORY_ON= 0
W/SignalStrength( 2165): getDbm 1
W/SignalStrength( 2165): getGsmDbm=-93
W/SignalStrength( 2165): getDbm=-93
W/SignalStrength( 2165): getAsuLevel 1
W/SignalStrength( 2165): getGsmAsuLevel=10
W/SignalStrength( 2165): getAsuLevel=10
I/p2p_supplicant( 1641): Trying to associate with 01.B7.8A (SSID='DIRECT-IBTest' freq=2437 MHz rssi=-48dBm)
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): Associated with 01.B7.8A
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): p2p-wlan0-0: CTRL-EVENT-EAP-STARTED EAP authentication started
I/p2p_supplicant( 1641): p2p-wlan0-0: CTRL-EVENT-EAP-PROPOSED-METHOD vendor=14122 method=1
I/p2p_supplicant( 1641): p2p-wlan0-0: CTRL-EVENT-EAP-METHOD EAP vendor 14122 method 1 (WSC) selected
E/SMD ( 180): DCD ON
I/p2p_supplicant( 1641): p2p-wlan0-0: WPS-CRED-RECEIVED
I/p2p_supplicant( 1641): p2p-wlan0-0: WPS-SUCCESS
I/p2p_supplicant( 1641): p2p0: P2P-GROUP-FORMATION-SUCCESS
I/p2p_supplicant( 1641): p2p-wlan0-0: CTRL-EVENT-EAP-FAILURE EAP authentication failed
D/WifiP2pService( 2165): GroupNegotiationState{ what=147483 }
D/WifiP2pService( 2165): GroupNegotiationState go success
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): Disassociation notification
I/p2p_supplicant( 1641): * reason 0 (locally generated)
I/p2p_supplicant( 1641): CTRL-EVENT-DISCONNECTED bssid=00.00.00 reason=0
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): Trying to associate with 01.B7.8A (SSID='DIRECT-IBTest' freq=2437 MHz rssi=-50dBm)
I/p2p_supplicant( 1641): Associated with 01.B7.8A
I/p2p_supplicant( 1641): CTRL-EVENT-CONNECTED - Connection to 01.B7.8A completed (auth) [id=0 id_str=]
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): P2P-GROUP-STARTED p2p-wlan0-0 client ssid="DIRECT-IBTest" freq=2437 passphrase="" go_dev_addr=01.B7.8A
D/WifiP2pService( 2165): GroupNegotiationState{ what=147485 }
D/WifiP2pService( 2165): GroupNegotiationState group started
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): Disassociation notification
I/p2p_supplicant( 1641): * reason 2
I/p2p_supplicant( 1641): CTRL-EVENT-DISCONNECTED bssid=01.B7.8A reason=2
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
I/p2p_supplicant( 1641): P2P: [EVENT_DEAUTH] Removing P2P_CLIENT virtual intf.
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceLinkStateChanged p2p-wlan0-0, true
D/Tethering( 2165): interfaceStatusChanged p2p-wlan0-0, true
D/WifiStateMachine( 2165): WifiManager.SEC_COMMAND_ID_SET_WIFI_ENABLED_WITH_P2P mSkipScanAssoc : false
D/WifiNative( 2165): callSECApiBoolean - ID [13]
E/WifiHW ( 2165): ##################### set firmware type 0 #####################
D/WifiStateMachine( 2165): setWifiEnabled : WifiNative.setFwType(0)
E/WifiService( 2165): WiFi Eanbled with p2p -> disable
D/WifiP2pService( 2165): GroupCreatedState
I/dhcpcd ( 5222): dhcp main start
I/dhcpcd ( 5222): get_bssidinfo p2p-wlan0-0 failed
I/p2p_supplicant( 1641): p2p0: P2P-GROUP-REMOVED p2p-wlan0-0 client reason=UNAVAILABLE
W/dalvikvm( 2165): threadid=49: thread exiting with uncaught exception (group=0x41df8438)
D/WifiP2pService( 2165): GroupCreatedState{ what=147486 }
E/WifiP2pService( 2165): GroupCreatedState group removed
E/android.os.Debug( 2165): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_sys_error
E/AndroidRuntime( 2165): *** FATAL EXCEPTION IN SYSTEM PROCESS: WifiP2pService
E/AndroidRuntime( 2165): java.lang.NullPointerException
E/AndroidRuntime( 2165): at android.net.wifi.p2p.WifiP2pService$P2pStateMachine$GroupCreatedState.processMessage(WifiP2pService.java:1925)
E/AndroidRuntime( 2165): at com.android.internal.util.StateMachine$SmHandler.processMsg(StateMachine.java:895)
E/AndroidRuntime( 2165): at com.android.internal.util.StateMachine$SmHandler.handleMessage(StateMachine.java:756)
E/AndroidRuntime( 2165): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2165): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 2165): at android.os.HandlerThread.run(HandlerThread.java:60)
--
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/-/61IpKgejsMIJ.
Hi all,
I'm sorry if I'm annoying, but I cannot find a solution to my problem.
I'm working on an app using wifi direct protocol. I need to debug WifiP2pService class of android framework, using eclipse on a windows computer. Unfortunately this class doesn't appear in .jar library even though the source code folder
sdk\sources\android-19\android\net\wifi\p2p
contains the WifiP2pService.class file.
Does someone know how i can debug such class?
thanks for your time