Skip to main content
14 events
when toggle format what by license comment
Apr 7, 2022 at 2:48 comment added Robin Davies Spent three weeks tearing my hair out over this. I'm not thanking you (since that would be contrary to StackExchange policy). Just letting you know that your answer made a difference.
Apr 7, 2022 at 2:43 comment added Robin Davies @Jorstek: You can write an Android app that scans for a Wifi service, and re-establishes the connection automatically. If it's your service, and your app, this is entirely doable. Not sure if you can do it from a service in the background.
Nov 14, 2021 at 22:36 comment added Jortstek Indeed. The main one is called "Netshare no-root-tethering" I am trying it right now and it appears to work great. It creates an AP over WiFi Direct and maintains the connection with a permanent notification. This is all I want. But it is not FOSS and has data limits. So I will not keep it and instead go back to Bluetooth or USB. WiFi Direct has been such a disappointing experience.
Nov 14, 2021 at 4:33 comment added ircama The Android SDK should enable developing an App that manages WiFi Direct without interaction.
Nov 12, 2021 at 8:52 comment added Jortstek PS Would be absolutely prepared to use an Android app to bypass the stock wifi-direct interface if this could make the wifi-direct reconnection automatic. I could not find one when I looked. Might it be an option?
Nov 12, 2021 at 8:42 comment added Jortstek Believe me, I have been testing, and even got it working except automatic reconnection. My use case is for $ANDROID to reconnect without interaction and simultaneously to both (1) $ROUTER in AP mode and (2) $UBUNTU in whatever mode will allow an SSH connection. Is that clearer? I know that I can connect the two via the IPs provided by $ROUTER but I want to do it directly for occasions when the router is not available. If I understand your latest comment (thanks), it sounds like this will be impossible, since jAP mode would be required and Android cannot connect to two APs at once. Right?
Nov 12, 2021 at 7:52 comment added ircama Once the P2P persistent group is formed, it is possible to connect to it both using WiFi Direct (which requires a confirmation when connecting through the Android user interface) and also in Infrastructure AP mode, which is the same way as for traditional infrastructure-mode Access Points. That said, It is not very clear to me your use case, whether you interface WiFi direct from the Android user interface or from an App and why you need to opt for WiFi Direct over infrastructure AP mode networking. I suggest you some simple tests, which will be much clearer to you than many comments.
Nov 11, 2021 at 10:35 comment added Jortstek (Deleted my last comment cos I can't edit it and there was a glaring mistake which made it confusing. I meant I do want it to reconnect automatically.) @ircama Just to confirm, when you say you need to "click on the persistent group" in Android but "without repeating" the authorization process, that means click on it every time you lose and regain connectivity, i.e. every time the two devices come back in range of each other? I've seen this question asked elsewhere but never seen a clear answer. If it really does require constant Bluetooth-style pairing, that is going to be a deal-breaker.
Nov 11, 2021 at 1:07 comment added ircama A persistent P2P-GO group can provide AP capabilities; also, Wi-Fi Direct does not interfere with the routing table, so you might have cellular and WiFi concurrently active with Android. The connection to a persistent group is not automatic with the Android phone: you need to click on the persistent group to connect to the Ubuntu GO. Anyway, a reconnection to the group is done without repeating the WPS authorization process.
Nov 9, 2021 at 6:40 comment added ircama Any Android version supporting Wi-Fi Direct works. I tested Android 11, 10, 9, 8, 7 and 6 smartphones. Wi-Fi Direct is present in most smartphones with at least Android 4.0 (API level 14); notice anyway that only recent Android versions support the local saving of persistent groups. With some Android 6 and 7 devices (depending on the ROM), enrolment is always needed when connecting a persistent group. Additional notes here.
Nov 7, 2021 at 21:16 comment added Jortstek Very helpful, thanks for posting this. Just for clarity, which version of Android was this for?
Feb 8, 2021 at 23:56 history edited ircama CC BY-SA 4.0
added 609 characters in body
Dec 10, 2020 at 23:17 review Late answers
Dec 14, 2020 at 13:23
Dec 10, 2020 at 22:57 history answered ircama CC BY-SA 4.0