wifi-direct

Broadcasting over Wi-Fi Direct

五迷三道 提交于 2019-12-03 06:01:00
问题 I'm looking at the possibility to broadcast over a Wi-Fi Direct connection between multiple Android devices. I've created a simple message broadcasting application to test whether or not it works, but so far I haven't been able to broadcast a message. When I try to send the packet I get a SocketException (Network is unreachable): 03-20 13:23:00.148: E/UdpBroadcaster(4180): sendto failed: ENETUNREACH (Network is unreachable) 03-20 13:23:00.148: E/UdpBroadcaster(4180): java.net.SocketException:

How to estimate distance between two android devices? (bluetooth preferred)

僤鯓⒐⒋嵵緔 提交于 2019-12-03 05:52:44
问题 Target is not to have the real distance. It is something simpler. Target is to check whether another device is very very close . True or false. Let's say 10 or 15 cms is close so our check is true and any device further away fails the check and it is false. My first approach was to use api's method fetchUuidsWithSdp() but it failed! Latency seemed the same whether the devices where a couple of cms away or at the other end of a large room! Any solution even without bluetooth is acceptable. For

Broadcasting over Wi-Fi Direct

走远了吗. 提交于 2019-12-02 19:25:39
I'm looking at the possibility to broadcast over a Wi-Fi Direct connection between multiple Android devices. I've created a simple message broadcasting application to test whether or not it works, but so far I haven't been able to broadcast a message. When I try to send the packet I get a SocketException (Network is unreachable): 03-20 13:23:00.148: E/UdpBroadcaster(4180): sendto failed: ENETUNREACH (Network is unreachable) 03-20 13:23:00.148: E/UdpBroadcaster(4180): java.net.SocketException: sendto failed: ENETUNREACH (Network is unreachable) 03-20 13:23:00.148: E/UdpBroadcaster(4180): at

Peer to peer data sharing using Wi-Fi direct

不羁的心 提交于 2019-12-02 18:15:22
问题 I am developing an Android multiplayer game using Wi-Fi direct . Using Wi-Fi direct, I am able to establish connection between peer devices. Also the code is able to send the data from client device to server device. (According to Android documentation, the Wi-Fi direct uses client-server model) Problem : I am not able to share the data from server device to client device using Wi-Fi direct. I have following questions: Is there any other way to transfer data (bi-directional) between two

Customized channel wifi direct

家住魔仙堡 提交于 2019-12-02 14:09:16
Can anyone tell me, is there any option to customize wifi direct channels? I need to customize it not only between ch1, ch6 and ch11, but also in another channels selected by me. How can I do that? In order to change the channel of the Wifi Direct of your device you need to do the following: 1- Root your phone 2- Download any File manager App: Such as ES File Explorer 3- On ES File Explorer, go to Tools, then turn ON the Root Explorer and click on it then mount RW 4- Using ES File Explorer, go to Device -> Data -> Misc -> Wifi -> p2p_supplicant.conf and change the p2p_oper_channel to whatever

32 - How to overcome the Wi-Fi Direct 32 limit on credentials in Android?

浪子不回头ぞ 提交于 2019-12-02 14:03:28
问题 See-> https://android.googlesource.com/platform/frameworks/base/+/b267554/wifi/java/android/net/wifi/p2p/WifiP2pGroupList.java#34 private static final int CREDENTIAL_MAX_NUM = 32; Which is essentially limiting the number of devices I can have connected in a single Wi-Fi Direct 'cloud' per se. This Question spawns from the answer and comments at https://stackoverflow.com/a/26242221/1815624 This Question is not a question of "How to" connect multiple device such as found at WiFi Direct for

Peer to peer data sharing using Wi-Fi direct

﹥>﹥吖頭↗ 提交于 2019-12-02 08:07:45
I am developing an Android multiplayer game using Wi-Fi direct . Using Wi-Fi direct, I am able to establish connection between peer devices. Also the code is able to send the data from client device to server device. (According to Android documentation, the Wi-Fi direct uses client-server model) Problem : I am not able to share the data from server device to client device using Wi-Fi direct. I have following questions: Is there any other way to transfer data (bi-directional) between two Android devices which are connected through Wi-Fi Direct? During my online research I understood that to

32 - How to overcome the Wi-Fi Direct 32 limit on credentials in Android?

ε祈祈猫儿з 提交于 2019-12-02 04:05:32
See-> https://android.googlesource.com/platform/frameworks/base/+/b267554/wifi/java/android/net/wifi/p2p/WifiP2pGroupList.java#34 private static final int CREDENTIAL_MAX_NUM = 32; Which is essentially limiting the number of devices I can have connected in a single Wi-Fi Direct 'cloud' per se. This Question spawns from the answer and comments at https://stackoverflow.com/a/26242221/1815624 This Question is not a question of "How to" connect multiple device such as found at WiFi Direct for multiple devices CREDENTIAL_MAX_NUM is a limit on the number of WifiP2pGroup objects that the the

Wifi Direct Groups Memorised

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-01 23:32:41
问题 How can I delete the groups memorised by Wifi Direct? If it is possible, what is the function allowing to delete groups? thanks. 回答1: Wi-Fi Direct Persistent groups are not implemented yet as far as I know (in Android API level 17). So you don't have to bother deleting memorised groups as they don't exists (yet). 回答2: The only way is to delete groups with introspection: Method deletePersistentGroupMethod = WifiP2pManager.class.getMethod("deletePersistentGroup", WifiP2pManager.Channel.class,

Check whether android wifip2p connection was successful?

六眼飞鱼酱① 提交于 2019-12-01 21:50:52
I am connecting two android devices via Wifi Direct. I created a group using Wifip2pManager.createGroup on the first device. Now, on the second device I call the Wifip2pManager.connect method. But the connect method is succesful, even if the first device declines the connection since it only checks for successful initialization . How do I check if the other device accepted the connection ? The class needs to implement ConnectionInfoListener. And in the function onConnectionInfoAvailable(final WifiP2pInfo info) you can check if a successful connection has been established or not. The info