wifi-direct

Wi-Fi Direct and “normal” Wi-Fi - Different MAC?

随声附和 提交于 2019-12-30 04:40:12
问题 I'm currently trying to connect two phones which know each other's MAC address via Wi-Fi Direct, and stumbled upon the following problem: The MAC address, which I receive from WifiManager wifiMan = (WifiManager) this .getSystemService(Context.WIFI_SERVICE); WifiInfo wifiInf = wifiMan.getConnectionInfo(); MAC_ADDRESS = wifiInf.getMacAddress(); is slightly different than the one I receive from the WifiP2pManager when discovering and requesting peers. Example: a0:xx:xx:... turns into a2:xx:xx...

Wi-fi P2P. Inform all peers available of some event

放肆的年华 提交于 2019-12-30 03:31:11
问题 The problem: I'm making an offline-multiplayer android game, where people can create or join a room and play together via Wi-fi. Consider the situation when a user creates a room and he (of course) has to inform all other users that there is a room available. So the question is "How?".I've read about 1000 times this and this. It's written there that in order to send some data to another device, one of them should be a server and the other one a client. Client sends some info to the server,

Can I use Wi-Fi Direct and cellular data in an app?

偶尔善良 提交于 2019-12-29 04:57:07
问题 I have two+ Android devices. I would like the devices to send instructions to the other devices using Wi-Fi Direct, while at the same time being able to access the internet via their cellular data connection. It seems that using the Wi-Fi Direct interface is being treated as the primary connection, disabling the other connections, just like how Wi-Fi disables the cellular data connection. How can I programmatically allow both to operate at the same time? Currently the Wi-Fi Direct receiver is

How to get the deviceName of my device using wifi p2p

只谈情不闲聊 提交于 2019-12-25 06:44:57
问题 I'm developing an app based on Google's wifi p2p API and I would like to get the name of the device I'm using (not the peers) but the only way I found to retrieve the name is in case I change it by using something like this: if (WifiP2pManager.WIFI_P2P_THIS_DEVICE_CHANGED_ACTION.equals(action)) { // this device details has changed(name, connected, etc) mApp.mThisDevice = (WifiP2pDevice) intent.getParcelableExtra(WifiP2pManager.EXTRA_WIFI_P2P_DEVICE); mApp.mDeviceName = mApp.mThisDevice

Android: Establish “Wi-Fi Direct” connection with networked devices

旧巷老猫 提交于 2019-12-25 04:06:40
问题 Was going through Android documentation and had few doubts: Using "Wi-Fi direct" in Android 4.0+, is it possible to establish connection pragmatically with NON "Wi-Fi direct" enabled network device? For example, is it possible to communicate with older smartphone (having Android 2.2 OS) with the latest 4.1 based Android Smartphone. I want to use Wi-Fi direct capablities to perform FTP operation on various kinds of smartphones (android, iOS) Thanks. 回答1: I am using an APP named FileDrop which

Android - How to turn off Wifi-direct

孤街醉人 提交于 2019-12-25 02:52:19
问题 I'm kind of new to Java, Android and even Stackoverflow, sorry if my question is not well written. I followed many guides online that showed me how to connect two devices using Wifi-direct. I managed to do this and now I just need to close the connection. I have a C++ "server" peer and an Android "client" peer and for the client side I am using the Wifi-Direct Demo (linked below) I create a Wifi-Direct group C++ side From Android I search for servers The user chooses the server Socket

Which file to extend for customized messages in veins? What is the purpose of AirFrame11p.msg?

大城市里の小女人 提交于 2019-12-24 14:43:00
问题 I'm new to SUMO, Veins, OMNET++ and simulations with a bit background of networks. I have successfully setup environment and run veins 4.6 demo application. On google found that unlike RSU, Car modules are added on the fly. In demo example car nodes send Airframe11p message, i'm not getting where this message is being populated because in TraCIDemo11p.cc methods (onWSA, onWSM, handleSelfMsg, handlePositionUpdate) we are dealing with WSM message types and BaseWaveApplLayer::checkAndTrackPacket

Get peer device's IP address in wifi-direct p2p connection [duplicate]

隐身守侯 提交于 2019-12-23 09:58:51
问题 This question already has answers here : How to get each device's IP address in Wi-Fi Direct scenario? (6 answers) Closed 3 years ago . My app needs to know the peer device’s IP address when my device is a group owner (GO) in a wifi-direct P2P connection (usually GO acts as DHCP server and peer station receives the IP from the server). I figured out that the DHCP client list is stored in /data/misc/dhcp/dnsmasq.leases file, but the app has to be part of “dhcp” group to read that file and I am

how to set interface device name of wifi direct

a 夏天 提交于 2019-12-23 04:47:34
问题 I have the similar question with this post Android WiFi Direct device details However, it seem din't get any solution from that post. Is it any method can used to set the wifi-direct name that similar with function of "setName()" or "setServiceName" in bluetoohAdapter & NsdServiceInfo. 回答1: You can rename the device WiFi Direct name using reflection. Check the solution here: Android rename device's name for wifi-direct Additionally, there is a file called p2p_supplicant.conf in the /data/misc

android wifi direct live camera video stream

半腔热情 提交于 2019-12-23 04:14:17
问题 I have established a wifi direct p2p connection between two android devices, streaming the live camera feed from device A to device B, at 720x480 resolution. It works ok, but is pretty choppy, even at close range (<1m). Sometimes it's ~15fps, then for a couple seconds it will drop to ~3fps (just a guesstimate). The basic functionality is a Runnable thread inside the OnPreviewFrame of the PreviewCallback that uses YuvImage() to compress the preview frame into a JPEG and writes it to an