Hello everyone!
I am currently working on a tool that lets you use the Pandora as a HID(evice). I call it "Master Control"
This tool is under development and there is still a lot of work to do. There are certainly bugs, I haven't found yet, and some features are not implemented yet. Since I do only have my Linux/Windows PC for testing, I need some people to give me some feedback. I've just uploaded a very first version to the repo. It can be downloaded here: http://repo.openpandora.org/?page=detail&app=package.mastercontrol
These are the currently implemented features:
[*]Flexible key map.
The tool is known to work with:
The tool comes with 2 config files:
mastercontrol_keydefs.conf
This file includes key definitions which are needed to identify key presses, mouse moves, etc.. It should not be modified (unless you know what you are doing :unsure: )
mastercontrol.conf
This file includes some application parameters and, most importantly, the key map. Here you can define which input key (or move) maps to which output (HID) key (or move). So, for example, it's possible to map the key 'y' to 'z' and visa versa. It's also possible to map one input key to multiple output keys. For example, the (Pandora) gamepad "A" to (HID) keyboard "page up" and (HID) gamepad "A".
Some major keys are already predefined, but most work must be done by the user.
Sidenote:
If you encounter any problems or crashes, please take a look at the log-file (in the appdata dir) and let me know. You may even try gdb (tool is build with debug symbols)
That's all for now. Feedback, critics and discussions are highly welcome
How to use Bluetooth:
- Start MC. This registers the HID service on the SDP-Server (the host has to know, which services are available on the Pandora)
- Initiate pairing with the Pandora from the host side! This will ensure, that the host finds the HID service and connects afterwards.
- Enter your pin
- The host should now detect the services and connect to MC
- For a reconnect, press the "Connect" button in the full screen interface. This will try to connect to the host, to which MC was last connected
To debug Bluetooth problems, please download the attached file. It contains the tool "hcidump", which monitors all BT events. It's part of the Bluez software collection, but not included in the Pandoras firmware.
hcidump.zip
I am currently working on a tool that lets you use the Pandora as a HID(evice). I call it "Master Control"
This tool is under development and there is still a lot of work to do. There are certainly bugs, I haven't found yet, and some features are not implemented yet. Since I do only have my Linux/Windows PC for testing, I need some people to give me some feedback. I've just uploaded a very first version to the repo. It can be downloaded here: http://repo.openpandora.org/?page=detail&app=package.mastercontrol
These are the currently implemented features:
- Connects via USB (otg) and Bluetooth
- HID
Standard 101 keyboard (supports boot protocol) - Standard 3-button mouse
- Gamepad with 2 joysticks, a digipad and up to 16 buttons
[*]Flexible key map.
The tool is known to work with:
- Other Pandoras
- Windows (7)
- Linux (openSuse 11.4/12.3)
- Android (4.1.1/4.1.2)
The tool comes with 2 config files:
mastercontrol_keydefs.conf
This file includes key definitions which are needed to identify key presses, mouse moves, etc.. It should not be modified (unless you know what you are doing :unsure: )
mastercontrol.conf
This file includes some application parameters and, most importantly, the key map. Here you can define which input key (or move) maps to which output (HID) key (or move). So, for example, it's possible to map the key 'y' to 'z' and visa versa. It's also possible to map one input key to multiple output keys. For example, the (Pandora) gamepad "A" to (HID) keyboard "page up" and (HID) gamepad "A".
Some major keys are already predefined, but most work must be done by the user.
Sidenote:
If you encounter any problems or crashes, please take a look at the log-file (in the appdata dir) and let me know. You may even try gdb (tool is build with debug symbols)
That's all for now. Feedback, critics and discussions are highly welcome
How to use Bluetooth:
- Start MC. This registers the HID service on the SDP-Server (the host has to know, which services are available on the Pandora)
- Initiate pairing with the Pandora from the host side! This will ensure, that the host finds the HID service and connects afterwards.
- Enter your pin
- The host should now detect the services and connect to MC
- For a reconnect, press the "Connect" button in the full screen interface. This will try to connect to the host, to which MC was last connected
To debug Bluetooth problems, please download the attached file. It contains the tool "hcidump", which monitors all BT events. It's part of the Bluez software collection, but not included in the Pandoras firmware.
hcidump.zip
Attachments
Last edited by a moderator: