Bluetooth + simulating mouse - android

anyone know if its posible to make an application to simulate a touchscreen mouse or trackpad by bluetooth??
How can I make that the PC (or MAC) knows me as a mouse device?
Regards,
Juan

You should have a look at the Bluetooth HID specification. It may be possible, depending on the stack of the device that you are using to emulate a mouse/trackpad. I'm not familiar with the stack on Android (assuming that's the platform you're using from the tag on your question) so I don't know if it's possible from there.
Essentially, you create a HID service on the L2CAP protocol. The service record specifies the HID descriptors which describe the data being sent from emulating device. The HID driver on the host computer should be able to interpret that data.
It might be useful to try to connect to another Bluetooth mouse/trackpad from the desktop (Bluecove on a stack other than Microsoft is a good way to hack around in Bluetooth). Have a look at the service record for the HID service on the mouse/trackpad. Also, look at the data coming from the mouse/trackpad for an idea of what needs to be sent and when.
Alternatively, you could write a server application on your computer that communicates via another Bluetooth protocol (e.g., RFCOMM/SPP) to the input-device emulator app running on your phone. The server application would simulate the input device (e.g., move the mouse pointer around on the screen, etc).

Instead of creating your own project why dont you contribute to the remotedroid project?
I'm assuming you know your bluetooth api's well. Remote droid uses Wifi and OSC messaging to communicate with the PC.

Yes you may use GlovePie with the wiimote connected to BlueSoeil, It will alow you to do anything with you computer with the wiimote. It also has a Language it uses

I think you want this:
Serverless Bluetooth Keyboard & Mouse for PC/Phone
It's even open-source!
Unfortunately it is not open source, it just has a GitHub readme for some reason.
But still the app is quite good!

Related

Android, Linux and iOS - using of Bluetooth and TCP/IP?

Since many libraries are meant to be used with TCP/IP, I was wondering if it is possible to activate TCP/IP and therefore TCP/UDP for Bluetooth connections. I found some information already like that it is called Bluetooth PAN and piconet.
Furthermore, I noticed that my Android device created a network interface with an IP upon a connection with an iPhone (after I paired it and hit connect). Nevertheless, it appears that interface cannot be used right away. I don't have the option to root these devices so it needs to be activated programmatically somehow.
Any hints? Is it actually possible?
Thanks.

Sharing Bluetooth connectivity over wifi

My computer does not have any Bluetooth capability, however it has WI-Fi capability. My phone has both.
I was asking myself if there is anyway to "stream" Bluetooth over WI-Fi?
Thanks!
The short answer is no. Easiest would be to purchase a bluetooth dongle for your computer.
Yes, tunneling one type of communication through another is generally possible (within the limits of the Android Bluetooth API), but as it is an obscure need you will probably have to write the bridging server to run on the Android device yourself - this is after all a site for questions about software development. Additionally, it will work best when the app hosting the server is in the foreground, as Android makes no guarantees about keeping services running in the background.
On the PC side, this bridged Bluetooth capability will probably not trivially present as an ordinary Bluetooth adapter, so you would be limited to using custom applications which known how to talk through your bridge. The exception would be if you also spend time figuring out how to write a device driver for your host operating system which presents it with traditional Bluetooth APIs, at least to the greatest degree possible.

Android basic usb interaction

I am working on a very small project, where I have to send a signal via usb to some kind of micro-controller board.
I am completely new to this, although have enough android experience, so just need answers to few questions for now:
1.) Is it correct that I will need some kind of Arduino kit to get even started ?
2.) Isn't there any way by which I can test this using day to day devices or simulator, rather than purchasing the kit itself ?
Please forgive if the question looks silly.
Thanks
Sure! you can communicate with your Android or any other languages like (C#, Java, Php, Python...) with Arduino or other micro controller by USB.
Arduino is very easy to start and you can send signal and perform
the required task.
As you code Android, check this you get clear idea.
Yah! Arduino emulator where you can check or
test. check here
Get to know about Arduino Here
Start with this program (Hello World of Arduino)
Hope it helps
You cannot send a signal out of the Android USB port. You will need to communicate with another device via bluetooth or WiFi, and have that device communicate via USB to the microcontroller.
If you want to avoid purchasing anything, you could write a small web service that runs on a computer hooked to your microcontroller. When your android app runs, it would communicate to that web server, which would in turn communicate with the microcontroller.
Then, when you are ready to purchase an intermediary device, if you design your code well, you'd be able to repurpose the code to communicate via that device instead of the web service.

Getting started with Bluetooth development for Android: Suggestions for test application

I have a task to integrate a Bluetooth device into my application. Now my requirement is very specific. The device has a specific communication protocol which relies on certain ACKs but I figured it would make my development much easier if there was a program that let me test communication with the device.
I was wondering if there was a program for Linux, or perhaps a simple Android program which let me communicate with any Bluetooth device with a series of pings using data I enter and simply log the responses.
EDIT: I might not have been clear enough in my question.
I have a scale that I need to integrate into my application, and the scale has a protocol similar to this:
Get a specific byte string from device
Transfer data
Transfer packet for disconnection
Receive acknowledgement for disconnect packet
Disconnect
Now when I have to issue a POST request from my application, I usually build a test script online so I can test if the POST works properly.
I was wondering if there was something similar I could do with the device.
Thanks
Your question is not clear enough. To communicate with a BT device, you need to know what profile your device supports. Depending on that, you can find a way in Android or Linux or windows to communicate with the device.
The simplest way is to open an RFCOMM channel from android/PC and transfer data to and from the device. For this the device has to support the serial port profile (SPP). If you want to do this in Android, look for the BluetoothChat example from google.
If you want to use a PC/mac/linux look at the Bluez python module. It's really simple to use. There are plenty of other options too..
I was looking for something like SENA BTerm. It lets me connect to any device and send whatever data I wish.
It is an extremely useful tool for testing my code.
http://www.sena.com/download/manual_bterm/overview.html is where you can find it.

Android Mouse Motion Control App

This is more of a general question i suppose...
I am looking to start to make an app which will connect to my pc via bluetooth and then control my mouse. I am wondering if any people know where to start or know of any places to get a tutorial from. I know basics about how to connect via bluetooth to a device, but dont have a clue where to being with motion conrol tutorials etc
thanks
I imagine that you'll have to write an application on your pc that would communicate with the device and also with the mouse. There might be some sort of pc-side UI testing apps (analogs to Monkey) that you could harness for this.
You can use tomcat Apache server or any other server which will receive mouse events sent from android mobile.

Categories

Resources