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

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?

Related

Bluetooth in Android to connect with arduino

I want to get two values from arduino board via Bluetooth in my android application. The arduino board is already paired to my device. How can i receive those values. Anyone ??
You need to write two applications. one on android and the other on Arduino board. you can refer the following tutorial to connect to bluetooth device from android app.
communicating with bluetooth device from android app

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

How to Connect Android bluetooth to send data

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.

Read data from an Android USB attachment

Is there anyway to read data from an attachment through the USB port on an Android device? In particular, an EKG. Most the work can be done by the hardware of the device to simplify the output to a single number, a voltage reading. If its not possible, what about modifying an accessory that can already communicate with an android device? Thinking of devices that attach to android phones, what about sending the data as an audio signal to be read as the microphone from a headset and then analyzing the audio signal to convert it to a number that can be used to display a value.
Any ideas on how to make this work?
The Android handset can't be used as a "USB Host" (it's in the google android wishlist as a bug/enhancement request). That's what you'd need to connect regular USB devices like your EKG monitor and memory card readers, etc. to it. I wish it could do this too and star'd that enhancement to vote for it...
I'm not sure if this will work for you, but here's something I did recently for a project where I needed a smartphone to communicate with a host PC.
I used ADB on the PC to do port forwarding and then I used sockets to do the communication. Server socket on the phone, client on the PC. I can give you more details if you want.
Of course, the clear requirement here is to be able to install and execute code on the "device" which I don't think is applicable to your problem. Other than that, I found no other way to communicate over a USB connection through Android.

Categories

Resources