In this example, we want to show you how to use the keys of a third-party USB input device (in this case a remote control) to control certain functions on a Cisco device.
We show you how to use the buttons on a Bluetooth remote control (connected through a USB dongle) to manage functions like standby, volume adjustment, and control of a Cisco camera device. You can develop a macro that listens to relevant events and executes corresponding actions through the Cisco device's API.
In the following example, you must enter the text that is written in normal font. The text in italics is the response received from the Cisco device.
| 1 | Sign in to the Cisco device on SSH. You need a local admin user. | ||
| 2 | Configure the device to allow the use of a third-party USB remote control.
| ||
| 3 | Register for feedback, so that we are notified when the remote control buttons are pressed and released.
| ||
| 4 | Press and release a button on the remote control to check that feedback registration works. This action generates two events: Pressed and Released. If you press and hold a button, you see the Pressed event until you release the button. Then the Released event is generated. These events are issued when pressing and releasing the Enter key:
| ||
| 5 | Write a macro that listens for the relevant InputDevice events, and carries out the associated actions using the API of the device.
|