How to Connect Android bluetooth to send data - android

I am new to Android and I am trying to make an application to connect and send data via Bluetooth, can anybody help me start my application.

I am not sure exactly what you are looking to do but here are several examples:
http://digitalhacksblog.blogspot.com/2012/05/android-example-bluetooth-simple-spp.html
http://digitalhacksblog.blogspot.com/2012/05/arduino-to-android-basic-bluetooth.html
http://digitalhacksblog.blogspot.com/2012/05/arduino-to-android-turning-led-on-and.html
The first example shows how to setup an SPP client and server using an Android device and a Windows PC and send data from the Andriod device to the PC. On Windows it has server examples in java and perl.
The second example shows how to setup basic bluetooth connectivity between an Android device and an Arduino.
The third example builds on the second example and shows how to send data from Android to the Arduino using a program.
The examples should have all the code for Android, Windows and the Arduino.
Hope this helps.

Related

Send command from android mobile to PIC 16F1517 microcontroller via Bluetooth

I am struggling through one issue which is related to Android, Bluetooth Dongle and PIC micro-controller(16F1517). First i have to connect through my Android device and external Bluetooth dongle. Bluetooth dongle is connected with control Box(PIC micro-controller). Then i have to send some binary command from Android device to PIC micro-controller through Bluetooth. I tried a lot but did not get any luck to get rid this peace of work. I gone through below link
Question posted by me
nbCafe link
Here i have couple of doubts:
Can i get any library or interface for PIC micro controller through
which I can communicate from Android device?
Can i get any code sample for Android, so that i can use it?

Sending serial data from android to a PICAXE microcontroller with usb cable

I am working on a project that including an android phone that sends simple serial messages to a picaxe microcontroller(14m2) like '1','2','a' etc.
I searched alot on the web, and I only found a way that the android smartphone first "connecting" to the device and "discover" it, the problem is that PICAXE microcontroller is NOT a 'USB' device, and it can't be discoverd by the android, that means the android will not be able to send serial messages to the PICAXE.
if theres any way to send simple pulses from android to PICAXE, please let me know about it.
EDIT: There's any way to do that by connecting the AXE027 download cable with OTG?
I do some project with communicating over serial port. You can use chineese bluetooth adapters (see on ebay arduino bluetooth), those communicate with controllers via Usart and connect to phone by bluetooth. There is sample project Bluetooth chat from google about how to use bluetooth on android. On hardware iside, you can use arduino for receiving data by bluetooth and converting it in format of your controller. You wont have to use any wires

Android program to connect Bluetooth devices

I have Bluetooth device called FEIG OBID iScan - HF reader which will connect to PC through Bluetooth and send the data when reads HF tag.I have paired the device in my Android phone and generated code like
00:07:80:9C:C9:B9 now through my andriod program how can I connect to this device and get the data from the device(FEIG) in to android device.Please give any android source code to connect and get the data.
A few years ago I also tried to connect using bluetooh on my PC and send data to a terminal and also to a bluetooh module and I managed to do that using the following example:
Bluetooh chat example
(of course you need to adapt it to your needs)
The example above contains a server and a client that will send and receive messages/data using bluetooh connection, it will also show you how to search for devices and pair them.
I also found this example and I think it will also be useful to see and understand.
Android--Bluetooth-Connection-Code-Sample
Cheers

Android Bluetooth testing App

Ive written a test app based off the Bluetooth Chat app. What is the best way to test that, just to see if the connect is being made ect. with out the having a second device? So something like a Bluetooth Server with logging for Mac. (The test app is a Bluetooth Client)
Robert
You need to run your client test app on an Android device, on the Server side you can use the Bluetooth on your Mac.

Connection between Android phone and python server suggestion

how can i connect a server code python on PC with android mobile so that i be able to then and receive data between the server and the android mobile ?? but put in consider that the socket can not be open on the mobile android despite its open on the emulator and connect
If you want your Android application to receive updates when things happen on the server, have you had a look at C2DM? One of the great things about this is that all Android applications share the same C2DM connection, so it is very light on battery usage.

Categories

Resources