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
Related
I have refered so many articles.
How to receive images via Bluetooth
https://github.com/googlesamples/android-BluetoothChat
How to receive data via Bluetooth on Android?
data transfer from android device to pc using bluetooth and sockets
https://developer.android.com/guide/topics/connectivity/bluetooth
How to send and receive data in Android Programming using bluetooth without pairing?
For data transfer between two devices, you have to implement Bluetooth Sockets and connect to that receiving device. You can find the details here.
https://developer.android.com/guide/topics/connectivity/bluetooth
Just try to use Demo projects on it.
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?
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
Good day.
I want to send Accelerometer readings from the Android to Arduino using Bluetooth communication. I don't want to write the code to discover devices around and connect or connect to them through program interface . I can connect to the other device manually by the android setting.all I want to do is to send the string through output buffer or anything while i connect manually to the Arduino bluetooth but the tutorials out there shows how to connect and discover device.
I have been struggling to know how to send data (string or int) and i really don't care about discover and connect because i can do this manually from my android settings
thank you in advance
Sensors, Arduino devices and other hardware systems typically work on SERIAL PORT PROFILE (SIP). You may wanna double check this with the specific hardware you are dealing with. But I am quite sure it is SIP. If that is the case, you can literally copy and paste android chat sample code and change UUID to default UUID of Serial Port.
Just replace UUID of the sample with this: 00001101-0000-1000-8000-00805F9B34FB
The UUID is the chat example is defined in BluetoothChatService.java. You can change both secure and insecure UUIDs.
This is the sample: https://android.googlesource.com/platform/development/+/eclair-passion-release/samples/BluetoothChat
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.