Jump to content
C4 Forums | Control4

IrUSB QHID question


Recommended Posts

Tagging @videostorm since this involves their great little IrUSB device.

My Google Fu is failing me and I cannot find a reference source for all the QHIDCODE commands for Android TV devices, specifically the nVidia Shield.  I had a reference for them 4 years ago but have since lost it. Could anyone point me in the correct direction please?

 

Thank you,

Eric

Link to comment
Share on other sites


19 hours ago, Eric Stiff said:

Tagging @videostorm since this involves their great little IrUSB device.

My Google Fu is failing me and I cannot find a reference source for all the QHIDCODE commands for Android TV devices, specifically the nVidia Shield.  I had a reference for them 4 years ago but have since lost it. Could anyone point me in the correct direction please?

 

Thank you,

Eric

Hi Eric,

The QHIDCODEs are built into our C4 driver (to respond to navigator commands etc).  Are you looking for a specific code that isn't available via navigator?

Our protocol for the QHIDCODE mapping is at: https://www.video-storm.com/manuals/IrUSB_protocol.pdf

The Android reference for the base HID codes is:  https://source.android.com/docs/core/interaction/input/keyboard-devices#hid-keyboard-and-keypad-page-0x07

 

Link to comment
Share on other sites

1 hour ago, videostorm said:

Hi Eric,

The QHIDCODEs are built into our C4 driver (to respond to navigator commands etc).  Are you looking for a specific code that isn't available via navigator?

Our protocol for the QHIDCODE mapping is at: https://www.video-storm.com/manuals/IrUSB_protocol.pdf

The Android reference for the base HID codes is:  https://source.android.com/docs/core/interaction/input/keyboard-devices#hid-keyboard-and-keypad-page-0x07

 

Welp, this goes to show why I was never able to get into true programming as a lot of this I just find confusing. 😂😂 I was really just wanting a good QHIDCODE reference just for the sake of having it. The two most important commands (2002035 for home and 2000052 for sleep) I already have thanks to you providing them to me 4 years ago in another thread. Except that looking at the PDF you linked, it lists a completely different code for sleep. So now I'm even more confused.😂

Link to comment
Share on other sites

Sleep is 0xc 0x0034  which translates to 2000052 in QHIDCODE    (conversion detail in the protocol manual, but mainly just hex to dec conversion)

Technically it is Android KEYCODE_POWER in the table.  The Android key code column lists how each HID key is used (or ignored) by Android.

Link to comment
Share on other sites

On 4/22/2024 at 10:04 AM, videostorm said:

Sleep is 0xc 0x0034  which translates to 2000052 in QHIDCODE    (conversion detail in the protocol manual, but mainly just hex to dec conversion)

Technically it is Android KEYCODE_POWER in the table.  The Android key code column lists how each HID key is used (or ignored) by Android.

Part of what throws me off is that in the IRUSB protocol manual SLEEP is listed as QHIDCODE3002000 

Link to comment
Share on other sites

34 minutes ago, Eric Stiff said:

Part of what throws me off is that in the IRUSB protocol manual SLEEP is listed as QHIDCODE3002000 

USB defines multiple codes for power / sleep / suspend etc.  Android in turn chooses how to interpret these, and different platforms sometimes do it differently.

In practice, the Sleep 0xc 0x0034  which translates to QHIDCODE2000052 is the one that works the best.  The others aren't wrong, they just may not do what is expected.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.