Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C# emulate HID clicker bluetooth

Tags:

c#

I need some guidance on how or whether this is possible to achieve without a "server" application running on the pc. I have gotten as far as establishing a bluetooth connection to the PC, I would like to send HID commands to control a slideshow similar to how a clicker works.

like image 989
Francisco Aguilera Avatar asked Jul 12 '16 10:07

Francisco Aguilera


People also ask

What C is used for?

C programming language is a machine-independent programming language that is mainly used to create many types of applications and operating systems such as Windows, and other complicated programs such as the Oracle database, Git, Python interpreter, and games and is considered a programming foundation in the process of ...

What is the full name of C?

In the real sense it has no meaning or full form. It was developed by Dennis Ritchie and Ken Thompson at AT&T bell Lab. First, they used to call it as B language then later they made some improvement into it and renamed it as C and its superscript as C++ which was invented by Dr.

Why is C named so?

Quote from wikipedia: "A successor to the programming language B, C was originally developed at Bell Labs by Dennis Ritchie between 1972 and 1973 to construct utilities running on Unix." The creators want that everyone "see" his language. So he named it "C".


2 Answers

The PDF outlined by this link is an excellent, detailed, platform-agnostic resource on sending HID commands via a Bluetooth connection. It talks about having your device set up as a server, and what the relevant commands to send over the link. So, to answer #1 - it is possible. 2 this document outlines how it is done.

like image 87
Francisco Aguilera Avatar answered Sep 16 '22 16:09

Francisco Aguilera


while it is possible, as far as I know, under windows that would involve either

  • using an external bluetooth HID module (like this http://www.instructables.com/id/3-Bluetooth-HID-Module-HC05-With-RN42-Firmware/)
  • writing a semi custom bluetooth driver to appear as a HID device.

if you have an external HID module, it's easy, just talk to it via rs232 (serial), and it will send whatever you want, though you will need to buy some hardware.

it seems like you can get away with just patching the windows bluetooth driver instead of writing one. https://nadavrub.wordpress.com/2015/07/17/simulate-hid-device-with-windows-desktop/

If you have access to linux instead, using a already available library for that would probably be the safest and easiest.

like image 42
satibel Avatar answered Sep 16 '22 16:09

satibel