Hey everyone, small question about how to do serial communication (send/receive basic commands) between android and a microcontroller.
Basically trying to do some simple RxTx serial communication from my Galaxy S, simply send/receive hexadecimal commands.
After some pretty intense googling, it seems the more likely option for serial communication would be over bluetooth, as apparently using the single external COM port will involve a lot of custom code/hacking/drivers. Plan on creating hopefully a simple program.
Wondering if anyone is aware of any custom applications that allow me to do simple send/receive commands over BT? or even the COM port...
Overall my project will be to read the water temperature of my car from my ECU (over the consult port), which involves sending simple hexadecimal commands to the ECU, getting a response and converting the response to a decimal number, which i intend to display on my phone so i can monitor the water temp (will get the value to constantly update). So my main hurdle is getting Android to communicate to the consult port. Initially would have plugged the phone directly to the consult port, but using a bluetooth connection will be equivalent at the end of the day.
Thanks, any help is appreciated!
Josh.
Any help appreciated. Thanks
Related
Hi everyone
One thing that really annoyes me about the xda is that you have to go through a relatively complicated process in order to ascertain who is calling before you decide to answer the phone or reject it. So I've been wondering about an accessory that could change all that.
Since the xda2 has an I/O port (formally usb), wouldn't it be great if there was a way to hook up a small lcd display to a usb cord that could allow users to find out whose calling. It could be extended to become a fully functioning remote control for the xda / 2 including dialing numbers, selecting different mp3's etc.
Many thanks for reading
Brimful
i agree
hey guys, have you seen this? i think this may answer your questions.
http://shopping.redorbit.com/produc...rce=247&utm_medium=feed&utm_campaign=247+Feed
usb devices is devided up into master and slaves
himalaya and the rest (even though there were mixed answers about universal) are slaves and cant init connections to other usb slaves and masters
but the button connector in the himalay also have a old serial port type of connection which can init connection
and then there is the SDIO card interface where only the SD card manufactors set the limit what what you can do (within reason)
Hi!
I want to use my G1 to do some special measurements. For this purpose I've created a microcontroller board (Atmel ATmega8) that does that. Now I want to transfer the data the board collected to the Android phone.
Because of the high powerconsumption the G1 has while Bluetooth is on this isn't a real alternative for me - the measurements will last about 2 - 3 hours.
I'm not experienced concerning hardware access within Linux and Android but thought there might be a possibility to gain a kind of low level access to the USB port. I do neither need high bandwith nor real USB functionality - so might it be possible to create an own kind of bus using that interface? Do you have any other idea?
Thank you in advance!
If you use micro linux system, the ones that are like a usb port, a network jack and a vga connecter, you could script some adb commands and have it run every few seconds to upload the data, not an ideal solution. As far as I know the g1 doesn't support host mode. But if you have a micro linux computer in the middle, it could work.
Something like this
http://www.pcpro.co.uk/blogs/2008/08/27/a-real-space-oddity-arrives-at-pc-pro/
I'm sure there are other ways to do it, maybe check there how to make a serial port thread a few pages back in the dev section.
Hi, hopefully someone can help me with the following question :
I just flashed my Polaris100 to Android 2.2, which works very good now. I'd like to use this device with the XCSoar navigation program, which normally gets its GPS data via the built in GPS.
During winter I'd like to connect my polaris to my Mac via Bluetooth using the serial port service, so that XCSoar can get it's NMEA data from my soaring simulator (SilentWings). So I need to transfer NMEA data from my Mac to my Polaris. This helps me to practice during the winter period. In WM6.1 this was easily done, because:
a) the serial service was build in
b) all used com-ports were shown in the settings menu or could be hacked to show/be edited.
So my questions are:
a) how can I activate the serial service in Android
b) how can I see which com-port is then used for my polaris BT connection (I need to set this port in XCSoar as external device)
I could not find a workable solution on the www or on this forum. I mean "workable", because most solutions or discussions are written in very technical terms and code, but I am an end-user and not familiar with all these terms. I do not know terminal commands as well...
Thanks for your help, Reno
I've never used Bluetooth, I connected to the computer through USB
Eh... what do you suggest by that? Although USB stands for Universal Serial Bus, it isn't recognized by the GPS app as a com-port. As I understood in that case I need a usb-serial service on both my mac as my android, right?
So can you be more specific and tell me how to do it with a usb connection?
Thanks, R.
Hello! I am new to this forum, I figured you guys may be able to provide some input on a project I want to undertake.
I would like to use an Android phone (Probably an unlocked Chinese model running 2.2) as the brains for a remote control project. Since the phone has a GPS, Camera, and GSM connectivity all built in (and low power consumption) it seems it would be the perfect solution. To control the device, I was hoping connect a serial/usb servo controller (Pololu Micro Maestro) to the phone. However, I am having trouble finding any information on the viability of connecting a serial device to the phone – can this be *reasonably* done?
I appreciate any information you can provide!
try a google search for bluetooth to serial adapter. that will be the quickest/easiest/most likely to be workable hack.
next up would involve USB-Serial adapter(choppin wires to attach your necessary connector), generics are dirt cheap, but you would need kernel support. drivers/usb/serial/ is most likely where you would be looking, most of the generics use prolific chips. quick check would be to lsusb in a terminal and see if something pops up.
yea id go with bluetooth - serial adapter.
That is a good idea... I will do some checking. Thank you!
I just bought a TF700. I've never written a single line of code for an Android device. I've done some Linux development.
I want to build an app to control a Zoom HDZ300 AM/FM radio. It can be controlled remotely by simple messages sent to its serial port, but apparently the sending device does need to handle flow control.
The sound output is regular analog stereo. That will go into an amplifier, not my Android.
Does the Android operating system (Ice Cream Sandwich or Jelly Bean) allow programmers direct access to the USB or Bluetooth stacks so that one can enumerate devices and send/receive raw data to/from them ?
I am hoping to use the ASUS stand alone USB adapter, a USB hub and a USB serial port adapter to interface to the radio. I'd put a link here to the device, but I'm a newb and newbs are prevented from linking in their first 10 posts.
Does anyone see a problem with doing this ?
How would a Bluetooth Serial adapter work instead ? From the OS point of view, which would be easier/better to use ?
Thanks
I'd also like to connect and use an external USB sound "card". What are the issues with doing that ?
Thanks