abuasis
abuasis

Reputation: 94

how to control pc mouse from android device without client server

I need to create an application that control PC mouse(pointer) through android device without downloading a server on pc, it should be able to communicate directly with my pc I already checked out the remote droid application but the user would need to download a client server to communicate with the phone

so is there way to remote control pc mouse through phone without downloading a client server on pc?

note: I am working on android 2.3.3 thus i cant use wifi direct and usb accessor

Upvotes: 7

Views: 28671

Answers (5)

LOIS 16192
LOIS 16192

Reputation: 101

If it is possible to plug into PC's USB
Then

  1. Arduino mouse using a cheap Arduino board https://www.arduino.cc/reference/en/language/functions/usb/mouse/

  2. Arduino wifi or bluetooth using same or another board (or connect by Serial, UART, SPI, I2C cable).

  3. software on cell phone (Android) to connect to wifi/bluetooth

  4. Some hacking at the C level.

Notes
- no driver on the PC
- Could do the same with PIC32 (even with PIC8/16 but might take longer).

This is a typical real world IoT type project. As a project it is between 40 and 160 hours to demo prototype for an experienced consultant. Parts cost estimate under $400 besides cell phone cost.

120 to 500 hours for 20 production prototypes + layout and assembly cost about $4000. Production target unit cost under $25. In other words a neat Kickstarter project.

Experienced soft/hardware & lucky hacker could do it 24 to 36 hours.

Upvotes: 0

gopenath
gopenath

Reputation: 1

In Micromax q2+ Iam able to access the bluetooth - remote control and after pairing be able to move the mouse to my pc. One thing is am unable to do any action events.

Upvotes: -1

sciffer
sciffer

Reputation: 31

Why not just simulate regular bluetooth mouse, a standard bluetooth mouse which has its drivers as part of most os's. no one can control your pc remotely without bluetooth pairing. in theory i think it should be possible, but it requires knowledge in hardware and low level software (so its not a task suitable for most developers).

Upvotes: 3

TsT
TsT

Reputation: 11

It might be a case that i misunderstood the point. I think however that you can play with the BT protocols. If you find a way to recognize the phone form the pc like a BT mouse you can control the pointer. I think some of the low end SonyEriksson phones had that option build in.(SE880i). Though I am not sure how the driver problem will be solved.

Regards TT

Upvotes: 1

Basic
Basic

Reputation: 26766

It doesn't matter what the client is, the fundamental question is "Can you move the mouse cursor on your PC from anywhere without installing software"

The short answer is no - which is a good thing! Otherwise, anyone on your network could just take control of your PC...

That said, you could, in theory, create an RDP (Remote Desktop) connection and use that to control the PC as a whole - but that is very complex, has been done already and would still require the user to allow remote desktop connections to the computer (Control Panel->System->Advanced->Remote)

Edit - Bare minimum app:

There are a number of ways to approach this but the absolute simplest app I can envision involves having an application on the PC listen for connections on a TCP/IP port. You'd then send messages to this port from Android using the Sockets classes.

The app would receive these messages, parse them and perform the appropriate mouse actions.

Make sure that you include an authentication/authorisation mechanism - you don't want random strangers to be able to control your PC just because they broke your wifi.

You may find it easier to build the desktop app to accept messages using the HTTP protocol (RFC) - This is a standard, widely used and very flexible mechanism for client-server communication. Why reinvent the wheel? This would also make your Android-side code far simpler as you could use HttpURLConnection and other similar classes which abstract the complexity of managing sockets.

You may also want to consider if the app should provide any feedback to the client - eg the new mouse position or a success/failure.

NB: Running the app as a windows service or website might seem preferable to a desktop app (doesn't need to be started by the user, nothing in taskbar/system tray) but there are considerable drawbacks to both - Windows services can't interract with the desktop easily (what happens if nobody is logged in?) and websites run as a different user so in addition to not having the same desktop, they have limited permissions.

Upvotes: 1

Related Questions