DeckBridge icon indicating copy to clipboard operation
DeckBridge copied to clipboard

Feature Request: Support for First-Generation MiraBox 293 (15-Key)

Open aaaa9753 opened this issue 1 week ago • 19 comments

Problem

Description

Hello,

I would like to request support for the first-generation MiraBox Stream Dock 293 (15-key version).

My device has a 5×3 button layout. I would like to use DeckBridge to integrate it with Euro Truck Simulator 2 (ETS2), similar to how supported Stream Deck devices can interact directly with the game.

I understand that this older MiraBox model may use a different USB communication protocol or firmware compared to newer devices.

Device Information

  • Brand: MiraBox
  • Model: 293 (First Generation)
  • Button Layout: 15 keys (5×3)
  • Connection: USB
  • Target Application: Euro Truck Simulator 2 (ETS2)

Additional Information

I have already started investigating the USB communication between the device and my PC using USBPcap and Wireshark.

I can provide:

  • USB communication capture files (.pcapng)
  • USB device information
  • Additional testing and debugging if needed

Question

Would it be possible to add support for this device in DeckBridge?

I would be happy to help with testing and provide any additional information required to investigate compatibility.

Thank you for your work on DeckBridge!

Proposed solution

No response

Alternatives considered

No response

aaaa9753 avatar Nov 23 '26 17:11 aaaa9753

Since you already have USBPcap and Wireshark running, a few things make the captures much easier to use for whoever adds this:

  1. Capture only the dock. In the USBPcap dialog pick the root hub it sits on and, if you can, plug nothing else into that hub. Note the VID:PID from Device Manager (Details > Hardware Ids) so it is clear which generation this is.
  2. One action per capture, with a short pause before and after: plug in / app start (the init and wake sequence), changing brightness to 3 or more different values, setting one key image, and pressing one key. Write down what you did and roughly when.
  3. In Wireshark, filter with usb.idVendor == 0xXXXX from the descriptor frames to find the device address, then usb.device_address == N && usb.data_len > 0 (or usbhid.data if it is HID). The commands are usually fixed size (512 or 1024 byte reports) with an ASCII header at the start, so the brightness capture should show one byte that follows the value you picked. Key images usually go as a short header with the key index and the image size, followed by JPEG data split over many reports (look for ff d8 at the start of the payload).
  4. Key presses come back on the IN endpoint as small reports with the key index in one byte.

The newer Mirabox/Ajazz docks are already handled by open-source projects (OpenDeck and the libraries around it), so comparing your capture against those can show quickly whether the first-generation 293 is the same protocol with a different VID:PID or something older.

If it helps, I built usb-rea, which reads a USBPcap capture plus the list of actions you did and infers the command layout (constant header, which byte carries the brightness or key index, image streams), then writes a small Python driver. You can run it on your own .pcapng, or attach the capture here and I can run it and post what it finds.

emirmrkaljevic avatar Nov 23 '26 18:11 emirmrkaljevic

hello, I will try to add support for the Mirabox 293 (First Generation). Probably tomorrow or within the next 1–3 days, I’ll try to create a new release with experimental support for this device (VID 0x5500 / PID 0x1001). Then you can confirm whether it works for you.

lukasMega avatar Nov 23 '26 21:11 lukasMega

Thank you so much for taking the time to work on supporting the first-generation MiraBox 293! I really appreciate your effort and willingness to help support older hardware.

I’d be more than happy to help test the experimental version and provide feedback, USB captures, or any additional information you might need.

Whenever you release a new version with support for the MiraBox 293, could you please let me know here? I’d love to test it as soon as it’s available.

Thanks again for your amazing work and support!

aaaa9753 avatar Nov 24 '26 04:11 aaaa9753

hello, please tray latest version 0.25 (or newer) https://github.com/lukasMega/DeckBridge/releases/

Could you try it and report back?

  1. Your VID:PID: run deckbridge diagnose --redact-commands --out diag.txt with the deck plugged in and attach diag.txt, or copy Device Manager → the deck → Details → Hardware Ids.
  2. When the "Untested deck" banner appears, choose Check my device, save, and attach the report (https://lukasmega.github.io/DeckBridge/verify-device/).
  3. Do key presses, key release (hold a key), brightness, 2 minutes idle, and unplug/replug work?

lukasMega avatar Nov 24 '26 07:11 lukasMega

Hello!

Thank you very much for your work on adding support for the MiraBox 293 and for providing the v0.25.0 build for testing. I really appreciate your help and the time you've spent developing support for this device!

I've tested DeckBridge v0.25.0 with my MiraBox Stream Dock 293 (15-key, 5×3 layout), and I'm happy to report that the device is now successfully detected, connected, and working with the official Stream Deck software.

Device Information

  • Device: MiraBox 293 (Gen 1)
  • Key layout: 15 keys (5×3)
  • DeckBridge version: 0.25.0
  • VID: 0x5500
  • PID: 0x1001
  • USB Serial Number: Not provided by the device
  • Manufacturer reported by USB: 355
  • Product reported by USB: 35549

Test Results

  • [x] Device successfully detected by DeckBridge
  • [x] USB HID device opened successfully
  • [x] Key press events detected
  • [x] Key release events detected
  • [x] Brightness adjustment detected
  • [x] Image verification passed
  • [x] Color verification passed
  • [x] Device size verification passed
  • [x] Successfully connected to the Stream Deck software
  • [x] Successfully used Stream Deck buttons to trigger functions and interact with my PC

I can now use the physical buttons on the MiraBox 293 to operate functions through the Stream Deck software and control my computer. The device is working as expected in my setup.

The diagnostic log confirms that DeckBridge successfully identifies the device as Mirabox 293 (gen 1) and records key-down/key-up events. Brightness adjustment was also recorded.

The verification report shows:

  • Image: PASS
  • Input: UNKNOWN
  • Colours: PASS
  • Size: PASS
  • Real images: UNKNOWN

I also observed a USB disconnect followed by a successful reconnection during testing.

Attachments

  1. diag.txt – DeckBridge diagnostic report
  2. Device verification report – generated by the DeckBridge verification page

Overall, the MiraBox 293 is now successfully working with DeckBridge v0.25.0 and the Stream Deck software in my setup.

Thank you again for supporting this device and making it possible to use it with DeckBridge. I really appreciate your work!

One more thing: I'm still a beginner when it comes to this kind of technical testing, so I relied on ChatGPT to help me throughout the process.

If I made any mistakes, misunderstood any instructions, or if something in my report is unclear or incorrect, please forgive me.

Please feel free to let me know if anything needs to be corrected or if you need additional information or tests. I'll do my best to follow your instructions and provide whatever information I can.

Thank you again for your patience and support!

Device verification report.txt diag.txt

aaaa9753 avatar Nov 24 '26 16:11 aaaa9753

Thanks for the thorough test, and for the diag and report files. No mistakes on your side. I've marked the 293 (gen 1) as hardware-tested in the next release.

Optional: Two checks still show UNKNOWN: Input (the "buttons" step was skipped) and Real images (the Stream Deck app wasn't running during the report). To close those out, please re-run the verification page with the Stream Deck app running and answer the buttons step.

  • but I assume it's working because you wrote:

device is now successfully detected, connected, and working with the official Stream Deck software.


⚠️

Your log shows one short USB reconnect (about 6 s). To avoid that, use a good-quality USB cable, 1.5 m at most, and plug it directly into a USB port on the PC, not into an external USB hub. If it still happens, tell us roughly when.

lukasMega avatar Nov 24 '26 16:11 lukasMega

Hi! I have completed another round of testing with my Mirabox 293 (15-key, VID: 5500, PID: 1001) on Windows.

I found an issue related to animated icons.

What I found:

  • Static icons work normally. Both the display and button actions function as expected.
  • Animated icons (GIFs) are displayed correctly, but pressing the corresponding physical buttons does not trigger their assigned actions.
  • This issue is not limited to Spotify. I tested animated icons from other plugins and encountered the same behavior.
  • When I switch the icons back to static images, the buttons immediately work normally again.

Steps to reproduce:

  1. Connect the Mirabox 293 through DeckBridge.
  2. Assign a normal action to a button in Stream Deck.
  3. Use a static icon and verify that the physical button works.
  4. Replace the static icon with an animated icon (GIF).
  5. Press the same physical button. The icon is displayed correctly, but the assigned action is no longer triggered.
  6. Switch back to a static icon and verify that the button works again.

I also confirmed that native Stream Deck actions, such as System → Open (tested with Notepad), work correctly when using static icons.

This makes me suspect that the issue may be related to how DeckBridge handles animated icon updates and physical button input events.

I hope these findings are helpful. Please let me know if you need any additional logs, diagnostics, or tests. I would be happy to help investigate further.

Thank you for your work on this project!

aaaa9753 avatar Nov 25 '26 16:11 aaaa9753

Thanks, that's a clear report. To find where the press gets lost, please send:

Your setup

  • DeckBridge version, and how you run it (installer/tray app or the standalone binary).
  • Windows version and Stream Deck app version.
  • How Stream Deck connects to DeckBridge: on the same PC (WSL relay / "Fix pairing" wizard) or from another computer on the network?
  • Which plugin and action the animated key uses, and where the GIF comes from (plugin-provided or a custom GIF you set).

Log

  1. In the DeckBridge Web UI, turn on Settings → Debug logging.
  2. Put an animated icon on one key. Press that key 3 times, slowly. Then press a key with a static icon 3 times while the animation is still running.
  3. Run deckbridge diagnose --redact-commands --out diag.txt and attach diag.txt.

Video Please attach a short video (phone is fine) of step 2. It should show the deck and the screen, so we can see each press and whether the action runs.

One question: while the animation runs, do the static keys still work, or do all keys stop?

The Stream Deck app splits a GIF into frames and sends each frame over CORA as a separate image, ACK-paced. DeckBridge forwards each frame to the USB worker, which transforms it and writes it to the deck with hid_write. To DeckBridge, an animation is just a continuous stream of images to one key.

DeckBridge does not use firmware-native GIF playback yet.

lukasMega avatar Nov 25 '26 19:11 lukasMega

My setup:

  • DeckBridge: v0.25.0
  • Windows: Windows 11 26H2
  • Stream Deck: v7.6.1 (23033)
  • Connection method: Via Relay

Plugin and actions involved:

  • Plugin: Spotify by BarRaider
  • Plugin version: v3.3.2
  • Plugin website: https://barraider.com/
  • Actions: Play/Pause, Previous Track, Next Track
  • Animated GIF source: Elgato Legion Icons

Video: https://pse.is/9x3adm

I will attach the diagnostic log separately.

I'm currently investigating the issue involving the BarRaider Spotify plugin while using animated GIF icons. I'll also perform the requested tests and provide the results.

Thank you for your help!

diag.txt

aaaa9753 avatar Nov 26 '26 17:11 aaaa9753

My assumption is that this first gen Mirabox 293 is slow and when receiving animated keys - they are actually streamed as 5+ images per second to the device and it causes slowdown and prevents producing key events. I will try to do some detection for your problem to investigate it more precisely.

more technical details:

What diag.txt shows
  • Debug logging is on, so the log level is fine.
  • The last 400 log lines are all CORA image traffic. They cover only about 5 s and no key presses, so the diag is useless for the missing-press bug.
  • Only key=10 is streaming, at about 6–10 frames/s, one LAST chunk per frame, ACK'd each time.
  • [perf] device 15-key batch takes about 1.6–1.7 s, with last transform 0ms.

Hypothesis (unverified): a continuous 6–10 fps stream of hid_write calls on the 293 gen1 starves hid_read_timeout key polling in the USB worker, or the device drops presses while it is receiving images. Static keys work because there is no stream.

lukasMega avatar Nov 26 '26 21:11 lukasMega

I added two things to track down the lost presses.

1. Detection (always on). While a key animates, DeckBridge now writes one line every 5 s, for example:

stream 6.4 fps, write avg 140ms/frame, read-gap max 160ms, input reports 0

If the deck is too busy to read key presses, the line is a warning that ends with key presses may be delayed.

2. Experimental fix (off by default). DECKBRIDGE_DRAIN_INPUT=1 reads pending key presses between image chunks, so a press no longer waits for the whole frame.

Please try v0.26.4 (or newer; note - will be available soon) with the standalone binary, so the setting reaches DeckBridge:

  1. Turn Debug logging off in Settings. With it on, image traffic pushes the new lines out of the diag.

  2. Without the flag: start deckbridge.exe normally. Put an animated icon on one key. Wait about 30 s, then press that key 5 times, a few seconds apart. Run deckbridge diagnose --redact-commands --out diag-off.txt and attach it.

  3. With the flag: quit DeckBridge, then start it from a terminal:

    • cmd: set DECKBRIDGE_DRAIN_INPUT=1 then deckbridge.exe
    • PowerShell: $env:DECKBRIDGE_DRAIN_INPUT=1; .\deckbridge.exe

    Repeat step 2 and save the diag as diag-on.txt.

  4. Tell me how many of the 5 presses worked in each run.

If presses still fail with the flag on, and the log shows a low read-gap with input reports 0, the deck firmware drops presses while it draws. That would need a different fix (for example, a lower animation frame rate).

lukasMega avatar Nov 26 '26 22:11 lukasMega

I’ve noticed the following behavior during testing:

The first 10–15 button presses work normally. Adding a second animated icon also seems to work without any issues. However, after adding a third animated icon (or more), the buttons eventually stop responding.

If I remove the animated icons and replace them with static icons, the buttons work normally again.

When the issue occurs, all physical button presses seem to stop registering. However, switching folders or profiles directly through the Stream Deck application still works normally.

Based on these observations, it feels like some button input events might be getting lost somewhere during processing or transmission, rather than the device completely losing its connection. This is just my observation, though, and I could be wrong.

aaaa9753 avatar Nov 27 '26 03:11 aaaa9753

Thanks, the "3+ animated icons" detail helps a lot. All keys stopping while Stream Deck folder switching still works points at the deck's input path, not the connection.

To tell whether DeckBridge or the deck firmware drops the presses, please use v0.26.4 (or newer) and repeat the test with 3 animated icons:

  1. Settings → turn Debug logging off.
  2. Start deckbridge.exe normally. Wait until keys stop responding, then press a few keys. Run deckbridge diagnose --redact-commands --out diag-off.txt.
  3. Quit, start again with the flag (PowerShell: $env:DECKBRIDGE_DRAIN_INPUT=1; .\deckbridge.exe), repeat step 2, save as diag-on.txt.
  4. Attach both files and say whether keys still stopped with the flag on.

lukasMega avatar Nov 27 '26 11:11 lukasMega

I completed both tests using v0.26.4 (or the latest version I tested).

  • Test 1: Ran DeckBridge normally with DECKBRIDGE_DRAIN_INPUT disabled.
  • Test 2: Ran DeckBridge with DECKBRIDGE_DRAIN_INPUT=1.

In both tests, the results were the same. Once I had 3 or more animated icons running, the physical buttons stopped responding. Enabling DECKBRIDGE_DRAIN_INPUT=1 did not resolve the issue.

The Stream Deck software itself still works for switching folders and profiles, but the physical button presses stop being recognized by DeckBridge.

I have completed both tests, and the issue remains reproducible in both cases.

Thank you for providing the experimental flag and for your continued help investigating this issue!

diag-off.txt diag-on.txt

aaaa9753 avatar Nov 27 '26 16:11 aaaa9753

I also noticed another issue when using the portable version.

After DeckBridge stopped responding to physical button presses, the CMD window opened by the portable version continued to output the following DEBUG messages repeatedly without stopping:

00:09:28.091 DEBUG [elgato-child] child rx: image-data chunk key=6 1016B msgId=0 (+278794ms)
00:09:28.091 DEBUG [elgato-child] child rx: image-data chunk key=6 1016B msgId=0 (+278794ms)

These messages continue to appear continuously even after the buttons stop responding. The CMD window does not seem to stop processing or exit on its own.

I'm not sure whether this is related to the animated icon issue, but I thought it might be useful to mention.

Thank you!

aaaa9753 avatar Nov 27 '26 16:11 aaaa9753

I completed both tests using v0.26.4 (or the latest version I tested). ... Thank you for providing the experimental flag and for your continued help investigating this issue!

diag-off.txt diag-on.txt

Thanks for the two runs. Two things I found out:

  1. diag-off logs stream 14.5 fps, write avg 68ms/frame, read-gap max 1052ms, input reports 0. With 3 animated keys the write path is saturated and the deck reports no key input during that time. That matches your symptom.
  2. I can't confirm the flag was active in diag-on: deckbridge diagnose is a separate process and its environment doesn't list DECKBRIDGE_DRAIN_INPUT. Both files also show "logLevel": "debug" in settings.json, so the log tail is only image chunks.

The DEBUG lines continuing after keys stop are expected: Stream Deck keeps sending animation frames, so the connection is fine and only deck input is stuck.

I'm adding a per-model image rate cap that drops animation frames when the deck falls behind, so key input gets time to be read. I'll ping here when a build is ready to test.

lukasMega avatar Nov 27 '26 18:11 lukasMega

New in v0.26.5: Max images/s It caps how many key images per second go to the deck. A full page still goes at once. Over the cap, an animation skips frames, so key input gets time to be read. It is off by default.

Please try it:

  1. Install v0.26.5 and open Settings → Device tuning.
  2. Set Max images/s to 5, save, and run your 3 animated icons.
  3. Do the keys keep working? If not, try 3, then 8.
  4. If they still stop, set Debug logging off, reproduce, and attach deckbridge diagnose --redact-commands --out diag.txt taken while the keys are stuck. The WARN [hid] stream ... line is the one I need.

Whether the cap fixes this is not confirmed yet. It depends on whether the deck firmware stops reporting keys only while it is busy. Your result will tell us.

lukasMega avatar Nov 27 '26 19:11 lukasMega

Test Results – Max images/s = 5

I tested DeckBridge v0.26.5 with Max images/s set to 5.

So far, everything has been working normally, and the previous issue has not occurred again.

I tested with five animated icons running simultaneously, and all physical buttons remained responsive. Other actions and functions also continued to work correctly.

I did notice two differences:

  • Animation speed: The animated icons now run at a noticeably lower FPS, making their animations appear much slower.
  • Button response time: Physical button presses feel approximately 0.5–1 second slower than before.

However, both are within an acceptable range for my use, and overall operation is stable.

At this point, I haven't encountered any further input failures with five animated icons enabled.

Thank you for the fix and for continuing to improve device compatibility!

aaaa9753 avatar Nov 28 '26 16:11 aaaa9753

❤️ I’m glad that’s working, although it’s not ideal. This Mirabox device has its limitations, and it’s slower than other, newer Mirabox models.

lukasMega avatar Nov 28 '26 19:11 lukasMega