Reputation: 24848
I have no experience with embedded systems.
I am programming a smartphone application to receive RFCOMM input from a bluetooth device. This device is an HID remote control with configurable buttons. As I undestand HID is based on RFCOMM.
This is my device: https://serialio.com/products/bluetooth-dongles/imedia-remote-control
Most smartphones have "native" support for HID so that they will handle HID input on OS level - this is my problem. I want to receive the "raw" RFCOMM input in my own application and do different things depending on configuration, input, etc.
How could I approach this?
Upvotes: 3
Views: 799
Reputation: 65
Firstly you need to connect that devices from from your mobile.
connection is based on RFCOMM communication and this we pass UUID that is
different for chat(mobile to mobile communication) and mobile to other device(Embedded).
if your connection is successful then create one socket between your mobile and your embedded device. After creation socket perform read and write operation between your mobile and embedded device. read write operation based on communication protocol which is provide by your device vendor.
Upvotes: 1