android project for sending string to microcontroller via bluetooth - android

I want to make an application which should send a string over Bluetooth to a micro-controller..I am kind of new to android and don't know where to start..
if anyone could help me with code or what topics i should study to complete this project, it would be great help..
thanx in advance

You could visit the Bluetooth android documentation which shows you how to create a Bluetooth connection and retrieve data: http://developer.android.com/guide/topics/connectivity/bluetooth.html
It is the same basic principle but just need to modify that your android device only connects to the specific address which is your micro-controller. Then, I guess you done. Make sure that your micro-controller understands and can handle your Bluetooth messages.

Related

How to Recieve Data packets from a BLE device in android application

I am an android developer and new to the bluetooth low energy technology here i am creating an application which is receiving some data packets from a BLE Device (it is like a embedded programmed microcontroller).I am able to connect with the device and then i have to send a command to read the data or the characteristic.I don't know ho can i proceed for the further steps to do that.I have the UUID's and those commands but not able to programme it in android.
Please help me guys.
Thanks
Best Regards
Utkarsh
you should read out official tutorial where you can eaislly find how to get data this is link http://developer.android.com/intl/es/guide/topics/connectivity/bluetooth-le.html

print from android using wifi or bluetooth

I am making an app in which i require printing options in Android. I tried with google cloud print and other options, but my requirement is that i need to print it offline either by using a network wifi or bluetooth. I have no idea in this field and also android doesnt come with inbuilt print options ...so please help
my basic requirement is that my device should first find printer either in a network or some way through bluetooth and then print should b fired..
Please help and thanks in advise I really need some starting knowledge to begin with
any other suggestions are welcomed
Some bluetooth printers use OBEX for file transfer (Polaroid, for example), but android has no api to use it except sharing api. You can create your own implementation of OBEX or google it.

Android bluetooth client server

I'm making a simple game on the similarity of the sapper. Now I want to add to my applications communicate via bluetooth. I found a few topics on the Internet, but I could not understand how it's done. Please help me understand how to make the bluetooth server-client communication
Try to look at this github repository https://github.com/polyclef/BluetoothChatMulti/tree/master/BluetoothChatMulti/src/com/example/android/BluetoothChatMulti

Android phone and Bluetooth module sepecificatoin

I am quite new with Bluetooth communication using Android. I want to develop a sample project that is to ON and OFF different LEDs via Bluetooth by using Android phone, for this I would need a Bluetooth module to communicate with the LEDs.
Now my questions are:
1) What technical specification are required for Bluetooth module to communicate with android phones(I have two android phones having Bluetooth version V2.1 and V3.0)?
2) which company's Bluetooth module would be better for me in the above situation?
Please help me in this respect I would be very thankful to you for this act of kindness. Thanks in advance.
http://developer.android.com/reference/android/bluetooth/BluetoothDevice.html
Use the UUID specified there for SPP
The bluetooth adapter will work as a Server by default.So you should do Client programming on android side.
My project deals with sending data continuously,so I had to use HandlerThreads so that I don't block the UIThread.Since you don't need to send much data you can work directly on UIThread.So connecting as a client section of android documentation will do.

Need to implement socket transmission in Android

I need to transfer data(generally text) between two android devices using socket implementation, i.e, the device have to receive the data & also send the data to the other device. Can anyone suggest me some regarding this & also please tell me that, is there any examples regarding this Socket Transmission in Android.
Here is an example demonstrating socket communication between two Android devices.

Categories

Resources