I am working on a project to guide blind students. I am using WiFi Tags and android mobile.
WiFi tags are placed on the wall and android is carried by blind student. The student's time table, shortest path algorithm to reach specific lecture hall is loaded onto HOST.
Whenever android mobiles comes in vicinity of any Wifi tag, it receives the beacons from WiFi Tag. In order to achieve this, android has to scan all the wifi devices every 3 sec(say).So, the android has to forward the WiFi tag id (mac address), android mac id, Received Signal Strength to the HOST. So, how should I do this? What are the different applications to be loaded onto the android mobile? How should the scanning be done?
Once HOST receives the data from android, it will determine the shortest path in accordance to algorithm and has to send back instruction (say direction - Go Left) to android. So, how can we do this? Since the student is visually impaired, the incoming msg should be audio.
Please let me know how to achieve this? I am new to android.
Thanks
Shaban
Nice Idea ! Stick with Wifi tags, as NFC wont be a ideal solution !
Have you thought of the problems?Each school will have a different arcitecture, how do you plan to counter that?
As far as audio signals are concerned, u could use TTS(Text To Speech) converter to convert the recieved text into audio.!
Coming to wifi tags part, you could use something like this:
A student runs the app and the app in turn sends a particular msg/request thus making the wifi tags recognise that a student needs directions, then u could go on to improve it by student telling the phone where/which class to go to and the wifi tags/server calculates the path and then u could guide the student by using Navigation! Have a look at the documentation for Navigation app from google !
Also if you need my help let me know :)
Related
I'm completely new to the arduino controlling and programming.
I want to get signal my android smartphone , When a call receive to smartphone I want to acknowledge my Arduino uno board by blinking a LED.
Then if I want to take a call using a physical button I have to answer the call or reject it.
Simply I want to send digital signals from my smartphone to Arduino board and I want to receive the analog button press as response to the phone call(Whether answer/ignore)
I connect phone and Arduino via Bluetooth
This is the Where I have struggling right now.
I need some help on this please!!
It just so happens that I wrote an answer that fits this question a couple of days ago here, this is an edited version of it:
You'll have to buy a module to allow the Arduio to communicate via bluetooth. An example of such a module is the HTC-06, wich can be bought online for less then $10 and for which there is an exellent tutorial over at instructables.
The phone side of the story is explained here, in the official Android documentation. It is sometimes convenient to test with a terminal on your phone, I used this one.
I have some code laying around that can send some data between the Arduino and my phone, I can post it later today if you'd like that.
Alternatively, if you don't want to write everyting yourself, you can use an app like Tinkernut does is one of his videos.
I am developing an android app where users must be able to see other users nearby them and send a message to that user specifically. I was hoping Bluetooth would be a good, low-energy solution to this. My trouble is in identifying nearby Bluetooth devices only if they are using this app, and ignoring all others, such as portable speakers and whatnot. Could anybody maybe point me in the right direction on this one?
As far as limiting the discovery, this seems not possible at this point in time. The only way I can think of where this would really be possible is if their device name had a particular string in it that you used to filter, but this isn't really something I would look into as people probably won't go as far as changing the name of their device just for an app.
You can use the following to change the device name, I would recommend getting permission & maybe appending the device's previous name onto whatever string you want to look for
BluetoothAdapter mBtAdapter = BluetoothAdapter.getDefaultAdapter();
mBtAdapter.setName("");
I don't think if you are in the middle of a connection it would end it, as a bluetooth connection is made using the devices bluetooth MAC address, not the devices name
One part of the project we are trying to undertake involves sending a message over bluetooth from a computer to an android phone. I was wondering if anyone has done something like this already who might be able to share some example code with us.
Thanks
Fernando
I would highly recommend checking out the following example: BluetoothChat # developer.android.com
I did a project a few months back where we designed a body-worn, wireless sensor board that would send readings to an Android phone over Bluetooth, and this example got me started. I apologize, but I cannot share my exact code at the moment.
The example allows two Android phones to chat with one another over Bluetooth and prints the messages to the screen. With a few changes to this example, you can send the raw data you need instead of user input. The BluetoothChatService class in that example (seen here) handles all the ugly stuff (listening for connections, connecting, etc) for you.
Good luck!
I've been looking around for some way to simulate Peer 2 Peer for games on the android and the best way I've been able to come up with is connected an android to a server and then routing through that server. I'm just looking for some thoughts on my way of solving the solution so that you could literally type in someones phone number and try and connect to them.
By use of a service module to check incoming text messages, which would be properly formatted for detection, it would interpret that another phone is trying to request a connection to another one of the androids applications. If the application is found it would then prompt the user as to if they wished to connect to the other person. If yes, their phone would send back a text message to the original phones, which also has the messaging system installed on it, which states it would like to connect and that this is my current IP address. The original phone, or host phone, would then open a connection with the other users phone via the Internet at which point the newly made connection could be used to transfer information back and forth.
Basic list layout
Service module:
- Writes/Receives formatted text messages to alert/verify someone is trying to connect to an application of theirs
- Sender attempts to make a connection with the recipient phone, which takes connection and passes to desired application along with sending back a confirmation package
- On confirmation Sender phone passes connection to original desired application.
Any thoughts, ideas, constructive criticism would be helpful.
* srry for bold, but I hope you understand why.
the best way I've been able to come up with is connected an android to a server and then routing through that server
This is called TURN P2P implementation. You want to read about STUNT implementations too. You'll probably be interested in the JXTA P2P framework.
I'm interested in fleshing out an idea for a Android phone app, and I'm wondering if this is possible. So I would have the app running in the background on Phone A, then when it finds another Android phone B, it saves certain information like time, GPS location, just state variables.
But if the other phone is also running the same app, the two phones connect and share trivial non-private information.
Hypothetically, would this be possible? Would I go through a local ad-hoc Wi-Fi connection, or constantly broadcast Bluetooth?
If both people have the same app, you could do it in a round about way. If two people installed the app on their phone and agreed to have their gps coordinates shared, you could upload both sets of gps coordinates to a server as the people move around. The server could then compare which people are close to each other. When the user wants to share information with another user, the phone just needs to ask the server who is in their vicinity and sharing could be done over the internet. This is essentially how Bump works. Bumping two phones together triggers a call to the server to see who else is bumping in that vicinity at the same time. After phones close by are discovered, you might be able to trigger bluetooth pairing and sharing if you don't want to share over the internet.
Bluetooth is the easiest way for two phones to communicate directly with each other. However, both phones would have to be paired through the Settings->Wireless->Bluetooth menu. You would experience better range and speed with WiFi, but this requires a router as far as I know.
I found out how this can be done, use the viewranger app on both phones, create a user and log into the app on both phones. I set this up with myself as the user. Then the second phone (the one with broken gps) is used to track the user who is in my back pocket.
The user in both cases is me.
The problem with this is that a phone signal is required.