1
\$\begingroup\$

I have a project that i need to send some data with an RS232 to USB cable from external Msp430 launchpad to the computer and fake it as a mouse. Is this possible without learning USB protocols of the mouse?

\$\endgroup\$
1
\$\begingroup\$

You could pretend to be a Microsoft Serial Mouse: http://paulbourke.net/dataformats/serialmouse/

Edit: if that doesn't work, and the computer has a PS/2 mouse port, you can use that: http://www.computer-engineering.org/ps2protocol/

Otherwise you're going to have to get a microcontroller with USB support and learn that, which will be time-consuming.

\$\endgroup\$
  • \$\begingroup\$ Does that still work with newer OSes? I remember I tried using some serial mice with Vista and 7 and they didn't work, but I didn't try to figure out if they died or the OS didn't support them. \$\endgroup\$ – AndrejaKo Mar 11 '13 at 10:09
  • \$\begingroup\$ Hmm - it's not clear, although I can see a couple of questions on stackexchange about "how do I prevent my serial device being wrongly detected as a mouse on Win7?". \$\endgroup\$ – pjc50 Mar 11 '13 at 10:18
  • \$\begingroup\$ This is basically the answer. I'd just point out that a USB HID implementation may not be all that complicated if you find a microcontroller eval board with an HID mouse demo. Some of these will cost less than a logic-level USB-serial cable. \$\endgroup\$ – Chris Stratton Mar 11 '13 at 12:40
0
\$\begingroup\$

Microchip has a PICDEM Full Speed USB Demo Board for this. This demo board comes with a program that emmulates a HID mouse using USB. You could adapt this program to create your fake mouse.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.