Question

I like to do a project based on android.I like to create an application for controlling lights in a room.My doubt is whether I can control those lights from anywhere using the androiod phone or it can only be controlled through USB cable or via bluetooth.If it can be controlled from anywhere how does the ADK board works,specifically how it transmits he data to the phone?

Was it helpful?

Solution

If the controller has a bluetooth radio SPP module (like a connectblue bluetooth to serial adapter) on it, then you can connect your phone's bluetooth to it, open a communication socket and send serial data between the phone and the controller board. No internet and no web server needed. Of course, this only works if your phone is in range of the controller (say, less than 10 to 30m)

To control the light from far away, then you need to connect each device (controller and phone) to the internet. You do not need to do it with a web server (though you could if you wanted) You can communicate data across the internet however you want, using whatever transport protocol best suits your purpose.

OTHER TIPS

You could make it with a Arduino Board. Its Developt with C/C++. It's perfect for Android you will found many Tutorials

Everything communicates through a web server, somewhere. You'll have to have your hardware connected to the internet somehow, and your custom device can communicate with a phone through C2DM, or maybe a REST API or something. Bottom line is, you'll need a web component.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top