Hello,
I am currently working on the creation of an application for mobile devices with Android which should be capable of sending and receiving messages through local means like wifi and bluetooth. After making a research about it I found out that Android doesn't have a native wifi ad hoc functionality and that the only way to achieve that is through rooting your device and patching the wpa_suplicant and some other similiar methods which are not generic for every device.
Synopsis of what I am trying to achieve:
An application for Android that scans for devices nearby and tries to connect to them automatically. If the other device also got this application isntalled then it automatically accepts any connection request it receives and when the connection is established it sends back a message which ensures that it has this app installed so that both can start exchanging messages automatically and the users don't have to allow/deny any of the sending/receiving in real time.
My questions are:
1. Is there any way of sending messages through wifi between 2 android devices without the use of internet?
2. Since Ad Hoc is not supported, is there any alternative?
3. In case the answer to 2 is no , then is it possible to make one of the devices to be an access point so the other can connect to it and vice versa.
4. As for bluetooth, is it possible to skip or automate the allow/deny pop up of an incoming connection and the pairing procedure?
I ll be glad if you could give me an answer to those and/or any suggestions.
Thanks in advance,
Mike
bringing up my post
Related
I am curious about the way the android system can communicate text messages with a pc. Using PDAnet, I know that it is possible to receive and send text messages on my windows desktop, while simultaneously surfing the net. Would it be possible to implement a similar system into one of the various wifi tethering apps? Maybe even make phone calls from my pc and send them through my cell line using my laptops wifi? With 4G speeds I can see more people using their cell phones as their daily use routers, and a program like this would make it more convenient to communicate while leave your phone in a central location in the home or office. Just wondering if anyone can shed some insight into this. Thanks!
I am using ARHD ROM (with Bricked Kernel).
My car can access and read out RSS threads and has a lot of interactive media functions, including being able access the internet via my bluetooth enabled phone. But I can't seem to get it to work fully, and really don't know if it is a ROM / Kernel / Phone issue or a car issue. I just don't know enough about the various bluetooth protocols etc, and as much as I research it, I keep going around in circes.
The car will connect to the phone and work fine as a bluetooth headset for telephone calls. It will also display the caller picture without issue and will access and read out my emails (using stock sense Mail client) and SMS messages. It also seems to connect to audio OK (although I never use it as it has a USB port that will accept a pop drive, so all my music is on the dashboard).
But the internet connection doesn't seem to work. I have looked into this and can't work out if it is a PAN or DUN profile issue. Soemtimes I can get the phone to show an internet connection being available to the car, sometimes it doesn't depending on which ROM I use and I can't seem to get any to work regardless.
Looking on the website, it claims the following:
How can I configure my mobile device for internet or BMW TeleServices usage?
In the operating manual of your mobile device you will find instructions on configuring “Access Point Name (APN)”; other names for this may be “Internet Settings”, “Modem Settings” or “Tethering Settings”. The required settings are available from your service provider. Please note that most Sony Ericsson mobile devices only recognise the first entry in the APN list, so it is recommended that all other APN configurations be deleted.
Can somebody please help me with this. I really am baffled as to how to get this to work.
Sent from my HTC Sensation Z710e using Tapatalk
Bump. Anybody?
Sent from my Motorola DynaTAC using Tapatalk (feels like it at times with this phone)
It has been a year or 2 since I got bluetooth networking going. Today I tried to get my phone to connect to my windows 7 desktop and.... it couldn't even connect sadly enough. Anyways this is from memory so it may or may not be correct. I don't like posting incorrect stuff because you never know who will read/flame.
1. pair your phone to the other device
2. connect via bluetooth your phone to the other device
3. I used the app in the link below to turn on bluetooth tether. Your kernel needs to support this feature. Just a note, there are 2 apps off the link. One is wifi only, the other does bluetooth and wifi. Assuming you get this app, turn on bluetooth tether. I don't know if you should turn tether on then connect bluetooth. Maybe it doesn't matter.
4. This step I don't quite understand. The bluetooth tether should "offer" a network service to the remote device. The remote device in turn must recognize the service and use it. DHCP is the easiest to auto configure everything. If you need a name server, use 8.8.8.8 since that is a public dns server by our google overlords.
http://code.google.com/p/android-wifi-tether/
Hey Guys,
I need a little guidance from you.
I am developing an app that connects to a medical device(an RTOS) using a certain port over Androids Wi-Fi hotspot feature.
This is how the app works:
1) it has to find all connected network devices to the Phone.
2) ping and/or examine remote device/port to identify remote device.
3) if everything is fine get stuffs done using this connection.
I am facing problem with step 1, later steps are working fine.
My question is:
a) how do I find all Wi-Fi network devices connected to a phone?
I have read that we can connect up to 5 devices to a Wi-Fi hotspot. I can just ping 5 of them but knowing which IP address range is assigned to remote devices is important.
Since Wi-Fi works in a different layer, I cannot always rely on IP address. However given the fact that dnsmasq(andys own DHCP server) is always running, I came up with a possible solution.
Lookup arp cache in /proc. But its true that arp entries will timeout, which makes my solution unreliable at any given moment.
Here comes the other question,
b) can I ping Wi-Fi hotspot broadcast IP and wait for the remote devices to reply? I have read somewhere that network devices connected to Android hotspot won't reply back as expected, is it true?
I need to support general public who cannot root their device, so using /data is out of my option. Since I cannot re-design the remote RTOS device, sending beacon packets to Android is not an option too.
c) Is there any APIs that I can use directly?
Any help would be greatly appreciated.
how to find wi-fi hot spot connected devices??
I hav d same question as nixtalker, that how to find devices connected to our mobile hot-spot ??? is there any android apps??? plz reply.
Wifi Problem Solve
Hi buddy you can use wiifimanger class that call by Services class.
1)
WifiManager mWifiManager = (WifiManager) getSystemService(Context.WIFI_SERVICE);
WifiInfo mWifiInfo = mWifiManager.getConnectionInfo();
ConnectivityManager myConnManager = (ConnectivityManager) getSystemService(CONNECTIVITY_SERVICE);
NetworkInfo myNetworkInfo = myConnManager.getNetworkInfo(ConnectivityManager.TYPE_WIFI);
getDeviceIpAddress();
this can give you wifi connected device IpAddresses.
Hey there,
Is it possible to make short-range calls from a phone to another phone which is in my tethering range? This is the situation:
Some friends of mine and me have helmet-headsets for our motorcycles and we all have android smartphones (no - we are no gang ). Since are not far from each other it would be great to have the ability to create a simple network by tethering wifi and having the other party connect to my phone.
Not that we are connected, we'd have the ability to make a kind of VoIP call and stay in connection while driving.
How it could be possible:
Simplest workaround would be a VoIP Server on the "Server-Phone" and Clients on all phones (let's just talk about ONE other phone for now).
The difficulties:
The VoIP client have to reconnect automatically, if the connection was lost. Android already reconnects to a known WiFi Access Point, so this is not a problem. But the VoIP clients would have to support it.
Is there any known software solution or any motivated developer to take it into his magic hands?
What do you think about this idea? Have any better ideas?
Thank you!
UPDATE:
Ich found software and will try them in the next days. You will hear from me soon.
try "the serval mesh": https://play.google.com/store/apps/details?id=org.servalproject&hl=it
Hello all,
I am looking for a way to run my android as a wireless router (not as an access point or a tether).
I am putting together a distributed app with components running on multiple devices. It works fine when I have the Wi-Fi enabled on my android and I have a wi-fi router to connect to, but I need to run this where I won't necessarily have the wi-fi router available.
Basically, I want to run a private network using my android as both my core app, and as a wifi-router/dhcp server, without allowing devices that connect to my android to have access to the internet through my device.
I've seen many apps and threads that all cover how to use the built-in access point, or how to configure the device as a hotspot, but these all discuss tethering and how to get past the limits (or snooping) of your provider and not how to set up a private network.
Is there a way, or an existing app that will allow me to set up a private network as I describe? If not, is there something I can do within my server code to enable the Access Point and disable Tethering at the same time?
Thanks in Advance
F.F.