[REQ][APP] Bluetooth communication - Nexus One Themes and Apps

hello everyone,
Can anyone make an application which sends ASCII code via bluetooth to a PC or a bluetooth module??
I really need it for my mechatronics project.
Thanks before

Does it have to be Bluetooth? You might be able to cobble something together over USB with the USB host driver.

I'd like wireless communication for the system since cable is kinda out of date...
But when time is running out... I guess USB will be OK. But for now, since I still have plenty of time, I'd go with wireless.

You could use the chroot method and install Ubuntu on your Nexus One. I don't know if it exposes the phone's Bluetooth interface, but it might be worth looking at since you could code up anything you want in any language if that were the case.

ermmm... it's kinda advance...
any URL to the guide maybe???
is there no ordinary apps or so?

Basic serial over bluetooth is done using the RFCOMM profile, details on how to write an app can be found here:
http://developer.android.com/guide/topics/wireless/bluetooth.html
I'd guess you open a socket to the destination machine, just like normal network programming, just over bluetooth rather than tcp. Here is a stackoverflow article on the subject
http://stackoverflow.com/questions/...-sdp-connection-to-a-rs232-adapter-in-android

....
I'll try my best to understad it
complete noob on java programing here T^T

Related

Using HD2 as (native) Bluetooth Mouse

I searched this now for a few days on the web. I found plenty of programs doing lots of things coming close to what I am looking for but nothing exactly what I am looking for that would work.
I am looking for a program that turns my HD2 into a native bluetooth mouse. I don't need any remote control or remote desktop stuff, I want my HD2 to look like a regular mouse connected by bluetooth.
I found plenty of remote control apps, that would require a server installed to the computer I want to control with my HD2, however this is exactly NOT what I am looking for. I want to control any computer that supports generic bluetooth input devices, no matter if Windows, Linux, Mac, whatever without installing any additional software to the computer.
I found two programs, that claim to do that (mobileSRC RemoteMobile and MobileMouse) but neither will function on the HD2. RemoteMobile does not seem to support the Widcomm Bluetooth Stack and MobileMouse is not usable, because it's not designed for WVGA (at minimum, I cannot get past the Licence Disclaimer after starting the app, because I do not reach any controls to do so).
Is there anything out there that would do what I am looking for on a HD2?
+1 Looking for the same
http://gbmsoftware.com/
gdayhtc said:
http://gbmsoftware.com/
Click to expand...
Click to collapse
oh yeah, this is what I was looking for, thank you very much!
Which irony: I am still looking for what I described in my first post - and while I was searching for a program capable of doing this once again, I stumbled across my own old thread here
Sadly gdayhtc's solution wich seems to make 2 die 4 happy is exaclty what I am *not* looking for. I was aware of GRemote when I wrote this posting in january already. The point is, you need to install a server application on the host you want to use your phone with. The "talking" is done between the application on the phone and the server on the host as regular network traffic. This is not what I am looking for. What I am looking for is an application that basicly says "Hi [whatever operating system you are], I am a regular bluetooth mouse! Go ahead and load your appropriate drivers, so I can talk to you (just as any other bluetooth mouse would do)!" - and if there are Bluetooth touch pads, that the phone could emulate, that would be even better Basicly the phone will promote another bluetooth service to other devices that do a bluetooth service lookup stating that it can be a bluetooth input device. I can't believe nobody did something like that! Besides having to poke around in some bluetooth input device standards it seems like the much cleaner and more appropriate approach to use your phone as an input device over bluetooth compared to what GRemote and the others are doing.
I don't think there is such thing as a 'generic' blue tooth mouse (please correct me if I am wrong).
If you get a logitech one, it still loads its appropriate driver for the operating system you are using. Same for DELL (both use setpoint) and I'm sure Microsoft (and for the different models, there may be different drivers).
What I think you can best hope for is somebody to emulate one of these 'drivers', but at the end of the day, I would assume that some driver will have to be loaded on your pc/server.

OBD

Hello,
I saw that there is no OBD software in the marketplace, so I assume there's no API for the OBD in windows phone 7??
If anyone has informations, I could develop a new obd tool... but I can't find informations about OBD..
If you mean by OBD the On-Board Diagnostics, all handsets already has one (provided by manufacturers). And it's nothing what you can do (if you'll not start manufactoring your own WP7 ) - all native code should be signed.
No, sorry, I meant the automotive diagnostic tool eheh!
It's probably because niether the USB or the BT connection allow to connect OBD interfaces. USB lacks host support and BT lacks virtual com ports support, so you have no way to connect the OBD interface whether it being KKL / ELM or whatever with the phone.
figured it was something like that.. any luck we will have support about this in the future?
There is a device for the iPhone that plugs into the OBD and creates a wifi network. After that it is just sockets. I'm sure you could make a windows phone version of the tool.
Found it: http://www.obdkey.com/wifi/index.asp
my buddy has one for android it communicates via bluetooth and cost like $20. He ran the codes on my caddy, very useful
Hello i am the developer for OBDMobile for windows mobile:
http://www.rklenka.com/software/winmobile/obdmobile/
and Windows:
http://www.rklenka.com/software/obdmobile/
and as soon as its possible there will be a version for Windows Phone 7, but for right now it cant be done. In fact I am trying to work with some OBD Connector manufacturers in order to find a way to get it to work.
Right now there is no Bluetooth API and no Ad-Hoc support which is what OBDKey and KIWI Wifi supports. All the back end code has all ready be done so as soon as there is a way it will be up.
RKlenka said:
Hello i am the developer for OBDMobile for windows mobile:
http://www.rklenka.com/software/winmobile/obdmobile/
and Windows:
http://www.rklenka.com/software/obdmobile/
and as soon as its possible there will be a version for Windows Phone 7, but for right now it cant be done. In fact I am trying to work with some OBD Connector manufacturers in order to find a way to get it to work.
Right now there is no Bluetooth API and no Ad-Hoc support which is what OBDKey and KIWI Wifi supports. All the back end code has all ready be done so as soon as there is a way it will be up.
Click to expand...
Click to collapse
This would be amazing if you could get it to work matey
I use Torque on my Android Tablet and Digimoto on my laptop and connect to my Bluetooth OBD-II Reader, if i was able to use my Windows Phone this would be a GREAT help!
ODB aplication for WP7 would be very good.
I was looking around the internet about 2 months ago and ran across hardware and apps that do this for android,ios,wm, and I think even blackberry...
I remember thinking that would be sweet on my windows phone. Way to show up my boss... Lol
I showed him the website and I think he's gonna look into it when the software on the current scan tool gets outdated since he has an iphone4, I got the hd7, and another kid has an android phone.. Would be sweet to just carry around the little piece that plugs into the port and broadcast the signal to the phones.
Do you think there's gonna be live data support or just a basic tool to pull engine codes. Possible abs, srs scan too?
Sent from my HD7 T9292 using XDA Windows Phone 7 App
Didn't know the USB adapters could be gotten for under $20 never mind software for the PC for fairly cheap. I always thought these adapters could only be gotten for around $300+.
I dont work on cars for a living but, if this could be all gotten and working on my WP7 device for under $30, I'd be all over it. It's always usefull to have one of these type of things around when a code comes up on one of our cars and not have to run to a store that will not reset codes, etc.
I might even grab it for a old WM 6.5 device I keep around for a spare....
any app for OBDII gauges in WP7.5 ????
Bump, it's been a while, anyone find anything for WP7 or 7.5 to do this ?
It's been a while for this thread - any updates on Windows Phone and OBD-II? Wondering because I want to expand into Windows development too, rather than just Android.

How do I begin developing an app that controls my computer?

Hi guys,
I am new to app development and I have seen a lot of articles about apps that control the computer, but how would I actually go about making one? It doesn't need to be over Wifi either; it just has to be able to do basic keyboard actions over USB.
- Adam
Bump. Anyone know where I could start?
Start with c+ and toss in a little Java coding.
amarcott11 said:
Bump. Anyone know where I could start?
Click to expand...
Click to collapse
You haven't even described what platform you're writing said app for.
Android apps are mostly Java... The rest, I dunno. MS is probably dotNET, apple is... objective C I think?
Sorry for the lack of information. All I know so far is I have Eclipse and ADT (I am developing an Android app). I understand XML and how to develop the GUI, but when it comes to making the app communicate with a computer, I don't have a clue where to begin or how to do it.
Any tips or guidelines on tools to use or how to start are appreciated.
amarcott11 said:
Sorry for the lack of information. All I know so far is I have Eclipse and ADT (I am developing an Android app). I understand XML and how to develop the GUI, but when it comes to making the app communicate with a computer, I don't have a clue where to begin or how to do it.
Any tips or guidelines on tools to use or how to start are appreciated.
Click to expand...
Click to collapse
By having a server program running on your computer which accepts data you send from your android.
If you want it to be difficult, do it over usb, the easy way would be wifi.
Check up on "sockets".
Thanks for the reply. The only problem is, I need it to have very fast response time. I would like it to be as similar to a USB keyboard as possible, so I don't think WiFi would work. What makes doing it over USB difficult?
Do you have the server side app already? what exactly are you trying to control on your computer?
It doesn't matter what I'm controlling, I just want to be able to get my app to send information that a server side program can take and be able to keyboard map.
So I'll need to code with C++ for the server side and java for the app itself?
Plus, from what I've read, I've learned that the Android platform doesn't support USB hosting. Is this true? I've seen ways around it but it seems pretty cryptic.
Sent from my Galaxy Nexus using XDA App
There already is one that is apart of the android market and you can even use it on another computer It's called Team viewer not sure if this would help you or not, but I liked it when I needed to use it.
You can do app development on a pc emeulator instead of your phone (if thats what your asking) and Google App Inventor is great, but servers are closing soon. So goodluck!
Yeah I would start looking up about c+, c++, and java coding.... goodluck
I appreciate the help. Ryan1918, I have used Teamviewer myself, but I am looking to develop more of a controller, as opposed to a remote desktop app.
amarcott11 said:
Thanks for the reply. The only problem is, I need it to have very fast response time. I would like it to be as similar to a USB keyboard as possible, so I don't think WiFi would work. What makes doing it over USB difficult?
Click to expand...
Click to collapse
Both can be done with java and if you program it right and the wifi signal is good you shouldnt have much of a delay.
It will be difficult to use the USB as a network interface for your application.
Using TCP/IP or UDP over Wifi will be much much easier.
I don't mean to ignore what you're saying about WiFi, but I strongly believe that for the market this app will be directed toward, USB will be necessary. I don't feel comfortable giving away my idea, but just know that my goal is to make the responsiveness virtually seamless if it is at all possible.
I will test it out with WiFi first, but in case I don't get the results I'm looking for, can you expand a little more on USB?
Will it only be hard for me on the developing side, or will the consumer have to also put in extra effort to get it to work over USB (installing other apps, rooting, etc.)? If I was to develop the app around USB, I would want it to be easy to set up if I did all the coding right.
From my continued research, I have found a few articles in the following links that might be leading me in the right direction:
http://developer.android.com/guide/topics/usb/accessory.html
http://developer.android.com/reference/android/hardware/usb/UsbManager.html
http://stackoverflow.com/questions/5848876/java-sockets-transmission-in-real-time
http://stackoverflow.com/questions/4762620/sending-simple-commands-from-android-through-usb
I don't have much expertise in the area, i just took a quick google shot at it and it showed from some forum posts and questions, that doing it through usb is not the easiest way.

Anyone know about USB Dev?

Hi,
Android Dev Noob and just looking at the SDK I have this question which probably someone will be able to tell be straight away.
I want to relay USB Host port data to a USB accessory port.
I am looking at the USB Host APIs >= Andriod 3.1
What I want to do is be able to relay the keyboard, mouse and touchscreen that I have connected on the host port and relay that to the OTG.
So here is my noob questions before I waste loads of time.
1... Is it possible to create device manifests on the fly.
I was thinking I could just make devices connected on the host appear as if they are on the accessory port.
If not then I guess I could create some default manifests and pick the most relevant.
2... This is hardware related but many tablets and android boxes have separate usb host & otg ports?
It is possible to have a host and accessory going at the same time.
This might makes things a little easier as the rationale is that I have a windows 8 machine and an RK3288 android box and I want to share the keyboard, mouse and touchscreen.
Video is easy as I can just swap the input between pc & hdmi.
I was thinking if I plugged all my devices into android I could just have a hot Key to redirect to windows 8 or don't capture and use devices on android.
I thought it might be a much simpler way without network needs and have read there are gesture problems with KVM products such as Synergy.
What do you think is it possible, does anyone know if this has already been done and there is an app?
Also if you have any better ideas or some pointers where to start all will be welcome.
Many Thanks
Stuart

Help with BT USB Passthrough Tutorial on source.android.com

Hi,
this question might be to vague but at this point I'm not even quite sure if I'm on the right path for what I try to do so any input would mean a lot to me.
I've been struggling a lot with a Bluetooth Dongle pass-through on Android Emulator. I basically what to connect the Emulator to a real Bluetooth device through a Bluetooth USB dongle. After weeks of searching I found a tutorial that kind of explains what I want to do but its for the AAOS Emulator.
Can someone give me a overview on how to mod those files and how I bring them together to build an emulator? I'm trying my best to understand the AOSP Repo and its structure, but the harder I'm trying the more confused I am.
The tutorial is https://source.android.com/devices/automotive/start/passthrough

Categories

Resources