wifi

Can iOS application use cellular internet connection while doing “Wireless Accessory Configuration” through WiFi?

余生颓废 提交于 2019-12-08 07:00:24
问题 Is it possible to access internet (using cellular) during WiFi device configuration using Apple's "Wireless Accessory Configuration" feature? This device would create the WiFi network and we would need to get data from the server while configurating the device. Specifications: Would iOS automatically use cellular to connect to the internet if there is no internet connection through WiFi? (But still keeps WiFi connection with device) Or is it possible to programmatically switch between

Android strange cross device behaviour

送分小仙女□ 提交于 2019-12-08 06:08:49
问题 I have three android devices, a Samsung Galaxy Note 10 an HTC Desire C and a Sony Xperia E. As well i have a service that listens on a specific TCP port on these devices. The WIFI policy is set to "Always on" in all of my devices as well my service acquires a WIFI_MODE_FULL and a PARTIAL_WAKE_LOCK so the CPU and WIFI are always there. After some time when i want to connect to these devices from the server something bad happens. The Samsung Galaxy Note device always behaves correctly. HTC

Creating a Wifi peer to peer connection between Android and PC

孤街醉人 提交于 2019-12-08 05:30:04
问题 I have a question about the p2p functionality of Android OS (4.x and higher). I have a PC program that makes use of the Boost C++ library that can function as a server or as a client. Now i have a Android app that has a server using Java sockets. This program need a accesspoint to connect to each other. I'm looking for a way to connect the Android server and the PC client program without a accesspoint. After looking around i found out that Android has a p2p library. Android P2P As a read it

Check for wifi networks signal in sleep mode

℡╲_俬逩灬. 提交于 2019-12-08 05:00:55
问题 My objective is to be able to scan changes in Wi-Fi networks (mainly to check what networks are available). Right know I'm doing it by registering a reciever: registerReceiver(wifiReceiver, new IntentFilter(WifiManager.RSSI_CHANGED_ACTION)); where WifiReceiver is my BroadcastReceiver . The problem is that it works only when the phone is on. As soon as it goes to sleep mode (either by pushing the power button or after some time), the receiver stops receiving. I already acquired a wake lock in

Printing with android

早过忘川 提交于 2019-12-08 03:51:13
问题 I want to print the text file from my application in android 8 through Bluetooth or WiFi. Please suggest me the solution. 回答1: this is a sample package com.example.untitled2; import android.app.Activity; import android.bluetooth.BluetoothAdapter; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.Toast; import java.io

Connecting to localhost/index.php through my smart phone [closed]

半城伤御伤魂 提交于 2019-12-08 02:45:03
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . I want to connect to my localhost using my smart phone through WiFi. I got my IP via www.whatismyip.com, and got my smart phone to connect to my laptop successfully. However, when I type localhost as the web address in the browser of my phone, nothing shows up. How can I access localhost/index.php page through my

How does Android's scan-only mode work?

孤人 提交于 2019-12-08 01:52:46
问题 Android 4.3 added new 'software' feature that keeps Wifi get scan results even if Wifi is off. It says that this mode consumes very low power. My question is how this technically done, and how much power saved compared to just enabling Wifi? 回答1: The logic is simple: driver and wpa_supplicant is never unloaded from the memory, unless scan-only mode is disabled in WiFi advanced menu via Scanning always available option. In terms of power consumption - the numbers will differ for every WiFi

How can I turn ON radio of a Wifi adapter that is actually OFF?

北城余情 提交于 2019-12-07 23:54:31
问题 I'm using Managed Wifi to get the radio state of my Wifi adapter. How can I turn the radio ON in case it is actually off ? Something like this : WlanClient wlanClient = new WlanClient() var targetInterface = wlanClient.Interfaces.FirstOrDefault() if (targetInterface != null) { bool radioIsOff = targetInterface .RadioState.PhyRadioState[0].dot11SoftwareRadioState == Wlan.Dot11RadioState.Off; if (radioIsOff) { // TODO } } 回答1: I just added this to the WlanInterface class of the Managed Wifi API

Is it possible for android devices to exchange messages over an access point and request a list of connected devices to this AP?

北城以北 提交于 2019-12-07 23:48:01
问题 I am developing an application which should connect to an open WiFi access point and exchange messages with devices that are also connected to this access point. Lets assume the access point is open and has no restrictions. Would it be possible to request a list of the IP addresses of the devices which are connected to it? Then if we have the address would it be possible to initiate a connection and exchange messages with that device? Have you seen any similiar projects/apps? (Is it possible

ns-3 wlan grid TCP not working while UDP is

帅比萌擦擦* 提交于 2019-12-07 20:06:44
问题 I am trying to set up a Multihop AdHoc 802.11g Network in ns-3. To get started I used the example 'wifi-simple-adhoc-grid.cc'. The example uses UDP, but I want to use TCP. Therefore I switched TypeId tid = ns3::UdpSocketFactory::GetTypeId(); Ptr<Socket> recvSink = Socket::CreateSocket (c.Get (sinkNode), tid); InetSocketAddress local = InetSocketAddress (Ipv4Address::GetAny (), 80); recvSink->Bind (local); recvSink->SetRecvCallback (MakeCallback (&ReceivePacket)); to TypeId tid = ns3: