w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How to use Android mobile as Remote control for wifi enabled raspberry pi car , without using any access point/wifi router
as of now i have used USB/Wifi tethering method which has worked for me.i first tried with USB tethering , it was assigning some IP to Rpi. i changed the /etc/network/interfaces file so that this IP remain static. i used android Ip address as gateway and was able to ping them and even i was able to SSH from connectBot app. i think the same approah will work for wifi also. i will give it a try later. this discussion can be closed now :) my issue was resolved.

Categories : Misc

Connection between arduino(wifi shield) and PC locally, with router
You say locally, which means you do not need any port forwarding. All your devices are on the same subnet, and you can directly open connections with each other. Port forwarding would only be necessary if something outside you network wants to open a connection to something inside. Basically, if something on the WAN side of the router wants to open a connection to something on the LAN side. For example, you at a coffee shop on your laptop connecting to Arduino in your house. Note that the reverse does not hold: something on the LAN side can open a connection to something on the WAN side with no port forwarding -- that is the NAT function of the router and is always active. For example, that is how your computer connects to stackoverflow with no special configuration on the router.

Categories : Sockets

Detecting all devices connected to my wifi router using Android Programming
It totally depends on your router: if it has this sort of functionality exposed via API or other. Most routers don't permit this sort of deep-querying. You might look at tomato or dd-wrt if you want to have more control over it.

Categories : Android

android why sending information to server works with WIFI only?
You cannot contact your server from the device's mobile network unless it is routable from the public Internet. A server running on your development machine or otherwise behind a NAT/firewall would typically only be accessible from your local network / wifi.

Categories : Android

How to connect from ios app to local WIFI and Transfer information/photos
You need to use the Socket Prgogramming with Bonjour. You can even find the sample code for connecting with the user on same network like wifi. You need to use CFReadStream, CFWriteStream and NSNetService. You can check this code as well , see the serverless demon in this. Here is the link.. XMPP Sample For file transfer protocol just check TurnSocket Extension used in this.. Further XMPP extensions are here on this link:- XMPP Extensions

Categories : Iphone

Android: How to detect if a device is WiFi or WiFi+Cellular
Here is excerpt from my code (it works so far): ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE); NetworkInfo mWifi = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); NetworkInfo mEthernet = connManager.getNetworkInfo(ConnectivityManager.TYPE_ETHERNET); NetworkInfo m3G = connManager.getNetworkInfo(ConnectivityManager.TYPE_MOBILE); if (mWifi!=null) isOnWifi = mWifi.isConnected(); if (mEthernet!=null) isOnEthernet = mEthernet.isConnected(); if (m3G!=null) is3G = m3G.isConnected();

Categories : Android

Android 4.2:turning off wifi when wifi direct is enabled
Try this code Button btnWiFi = (Button)findViewById(R.id.btnWiFi); btnWiFi.setOnClickListener(new OnClickListener() { @SuppressWarnings("deprecation") @Override public void onClick(View arg0) { // TODO Auto-generated method stub WifiManager wifi =(WifiManager)getSystemService(Context.WIFI_SERVICE); if(wifi.isWifiEnabled()) { Toast.makeText(getBaseContext(), "WiFi is Enabled", Toast.LENGTH_LONG).show(); } else { AlertDialog builder = new AlertDialog.Builder(MainActivity.this).create(); builder.setTitle("Caution"); builder.setMessage("WiFi is Disabled.

Categories : Android

Audio Stream WiFi to WiFi - Broadcast
Yes, it is doable. You will need two major components: A network API to send/receive data , and audio capture and playback API. For network library, you can try CocoaAsyncSocket. It is quite simple to use. You can use UDP protocol with multicast address. Even thought you said you wanted to broadcast, but you would be better off using multicast ( send to a group of devices). For Audio sample how to capture and playback, check out my answer on this .

Categories : IOS

When downloading data over WiFi, how do I know I am connected using Wifi
ConnectivityManager connManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE); NetworkInfo info = connManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI); More information can be extracted from NetworkInfo. Just check this reference. You'll need this permission: <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> Complementing: I am not sure if it's an Android default or a device configuration, but whenever there is an established wifi connection, 3G is automatically disabled. I tested in a few devices and all of them have this behavior.

Categories : Java

Fat Free router blocks Backbone router, how/when does Backbone router.js work?
If you are not using pushState, then the backbones routes are easy to differentiate from the server routes: /route1 /route2 /route1#route/a /route1#route/b The part before the hash is the one transmitted to the server (F3 routes). The part after the hash corresponds to the backbone routes. //F3 routing $f3->route('GET /route1',…) $f3->route('GET /route2',…) //Backbone routing routes: { "route/a": "routeA", "route/b": "routeB", } Note that the Backbone router doesn't generate any HTTP request to the server (unless you specifically define it of course). What generates automatically HTTP requests is the Backbone model. A backbone model is mapped to a server resource using urlRoot. The methods fetch(), save() and destroy() are then mapped respectively to the GET, PUT and

Categories : Backbone Js

pass string between two wifi direct connected user in android using wifi direct?
you can use socket to connect between two peers in the same network. for instance create a server socket on one of the peers on any port and then from the client side connect to that port on the other user . then you can use this socket connection to send strings, file whatever you want. for starters i would recommend you employ the server socket on the group owner so it will be easier on your client side to get the ip of the peer(i.e group owner) using the groupOwnerAddress field provided by the api refer to this -> http://www.oracle.com/technetwork/java/socket-140484.html

Categories : Android

Android transferring data between a wifi direct and non-wifi direct device
following pattern can connect via wifi. wifi direct device(P2P AP) <-> non-wifi direct device, has wifi(W) P2P AP: do wifi direct api "createGroup()", this api create wifi accesspoint P2P AP: do wifi direct api "requestGroupInfo()", this api returns WifiP2pGroup, that contains wifi accesspoint informations, such as ap name, password and other. (P2P AP to W: tell ap name and password to W device owner) W: setting app -> wireless -> search and connect wifi accesspoint created by P2P AP device. if you need auto connect to wifi accesspoint, P2P AP app should have a broadcast accesspoint name and password...

Categories : Android

Meteorite router package installation - Uncaught 'error' event on 'mrt add router'
Node 0.10.9 has a couple of issues. I'm not sure it'll help but try mrt add router --repoPort=80 as suggested here : https://github.com/oortcloud/meteorite/issues/135

Categories : Javascript

KnockOut JS - applying a new binding. Error - Message: ReferenceError: 'router' is undefined; Bindings value: css: { active: router.isNavigating }
Before you execute the problematic code, the Composition lifecycle of Durandal has bound the the shell.jsand subsequently the ViewModel agency.js with the UI. Meanwhile in the addContact function, at the last line you basically change the whole binding applied to the view: ko.applyBindings(objAgency); So your whole UI is now bound to this objAgency which I guess does not contain a router instance as the errors is pointing : ReferenceError: 'router' is undefined; This error comes probably from the binding of the shell because is no longer bound to the UI since your code applied new bindings. SOLUTION: The applyBindings is managed by Durandal in the composition process. If you want to modify some properties of the ViewModel there's no need to update the bindings. I don't know if

Categories : Javascript

How to test Meteor router or Iron router with laika
I had the same problem. I needed to navigate to some page before running my tests. I'm using iron router as well. I figured you can't just execute Router.go('foo') and that's it. You need to wait until the actual routing took place. Fortunately the router exposes a method Router.current() which is a reactive data source that will change as soon as your page is ready. So, in order to navigate to a specific route before running my tests, I firstly run the following code block: // route to /some/path client.evalSync(function() { // react on route change Deps.autorun(function() { if (Router.current().path == '/some/path') { emit('return'); this.stop(); } }); Router.go('/some/path'); }); Since this is within an evalSync()everything that

Categories : Meteor

VBA to Copy Information From a Folder of Files and Compile Information to a Single Workbook
This is not the full code, but it should help you. When you work with multiple workbooks keep track of them. For example start with: Dim CurrWB As Workbook Set CurrWB = ActiveWorkbook Then in the cycle: Dim WB As Workbook For Each StrFile In var Set WB = Workbooks.Open(loc & StrFile) ... WB.Close Next StrFile Inside the cycle you can find the area to copy doing something like: R1 = 1 Do While WB.Sheets("Sheet name").Cells(R, 2) <> "Starting text" R1 = R1 + 1 Loop R2 = R1 + 1 Do While WB.Sheets("Sheet name").Cells(R2, 2) <> "Ending text" R = R + 1 Loop For R = R1 to R2 CurrWB.Sheets("Report").Cells(RReport, 3) = WB.Sheets("Report").Cells(R, 3) RReport = RReport + 1 Next R

Categories : Excel

Reply mail structure information: how to retrieve sent and received information
There's no standard for the structure of a reply email. It's not usually done using multipart email, it just uses human-readable text, often with > prefixes to denote quoted text. This allows replies to be interspersed inline with the quoted material. The only standard features of replies are a couple of headers: In-Reply-To: <ID> and References: <ID1>, <ID2>, <ID3>, ... In-Reply-To contains the message ID of the message that was replied to. References is a growing list of message IDs -- when you reply, you take the original message's reference list and append the ID of the message being replied to at the end. See RFC 5322 for more details about these headers.

Categories : PHP

how to get the information of about database events and actor information
Look at the MODULE, ACTION and CLIENT_INFO columns of V$SESSION. Then, in the package(s) and/or trigger(s) you suspect are performing the update, call DBMS_APPLICATION_INFO.SET_MODULE and DBMS_APPLICATION_INFO.SET_ACTION: BEGIN DBMS_APPLICATION_INFO.SET_MODULE(trigger_name, 'trigger start'); -- some code... DBMS_APPLICATION_INFO.SET_ACTION('updating employee'); -- code which updates the employee table DBMS_APPLICATION_INFO.SET_ACTION('doing something else'); -- more code... DBMS_APPLICATION_INFO.SET_MODULE(NULL, NULL); END; See also the example provided in the usage notes.

Categories : Oracle

Wifi in .Net application
Your application wouldn't be built specific to WiFi; you'd simply use network connections, and how the network connection is physically connected (or not) is irrelevant to your application. Typically you'd make use of web service calls over https (or maybe http if the data isn't sensitive). The OS takes care of the network connect itself, whether its Ethernet, WiFi, or cellular.

Categories : Asp Net

Exclude WIFI from NETWORK_PROVIDER
One way of obtaining this is to use PASSIVE_PROVIDER, which as stated here: A special location provider for receiving locations without actually initiating a location fix. This provider can be used to passively receive location updates when other applications or services request them without actually requesting the locations yourself. This provider will return locations generated by other providers. You can query the getProvider() method to determine the origin of the location update. Requires the permission ACCESS_FINE_LOCATION, although if the GPS is not enabled this provider might only return coarse fixes. Constant Value: "passive" One certain way of obtaining what you want is the following: ConnectivityManager conMan = (ConnectivityManager) getSystemService

Categories : Android

always use WIFI in Windows Mobile 6.5 C#
I am not sure but I assume you can handle this using provisioning and specifying the Desktop-Passthru-Connection (ActiveSync/WMDC), also called DTPT, as unsecure and the WiFi/LAN connection as secure (http://msdn.microsoft.com/en-us/library/aa455851.aspx). That should work, as the connMgr first uses the 'secure' connection. STOP: I just read the note on the linked site: "Note Setting the value of Secure to false is not supported for Desktop Passthrough (DTPT) connections. DTPT was designed to work as a secure connection.". So this approach is no option for DTPT. Another approach would be to specify the DTPT connection as a 'Work' connection, wheras (I assume) your connection request is for an 'Internet' connection. Example provisioning: http://msdn.microsoft.com/en-us/library/ms890844.a

Categories : C#

Getting wifi Signal strength
Why don't you use a WMI query to get it in a clean way ? private double RetrieveSignalString() { double theSignalStrength = 0; ConnectionOptions theConnectionOptions = new ConnectionOptions(); ManagementScope theManagementScope = new ManagementScope("root\wmi"); ObjectQuery theObjectQuery = new ObjectQuery("SELECT * FROM MSNdis_80211_ReceivedSignalStrength WHERE active=true"); ManagementObjectSearcher theQuery = new ManagementObjectSearcher(theManagementScope, theObjectQuery); try { //ManagementObjectCollection theResults = theQuery.Get(); foreach(ManagementObject currentObject in theQuery.Get()) { theSignalStrength = theSignalStrength + Convert.ToDouble(currentObject["Ndis80211ReceivedSignalStrength"]); } } catch (Exception e)

Categories : C#

Get MAC Address without connect to WiFi
WifiManager wifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE); registerReceiver(new BroadcastReceiver() { @Override public void onReceive(Context c, Intent intent) { List<ScanResult> results = wifiManager.getScanResults(); for (ScanResult ap : results) { Log.d(TAG, "SSID=" + ap.SSID + " MAC=" + ap.BSSID); } } }, new IntentFilter(WifiManager.SCAN_RESULTS_AVAILABLE_ACTION)); wifiManager.startScan(); For a BSS operating in infrastructure mode, the BSSID is the MAC address of the wireless access point (WAP)

Categories : Android

How can I get RSSI value of wifi network in IOS?
Following link can help you Accessing iPhone WiFi Information via SDK Google code mentioned there can be helpful

Categories : Iphone

android web server without wifi
we ended up using "Servers Ultimate". https://play.google.com/store/apps/details?id=com.icecoldapps.serversultimate&hl=en it is paid but the client does not matter and we are also, till it is running well :)

Categories : Android

Locating don't work without Wifi
Two things: We don't know if u are checking at all if GooglePlayServices are available.. With requestLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY); you are stating you are interested in GPS data.. I am not sure but this might be the issue

Categories : Java

Scan for available WiFi networks in F#
It is not clear from your message if your college assignment prescribes pure F# solution, or you can base it on existing open source .NET libraries. Depending on this factor your mileage may vary... Nevertheless, if you are allowed to use existing .NET libraries, then as Jack P already noted you may base your approach on Managed Wifi API. It consists of 2 C# classes: Wlan, which is pInvoke interop wrapper over Native WiFi API, and WlanClient, which represents per se managed .Net API for manipulating WiFi. If you would be able building the Managed Wifi API DLL named, say, interop.dll from CodePlex C# sources, then using it from F# to list available WiFi networks and their signal strength is almost trivial: #if INTERACTIVE System.Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ #r @

Categories : Networking

Reachability Not Detecting WiFi
we took a look at the programming and narrowed it down to a switch case issue, reachability was returning 2 but the switch case inside another class returned "wwan" instead of "wifi" for case 2, please check this answer or close this question so others will not try to answer a solved problem, Thank You.

Categories : IOS

How to get RSSI of Wifi on iPhone?
First of all, you need to add an entitlement to your project using the com.apple.wifi.manager-access key. The creation of the entitlement differs from the Xcode version you are using (.xml, .entitlement), but your entitlement's content should look like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>keychain-access-groups</key> <array> <string>YOUR_APP_BUNDLE_ID</string> </array> <key>com.apple.wifi.manager-access</key> </true> </dict> </plist> Second, you need to have a Jailbreak and AppSync on your iOS device in order to launch your app,

Categories : Iphone

Get RSSI of Wifi when doing discovering in iOS?
As far as I know you can't do it via public API on iOS. There is a public CoreWLAN framework for such purpose, but it is only available on OSX. There is however a private api: Apple80211 private framework. There is no public documentation for it, but something you can find here. You can't create apps for App Store using it, but if you need something for yourself - you are welcome.

Categories : IOS

How to Take Permission for accessing Wifi?
In Android, id the wi-fi is enable by default then the application just uses it. There are not general application based rules in Android like in iOs (enable-disable the internet access to a certain application). For that requirement here prepare a Dialog box, when the user tries to access the internet, with option s like "Use it", "Abandon" and let the user decide.

Categories : Android

Show wifi selection box on iOS
It should pop up if you set the UIRequiresPersistentWifi key, and the user has Wifi enabled globally.

Categories : C++

udp android server over wifi
Are you sure that when connected thru a cable this program works? Then we do not need to check the code, but taking a look I see that in the run method of your thread, the very first line of code says: while (socket != null && !socket.isClosed()) which both happen to be true just the way the code is written. So I doubt that it works with Wifi or with cable. I think you should change the thread's code like this: public void run() { try { socket = new DatagramSocket(SERVER_PORT); socket.setSoTimeout(RECEIVING_TIMEOUT_SERVER); DataOut = new byte[1024]; // InetAddress fromaddress = InetAddress.getByName("10.4.0.11"); packetIn = new DatagramPacket(DataOut, DataOut.length); // keep receiving packets, until keepOn set to false

Categories : Android

WiFi state change
WifiManager wifi = (WifiManager)getSystemService(Context.WIFI_SERVICE); if (wifi.isWifiEnabled()){ //wifi is enabled return true; }else{ return false; } refer http://developer.android.com/reference/android/net/wifi/WifiManager.html

Categories : Android

The relationship between Wifi and Socket
What's the relationship between Wifi and Socket? Does Socket code below still applies where the Wifi connection is being made? Yes. The socket API is an abstraction layer and doesn't depend on the network interface. There's not relationship between Wifi and socket, in your code.

Categories : C

Broadcasting with WiFi Direct in android
Try calling public UnknownHostException (String detailMessage) to get the detailed exception message. Another way to call getByName() can be get from here Below link has a step by step illustration of setting up a Wi-Fi Direct broadcaster Connecting with Wi-Fi Direct

Categories : Android

print from android to wifi printer
you can do with the send2printer installed and the third party sdk . you must see this: http://hit-mob.com/forums/viewtopic.php?f=13&t=66

Categories : Android

To check whether the wifi scan is complete
You need to implement a BroadcastReceiver listening for the scan results returned from WifiManager.startScan(). onReceive() allows you to access the scan resuls directly. it takes about 1 second for the scan to complete and trigger onReceive()...

Categories : Android

How to share file p2p with wifi direct
https://www.alljoyn.org/ https://www.alljoyn.org/sites/default/files/alljoyn-alliance.pdf You can try this. I think this is easy to use, and fit your requirement.

Categories : Android

How can i disable wifi when battery level is less 10%?
If you want to check battery level when you click on button: public void getRisparmio(View view) { ..... IntentFilter ifilter = new IntentFilter(Intent.ACTION_BATTERY_CHANGED); Intent batteryStatus = context.registerReceiver(null, ifilter); int level = batteryStatus.getIntExtra(BatteryManager.EXTRA_LEVEL, -1); if (level<10){ ...... } ....... } If you want to disable wifi when battery level is low,you can register a Broadcast receiver with with this IntentFilter Intent.ACTION_BATTERY_LOW. public class BatteryReceiver extends BroadcastReceiver { public void onReceive(Context context, Intent intent) { boolean batteryLow = intent.getAction().equals(Intent.ACTION_BATTERY_LOW); if (batteryLow){ ....

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.