Skip to main content

HID devices on Raw Panel

With SKAARHOJs HID application (xpanel-hids package) you can connect one or more particular USB devices to a SKAARHOJ product (with USB-A) and integrate the USB device as a control panel with your existing SKAARHOJ devices. In this way you can enjoy even more freedom of user friendly integration with professional SKAARHOJ panels and your existing HID devices. 

image.png

The devices supported are specific models and brands of HID devices. We know this list is very short at the moment, and we are looking to extend it by your help, so reach out to innovationlab@skaarhoj.com if you have a device you think should be supported here.

Device Vendor ID Product ID Comment

Tangent Ripple

("TangentRipple")

1240
64015

Trackballs are read out as two encoders, one for each axis.
Encoders and trackballs are scaled down by a factor 20 to reach a usable level for most applications, such as Reactor. You can change this by setting this JSON string into the "Deep Config" field which will set scaling to "1:1" instead. You can experiment with the values to reach your desired resolution.

 

{"EncoderScaler":1,"TrackballScaler":1}

 

A mount for the Tangent Ripple (rippleMount.stp) has been contributed by user Jaron Berman. Thanks!

image.png

USB Generic Gamepad

("GamePad")

2064

1

Supports all buttons. Left button array is linked to left joystick. Analog button changes that function. Precision of the joysticks is very low.

image.png

("FootSwitchDelcom")
4037
13921


image.png

Contour ShuttlePro
("ContourShuttlePro")
2867
48


image.png

Logitech Presenter R400

("LogitechR400")
1133
(50477)

(see R500)

image.png

Logitech Presenter R500s

("LogitechR500")
1133
50496
(50494)

The presenter remote recognizes two types of button presses: forward and backward. It only responds to short presses (less than 0.5 second), ignoring longer ones. Upon releasing the button, the down-press trigger is sent, followed by an automatic up-press trigger approximately 50ms after the initial press.

image.png

Generic Keyboard

("GenericKeyboard")
1133
49974

Logitech G213 (Y-U0029)

Many other keyboards would work too, but you will need to detect it's vendor and product IDs and inject into the package. See below for instructions.


Generic Mouse

("GenericMouse")
1133
49271

Logitech B100 (M-U0026). Notice that by default the X/Y positions are reported as encoder input scaled down by a factor 5 and also sampled at only 10Hz.

Many other mice would work too, but you will need to detect it's vendor and product IDs and inject into the package. See below for instructions.


The USB HID devices are network-enabled as they are transformed into Raw Panel compliant devices. This transformation implies that Reactor, along with any other third-party application fully compliant with Raw Panel, can utilize them.

In the illustration below, you'll observe a Delcom Footswitch Mouse directly connected to a SKAARHOJ Blue Pill Server. This server is then linked to a Power over Ethernet (PoE) powered network switch. The Footswitch can be accessed via the Raw Panel TCP protocol, using the IP address of the Blue Pill Server.

IMG_8011.JPG

Multiple HID devices can be operated by a single Blue Pill. To do this, insert a powered USB hub between the devices.

IMG_8013.JPG

With the Raw Panel Protocol, you can readily integrate button presses, joystick movements, and encoder rotations, often referred to as 'triggers', back into your broadcast and AV applications. Devices compliant with Raw Panel will appear in a visually pleasing graphical form in the corresponding applications. Here are two examples from the Raw Panel Explorer and Reactor:

image.png

image.png


Watch it

(TODO)

Getting Started

  • Connect your HID Device to your SKAARHOJ Blue Pill Inside product (with USB-A).
  • Go to the Settings tab of the Web UI of your SKAARHOJ device, find where it says "USB-A" and turn it on. After doing so, please power cycle your SKAARHOJ device once or twice and then confirm that USB-A is still enabled:

    image.png


  • Go to the Packages tab of the Web UI of your SKAARHOJ device

    image.png


  • Find the xpanel-hids package in the list of Available Packages. Click "Install"

    image.png


  • When installed, you should find it listed as "Running" in the top of the Packages page:

    image.png


  • Click the package name "xpanel-hids" to go to the configuration page. Here you may want to make sure it's set up for Auto Start and attend to other config settings:

    image.png


  • Check the log in the right side to see if panels are recognized and check it also for quarantine information (see licensing further down):

    image.png


  • Using PuTTy, Telnet or nc you can now make a TCP connection manually to test it. On a Mac, try "nc 192.168.11.5 9923" from the Terminal, then it should connect, type in "list"+Enter and you should see something like this below. Try pressing a few buttons and you will see trigger messages arrive in a human readable form. This is the Raw Panel protocol in ASCII version. 
    image.png
  • With PuTTy on Windows you should make sure to set "Implicit CR in every LF"

    image.png

USB Hubs

You can operate multiple devices simultaneously by using a USB hub. For the best results, it is recommended to use a powered hub if possible.

Licensing

Licenses for unlimited use of HID devices on a Blue Pill device currently cost 79 EUR / 96 USD (January 2024). Please contact support@skaarhoj.com or sales@skaarhoj.com to place your order and get a license assigned. Remember to include your Blue Pill serial number in the request. A single license will allow up to about 10 USB devices to be connected and Raw Panel enabled.

The xpanel-hids application will always provide approximately 10 minutes of free and unlimited Raw Panel usage. This starts 30 seconds after the application (re-)start for any number of HID devices. Please note that after 10 minutes, an unlicensed HID device will stop sending triggers. However, you can reset this period by re-starting the xpanel-hids package in the Blue Pill Web UI.

The xpanel-hids logs will report when the quarantine periods start and end.

Configuration

By default, the xpanel-hids application will scan for supported HID devices on the USB port and as it finds them, assign them a Raw Panel port number starting with 9963 - and locking that to their serial numbers.

You can change this behavior. The configuration page for the xpanel-hids application has a number of options worth knowing about. 

image.png

The Server Starting Port should be adjusted if other applications running on the same Blue Pill are attempting to use this port. There is no explicit indication if this is the case, but if something isn't functioning properly, please check the logs for errors related to port binding.

The protocol mode can mostly remain unchanged since most SKAARHOJ applications will determine whether ASCII or Binary mode should be utilized. The Max Clients and Lock to IP features help protect your Raw Panel enabled HID devices against excessive client connections or connections from unauthorized IP addresses. However, remember that this is a relatively low-tech security measure, which assumes a friendly network environment.

By default, Lock Serials to Port is enabled because we anticipate that it would be most convenient for users if any panel that was previously connected to your SKAARHOJ controller were assigned the same port the next time it is connected.

Fixed Panels

For fixed installations, it's recommended that you set up discrete HIDs as fixed panels. This allows you to assign a specific port to a specific serial number and set individual settings for the above mentioned general settings for the panels.

image.png

Exploring with Raw Panel

Above you saw how simple it is to connect to a Raw Panel enabled device. Here is the full protocol information and in addition we will advice you to download and play with the Raw Panel Explorer. To help you succeed with SKAARHOJs command-line-applications, please check out these wiki pages for windows and mac.

When you start the Raw Panel Explorer, it will scan the network for Raw Panel compliant devices. It would find your connected HID devices and show them on the web page that opened:

image.png

Click the "Connect" button to the right of the XP_HIDS-GAMEPAD panel and you will see this:

image.png

The drawing you see on this page comes straight out of the Raw Panel protocol - one of the many awesome features: Raw Panel allows any connecting client to ask for the topology of the panel and it lets any client know exactly which features a panel has and how to render it visually. This info is provided as a mix of JSON and SVG data.

Deep Configuration

It's possible to provide additional JSON based configuration to the application. This is done by adding JSON to the "Deep Config" field:

image.png

Here is examples of config that can be helpful:

Deep Config Description
{"Development":{"Mode":"Scan"}}
Stops normal run mode of the application and scans the USB hub repeatedly, reporting in detail the results. This is very technical and output looks very chaotic.
{"Development":{"Mode":"Log","SleepMS":100}}

{"Development":{"Mode":"Log","SleepMS":500,"VendorID":1240}}
Stops normal run mode of the application and and rather connects to the first found device that corresponds to the filter settings. After that it will report back the received HID reports as bytes in the log with a max period of 100 ms.
Filters include "VendorID", "ProductID", "UsagePage", "Usage", "InterfaceNum"
{"InjectVIDsAndPIDs":{"GenericKeyboard":[[1267, 259]]}}
This adds the VID (1267) and PID (259) to the existing list of devices recognized as a Generic Keyboard. "GenericKeyboard" is the identifier found under the title of the device type in the table of supported devices in the top.
This can be used to test if a mouse, keyboard, game pad, remote control etc. could potentially work as one of the known devices. If successful the user can help SKAARHOJ make the support permanent by reporting a working pair of VID and PID.
{"XYScaler":5} 
Divides the Generic Mouse input for X/Y positions by 5. 
 

Here is an example of the log output from Log mode, and a Logitech Keyboard inserted, pressing "a", "b", "c":. Note that log reports are updated at a frequency of about 1 second in the UI.

image.png

Feedback

Please write to innovationlab@skaarhoj.com for any comments or questions. We would love to hear (positive and constructive) remarks from you.

- kasper